configure revision 1.1.1.1.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-mach64 6.8.2.
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-mach64'
752 PACKAGE_TARNAME='xf86-video-mach64'
753 PACKAGE_VERSION='6.8.2'
754 PACKAGE_STRING='xf86-video-mach64 6.8.2'
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 MAKE_HTML
801 MAKE_PDF
802 MAKE_PS
803 MAKE_TEXT
804 BUILD_PDFDOC_FALSE
805 BUILD_PDFDOC_TRUE
806 BUILD_LINUXDOC_FALSE
807 BUILD_LINUXDOC_TRUE
808 PS2PDF
809 LINUXDOC
810 ADMIN_MAN_DIR
811 DRIVER_MAN_DIR
812 MISC_MAN_DIR
813 FILE_MAN_DIR
814 LIB_MAN_DIR
815 APP_MAN_DIR
816 ADMIN_MAN_SUFFIX
817 DRIVER_MAN_SUFFIX
818 MISC_MAN_SUFFIX
819 FILE_MAN_SUFFIX
820 LIB_MAN_SUFFIX
821 APP_MAN_SUFFIX
822 DRIVER_NAME
823 moduledir
824 XSERVER_LIBPCIACCESS_FALSE
825 XSERVER_LIBPCIACCESS_TRUE
826 PCIACCESS_LIBS
827 PCIACCESS_CFLAGS
828 USE_EXA_FALSE
829 USE_EXA_TRUE
830 ATIMISC_TV_OUT_FALSE
831 ATIMISC_TV_OUT_TRUE
832 ATIMISC_DGA_FALSE
833 ATIMISC_DGA_TRUE
834 ATIMISC_CPIO_FALSE
835 ATIMISC_CPIO_TRUE
836 DRI_LIBS
837 DRI_CFLAGS
838 DRI_FALSE
839 DRI_TRUE
840 HAVE_XEXTPROTO_71_FALSE
841 HAVE_XEXTPROTO_71_TRUE
842 XEXT_LIBS
843 XEXT_CFLAGS
844 XORG_LIBS
845 XORG_CFLAGS
846 PKG_CONFIG
847 CWARNFLAGS
848 LIBTOOL
849 ac_ct_F77
850 FFLAGS
851 F77
852 CXXCPP
853 am__fastdepCXX_FALSE
854 am__fastdepCXX_TRUE
855 CXXDEPMODE
856 ac_ct_CXX
857 CXXFLAGS
858 CXX
859 CPP
860 NMEDIT
861 DSYMUTIL
862 RANLIB
863 AR
864 ECHO
865 LN_S
866 EGREP
867 GREP
868 SED
869 am__fastdepCC_FALSE
870 am__fastdepCC_TRUE
871 CCDEPMODE
872 AMDEPBACKSLASH
873 AMDEP_FALSE
874 AMDEP_TRUE
875 am__quote
876 am__include
877 DEPDIR
878 OBJEXT
879 EXEEXT
880 ac_ct_CC
881 CPPFLAGS
882 LDFLAGS
883 CFLAGS
884 CC
885 host_os
886 host_vendor
887 host_cpu
888 host
889 build_os
890 build_vendor
891 build_cpu
892 build
893 MAINT
894 MAINTAINER_MODE_FALSE
895 MAINTAINER_MODE_TRUE
896 am__untar
897 am__tar
898 AMTAR
899 am__leading_dot
900 SET_MAKE
901 AWK
902 mkdir_p
903 MKDIR_P
904 INSTALL_STRIP_PROGRAM
905 STRIP
906 install_sh
907 MAKEINFO
908 AUTOHEADER
909 AUTOMAKE
910 AUTOCONF
911 ACLOCAL
912 VERSION
913 PACKAGE
914 CYGPATH_W
915 am__isrc
916 INSTALL_DATA
917 INSTALL_SCRIPT
918 INSTALL_PROGRAM
919 target_alias
920 host_alias
921 build_alias
922 LIBS
923 ECHO_T
924 ECHO_N
925 ECHO_C
926 DEFS
927 mandir
928 localedir
929 libdir
930 psdir
931 pdfdir
932 dvidir
933 htmldir
934 infodir
935 docdir
936 oldincludedir
937 includedir
938 localstatedir
939 sharedstatedir
940 sysconfdir
941 datadir
942 datarootdir
943 libexecdir
944 sbindir
945 bindir
946 program_transform_name
947 prefix
948 exec_prefix
949 PACKAGE_BUGREPORT
950 PACKAGE_STRING
951 PACKAGE_VERSION
952 PACKAGE_TARNAME
953 PACKAGE_NAME
954 PATH_SEPARATOR
955 SHELL'
956 ac_subst_files=''
957 ac_user_opts='
958 enable_option_checking
959 enable_maintainer_mode
960 enable_static
961 enable_shared
962 enable_fast_install
963 enable_dependency_tracking
964 with_gnu_ld
965 enable_libtool_lock
966 with_pic
967 with_tags
968 with_xorg_module_dir
969 enable_dri
970 enable_exa
971 with_release_version
972 '
973 ac_precious_vars='build_alias
974 host_alias
975 target_alias
976 CC
977 CFLAGS
978 LDFLAGS
979 LIBS
980 CPPFLAGS
981 CPP
982 CXX
983 CXXFLAGS
984 CCC
985 CXXCPP
986 F77
987 FFLAGS
988 PKG_CONFIG
989 XORG_CFLAGS
990 XORG_LIBS
991 XEXT_CFLAGS
992 XEXT_LIBS
993 DRI_CFLAGS
994 DRI_LIBS
995 PCIACCESS_CFLAGS
996 PCIACCESS_LIBS'
997
998
999 # Initialize some variables set by options.
1000 ac_init_help=
1001 ac_init_version=false
1002 ac_unrecognized_opts=
1003 ac_unrecognized_sep=
1004 # The variables have the same names as the options, with
1005 # dashes changed to underlines.
1006 cache_file=/dev/null
1007 exec_prefix=NONE
1008 no_create=
1009 no_recursion=
1010 prefix=NONE
1011 program_prefix=NONE
1012 program_suffix=NONE
1013 program_transform_name=s,x,x,
1014 silent=
1015 site=
1016 srcdir=
1017 verbose=
1018 x_includes=NONE
1019 x_libraries=NONE
1020
1021 # Installation directory options.
1022 # These are left unexpanded so users can "make install exec_prefix=/foo"
1023 # and all the variables that are supposed to be based on exec_prefix
1024 # by default will actually change.
1025 # Use braces instead of parens because sh, perl, etc. also accept them.
1026 # (The list follows the same order as the GNU Coding Standards.)
1027 bindir='${exec_prefix}/bin'
1028 sbindir='${exec_prefix}/sbin'
1029 libexecdir='${exec_prefix}/libexec'
1030 datarootdir='${prefix}/share'
1031 datadir='${datarootdir}'
1032 sysconfdir='${prefix}/etc'
1033 sharedstatedir='${prefix}/com'
1034 localstatedir='${prefix}/var'
1035 includedir='${prefix}/include'
1036 oldincludedir='/usr/include'
1037 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1038 infodir='${datarootdir}/info'
1039 htmldir='${docdir}'
1040 dvidir='${docdir}'
1041 pdfdir='${docdir}'
1042 psdir='${docdir}'
1043 libdir='${exec_prefix}/lib'
1044 localedir='${datarootdir}/locale'
1045 mandir='${datarootdir}/man'
1046
1047 ac_prev=
1048 ac_dashdash=
1049 for ac_option
1050 do
1051 # If the previous option needs an argument, assign it.
1052 if test -n "$ac_prev"; then
1053 eval $ac_prev=\$ac_option
1054 ac_prev=
1055 continue
1056 fi
1057
1058 case $ac_option in
1059 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1060 *) ac_optarg=yes ;;
1061 esac
1062
1063 # Accept the important Cygnus configure options, so we can diagnose typos.
1064
1065 case $ac_dashdash$ac_option in
1066 --)
1067 ac_dashdash=yes ;;
1068
1069 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1070 ac_prev=bindir ;;
1071 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1072 bindir=$ac_optarg ;;
1073
1074 -build | --build | --buil | --bui | --bu)
1075 ac_prev=build_alias ;;
1076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1077 build_alias=$ac_optarg ;;
1078
1079 -cache-file | --cache-file | --cache-fil | --cache-fi \
1080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1081 ac_prev=cache_file ;;
1082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1084 cache_file=$ac_optarg ;;
1085
1086 --config-cache | -C)
1087 cache_file=config.cache ;;
1088
1089 -datadir | --datadir | --datadi | --datad)
1090 ac_prev=datadir ;;
1091 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1092 datadir=$ac_optarg ;;
1093
1094 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1095 | --dataroo | --dataro | --datar)
1096 ac_prev=datarootdir ;;
1097 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1098 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1099 datarootdir=$ac_optarg ;;
1100
1101 -disable-* | --disable-*)
1102 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1110 *"
1111 "enable_$ac_useropt"
1112 "*) ;;
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1115 esac
1116 eval enable_$ac_useropt=no ;;
1117
1118 -docdir | --docdir | --docdi | --doc | --do)
1119 ac_prev=docdir ;;
1120 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1121 docdir=$ac_optarg ;;
1122
1123 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1124 ac_prev=dvidir ;;
1125 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1126 dvidir=$ac_optarg ;;
1127
1128 -enable-* | --enable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1133 { (exit 1); exit 1; }; }
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "enable_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval enable_$ac_useropt=\$ac_optarg ;;
1144
1145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1147 | --exec | --exe | --ex)
1148 ac_prev=exec_prefix ;;
1149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1151 | --exec=* | --exe=* | --ex=*)
1152 exec_prefix=$ac_optarg ;;
1153
1154 -gas | --gas | --ga | --g)
1155 # Obsolete; use --with-gas.
1156 with_gas=yes ;;
1157
1158 -help | --help | --hel | --he | -h)
1159 ac_init_help=long ;;
1160 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1161 ac_init_help=recursive ;;
1162 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1163 ac_init_help=short ;;
1164
1165 -host | --host | --hos | --ho)
1166 ac_prev=host_alias ;;
1167 -host=* | --host=* | --hos=* | --ho=*)
1168 host_alias=$ac_optarg ;;
1169
1170 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1171 ac_prev=htmldir ;;
1172 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1173 | --ht=*)
1174 htmldir=$ac_optarg ;;
1175
1176 -includedir | --includedir | --includedi | --included | --include \
1177 | --includ | --inclu | --incl | --inc)
1178 ac_prev=includedir ;;
1179 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1180 | --includ=* | --inclu=* | --incl=* | --inc=*)
1181 includedir=$ac_optarg ;;
1182
1183 -infodir | --infodir | --infodi | --infod | --info | --inf)
1184 ac_prev=infodir ;;
1185 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1186 infodir=$ac_optarg ;;
1187
1188 -libdir | --libdir | --libdi | --libd)
1189 ac_prev=libdir ;;
1190 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1191 libdir=$ac_optarg ;;
1192
1193 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1194 | --libexe | --libex | --libe)
1195 ac_prev=libexecdir ;;
1196 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1197 | --libexe=* | --libex=* | --libe=*)
1198 libexecdir=$ac_optarg ;;
1199
1200 -localedir | --localedir | --localedi | --localed | --locale)
1201 ac_prev=localedir ;;
1202 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1203 localedir=$ac_optarg ;;
1204
1205 -localstatedir | --localstatedir | --localstatedi | --localstated \
1206 | --localstate | --localstat | --localsta | --localst | --locals)
1207 ac_prev=localstatedir ;;
1208 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1209 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1210 localstatedir=$ac_optarg ;;
1211
1212 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1213 ac_prev=mandir ;;
1214 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1215 mandir=$ac_optarg ;;
1216
1217 -nfp | --nfp | --nf)
1218 # Obsolete; use --without-fp.
1219 with_fp=no ;;
1220
1221 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1222 | --no-cr | --no-c | -n)
1223 no_create=yes ;;
1224
1225 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1226 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1227 no_recursion=yes ;;
1228
1229 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1230 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1231 | --oldin | --oldi | --old | --ol | --o)
1232 ac_prev=oldincludedir ;;
1233 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1234 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1235 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1236 oldincludedir=$ac_optarg ;;
1237
1238 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1239 ac_prev=prefix ;;
1240 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1241 prefix=$ac_optarg ;;
1242
1243 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1244 | --program-pre | --program-pr | --program-p)
1245 ac_prev=program_prefix ;;
1246 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1247 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1248 program_prefix=$ac_optarg ;;
1249
1250 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1251 | --program-suf | --program-su | --program-s)
1252 ac_prev=program_suffix ;;
1253 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1254 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1255 program_suffix=$ac_optarg ;;
1256
1257 -program-transform-name | --program-transform-name \
1258 | --program-transform-nam | --program-transform-na \
1259 | --program-transform-n | --program-transform- \
1260 | --program-transform | --program-transfor \
1261 | --program-transfo | --program-transf \
1262 | --program-trans | --program-tran \
1263 | --progr-tra | --program-tr | --program-t)
1264 ac_prev=program_transform_name ;;
1265 -program-transform-name=* | --program-transform-name=* \
1266 | --program-transform-nam=* | --program-transform-na=* \
1267 | --program-transform-n=* | --program-transform-=* \
1268 | --program-transform=* | --program-transfor=* \
1269 | --program-transfo=* | --program-transf=* \
1270 | --program-trans=* | --program-tran=* \
1271 | --progr-tra=* | --program-tr=* | --program-t=*)
1272 program_transform_name=$ac_optarg ;;
1273
1274 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1275 ac_prev=pdfdir ;;
1276 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1277 pdfdir=$ac_optarg ;;
1278
1279 -psdir | --psdir | --psdi | --psd | --ps)
1280 ac_prev=psdir ;;
1281 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1282 psdir=$ac_optarg ;;
1283
1284 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1285 | -silent | --silent | --silen | --sile | --sil)
1286 silent=yes ;;
1287
1288 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1289 ac_prev=sbindir ;;
1290 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1291 | --sbi=* | --sb=*)
1292 sbindir=$ac_optarg ;;
1293
1294 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1295 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1296 | --sharedst | --shareds | --shared | --share | --shar \
1297 | --sha | --sh)
1298 ac_prev=sharedstatedir ;;
1299 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1300 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1301 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1302 | --sha=* | --sh=*)
1303 sharedstatedir=$ac_optarg ;;
1304
1305 -site | --site | --sit)
1306 ac_prev=site ;;
1307 -site=* | --site=* | --sit=*)
1308 site=$ac_optarg ;;
1309
1310 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1311 ac_prev=srcdir ;;
1312 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1313 srcdir=$ac_optarg ;;
1314
1315 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1316 | --syscon | --sysco | --sysc | --sys | --sy)
1317 ac_prev=sysconfdir ;;
1318 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1319 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1320 sysconfdir=$ac_optarg ;;
1321
1322 -target | --target | --targe | --targ | --tar | --ta | --t)
1323 ac_prev=target_alias ;;
1324 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1325 target_alias=$ac_optarg ;;
1326
1327 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1328 verbose=yes ;;
1329
1330 -version | --version | --versio | --versi | --vers | -V)
1331 ac_init_version=: ;;
1332
1333 -with-* | --with-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1338 { (exit 1); exit 1; }; }
1339 ac_useropt_orig=$ac_useropt
1340 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341 case $ac_user_opts in
1342 *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346 ac_unrecognized_sep=', ';;
1347 esac
1348 eval with_$ac_useropt=\$ac_optarg ;;
1349
1350 -without-* | --without-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1355 { (exit 1); exit 1; }; }
1356 ac_useropt_orig=$ac_useropt
1357 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358 case $ac_user_opts in
1359 *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1363 ac_unrecognized_sep=', ';;
1364 esac
1365 eval with_$ac_useropt=no ;;
1366
1367 --x)
1368 # Obsolete; use --with-x.
1369 with_x=yes ;;
1370
1371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1372 | --x-incl | --x-inc | --x-in | --x-i)
1373 ac_prev=x_includes ;;
1374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1376 x_includes=$ac_optarg ;;
1377
1378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1380 ac_prev=x_libraries ;;
1381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1383 x_libraries=$ac_optarg ;;
1384
1385 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1386 Try \`$0 --help' for more information." >&2
1387 { (exit 1); exit 1; }; }
1388 ;;
1389
1390 *=*)
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1394 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1395 { (exit 1); exit 1; }; }
1396 eval $ac_envvar=\$ac_optarg
1397 export $ac_envvar ;;
1398
1399 *)
1400 # FIXME: should be removed in autoconf 3.0.
1401 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1402 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1403 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1404 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1405 ;;
1406
1407 esac
1408 done
1409
1410 if test -n "$ac_prev"; then
1411 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1412 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1413 { (exit 1); exit 1; }; }
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1418 no) ;;
1419 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1420 { (exit 1); exit 1; }; } ;;
1421 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1422 esac
1423 fi
1424
1425 # Check all directory arguments for consistency.
1426 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1427 datadir sysconfdir sharedstatedir localstatedir includedir \
1428 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1429 libdir localedir mandir
1430 do
1431 eval ac_val=\$$ac_var
1432 # Remove trailing slashes.
1433 case $ac_val in
1434 */ )
1435 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1436 eval $ac_var=\$ac_val;;
1437 esac
1438 # Be sure to have absolute directory names.
1439 case $ac_val in
1440 [\\/$]* | ?:[\\/]* ) continue;;
1441 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442 esac
1443 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444 { (exit 1); exit 1; }; }
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456 if test "x$build_alias" = x; then
1457 cross_compiling=maybe
1458 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459 If a cross compiler is detected then cross compile mode will be used." >&2
1460 elif test "x$build_alias" != "x$host_alias"; then
1461 cross_compiling=yes
1462 fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1475 { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1478 { (exit 1); exit 1; }; }
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483 ac_srcdir_defaulted=yes
1484 # Try the directory containing this script, then the parent directory.
1485 ac_confdir=`$as_dirname -- "$as_myself" ||
1486 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487 X"$as_myself" : 'X\(//\)[^/]' \| \
1488 X"$as_myself" : 'X\(//\)$' \| \
1489 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1490 $as_echo X"$as_myself" |
1491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492 s//\1/
1493 q
1494 }
1495 /^X\(\/\/\)[^/].*/{
1496 s//\1/
1497 q
1498 }
1499 /^X\(\/\/\)$/{
1500 s//\1/
1501 q
1502 }
1503 /^X\(\/\).*/{
1504 s//\1/
1505 q
1506 }
1507 s/.*/./; q'`
1508 srcdir=$ac_confdir
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510 srcdir=..
1511 fi
1512 else
1513 ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518 { (exit 1); exit 1; }; }
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1523 { (exit 1); exit 1; }; }
1524 pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527 srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_${ac_var}_value=\$${ac_var}
1538 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1548 cat <<_ACEOF
1549 \`configure' configures xf86-video-mach64 6.8.2 to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1573 [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root
1598 [DATAROOTDIR/doc/xf86-video-mach64]
1599 --htmldir=DIR html documentation [DOCDIR]
1600 --dvidir=DIR dvi documentation [DOCDIR]
1601 --pdfdir=DIR pdf documentation [DOCDIR]
1602 --psdir=DIR ps documentation [DOCDIR]
1603 _ACEOF
1604
1605 cat <<\_ACEOF
1606
1607 Program names:
1608 --program-prefix=PREFIX prepend PREFIX to installed program names
1609 --program-suffix=SUFFIX append SUFFIX to installed program names
1610 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1611
1612 System types:
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619 case $ac_init_help in
1620 short | recursive ) echo "Configuration of xf86-video-mach64 6.8.2:";;
1621 esac
1622 cat <<\_ACEOF
1623
1624 Optional Features:
1625 --disable-option-checking ignore unrecognized --enable/--with options
1626 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1627 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1628 --enable-maintainer-mode enable make rules and dependencies not useful
1629 (and sometimes confusing) to the casual installer
1630 --enable-static[=PKGS] build static libraries [default=no]
1631 --enable-shared[=PKGS] build shared libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-dependency-tracking speeds up one-time build
1635 --enable-dependency-tracking do not reject slow dependency extractors
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --disable-dri Disable DRI support [default=auto]
1638 --disable-exa Disable EXA support [default=enabled]
1639
1640 Optional Packages:
1641 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1642 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1643 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1644 --with-pic try to use only PIC/non-PIC objects [default=use
1645 both]
1646 --with-tags[=TAGS] include additional configurations [automatic]
1647 --with-xorg-module-dir=DIR
1648 Default xorg module directory
1649 [default=$libdir/xorg/modules]
1650 --with-release-version=STRING
1651 Use release version string in package name
1652
1653 Some influential environment variables:
1654 CC C compiler command
1655 CFLAGS C compiler flags
1656 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1657 nonstandard directory <lib dir>
1658 LIBS libraries to pass to the linker, e.g. -l<library>
1659 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660 you have headers in a nonstandard directory <include dir>
1661 CPP C preprocessor
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
1664 CXXCPP C++ preprocessor
1665 F77 Fortran 77 compiler command
1666 FFLAGS Fortran 77 compiler flags
1667 PKG_CONFIG path to pkg-config utility
1668 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1669 XORG_LIBS linker flags for XORG, overriding pkg-config
1670 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1671 XEXT_LIBS linker flags for XEXT, overriding pkg-config
1672 DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
1673 DRI_LIBS linker flags for DRI, overriding pkg-config
1674 PCIACCESS_CFLAGS
1675 C compiler flags for PCIACCESS, overriding pkg-config
1676 PCIACCESS_LIBS
1677 linker flags for PCIACCESS, overriding pkg-config
1678
1679 Use these variables to override the choices made by `configure' or to help
1680 it to find libraries and programs with nonstandard names/locations.
1681
1682 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1683 _ACEOF
1684 ac_status=$?
1685 fi
1686
1687 if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 continue
1693 ac_builddir=.
1694
1695 case "$ac_dir" in
1696 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697 *)
1698 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1699 # A ".." for each directory in $ac_dir_suffix.
1700 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 esac ;;
1705 esac
1706 ac_abs_top_builddir=$ac_pwd
1707 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708 # for backward compatibility:
1709 ac_top_builddir=$ac_top_build_prefix
1710
1711 case $srcdir in
1712 .) # We are building in place.
1713 ac_srcdir=.
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
1717 ac_srcdir=$srcdir$ac_dir_suffix;
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1720 *) # Relative name.
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1724 esac
1725 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
1727 cd "$ac_dir" || { ac_status=$?; continue; }
1728 # Check for guested configure.
1729 if test -f "$ac_srcdir/configure.gnu"; then
1730 echo &&
1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1732 elif test -f "$ac_srcdir/configure"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure" --help=recursive
1735 else
1736 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1737 fi || ac_status=$?
1738 cd "$ac_pwd" || { ac_status=$?; break; }
1739 done
1740 fi
1741
1742 test -n "$ac_init_help" && exit $ac_status
1743 if $ac_init_version; then
1744 cat <<\_ACEOF
1745 xf86-video-mach64 configure 6.8.2
1746 generated by GNU Autoconf 2.63
1747
1748 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1749 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753 exit
1754 fi
1755 cat >config.log <<_ACEOF
1756 This file contains any messages produced by compilers while
1757 running configure, to aid debugging if configure makes a mistake.
1758
1759 It was created by xf86-video-mach64 $as_me 6.8.2, which was
1760 generated by GNU Autoconf 2.63. Invocation command line was
1761
1762 $ $0 $@
1763
1764 _ACEOF
1765 exec 5>>config.log
1766 {
1767 cat <<_ASUNAME
1768 ## --------- ##
1769 ## Platform. ##
1770 ## --------- ##
1771
1772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1777
1778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1780
1781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1788
1789 _ASUNAME
1790
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794 IFS=$as_save_IFS
1795 test -z "$as_dir" && as_dir=.
1796 $as_echo "PATH: $as_dir"
1797 done
1798 IFS=$as_save_IFS
1799
1800 } >&5
1801
1802 cat >&5 <<_ACEOF
1803
1804
1805 ## ----------- ##
1806 ## Core tests. ##
1807 ## ----------- ##
1808
1809 _ACEOF
1810
1811
1812 # Keep a trace of the command line.
1813 # Strip out --no-create and --no-recursion so they do not pile up.
1814 # Strip out --silent because we don't want to record it for future runs.
1815 # Also quote any args containing shell meta-characters.
1816 # Make two passes to allow for proper duplicate-argument suppression.
1817 ac_configure_args=
1818 ac_configure_args0=
1819 ac_configure_args1=
1820 ac_must_keep_next=false
1821 for ac_pass in 1 2
1822 do
1823 for ac_arg
1824 do
1825 case $ac_arg in
1826 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1828 | -silent | --silent | --silen | --sile | --sil)
1829 continue ;;
1830 *\'*)
1831 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1832 esac
1833 case $ac_pass in
1834 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1835 2)
1836 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1837 if test $ac_must_keep_next = true; then
1838 ac_must_keep_next=false # Got value, back to normal.
1839 else
1840 case $ac_arg in
1841 *=* | --config-cache | -C | -disable-* | --disable-* \
1842 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1843 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1844 | -with-* | --with-* | -without-* | --without-* | --x)
1845 case "$ac_configure_args0 " in
1846 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1847 esac
1848 ;;
1849 -* ) ac_must_keep_next=true ;;
1850 esac
1851 fi
1852 ac_configure_args="$ac_configure_args '$ac_arg'"
1853 ;;
1854 esac
1855 done
1856 done
1857 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1858 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1859
1860 # When interrupted or exit'd, cleanup temporary files, and complete
1861 # config.log. We remove comments because anyway the quotes in there
1862 # would cause problems or look ugly.
1863 # WARNING: Use '\'' to represent an apostrophe within the trap.
1864 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1865 trap 'exit_status=$?
1866 # Save into config.log some information that might help in debugging.
1867 {
1868 echo
1869
1870 cat <<\_ASBOX
1871 ## ---------------- ##
1872 ## Cache variables. ##
1873 ## ---------------- ##
1874 _ASBOX
1875 echo
1876 # The following way of writing the cache mishandles newlines in values,
1877 (
1878 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1879 eval ac_val=\$$ac_var
1880 case $ac_val in #(
1881 *${as_nl}*)
1882 case $ac_var in #(
1883 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1885 esac
1886 case $ac_var in #(
1887 _ | IFS | as_nl) ;; #(
1888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1889 *) $as_unset $ac_var ;;
1890 esac ;;
1891 esac
1892 done
1893 (set) 2>&1 |
1894 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1895 *${as_nl}ac_space=\ *)
1896 sed -n \
1897 "s/'\''/'\''\\\\'\'''\''/g;
1898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1899 ;; #(
1900 *)
1901 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1902 ;;
1903 esac |
1904 sort
1905 )
1906 echo
1907
1908 cat <<\_ASBOX
1909 ## ----------------- ##
1910 ## Output variables. ##
1911 ## ----------------- ##
1912 _ASBOX
1913 echo
1914 for ac_var in $ac_subst_vars
1915 do
1916 eval ac_val=\$$ac_var
1917 case $ac_val in
1918 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1919 esac
1920 $as_echo "$ac_var='\''$ac_val'\''"
1921 done | sort
1922 echo
1923
1924 if test -n "$ac_subst_files"; then
1925 cat <<\_ASBOX
1926 ## ------------------- ##
1927 ## File substitutions. ##
1928 ## ------------------- ##
1929 _ASBOX
1930 echo
1931 for ac_var in $ac_subst_files
1932 do
1933 eval ac_val=\$$ac_var
1934 case $ac_val in
1935 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1936 esac
1937 $as_echo "$ac_var='\''$ac_val'\''"
1938 done | sort
1939 echo
1940 fi
1941
1942 if test -s confdefs.h; then
1943 cat <<\_ASBOX
1944 ## ----------- ##
1945 ## confdefs.h. ##
1946 ## ----------- ##
1947 _ASBOX
1948 echo
1949 cat confdefs.h
1950 echo
1951 fi
1952 test "$ac_signal" != 0 &&
1953 $as_echo "$as_me: caught signal $ac_signal"
1954 $as_echo "$as_me: exit $exit_status"
1955 } >&5
1956 rm -f core *.core core.conftest.* &&
1957 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1958 exit $exit_status
1959 ' 0
1960 for ac_signal in 1 2 13 15; do
1961 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1962 done
1963 ac_signal=0
1964
1965 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1966 rm -f -r conftest* confdefs.h
1967
1968 # Predefined preprocessor variables.
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_NAME "$PACKAGE_NAME"
1972 _ACEOF
1973
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1977 _ACEOF
1978
1979
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1982 _ACEOF
1983
1984
1985 cat >>confdefs.h <<_ACEOF
1986 #define PACKAGE_STRING "$PACKAGE_STRING"
1987 _ACEOF
1988
1989
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1992 _ACEOF
1993
1994
1995 # Let the site file select an alternate cache file if it wants to.
1996 # Prefer an explicitly selected file to automatically selected ones.
1997 ac_site_file1=NONE
1998 ac_site_file2=NONE
1999 if test -n "$CONFIG_SITE"; then
2000 ac_site_file1=$CONFIG_SITE
2001 elif test "x$prefix" != xNONE; then
2002 ac_site_file1=$prefix/share/config.site
2003 ac_site_file2=$prefix/etc/config.site
2004 else
2005 ac_site_file1=$ac_default_prefix/share/config.site
2006 ac_site_file2=$ac_default_prefix/etc/config.site
2007 fi
2008 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2009 do
2010 test "x$ac_site_file" = xNONE && continue
2011 if test -r "$ac_site_file"; then
2012 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2013 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2014 sed 's/^/| /' "$ac_site_file" >&5
2015 . "$ac_site_file"
2016 fi
2017 done
2018
2019 if test -r "$cache_file"; then
2020 # Some versions of bash will fail to source /dev/null (special
2021 # files actually), so we avoid doing that.
2022 if test -f "$cache_file"; then
2023 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2024 $as_echo "$as_me: loading cache $cache_file" >&6;}
2025 case $cache_file in
2026 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2027 *) . "./$cache_file";;
2028 esac
2029 fi
2030 else
2031 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2032 $as_echo "$as_me: creating cache $cache_file" >&6;}
2033 >$cache_file
2034 fi
2035
2036 # Check that the precious variables saved in the cache have kept the same
2037 # value.
2038 ac_cache_corrupted=false
2039 for ac_var in $ac_precious_vars; do
2040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2041 eval ac_new_set=\$ac_env_${ac_var}_set
2042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2043 eval ac_new_val=\$ac_env_${ac_var}_value
2044 case $ac_old_set,$ac_new_set in
2045 set,)
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2047 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2048 ac_cache_corrupted=: ;;
2049 ,set)
2050 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2051 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2052 ac_cache_corrupted=: ;;
2053 ,);;
2054 *)
2055 if test "x$ac_old_val" != "x$ac_new_val"; then
2056 # differences in whitespace do not lead to failure.
2057 ac_old_val_w=`echo x $ac_old_val`
2058 ac_new_val_w=`echo x $ac_new_val`
2059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2061 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2062 ac_cache_corrupted=:
2063 else
2064 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2065 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2066 eval $ac_var=\$ac_old_val
2067 fi
2068 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2069 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2071 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2072 fi;;
2073 esac
2074 # Pass precious variables to config.status.
2075 if test "$ac_new_set" = set; then
2076 case $ac_new_val in
2077 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 *) ac_arg=$ac_var=$ac_new_val ;;
2079 esac
2080 case " $ac_configure_args " in
2081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2083 esac
2084 fi
2085 done
2086 if $ac_cache_corrupted; then
2087 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2090 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2092 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2093 { (exit 1); exit 1; }; }
2094 fi
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120 ac_ext=c
2121 ac_cpp='$CPP $CPPFLAGS'
2122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2125
2126
2127
2128
2129 ac_config_headers="$ac_config_headers config.h"
2130
2131 ac_aux_dir=
2132 for ac_dir in . "$srcdir"/.; do
2133 if test -f "$ac_dir/install-sh"; then
2134 ac_aux_dir=$ac_dir
2135 ac_install_sh="$ac_aux_dir/install-sh -c"
2136 break
2137 elif test -f "$ac_dir/install.sh"; then
2138 ac_aux_dir=$ac_dir
2139 ac_install_sh="$ac_aux_dir/install.sh -c"
2140 break
2141 elif test -f "$ac_dir/shtool"; then
2142 ac_aux_dir=$ac_dir
2143 ac_install_sh="$ac_aux_dir/shtool install -c"
2144 break
2145 fi
2146 done
2147 if test -z "$ac_aux_dir"; then
2148 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2149 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2150 { (exit 1); exit 1; }; }
2151 fi
2152
2153 # These three variables are undocumented and unsupported,
2154 # and are intended to be withdrawn in a future Autoconf release.
2155 # They can cause serious problems if a builder's source tree is in a directory
2156 # whose full name contains unusual characters.
2157 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2158 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2159 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2160
2161
2162
2163 am__api_version='1.11'
2164
2165 # Find a good install program. We prefer a C program (faster),
2166 # so one script is as good as another. But avoid the broken or
2167 # incompatible versions:
2168 # SysV /etc/install, /usr/sbin/install
2169 # SunOS /usr/etc/install
2170 # IRIX /sbin/install
2171 # AIX /bin/install
2172 # AmigaOS /C/install, which installs bootblocks on floppy discs
2173 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2174 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2175 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2176 # OS/2's system install, which has a completely different semantic
2177 # ./install, which can be erroneously created by make from ./install.sh.
2178 # Reject install programs that cannot install multiple files.
2179 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2180 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2181 if test -z "$INSTALL"; then
2182 if test "${ac_cv_path_install+set}" = set; then
2183 $as_echo_n "(cached) " >&6
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 # Account for people who put trailing slashes in PATH elements.
2191 case $as_dir/ in
2192 ./ | .// | /cC/* | \
2193 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2194 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2195 /usr/ucb/* ) ;;
2196 *)
2197 # OSF1 and SCO ODT 3.0 have their own names for install.
2198 # Don't use installbsd from OSF since it installs stuff as root
2199 # by default.
2200 for ac_prog in ginstall scoinst install; do
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2203 if test $ac_prog = install &&
2204 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2205 # AIX install. It has an incompatible calling convention.
2206 :
2207 elif test $ac_prog = install &&
2208 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2209 # program-specific install script used by HP pwplus--don't use.
2210 :
2211 else
2212 rm -rf conftest.one conftest.two conftest.dir
2213 echo one > conftest.one
2214 echo two > conftest.two
2215 mkdir conftest.dir
2216 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2217 test -s conftest.one && test -s conftest.two &&
2218 test -s conftest.dir/conftest.one &&
2219 test -s conftest.dir/conftest.two
2220 then
2221 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2222 break 3
2223 fi
2224 fi
2225 fi
2226 done
2227 done
2228 ;;
2229 esac
2230
2231 done
2232 IFS=$as_save_IFS
2233
2234 rm -rf conftest.one conftest.two conftest.dir
2235
2236 fi
2237 if test "${ac_cv_path_install+set}" = set; then
2238 INSTALL=$ac_cv_path_install
2239 else
2240 # As a last resort, use the slow shell script. Don't cache a
2241 # value for INSTALL within a source directory, because that will
2242 # break other packages using the cache if that directory is
2243 # removed, or if the value is a relative name.
2244 INSTALL=$ac_install_sh
2245 fi
2246 fi
2247 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2248 $as_echo "$INSTALL" >&6; }
2249
2250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2251 # It thinks the first close brace ends the variable substitution.
2252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2253
2254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2255
2256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2257
2258 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2259 $as_echo_n "checking whether build environment is sane... " >&6; }
2260 # Just in case
2261 sleep 1
2262 echo timestamp > conftest.file
2263 # Reject unsafe characters in $srcdir or the absolute working directory
2264 # name. Accept space and tab only in the latter.
2265 am_lf='
2266 '
2267 case `pwd` in
2268 *[\\\"\#\$\&\'\`$am_lf]*)
2269 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2270 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2271 { (exit 1); exit 1; }; };;
2272 esac
2273 case $srcdir in
2274 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2275 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2276 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2277 { (exit 1); exit 1; }; };;
2278 esac
2279
2280 # Do `set' in a subshell so we don't clobber the current shell's
2281 # arguments. Must try -L first in case configure is actually a
2282 # symlink; some systems play weird games with the mod time of symlinks
2283 # (eg FreeBSD returns the mod time of the symlink's containing
2284 # directory).
2285 if (
2286 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2287 if test "$*" = "X"; then
2288 # -L didn't work.
2289 set X `ls -t "$srcdir/configure" conftest.file`
2290 fi
2291 rm -f conftest.file
2292 if test "$*" != "X $srcdir/configure conftest.file" \
2293 && test "$*" != "X conftest.file $srcdir/configure"; then
2294
2295 # If neither matched, then we have a broken ls. This can happen
2296 # if, for instance, CONFIG_SHELL is bash and it inherits a
2297 # broken ls alias from the environment. This has actually
2298 # happened. Such a system could not be considered "sane".
2299 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2300 alias in your environment" >&5
2301 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2302 alias in your environment" >&2;}
2303 { (exit 1); exit 1; }; }
2304 fi
2305
2306 test "$2" = conftest.file
2307 )
2308 then
2309 # Ok.
2310 :
2311 else
2312 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2313 Check your system clock" >&5
2314 $as_echo "$as_me: error: newly created file is older than distributed files!
2315 Check your system clock" >&2;}
2316 { (exit 1); exit 1; }; }
2317 fi
2318 { $as_echo "$as_me:$LINENO: result: yes" >&5
2319 $as_echo "yes" >&6; }
2320 test "$program_prefix" != NONE &&
2321 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2322 # Use a double $ so make ignores it.
2323 test "$program_suffix" != NONE &&
2324 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2325 # Double any \ or $.
2326 # By default was `s,x,x', remove it if useless.
2327 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2328 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2329
2330 # expand $ac_aux_dir to an absolute path
2331 am_aux_dir=`cd $ac_aux_dir && pwd`
2332
2333 if test x"${MISSING+set}" != xset; then
2334 case $am_aux_dir in
2335 *\ * | *\ *)
2336 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2337 *)
2338 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2339 esac
2340 fi
2341 # Use eval to expand $SHELL
2342 if eval "$MISSING --run true"; then
2343 am_missing_run="$MISSING --run "
2344 else
2345 am_missing_run=
2346 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2347 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2348 fi
2349
2350 if test x"${install_sh}" != xset; then
2351 case $am_aux_dir in
2352 *\ * | *\ *)
2353 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2354 *)
2355 install_sh="\${SHELL} $am_aux_dir/install-sh"
2356 esac
2357 fi
2358
2359 # Installed binaries are usually stripped using `strip' when the user
2360 # run `make install-strip'. However `strip' might not be the right
2361 # tool to use in cross-compilation environments, therefore Automake
2362 # will honor the `STRIP' environment variable to overrule this program.
2363 if test "$cross_compiling" != no; then
2364 if test -n "$ac_tool_prefix"; then
2365 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2366 set dummy ${ac_tool_prefix}strip; ac_word=$2
2367 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 $as_echo_n "checking for $ac_word... " >&6; }
2369 if test "${ac_cv_prog_STRIP+set}" = set; then
2370 $as_echo_n "(cached) " >&6
2371 else
2372 if test -n "$STRIP"; then
2373 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2383 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2385 fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 STRIP=$ac_cv_prog_STRIP
2393 if test -n "$STRIP"; then
2394 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2395 $as_echo "$STRIP" >&6; }
2396 else
2397 { $as_echo "$as_me:$LINENO: result: no" >&5
2398 $as_echo "no" >&6; }
2399 fi
2400
2401
2402 fi
2403 if test -z "$ac_cv_prog_STRIP"; then
2404 ac_ct_STRIP=$STRIP
2405 # Extract the first word of "strip", so it can be a program name with args.
2406 set dummy strip; ac_word=$2
2407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$ac_ct_STRIP"; then
2413 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_ac_ct_STRIP="strip"
2423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431 fi
2432 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2433 if test -n "$ac_ct_STRIP"; then
2434 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2435 $as_echo "$ac_ct_STRIP" >&6; }
2436 else
2437 { $as_echo "$as_me:$LINENO: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2440
2441 if test "x$ac_ct_STRIP" = x; then
2442 STRIP=":"
2443 else
2444 case $cross_compiling:$ac_tool_warned in
2445 yes:)
2446 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2448 ac_tool_warned=yes ;;
2449 esac
2450 STRIP=$ac_ct_STRIP
2451 fi
2452 else
2453 STRIP="$ac_cv_prog_STRIP"
2454 fi
2455
2456 fi
2457 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2458
2459 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2460 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2461 if test -z "$MKDIR_P"; then
2462 if test "${ac_cv_path_mkdir+set}" = set; then
2463 $as_echo_n "(cached) " >&6
2464 else
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2467 do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_prog in mkdir gmkdir; do
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2473 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2474 'mkdir (GNU coreutils) '* | \
2475 'mkdir (coreutils) '* | \
2476 'mkdir (fileutils) '4.1*)
2477 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2478 break 3;;
2479 esac
2480 done
2481 done
2482 done
2483 IFS=$as_save_IFS
2484
2485 fi
2486
2487 if test "${ac_cv_path_mkdir+set}" = set; then
2488 MKDIR_P="$ac_cv_path_mkdir -p"
2489 else
2490 # As a last resort, use the slow shell script. Don't cache a
2491 # value for MKDIR_P within a source directory, because that will
2492 # break other packages using the cache if that directory is
2493 # removed, or if the value is a relative name.
2494 test -d ./--version && rmdir ./--version
2495 MKDIR_P="$ac_install_sh -d"
2496 fi
2497 fi
2498 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2499 $as_echo "$MKDIR_P" >&6; }
2500
2501 mkdir_p="$MKDIR_P"
2502 case $mkdir_p in
2503 [\\/$]* | ?:[\\/]*) ;;
2504 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2505 esac
2506
2507 for ac_prog in gawk mawk nawk awk
2508 do
2509 # Extract the first word of "$ac_prog", so it can be a program name with args.
2510 set dummy $ac_prog; ac_word=$2
2511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if test "${ac_cv_prog_AWK+set}" = set; then
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test -n "$AWK"; then
2517 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522 IFS=$as_save_IFS
2523 test -z "$as_dir" && as_dir=.
2524 for ac_exec_ext in '' $ac_executable_extensions; do
2525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526 ac_cv_prog_AWK="$ac_prog"
2527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 AWK=$ac_cv_prog_AWK
2537 if test -n "$AWK"; then
2538 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2539 $as_echo "$AWK" >&6; }
2540 else
2541 { $as_echo "$as_me:$LINENO: result: no" >&5
2542 $as_echo "no" >&6; }
2543 fi
2544
2545
2546 test -n "$AWK" && break
2547 done
2548
2549 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2550 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2551 set x ${MAKE-make}
2552 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2553 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2554 $as_echo_n "(cached) " >&6
2555 else
2556 cat >conftest.make <<\_ACEOF
2557 SHELL = /bin/sh
2558 all:
2559 @echo '@@@%%%=$(MAKE)=@@@%%%'
2560 _ACEOF
2561 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2562 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2563 *@@@%%%=?*=@@@%%%*)
2564 eval ac_cv_prog_make_${ac_make}_set=yes;;
2565 *)
2566 eval ac_cv_prog_make_${ac_make}_set=no;;
2567 esac
2568 rm -f conftest.make
2569 fi
2570 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2571 { $as_echo "$as_me:$LINENO: result: yes" >&5
2572 $as_echo "yes" >&6; }
2573 SET_MAKE=
2574 else
2575 { $as_echo "$as_me:$LINENO: result: no" >&5
2576 $as_echo "no" >&6; }
2577 SET_MAKE="MAKE=${MAKE-make}"
2578 fi
2579
2580 rm -rf .tst 2>/dev/null
2581 mkdir .tst 2>/dev/null
2582 if test -d .tst; then
2583 am__leading_dot=.
2584 else
2585 am__leading_dot=_
2586 fi
2587 rmdir .tst 2>/dev/null
2588
2589 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2590 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2591 # is not polluted with repeated "-I."
2592 am__isrc=' -I$(srcdir)'
2593 # test to see if srcdir already configured
2594 if test -f $srcdir/config.status; then
2595 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2596 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2597 { (exit 1); exit 1; }; }
2598 fi
2599 fi
2600
2601 # test whether we have cygpath
2602 if test -z "$CYGPATH_W"; then
2603 if (cygpath --version) >/dev/null 2>/dev/null; then
2604 CYGPATH_W='cygpath -w'
2605 else
2606 CYGPATH_W=echo
2607 fi
2608 fi
2609
2610
2611 # Define the identity of the package.
2612 PACKAGE='xf86-video-mach64'
2613 VERSION='6.8.2'
2614
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE "$PACKAGE"
2618 _ACEOF
2619
2620
2621 cat >>confdefs.h <<_ACEOF
2622 #define VERSION "$VERSION"
2623 _ACEOF
2624
2625 # Some tools Automake needs.
2626
2627 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2628
2629
2630 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2631
2632
2633 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2634
2635
2636 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2637
2638
2639 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2640
2641 # We need awk for the "check" target. The system "awk" is bad on
2642 # some platforms.
2643 # Always define AMTAR for backward compatibility.
2644
2645 AMTAR=${AMTAR-"${am_missing_run}tar"}
2646
2647 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2648
2649
2650
2651
2652
2653
2654
2655 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2656 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2657 # Check whether --enable-maintainer-mode was given.
2658 if test "${enable_maintainer_mode+set}" = set; then
2659 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2660 else
2661 USE_MAINTAINER_MODE=no
2662 fi
2663
2664 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2665 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2666 if test $USE_MAINTAINER_MODE = yes; then
2667 MAINTAINER_MODE_TRUE=
2668 MAINTAINER_MODE_FALSE='#'
2669 else
2670 MAINTAINER_MODE_TRUE='#'
2671 MAINTAINER_MODE_FALSE=
2672 fi
2673
2674 MAINT=$MAINTAINER_MODE_TRUE
2675
2676
2677
2678 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2679
2680
2681 XORG_MACROS_needed_version=1.2
2682 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2683 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2684 { $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
2685 $as_echo_n "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... " >&6; }
2686 XORG_MACROS_version=1.2.1
2687 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2688 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2689 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2690 { { $as_echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2691 $as_echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2692 { (exit 1); exit 1; }; }
2693 fi
2694 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2695 { { $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
2696 $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;}
2697 { (exit 1); exit 1; }; }
2698 fi
2699 { $as_echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2700 $as_echo "yes, $XORG_MACROS_version" >&6; }
2701
2702
2703 # Checks for programs.
2704 # Check whether --enable-static was given.
2705 if test "${enable_static+set}" = set; then
2706 enableval=$enable_static; p=${PACKAGE-default}
2707 case $enableval in
2708 yes) enable_static=yes ;;
2709 no) enable_static=no ;;
2710 *)
2711 enable_static=no
2712 # Look at the argument we got. We use all the common list separators.
2713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2714 for pkg in $enableval; do
2715 IFS="$lt_save_ifs"
2716 if test "X$pkg" = "X$p"; then
2717 enable_static=yes
2718 fi
2719 done
2720 IFS="$lt_save_ifs"
2721 ;;
2722 esac
2723 else
2724 enable_static=no
2725 fi
2726
2727
2728
2729 # Check whether --enable-shared was given.
2730 if test "${enable_shared+set}" = set; then
2731 enableval=$enable_shared; p=${PACKAGE-default}
2732 case $enableval in
2733 yes) enable_shared=yes ;;
2734 no) enable_shared=no ;;
2735 *)
2736 enable_shared=no
2737 # Look at the argument we got. We use all the common list separators.
2738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2739 for pkg in $enableval; do
2740 IFS="$lt_save_ifs"
2741 if test "X$pkg" = "X$p"; then
2742 enable_shared=yes
2743 fi
2744 done
2745 IFS="$lt_save_ifs"
2746 ;;
2747 esac
2748 else
2749 enable_shared=yes
2750 fi
2751
2752
2753 # Check whether --enable-fast-install was given.
2754 if test "${enable_fast_install+set}" = set; then
2755 enableval=$enable_fast_install; p=${PACKAGE-default}
2756 case $enableval in
2757 yes) enable_fast_install=yes ;;
2758 no) enable_fast_install=no ;;
2759 *)
2760 enable_fast_install=no
2761 # Look at the argument we got. We use all the common list separators.
2762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2763 for pkg in $enableval; do
2764 IFS="$lt_save_ifs"
2765 if test "X$pkg" = "X$p"; then
2766 enable_fast_install=yes
2767 fi
2768 done
2769 IFS="$lt_save_ifs"
2770 ;;
2771 esac
2772 else
2773 enable_fast_install=yes
2774 fi
2775
2776
2777 # Make sure we can run config.sub.
2778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2779 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2780 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2781 { (exit 1); exit 1; }; }
2782
2783 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2784 $as_echo_n "checking build system type... " >&6; }
2785 if test "${ac_cv_build+set}" = set; then
2786 $as_echo_n "(cached) " >&6
2787 else
2788 ac_build_alias=$build_alias
2789 test "x$ac_build_alias" = x &&
2790 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2791 test "x$ac_build_alias" = x &&
2792 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2793 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2794 { (exit 1); exit 1; }; }
2795 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2796 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2797 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2798 { (exit 1); exit 1; }; }
2799
2800 fi
2801 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2802 $as_echo "$ac_cv_build" >&6; }
2803 case $ac_cv_build in
2804 *-*-*) ;;
2805 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2806 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2807 { (exit 1); exit 1; }; };;
2808 esac
2809 build=$ac_cv_build
2810 ac_save_IFS=$IFS; IFS='-'
2811 set x $ac_cv_build
2812 shift
2813 build_cpu=$1
2814 build_vendor=$2
2815 shift; shift
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2818 build_os=$*
2819 IFS=$ac_save_IFS
2820 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821
2822
2823 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2824 $as_echo_n "checking host system type... " >&6; }
2825 if test "${ac_cv_host+set}" = set; then
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test "x$host_alias" = x; then
2829 ac_cv_host=$ac_cv_build
2830 else
2831 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2833 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2834 { (exit 1); exit 1; }; }
2835 fi
2836
2837 fi
2838 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2839 $as_echo "$ac_cv_host" >&6; }
2840 case $ac_cv_host in
2841 *-*-*) ;;
2842 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2843 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2844 { (exit 1); exit 1; }; };;
2845 esac
2846 host=$ac_cv_host
2847 ac_save_IFS=$IFS; IFS='-'
2848 set x $ac_cv_host
2849 shift
2850 host_cpu=$1
2851 host_vendor=$2
2852 shift; shift
2853 # Remember, the first character of IFS is used to create $*,
2854 # except with old shells:
2855 host_os=$*
2856 IFS=$ac_save_IFS
2857 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2858
2859
2860 DEPDIR="${am__leading_dot}deps"
2861
2862 ac_config_commands="$ac_config_commands depfiles"
2863
2864
2865 am_make=${MAKE-make}
2866 cat > confinc << 'END'
2867 am__doit:
2868 @echo this is the am__doit target
2869 .PHONY: am__doit
2870 END
2871 # If we don't find an include directive, just comment out the code.
2872 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2873 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2874 am__include="#"
2875 am__quote=
2876 _am_result=none
2877 # First try GNU make style include.
2878 echo "include confinc" > confmf
2879 # Ignore all kinds of additional output from `make'.
2880 case `$am_make -s -f confmf 2> /dev/null` in #(
2881 *the\ am__doit\ target*)
2882 am__include=include
2883 am__quote=
2884 _am_result=GNU
2885 ;;
2886 esac
2887 # Now try BSD make style include.
2888 if test "$am__include" = "#"; then
2889 echo '.include "confinc"' > confmf
2890 case `$am_make -s -f confmf 2> /dev/null` in #(
2891 *the\ am__doit\ target*)
2892 am__include=.include
2893 am__quote="\""
2894 _am_result=BSD
2895 ;;
2896 esac
2897 fi
2898
2899
2900 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2901 $as_echo "$_am_result" >&6; }
2902 rm -f confinc confmf
2903
2904 # Check whether --enable-dependency-tracking was given.
2905 if test "${enable_dependency_tracking+set}" = set; then
2906 enableval=$enable_dependency_tracking;
2907 fi
2908
2909 if test "x$enable_dependency_tracking" != xno; then
2910 am_depcomp="$ac_aux_dir/depcomp"
2911 AMDEPBACKSLASH='\'
2912 fi
2913 if test "x$enable_dependency_tracking" != xno; then
2914 AMDEP_TRUE=
2915 AMDEP_FALSE='#'
2916 else
2917 AMDEP_TRUE='#'
2918 AMDEP_FALSE=
2919 fi
2920
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2930 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_CC+set}" = set; then
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:$LINENO: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 if test -z "$ac_cv_prog_CC"; then
2967 ac_ct_CC=$CC
2968 # Extract the first word of "gcc", so it can be a program name with args.
2969 set dummy gcc; ac_word=$2
2970 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_CC="gcc"
2986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2998 $as_echo "$ac_ct_CC" >&6; }
2999 else
3000 { $as_echo "$as_me:$LINENO: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004 if test "x$ac_ct_CC" = x; then
3005 CC=""
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008 yes:)
3009 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011 ac_tool_warned=yes ;;
3012 esac
3013 CC=$ac_ct_CC
3014 fi
3015 else
3016 CC="$ac_cv_prog_CC"
3017 fi
3018
3019 if test -z "$CC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3022 set dummy ${ac_tool_prefix}cc; ac_word=$2
3023 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if test "${ac_cv_prog_CC+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 ac_cv_prog_CC="${ac_tool_prefix}cc"
3039 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3040 break 2
3041 fi
3042 done
3043 done
3044 IFS=$as_save_IFS
3045
3046 fi
3047 fi
3048 CC=$ac_cv_prog_CC
3049 if test -n "$CC"; then
3050 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3051 $as_echo "$CC" >&6; }
3052 else
3053 { $as_echo "$as_me:$LINENO: result: no" >&5
3054 $as_echo "no" >&6; }
3055 fi
3056
3057
3058 fi
3059 fi
3060 if test -z "$CC"; then
3061 # Extract the first word of "cc", so it can be a program name with args.
3062 set dummy cc; ac_word=$2
3063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if test "${ac_cv_prog_CC+set}" = set; then
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 ac_prog_rejected=no
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3080 ac_prog_rejected=yes
3081 continue
3082 fi
3083 ac_cv_prog_CC="cc"
3084 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3086 fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 if test $ac_prog_rejected = yes; then
3092 # We found a bogon in the path, so make sure we never use it.
3093 set dummy $ac_cv_prog_CC
3094 shift
3095 if test $# != 0; then
3096 # We chose a different compiler from the bogus one.
3097 # However, it has the same basename, so the bogon will be chosen
3098 # first if we set CC to just the basename; use the full file name.
3099 shift
3100 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3101 fi
3102 fi
3103 fi
3104 fi
3105 CC=$ac_cv_prog_CC
3106 if test -n "$CC"; then
3107 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3108 $as_echo "$CC" >&6; }
3109 else
3110 { $as_echo "$as_me:$LINENO: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115 fi
3116 if test -z "$CC"; then
3117 if test -n "$ac_tool_prefix"; then
3118 for ac_prog in cl.exe
3119 do
3120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if test "${ac_cv_prog_CC+set}" = set; then
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3137 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 test -n "$CC" && break
3158 done
3159 fi
3160 if test -z "$CC"; then
3161 ac_ct_CC=$CC
3162 for ac_prog in cl.exe
3163 do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165 set dummy $ac_prog; ac_word=$2
3166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if test -n "$ac_ct_CC"; then
3172 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3173 else
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3181 ac_cv_prog_ac_ct_CC="$ac_prog"
3182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185 done
3186 done
3187 IFS=$as_save_IFS
3188
3189 fi
3190 fi
3191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3192 if test -n "$ac_ct_CC"; then
3193 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3194 $as_echo "$ac_ct_CC" >&6; }
3195 else
3196 { $as_echo "$as_me:$LINENO: result: no" >&5
3197 $as_echo "no" >&6; }
3198 fi
3199
3200
3201 test -n "$ac_ct_CC" && break
3202 done
3203
3204 if test "x$ac_ct_CC" = x; then
3205 CC=""
3206 else
3207 case $cross_compiling:$ac_tool_warned in
3208 yes:)
3209 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211 ac_tool_warned=yes ;;
3212 esac
3213 CC=$ac_ct_CC
3214 fi
3215 fi
3216
3217 fi
3218
3219
3220 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3223 See \`config.log' for more details." >&5
3224 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }; }
3227
3228 # Provide some information about the compiler.
3229 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3230 set X $ac_compile
3231 ac_compiler=$2
3232 { (ac_try="$ac_compiler --version >&5"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3238 $as_echo "$ac_try_echo") >&5
3239 (eval "$ac_compiler --version >&5") 2>&5
3240 ac_status=$?
3241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }
3243 { (ac_try="$ac_compiler -v >&5"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compiler -v >&5") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }
3254 { (ac_try="$ac_compiler -V >&5"
3255 case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258 esac
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compiler -V >&5") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h. */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h. */
3272
3273 int
3274 main ()
3275 {
3276
3277 ;
3278 return 0;
3279 }
3280 _ACEOF
3281 ac_clean_files_save=$ac_clean_files
3282 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3283 # Try to create an executable without -o first, disregard a.out.
3284 # It will help us diagnose broken compilers, and finding out an intuition
3285 # of exeext.
3286 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3287 $as_echo_n "checking for C compiler default output file name... " >&6; }
3288 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289
3290 # The possible output files:
3291 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3292
3293 ac_rmfiles=
3294 for ac_file in $ac_files
3295 do
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3299 esac
3300 done
3301 rm -f $ac_rmfiles
3302
3303 if { (ac_try="$ac_link_default"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3309 $as_echo "$ac_try_echo") >&5
3310 (eval "$ac_link_default") 2>&5
3311 ac_status=$?
3312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313 (exit $ac_status); }; then
3314 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3315 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3316 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3317 # so that the user can short-circuit this test for compilers unknown to
3318 # Autoconf.
3319 for ac_file in $ac_files ''
3320 do
3321 test -f "$ac_file" || continue
3322 case $ac_file in
3323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3324 ;;
3325 [ab].out )
3326 # We found the default executable, but exeext='' is most
3327 # certainly right.
3328 break;;
3329 *.* )
3330 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3331 then :; else
3332 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 fi
3334 # We set ac_cv_exeext here because the later test for it is not
3335 # safe: cross compilers may not add the suffix if given an `-o'
3336 # argument, so we may need to know it at that point already.
3337 # Even if this section looks crufty: it has the advantage of
3338 # actually working.
3339 break;;
3340 * )
3341 break;;
3342 esac
3343 done
3344 test "$ac_cv_exeext" = no && ac_cv_exeext=
3345
3346 else
3347 ac_file=''
3348 fi
3349
3350 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 if test -z "$ac_file"; then
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3359 See \`config.log' for more details." >&5
3360 $as_echo "$as_me: error: C compiler cannot create executables
3361 See \`config.log' for more details." >&2;}
3362 { (exit 77); exit 77; }; }; }
3363 fi
3364
3365 ac_exeext=$ac_cv_exeext
3366
3367 # Check that the compiler produces executables we can run. If not, either
3368 # the compiler is broken, or we cross compile.
3369 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3370 $as_echo_n "checking whether the C compiler works... " >&6; }
3371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3372 # If not cross compiling, check that we can run a simple program.
3373 if test "$cross_compiling" != yes; then
3374 if { ac_try='./$ac_file'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380 $as_echo "$ac_try_echo") >&5
3381 (eval "$ac_try") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 cross_compiling=no
3386 else
3387 if test "$cross_compiling" = maybe; then
3388 cross_compiling=yes
3389 else
3390 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details." >&5
3395 $as_echo "$as_me: error: cannot run C compiled programs.
3396 If you meant to cross compile, use \`--host'.
3397 See \`config.log' for more details." >&2;}
3398 { (exit 1); exit 1; }; }; }
3399 fi
3400 fi
3401 fi
3402 { $as_echo "$as_me:$LINENO: result: yes" >&5
3403 $as_echo "yes" >&6; }
3404
3405 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3406 ac_clean_files=$ac_clean_files_save
3407 # Check that the compiler produces executables we can run. If not, either
3408 # the compiler is broken, or we cross compile.
3409 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3410 $as_echo_n "checking whether we are cross compiling... " >&6; }
3411 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3412 $as_echo "$cross_compiling" >&6; }
3413
3414 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3415 $as_echo_n "checking for suffix of executables... " >&6; }
3416 if { (ac_try="$ac_link"
3417 case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_link") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; then
3427 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3428 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3429 # work properly (i.e., refer to `conftest.exe'), while it won't with
3430 # `rm'.
3431 for ac_file in conftest.exe conftest conftest.*; do
3432 test -f "$ac_file" || continue
3433 case $ac_file in
3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3435 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 break;;
3437 * ) break;;
3438 esac
3439 done
3440 else
3441 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3444 See \`config.log' for more details." >&5
3445 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3446 See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }; }
3448 fi
3449
3450 rm -f conftest$ac_cv_exeext
3451 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3452 $as_echo "$ac_cv_exeext" >&6; }
3453
3454 rm -f conftest.$ac_ext
3455 EXEEXT=$ac_cv_exeext
3456 ac_exeext=$EXEEXT
3457 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if test "${ac_cv_objext+set}" = set; then
3460 $as_echo_n "(cached) " >&6
3461 else
3462 cat >conftest.$ac_ext <<_ACEOF
3463 /* confdefs.h. */
3464 _ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468
3469 int
3470 main ()
3471 {
3472
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 rm -f conftest.o conftest.obj
3478 if { (ac_try="$ac_compile"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3484 $as_echo "$ac_try_echo") >&5
3485 (eval "$ac_compile") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; then
3489 for ac_file in conftest.o conftest.obj conftest.*; do
3490 test -f "$ac_file" || continue;
3491 case $ac_file in
3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494 break;;
3495 esac
3496 done
3497 else
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3504 See \`config.log' for more details." >&5
3505 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3506 See \`config.log' for more details." >&2;}
3507 { (exit 1); exit 1; }; }; }
3508 fi
3509
3510 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3511 fi
3512 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3513 $as_echo "$ac_cv_objext" >&6; }
3514 OBJEXT=$ac_cv_objext
3515 ac_objext=$OBJEXT
3516 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3517 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3518 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3519 $as_echo_n "(cached) " >&6
3520 else
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h. */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527
3528 int
3529 main ()
3530 {
3531 #ifndef __GNUC__
3532 choke me
3533 #endif
3534
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546 $as_echo "$ac_try_echo") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3557 ac_compiler_gnu=yes
3558 else
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 ac_compiler_gnu=no
3563 fi
3564
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3571 if test $ac_compiler_gnu = yes; then
3572 GCC=yes
3573 else
3574 GCC=
3575 fi
3576 ac_test_CFLAGS=${CFLAGS+set}
3577 ac_save_CFLAGS=$CFLAGS
3578 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3579 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3580 if test "${ac_cv_prog_cc_g+set}" = set; then
3581 $as_echo_n "(cached) " >&6
3582 else
3583 ac_save_c_werror_flag=$ac_c_werror_flag
3584 ac_c_werror_flag=yes
3585 ac_cv_prog_cc_g=no
3586 CFLAGS="-g"
3587 cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h. */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593
3594 int
3595 main ()
3596 {
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3609 $as_echo "$ac_try_echo") >&5
3610 (eval "$ac_compile") 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } && {
3617 test -z "$ac_c_werror_flag" ||
3618 test ! -s conftest.err
3619 } && test -s conftest.$ac_objext; then
3620 ac_cv_prog_cc_g=yes
3621 else
3622 $as_echo "$as_me: failed program was:" >&5
3623 sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 CFLAGS=""
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632
3633 int
3634 main ()
3635 {
3636
3637 ;
3638 return 0;
3639 }
3640 _ACEOF
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648 $as_echo "$ac_try_echo") >&5
3649 (eval "$ac_compile") 2>conftest.er1
3650 ac_status=$?
3651 grep -v '^ *+' conftest.er1 >conftest.err
3652 rm -f conftest.er1
3653 cat conftest.err >&5
3654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } && {
3656 test -z "$ac_c_werror_flag" ||
3657 test ! -s conftest.err
3658 } && test -s conftest.$ac_objext; then
3659 :
3660 else
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 ac_c_werror_flag=$ac_save_c_werror_flag
3665 CFLAGS="-g"
3666 cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h. */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h. */
3672
3673 int
3674 main ()
3675 {
3676
3677 ;
3678 return 0;
3679 }
3680 _ACEOF
3681 rm -f conftest.$ac_objext
3682 if { (ac_try="$ac_compile"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3688 $as_echo "$ac_try_echo") >&5
3689 (eval "$ac_compile") 2>conftest.er1
3690 ac_status=$?
3691 grep -v '^ *+' conftest.er1 >conftest.err
3692 rm -f conftest.er1
3693 cat conftest.err >&5
3694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); } && {
3696 test -z "$ac_c_werror_flag" ||
3697 test ! -s conftest.err
3698 } && test -s conftest.$ac_objext; then
3699 ac_cv_prog_cc_g=yes
3700 else
3701 $as_echo "$as_me: failed program was:" >&5
3702 sed 's/^/| /' conftest.$ac_ext >&5
3703
3704
3705 fi
3706
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 fi
3709
3710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 fi
3712
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3715 fi
3716 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3722 CFLAGS="-g -O2"
3723 else
3724 CFLAGS="-g"
3725 fi
3726 else
3727 if test "$GCC" = yes; then
3728 CFLAGS="-O2"
3729 else
3730 CFLAGS=
3731 fi
3732 fi
3733 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if test "${ac_cv_prog_cc_c89+set}" = set; then
3736 $as_echo_n "(cached) " >&6
3737 else
3738 ac_cv_prog_cc_c89=no
3739 ac_save_CC=$CC
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746 #include <stdarg.h>
3747 #include <stdio.h>
3748 #include <sys/types.h>
3749 #include <sys/stat.h>
3750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3751 struct buf { int x; };
3752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3753 static char *e (p, i)
3754 char **p;
3755 int i;
3756 {
3757 return p[i];
3758 }
3759 static char *f (char * (*g) (char **, int), char **p, ...)
3760 {
3761 char *s;
3762 va_list v;
3763 va_start (v,p);
3764 s = g (p, va_arg (v,int));
3765 va_end (v);
3766 return s;
3767 }
3768
3769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3770 function prototypes and stuff, but not '\xHH' hex character constants.
3771 These don't provoke an error unfortunately, instead are silently treated
3772 as 'x'. The following induces an error, until -std is added to get
3773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3774 array size at least. It's necessary to write '\x00'==0 to get something
3775 that's true only with -std. */
3776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3777
3778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3779 inside strings and character constants. */
3780 #define FOO(x) 'x'
3781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3782
3783 int test (int i, double x);
3784 struct s1 {int (*f) (int a);};
3785 struct s2 {int (*f) (double a);};
3786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 int argc;
3788 char **argv;
3789 int
3790 main ()
3791 {
3792 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3799 do
3800 CC="$ac_save_CC $ac_arg"
3801 rm -f conftest.$ac_objext
3802 if { (ac_try="$ac_compile"
3803 case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806 esac
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809 (eval "$ac_compile") 2>conftest.er1
3810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } && {
3816 test -z "$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 } && test -s conftest.$ac_objext; then
3819 ac_cv_prog_cc_c89=$ac_arg
3820 else
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3823
3824
3825 fi
3826
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c89" != "xno" && break
3829 done
3830 rm -f conftest.$ac_ext
3831 CC=$ac_save_CC
3832
3833 fi
3834 # AC_CACHE_VAL
3835 case "x$ac_cv_prog_cc_c89" in
3836 x)
3837 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3839 xno)
3840 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3842 *)
3843 CC="$CC $ac_cv_prog_cc_c89"
3844 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3846 esac
3847
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854
3855 depcc="$CC" am_compiler_list=
3856
3857 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3858 $as_echo_n "checking dependency style of $depcc... " >&6; }
3859 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3860 $as_echo_n "(cached) " >&6
3861 else
3862 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3863 # We make a subdir and do the tests there. Otherwise we can end up
3864 # making bogus files that we don't know about and never remove. For
3865 # instance it was reported that on HP-UX the gcc test will end up
3866 # making a dummy file named `D' -- because `-MD' means `put the output
3867 # in D'.
3868 mkdir conftest.dir
3869 # Copy depcomp to subdir because otherwise we won't find it if we're
3870 # using a relative directory.
3871 cp "$am_depcomp" conftest.dir
3872 cd conftest.dir
3873 # We will build objects and dependencies in a subdirectory because
3874 # it helps to detect inapplicable dependency modes. For instance
3875 # both Tru64's cc and ICC support -MD to output dependencies as a
3876 # side effect of compilation, but ICC will put the dependencies in
3877 # the current directory while Tru64 will put them in the object
3878 # directory.
3879 mkdir sub
3880
3881 am_cv_CC_dependencies_compiler_type=none
3882 if test "$am_compiler_list" = ""; then
3883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3884 fi
3885 am__universal=false
3886 case " $depcc " in #(
3887 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3888 esac
3889
3890 for depmode in $am_compiler_list; do
3891 # Setup a source with many dependencies, because some compilers
3892 # like to wrap large dependency lists on column 80 (with \), and
3893 # we should not choose a depcomp mode which is confused by this.
3894 #
3895 # We need to recreate these files for each test, as the compiler may
3896 # overwrite some of them when testing with obscure command lines.
3897 # This happens at least with the AIX C compiler.
3898 : > sub/conftest.c
3899 for i in 1 2 3 4 5 6; do
3900 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3901 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3902 # Solaris 8's {/usr,}/bin/sh.
3903 touch sub/conftst$i.h
3904 done
3905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3906
3907 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3908 # mode. It turns out that the SunPro C++ compiler does not properly
3909 # handle `-M -o', and we need to detect this. Also, some Intel
3910 # versions had trouble with output in subdirs
3911 am__obj=sub/conftest.${OBJEXT-o}
3912 am__minus_obj="-o $am__obj"
3913 case $depmode in
3914 gcc)
3915 # This depmode causes a compiler race in universal mode.
3916 test "$am__universal" = false || continue
3917 ;;
3918 nosideeffect)
3919 # after this tag, mechanisms are not by side-effect, so they'll
3920 # only be used when explicitly requested
3921 if test "x$enable_dependency_tracking" = xyes; then
3922 continue
3923 else
3924 break
3925 fi
3926 ;;
3927 msvisualcpp | msvcmsys)
3928 # This compiler won't grok `-c -o', but also, the minuso test has
3929 # not run yet. These depmodes are late enough in the game, and
3930 # so weak that their functioning should not be impacted.
3931 am__obj=conftest.${OBJEXT-o}
3932 am__minus_obj=
3933 ;;
3934 none) break ;;
3935 esac
3936 if depmode=$depmode \
3937 source=sub/conftest.c object=$am__obj \
3938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3940 >/dev/null 2>conftest.err &&
3941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3945 # icc doesn't choke on unknown options, it will just issue warnings
3946 # or remarks (even with -Werror). So we grep stderr for any message
3947 # that says an option was ignored or not supported.
3948 # When given -MP, icc 7.0 and 7.1 complain thusly:
3949 # icc: Command line warning: ignoring option '-M'; no argument required
3950 # The diagnosis changed in icc 8.0:
3951 # icc: Command line remark: option '-MP' not supported
3952 if (grep 'ignoring option' conftest.err ||
3953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3954 am_cv_CC_dependencies_compiler_type=$depmode
3955 break
3956 fi
3957 fi
3958 done
3959
3960 cd ..
3961 rm -rf conftest.dir
3962 else
3963 am_cv_CC_dependencies_compiler_type=none
3964 fi
3965
3966 fi
3967 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3968 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3969 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3970
3971 if
3972 test "x$enable_dependency_tracking" != xno \
3973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3974 am__fastdepCC_TRUE=
3975 am__fastdepCC_FALSE='#'
3976 else
3977 am__fastdepCC_TRUE='#'
3978 am__fastdepCC_FALSE=
3979 fi
3980
3981
3982 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3983 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3984 if test "${lt_cv_path_SED+set}" = set; then
3985 $as_echo_n "(cached) " >&6
3986 else
3987 # Loop through the user's path and test for sed and gsed.
3988 # Then use that list of sed's as ones to test for truncation.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH
3991 do
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for lt_ac_prog in sed gsed; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3997 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3998 fi
3999 done
4000 done
4001 done
4002 IFS=$as_save_IFS
4003 lt_ac_max=0
4004 lt_ac_count=0
4005 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4006 # along with /bin/sed that truncates output.
4007 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4008 test ! -f $lt_ac_sed && continue
4009 cat /dev/null > conftest.in
4010 lt_ac_count=0
4011 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4012 # Check for GNU sed and select it if it is found.
4013 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4014 lt_cv_path_SED=$lt_ac_sed
4015 break
4016 fi
4017 while true; do
4018 cat conftest.in conftest.in >conftest.tmp
4019 mv conftest.tmp conftest.in
4020 cp conftest.in conftest.nl
4021 echo >>conftest.nl
4022 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4023 cmp -s conftest.out conftest.nl || break
4024 # 10000 chars as input seems more than enough
4025 test $lt_ac_count -gt 10 && break
4026 lt_ac_count=`expr $lt_ac_count + 1`
4027 if test $lt_ac_count -gt $lt_ac_max; then
4028 lt_ac_max=$lt_ac_count
4029 lt_cv_path_SED=$lt_ac_sed
4030 fi
4031 done
4032 done
4033
4034 fi
4035
4036 SED=$lt_cv_path_SED
4037
4038 { $as_echo "$as_me:$LINENO: result: $SED" >&5
4039 $as_echo "$SED" >&6; }
4040
4041 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4042 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4043 if test "${ac_cv_path_GREP+set}" = set; then
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -z "$GREP"; then
4047 ac_path_GREP_found=false
4048 # Loop through the user's path and test for each of PROGNAME-LIST
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_prog in grep ggrep; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4057 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4058 # Check for GNU ac_path_GREP and select it if it is found.
4059 # Check for GNU $ac_path_GREP
4060 case `"$ac_path_GREP" --version 2>&1` in
4061 *GNU*)
4062 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4063 *)
4064 ac_count=0
4065 $as_echo_n 0123456789 >"conftest.in"
4066 while :
4067 do
4068 cat "conftest.in" "conftest.in" >"conftest.tmp"
4069 mv "conftest.tmp" "conftest.in"
4070 cp "conftest.in" "conftest.nl"
4071 $as_echo 'GREP' >> "conftest.nl"
4072 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074 ac_count=`expr $ac_count + 1`
4075 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4076 # Best one so far, save it but keep looking for a better one
4077 ac_cv_path_GREP="$ac_path_GREP"
4078 ac_path_GREP_max=$ac_count
4079 fi
4080 # 10*(2^10) chars as input seems more than enough
4081 test $ac_count -gt 10 && break
4082 done
4083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4084 esac
4085
4086 $ac_path_GREP_found && break 3
4087 done
4088 done
4089 done
4090 IFS=$as_save_IFS
4091 if test -z "$ac_cv_path_GREP"; then
4092 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094 { (exit 1); exit 1; }; }
4095 fi
4096 else
4097 ac_cv_path_GREP=$GREP
4098 fi
4099
4100 fi
4101 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4102 $as_echo "$ac_cv_path_GREP" >&6; }
4103 GREP="$ac_cv_path_GREP"
4104
4105
4106 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4107 $as_echo_n "checking for egrep... " >&6; }
4108 if test "${ac_cv_path_EGREP+set}" = set; then
4109 $as_echo_n "(cached) " >&6
4110 else
4111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4112 then ac_cv_path_EGREP="$GREP -E"
4113 else
4114 if test -z "$EGREP"; then
4115 ac_path_EGREP_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4119 do
4120 IFS=$as_save_IFS
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in egrep; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4126 # Check for GNU ac_path_EGREP and select it if it is found.
4127 # Check for GNU $ac_path_EGREP
4128 case `"$ac_path_EGREP" --version 2>&1` in
4129 *GNU*)
4130 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4131 *)
4132 ac_count=0
4133 $as_echo_n 0123456789 >"conftest.in"
4134 while :
4135 do
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 $as_echo 'EGREP' >> "conftest.nl"
4140 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 ac_count=`expr $ac_count + 1`
4143 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_EGREP="$ac_path_EGREP"
4146 ac_path_EGREP_max=$ac_count
4147 fi
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4150 done
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4152 esac
4153
4154 $ac_path_EGREP_found && break 3
4155 done
4156 done
4157 done
4158 IFS=$as_save_IFS
4159 if test -z "$ac_cv_path_EGREP"; then
4160 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4161 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4162 { (exit 1); exit 1; }; }
4163 fi
4164 else
4165 ac_cv_path_EGREP=$EGREP
4166 fi
4167
4168 fi
4169 fi
4170 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4171 $as_echo "$ac_cv_path_EGREP" >&6; }
4172 EGREP="$ac_cv_path_EGREP"
4173
4174
4175
4176 # Check whether --with-gnu-ld was given.
4177 if test "${with_gnu_ld+set}" = set; then
4178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4179 else
4180 with_gnu_ld=no
4181 fi
4182
4183 ac_prog=ld
4184 if test "$GCC" = yes; then
4185 # Check if gcc -print-prog-name=ld gives a path.
4186 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4187 $as_echo_n "checking for ld used by $CC... " >&6; }
4188 case $host in
4189 *-*-mingw*)
4190 # gcc leaves a trailing carriage return which upsets mingw
4191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4192 *)
4193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4194 esac
4195 case $ac_prog in
4196 # Accept absolute paths.
4197 [\\/]* | ?:[\\/]*)
4198 re_direlt='/[^/][^/]*/\.\./'
4199 # Canonicalize the pathname of ld
4200 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4201 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4202 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4203 done
4204 test -z "$LD" && LD="$ac_prog"
4205 ;;
4206 "")
4207 # If it fails, then pretend we aren't using GCC.
4208 ac_prog=ld
4209 ;;
4210 *)
4211 # If it is relative, then search for the first ld in PATH.
4212 with_gnu_ld=unknown
4213 ;;
4214 esac
4215 elif test "$with_gnu_ld" = yes; then
4216 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4217 $as_echo_n "checking for GNU ld... " >&6; }
4218 else
4219 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4220 $as_echo_n "checking for non-GNU ld... " >&6; }
4221 fi
4222 if test "${lt_cv_path_LD+set}" = set; then
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -z "$LD"; then
4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4227 for ac_dir in $PATH; do
4228 IFS="$lt_save_ifs"
4229 test -z "$ac_dir" && ac_dir=.
4230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4231 lt_cv_path_LD="$ac_dir/$ac_prog"
4232 # Check to see if the program is GNU ld. I'd rather use --version,
4233 # but apparently some variants of GNU ld only accept -v.
4234 # Break only if it was the GNU/non-GNU ld that we prefer.
4235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4236 *GNU* | *'with BFD'*)
4237 test "$with_gnu_ld" != no && break
4238 ;;
4239 *)
4240 test "$with_gnu_ld" != yes && break
4241 ;;
4242 esac
4243 fi
4244 done
4245 IFS="$lt_save_ifs"
4246 else
4247 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4248 fi
4249 fi
4250
4251 LD="$lt_cv_path_LD"
4252 if test -n "$LD"; then
4253 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4254 $as_echo "$LD" >&6; }
4255 else
4256 { $as_echo "$as_me:$LINENO: result: no" >&5
4257 $as_echo "no" >&6; }
4258 fi
4259 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4260 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4261 { (exit 1); exit 1; }; }
4262 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4264 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4265 $as_echo_n "(cached) " >&6
4266 else
4267 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4268 case `$LD -v 2>&1 </dev/null` in
4269 *GNU* | *'with BFD'*)
4270 lt_cv_prog_gnu_ld=yes
4271 ;;
4272 *)
4273 lt_cv_prog_gnu_ld=no
4274 ;;
4275 esac
4276 fi
4277 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4278 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4279 with_gnu_ld=$lt_cv_prog_gnu_ld
4280
4281
4282 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4283 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4284 if test "${lt_cv_ld_reload_flag+set}" = set; then
4285 $as_echo_n "(cached) " >&6
4286 else
4287 lt_cv_ld_reload_flag='-r'
4288 fi
4289 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4290 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4291 reload_flag=$lt_cv_ld_reload_flag
4292 case $reload_flag in
4293 "" | " "*) ;;
4294 *) reload_flag=" $reload_flag" ;;
4295 esac
4296 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4297 case $host_os in
4298 darwin*)
4299 if test "$GCC" = yes; then
4300 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4301 else
4302 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4303 fi
4304 ;;
4305 esac
4306
4307 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4308 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4309 if test "${lt_cv_path_NM+set}" = set; then
4310 $as_echo_n "(cached) " >&6
4311 else
4312 if test -n "$NM"; then
4313 # Let the user override the test.
4314 lt_cv_path_NM="$NM"
4315 else
4316 lt_nm_to_check="${ac_tool_prefix}nm"
4317 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4318 lt_nm_to_check="$lt_nm_to_check nm"
4319 fi
4320 for lt_tmp_nm in $lt_nm_to_check; do
4321 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4323 IFS="$lt_save_ifs"
4324 test -z "$ac_dir" && ac_dir=.
4325 tmp_nm="$ac_dir/$lt_tmp_nm"
4326 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4327 # Check to see if the nm accepts a BSD-compat flag.
4328 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4329 # nm: unknown option "B" ignored
4330 # Tru64's nm complains that /dev/null is an invalid object file
4331 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4332 */dev/null* | *'Invalid file or object type'*)
4333 lt_cv_path_NM="$tmp_nm -B"
4334 break
4335 ;;
4336 *)
4337 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4338 */dev/null*)
4339 lt_cv_path_NM="$tmp_nm -p"
4340 break
4341 ;;
4342 *)
4343 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4344 continue # so that we can try to find one that supports BSD flags
4345 ;;
4346 esac
4347 ;;
4348 esac
4349 fi
4350 done
4351 IFS="$lt_save_ifs"
4352 done
4353 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4354 fi
4355 fi
4356 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4357 $as_echo "$lt_cv_path_NM" >&6; }
4358 NM="$lt_cv_path_NM"
4359
4360 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4361 $as_echo_n "checking whether ln -s works... " >&6; }
4362 LN_S=$as_ln_s
4363 if test "$LN_S" = "ln -s"; then
4364 { $as_echo "$as_me:$LINENO: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 else
4367 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4368 $as_echo "no, using $LN_S" >&6; }
4369 fi
4370
4371 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4372 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4373 if test "${lt_cv_deplibs_check_method+set}" = set; then
4374 $as_echo_n "(cached) " >&6
4375 else
4376 lt_cv_file_magic_cmd='$MAGIC_CMD'
4377 lt_cv_file_magic_test_file=
4378 lt_cv_deplibs_check_method='unknown'
4379 # Need to set the preceding variable on all platforms that support
4380 # interlibrary dependencies.
4381 # 'none' -- dependencies not supported.
4382 # `unknown' -- same as none, but documents that we really don't know.
4383 # 'pass_all' -- all dependencies passed with no checks.
4384 # 'test_compile' -- check by making test program.
4385 # 'file_magic [[regex]]' -- check by looking for files in library path
4386 # which responds to the $file_magic_cmd with a given extended regex.
4387 # If you have `file' or equivalent on your system and you're not sure
4388 # whether `pass_all' will *always* work, you probably want this one.
4389
4390 case $host_os in
4391 aix[4-9]*)
4392 lt_cv_deplibs_check_method=pass_all
4393 ;;
4394
4395 beos*)
4396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
4399 bsdi[45]*)
4400 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4401 lt_cv_file_magic_cmd='/usr/bin/file -L'
4402 lt_cv_file_magic_test_file=/shlib/libc.so
4403 ;;
4404
4405 cygwin*)
4406 # func_win32_libid is a shell function defined in ltmain.sh
4407 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4408 lt_cv_file_magic_cmd='func_win32_libid'
4409 ;;
4410
4411 mingw* | pw32*)
4412 # Base MSYS/MinGW do not provide the 'file' command needed by
4413 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4414 # unless we find 'file', for example because we are cross-compiling.
4415 if ( file / ) >/dev/null 2>&1; then
4416 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4417 lt_cv_file_magic_cmd='func_win32_libid'
4418 else
4419 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4420 lt_cv_file_magic_cmd='$OBJDUMP -f'
4421 fi
4422 ;;
4423
4424 darwin* | rhapsody*)
4425 lt_cv_deplibs_check_method=pass_all
4426 ;;
4427
4428 freebsd* | dragonfly*)
4429 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4430 case $host_cpu in
4431 i*86 )
4432 # Not sure whether the presence of OpenBSD here was a mistake.
4433 # Let's accept both of them until this is cleared up.
4434 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4435 lt_cv_file_magic_cmd=/usr/bin/file
4436 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4437 ;;
4438 esac
4439 else
4440 lt_cv_deplibs_check_method=pass_all
4441 fi
4442 ;;
4443
4444 gnu*)
4445 lt_cv_deplibs_check_method=pass_all
4446 ;;
4447
4448 hpux10.20* | hpux11*)
4449 lt_cv_file_magic_cmd=/usr/bin/file
4450 case $host_cpu in
4451 ia64*)
4452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4453 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4454 ;;
4455 hppa*64*)
4456 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]'
4457 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4458 ;;
4459 *)
4460 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4461 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4462 ;;
4463 esac
4464 ;;
4465
4466 interix[3-9]*)
4467 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4468 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4469 ;;
4470
4471 irix5* | irix6* | nonstopux*)
4472 case $LD in
4473 *-32|*"-32 ") libmagic=32-bit;;
4474 *-n32|*"-n32 ") libmagic=N32;;
4475 *-64|*"-64 ") libmagic=64-bit;;
4476 *) libmagic=never-match;;
4477 esac
4478 lt_cv_deplibs_check_method=pass_all
4479 ;;
4480
4481 # This must be Linux ELF.
4482 linux* | k*bsd*-gnu)
4483 lt_cv_deplibs_check_method=pass_all
4484 ;;
4485
4486 netbsd*)
4487 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4488 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4489 else
4490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4491 fi
4492 ;;
4493
4494 newos6*)
4495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4496 lt_cv_file_magic_cmd=/usr/bin/file
4497 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4498 ;;
4499
4500 nto-qnx*)
4501 lt_cv_deplibs_check_method=unknown
4502 ;;
4503
4504 openbsd*)
4505 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4507 else
4508 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4509 fi
4510 ;;
4511
4512 osf3* | osf4* | osf5*)
4513 lt_cv_deplibs_check_method=pass_all
4514 ;;
4515
4516 rdos*)
4517 lt_cv_deplibs_check_method=pass_all
4518 ;;
4519
4520 solaris*)
4521 lt_cv_deplibs_check_method=pass_all
4522 ;;
4523
4524 sysv4 | sysv4.3*)
4525 case $host_vendor in
4526 motorola)
4527 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]'
4528 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4529 ;;
4530 ncr)
4531 lt_cv_deplibs_check_method=pass_all
4532 ;;
4533 sequent)
4534 lt_cv_file_magic_cmd='/bin/file'
4535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4536 ;;
4537 sni)
4538 lt_cv_file_magic_cmd='/bin/file'
4539 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4540 lt_cv_file_magic_test_file=/lib/libc.so
4541 ;;
4542 siemens)
4543 lt_cv_deplibs_check_method=pass_all
4544 ;;
4545 pc)
4546 lt_cv_deplibs_check_method=pass_all
4547 ;;
4548 esac
4549 ;;
4550
4551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4552 lt_cv_deplibs_check_method=pass_all
4553 ;;
4554 esac
4555
4556 fi
4557 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4558 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4559 file_magic_cmd=$lt_cv_file_magic_cmd
4560 deplibs_check_method=$lt_cv_deplibs_check_method
4561 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4562
4563
4564
4565
4566 # If no C compiler was specified, use CC.
4567 LTCC=${LTCC-"$CC"}
4568
4569 # If no C compiler flags were specified, use CFLAGS.
4570 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4571
4572 # Allow CC to be a program name with arguments.
4573 compiler=$CC
4574
4575
4576 # Check whether --enable-libtool-lock was given.
4577 if test "${enable_libtool_lock+set}" = set; then
4578 enableval=$enable_libtool_lock;
4579 fi
4580
4581 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4582
4583 # Some flags need to be propagated to the compiler or linker for good
4584 # libtool support.
4585 case $host in
4586 ia64-*-hpux*)
4587 # Find out which ABI we are using.
4588 echo 'int i;' > conftest.$ac_ext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>&5
4591 ac_status=$?
4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; then
4594 case `/usr/bin/file conftest.$ac_objext` in
4595 *ELF-32*)
4596 HPUX_IA64_MODE="32"
4597 ;;
4598 *ELF-64*)
4599 HPUX_IA64_MODE="64"
4600 ;;
4601 esac
4602 fi
4603 rm -rf conftest*
4604 ;;
4605 *-*-irix6*)
4606 # Find out which ABI we are using.
4607 echo '#line 4607 "configure"' > conftest.$ac_ext
4608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4609 (eval $ac_compile) 2>&5
4610 ac_status=$?
4611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; then
4613 if test "$lt_cv_prog_gnu_ld" = yes; then
4614 case `/usr/bin/file conftest.$ac_objext` in
4615 *32-bit*)
4616 LD="${LD-ld} -melf32bsmip"
4617 ;;
4618 *N32*)
4619 LD="${LD-ld} -melf32bmipn32"
4620 ;;
4621 *64-bit*)
4622 LD="${LD-ld} -melf64bmip"
4623 ;;
4624 esac
4625 else
4626 case `/usr/bin/file conftest.$ac_objext` in
4627 *32-bit*)
4628 LD="${LD-ld} -32"
4629 ;;
4630 *N32*)
4631 LD="${LD-ld} -n32"
4632 ;;
4633 *64-bit*)
4634 LD="${LD-ld} -64"
4635 ;;
4636 esac
4637 fi
4638 fi
4639 rm -rf conftest*
4640 ;;
4641
4642 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4643 s390*-*linux*|sparc*-*linux*)
4644 # Find out which ABI we are using.
4645 echo 'int i;' > conftest.$ac_ext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>&5
4648 ac_status=$?
4649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; then
4651 case `/usr/bin/file conftest.o` in
4652 *32-bit*)
4653 case $host in
4654 x86_64-*kfreebsd*-gnu)
4655 LD="${LD-ld} -m elf_i386_fbsd"
4656 ;;
4657 x86_64-*linux*)
4658 LD="${LD-ld} -m elf_i386"
4659 ;;
4660 ppc64-*linux*|powerpc64-*linux*)
4661 LD="${LD-ld} -m elf32ppclinux"
4662 ;;
4663 s390x-*linux*)
4664 LD="${LD-ld} -m elf_s390"
4665 ;;
4666 sparc64-*linux*)
4667 LD="${LD-ld} -m elf32_sparc"
4668 ;;
4669 esac
4670 ;;
4671 *64-bit*)
4672 libsuff=64
4673 case $host in
4674 x86_64-*kfreebsd*-gnu)
4675 LD="${LD-ld} -m elf_x86_64_fbsd"
4676 ;;
4677 x86_64-*linux*)
4678 LD="${LD-ld} -m elf_x86_64"
4679 ;;
4680 ppc*-*linux*|powerpc*-*linux*)
4681 LD="${LD-ld} -m elf64ppc"
4682 ;;
4683 s390*-*linux*)
4684 LD="${LD-ld} -m elf64_s390"
4685 ;;
4686 sparc*-*linux*)
4687 LD="${LD-ld} -m elf64_sparc"
4688 ;;
4689 esac
4690 ;;
4691 esac
4692 fi
4693 rm -rf conftest*
4694 ;;
4695
4696 *-*-sco3.2v5*)
4697 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4698 SAVE_CFLAGS="$CFLAGS"
4699 CFLAGS="$CFLAGS -belf"
4700 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4701 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4702 if test "${lt_cv_cc_needs_belf+set}" = set; then
4703 $as_echo_n "(cached) " >&6
4704 else
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717
4718 int
4719 main ()
4720 {
4721
4722 ;
4723 return 0;
4724 }
4725 _ACEOF
4726 rm -f conftest.$ac_objext conftest$ac_exeext
4727 if { (ac_try="$ac_link"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734 (eval "$ac_link") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest$ac_exeext && {
4744 test "$cross_compiling" = yes ||
4745 $as_test_x conftest$ac_exeext
4746 }; then
4747 lt_cv_cc_needs_belf=yes
4748 else
4749 $as_echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752 lt_cv_cc_needs_belf=no
4753 fi
4754
4755 rm -rf conftest.dSYM
4756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4757 conftest$ac_exeext conftest.$ac_ext
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763
4764 fi
4765 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4766 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4767 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4768 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4769 CFLAGS="$SAVE_CFLAGS"
4770 fi
4771 ;;
4772 sparc*-*solaris*)
4773 # Find out which ABI we are using.
4774 echo 'int i;' > conftest.$ac_ext
4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4776 (eval $ac_compile) 2>&5
4777 ac_status=$?
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; then
4780 case `/usr/bin/file conftest.o` in
4781 *64-bit*)
4782 case $lt_cv_prog_gnu_ld in
4783 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4784 *)
4785 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4786 LD="${LD-ld} -64"
4787 fi
4788 ;;
4789 esac
4790 ;;
4791 esac
4792 fi
4793 rm -rf conftest*
4794 ;;
4795
4796
4797 esac
4798
4799 need_locks="$enable_libtool_lock"
4800
4801
4802 ac_ext=c
4803 ac_cpp='$CPP $CPPFLAGS'
4804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4808 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4809 # On Suns, sometimes $CPP names a directory.
4810 if test -n "$CPP" && test -d "$CPP"; then
4811 CPP=
4812 fi
4813 if test -z "$CPP"; then
4814 if test "${ac_cv_prog_CPP+set}" = set; then
4815 $as_echo_n "(cached) " >&6
4816 else
4817 # Double quotes because CPP needs to be expanded
4818 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4819 do
4820 ac_preproc_ok=false
4821 for ac_c_preproc_warn_flag in '' yes
4822 do
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4835 #ifdef __STDC__
4836 # include <limits.h>
4837 #else
4838 # include <assert.h>
4839 #endif
4840 Syntax error
4841 _ACEOF
4842 if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4848 $as_echo "$ac_try_echo") >&5
4849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 ac_status=$?
4851 grep -v '^ *+' conftest.er1 >conftest.err
4852 rm -f conftest.er1
4853 cat conftest.err >&5
4854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855 (exit $ac_status); } >/dev/null && {
4856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4857 test ! -s conftest.err
4858 }; then
4859 :
4860 else
4861 $as_echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864 # Broken: fails on valid input.
4865 continue
4866 fi
4867
4868 rm -f conftest.err conftest.$ac_ext
4869
4870 # OK, works on sane cases. Now check whether nonexistent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 #include <ac_nonexistent.h>
4879 _ACEOF
4880 if { (ac_try="$ac_cpp conftest.$ac_ext"
4881 case "(($ac_try" in
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4884 esac
4885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4886 $as_echo "$ac_try_echo") >&5
4887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4888 ac_status=$?
4889 grep -v '^ *+' conftest.er1 >conftest.err
4890 rm -f conftest.er1
4891 cat conftest.err >&5
4892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } >/dev/null && {
4894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4895 test ! -s conftest.err
4896 }; then
4897 # Broken: success on invalid input.
4898 continue
4899 else
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 # Passes both tests.
4904 ac_preproc_ok=:
4905 break
4906 fi
4907
4908 rm -f conftest.err conftest.$ac_ext
4909
4910 done
4911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912 rm -f conftest.err conftest.$ac_ext
4913 if $ac_preproc_ok; then
4914 break
4915 fi
4916
4917 done
4918 ac_cv_prog_CPP=$CPP
4919
4920 fi
4921 CPP=$ac_cv_prog_CPP
4922 else
4923 ac_cv_prog_CPP=$CPP
4924 fi
4925 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4926 $as_echo "$CPP" >&6; }
4927 ac_preproc_ok=false
4928 for ac_c_preproc_warn_flag in '' yes
4929 do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #ifdef __STDC__
4943 # include <limits.h>
4944 #else
4945 # include <assert.h>
4946 #endif
4947 Syntax error
4948 _ACEOF
4949 if { (ac_try="$ac_cpp conftest.$ac_ext"
4950 case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953 esac
4954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4955 $as_echo "$ac_try_echo") >&5
4956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4957 ac_status=$?
4958 grep -v '^ *+' conftest.er1 >conftest.err
4959 rm -f conftest.er1
4960 cat conftest.err >&5
4961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } >/dev/null && {
4963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4964 test ! -s conftest.err
4965 }; then
4966 :
4967 else
4968 $as_echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 # Broken: fails on valid input.
4972 continue
4973 fi
4974
4975 rm -f conftest.err conftest.$ac_ext
4976
4977 # OK, works on sane cases. Now check whether nonexistent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980 /* confdefs.h. */
4981 _ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 #include <ac_nonexistent.h>
4986 _ACEOF
4987 if { (ac_try="$ac_cpp conftest.$ac_ext"
4988 case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991 esac
4992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993 $as_echo "$ac_try_echo") >&5
4994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } >/dev/null && {
5001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 }; then
5004 # Broken: success on invalid input.
5005 continue
5006 else
5007 $as_echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 # Passes both tests.
5011 ac_preproc_ok=:
5012 break
5013 fi
5014
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then
5021 :
5022 else
5023 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5025 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5026 See \`config.log' for more details." >&5
5027 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." >&2;}
5029 { (exit 1); exit 1; }; }; }
5030 fi
5031
5032 ac_ext=c
5033 ac_cpp='$CPP $CPPFLAGS'
5034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038
5039 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5040 $as_echo_n "checking for ANSI C header files... " >&6; }
5041 if test "${ac_cv_header_stdc+set}" = set; then
5042 $as_echo_n "(cached) " >&6
5043 else
5044 cat >conftest.$ac_ext <<_ACEOF
5045 /* confdefs.h. */
5046 _ACEOF
5047 cat confdefs.h >>conftest.$ac_ext
5048 cat >>conftest.$ac_ext <<_ACEOF
5049 /* end confdefs.h. */
5050 #include <stdlib.h>
5051 #include <stdarg.h>
5052 #include <string.h>
5053 #include <float.h>
5054
5055 int
5056 main ()
5057 {
5058
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5081 ac_cv_header_stdc=yes
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 ac_cv_header_stdc=no
5087 fi
5088
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090
5091 if test $ac_cv_header_stdc = yes; then
5092 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 #include <string.h>
5100
5101 _ACEOF
5102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5103 $EGREP "memchr" >/dev/null 2>&1; then
5104 :
5105 else
5106 ac_cv_header_stdc=no
5107 fi
5108 rm -f conftest*
5109
5110 fi
5111
5112 if test $ac_cv_header_stdc = yes; then
5113 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5114 cat >conftest.$ac_ext <<_ACEOF
5115 /* confdefs.h. */
5116 _ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 #include <stdlib.h>
5121
5122 _ACEOF
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5124 $EGREP "free" >/dev/null 2>&1; then
5125 :
5126 else
5127 ac_cv_header_stdc=no
5128 fi
5129 rm -f conftest*
5130
5131 fi
5132
5133 if test $ac_cv_header_stdc = yes; then
5134 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5135 if test "$cross_compiling" = yes; then
5136 :
5137 else
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144 #include <ctype.h>
5145 #include <stdlib.h>
5146 #if ((' ' & 0x0FF) == 0x020)
5147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5149 #else
5150 # define ISLOWER(c) \
5151 (('a' <= (c) && (c) <= 'i') \
5152 || ('j' <= (c) && (c) <= 'r') \
5153 || ('s' <= (c) && (c) <= 'z'))
5154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5155 #endif
5156
5157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5158 int
5159 main ()
5160 {
5161 int i;
5162 for (i = 0; i < 256; i++)
5163 if (XOR (islower (i), ISLOWER (i))
5164 || toupper (i) != TOUPPER (i))
5165 return 2;
5166 return 0;
5167 }
5168 _ACEOF
5169 rm -f conftest$ac_exeext
5170 if { (ac_try="$ac_link"
5171 case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174 esac
5175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5176 $as_echo "$ac_try_echo") >&5
5177 (eval "$ac_link") 2>&5
5178 ac_status=$?
5179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5181 { (case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5186 $as_echo "$ac_try_echo") >&5
5187 (eval "$ac_try") 2>&5
5188 ac_status=$?
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 :
5192 else
5193 $as_echo "$as_me: program exited with status $ac_status" >&5
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 ( exit $ac_status )
5198 ac_cv_header_stdc=no
5199 fi
5200 rm -rf conftest.dSYM
5201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5202 fi
5203
5204
5205 fi
5206 fi
5207 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5208 $as_echo "$ac_cv_header_stdc" >&6; }
5209 if test $ac_cv_header_stdc = yes; then
5210
5211 cat >>confdefs.h <<\_ACEOF
5212 #define STDC_HEADERS 1
5213 _ACEOF
5214
5215 fi
5216
5217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5228 inttypes.h stdint.h unistd.h
5229 do
5230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 $as_echo_n "checking for $ac_header... " >&6; }
5233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5234 $as_echo_n "(cached) " >&6
5235 else
5236 cat >conftest.$ac_ext <<_ACEOF
5237 /* confdefs.h. */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243
5244 #include <$ac_header>
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5253 $as_echo "$ac_try_echo") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 eval "$as_ac_Header=yes"
5265 else
5266 $as_echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 eval "$as_ac_Header=no"
5270 fi
5271
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 fi
5274 ac_res=`eval 'as_val=${'$as_ac_Header'}
5275 $as_echo "$as_val"'`
5276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5277 $as_echo "$ac_res" >&6; }
5278 as_val=`eval 'as_val=${'$as_ac_Header'}
5279 $as_echo "$as_val"'`
5280 if test "x$as_val" = x""yes; then
5281 cat >>confdefs.h <<_ACEOF
5282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5283 _ACEOF
5284
5285 fi
5286
5287 done
5288
5289
5290
5291 for ac_header in dlfcn.h
5292 do
5293 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5295 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5296 $as_echo_n "checking for $ac_header... " >&6; }
5297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5298 $as_echo_n "(cached) " >&6
5299 fi
5300 ac_res=`eval 'as_val=${'$as_ac_Header'}
5301 $as_echo "$as_val"'`
5302 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5303 $as_echo "$ac_res" >&6; }
5304 else
5305 # Is the header compilable?
5306 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5307 $as_echo_n "checking $ac_header usability... " >&6; }
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 $ac_includes_default
5315 #include <$ac_header>
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (ac_try="$ac_compile"
5319 case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322 esac
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325 (eval "$ac_compile") 2>conftest.er1
5326 ac_status=$?
5327 grep -v '^ *+' conftest.er1 >conftest.err
5328 rm -f conftest.er1
5329 cat conftest.err >&5
5330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } && {
5332 test -z "$ac_c_werror_flag" ||
5333 test ! -s conftest.err
5334 } && test -s conftest.$ac_objext; then
5335 ac_header_compiler=yes
5336 else
5337 $as_echo "$as_me: failed program was:" >&5
5338 sed 's/^/| /' conftest.$ac_ext >&5
5339
5340 ac_header_compiler=no
5341 fi
5342
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5344 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5345 $as_echo "$ac_header_compiler" >&6; }
5346
5347 # Is the header present?
5348 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5349 $as_echo_n "checking $ac_header presence... " >&6; }
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <$ac_header>
5357 _ACEOF
5358 if { (ac_try="$ac_cpp conftest.$ac_ext"
5359 case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362 esac
5363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5364 $as_echo "$ac_try_echo") >&5
5365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5366 ac_status=$?
5367 grep -v '^ *+' conftest.er1 >conftest.err
5368 rm -f conftest.er1
5369 cat conftest.err >&5
5370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); } >/dev/null && {
5372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5373 test ! -s conftest.err
5374 }; then
5375 ac_header_preproc=yes
5376 else
5377 $as_echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 ac_header_preproc=no
5381 fi
5382
5383 rm -f conftest.err conftest.$ac_ext
5384 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5385 $as_echo "$ac_header_preproc" >&6; }
5386
5387 # So? What about this header?
5388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5389 yes:no: )
5390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5391 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5393 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5394 ac_header_preproc=yes
5395 ;;
5396 no:yes:* )
5397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5398 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5400 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5402 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5404 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5408 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5409 ( cat <<\_ASBOX
5410 ## ---------------------------------------------------------------------- ##
5411 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5412 ## ---------------------------------------------------------------------- ##
5413 _ASBOX
5414 ) | sed "s/^/$as_me: WARNING: /" >&2
5415 ;;
5416 esac
5417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5418 $as_echo_n "checking for $ac_header... " >&6; }
5419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5420 $as_echo_n "(cached) " >&6
5421 else
5422 eval "$as_ac_Header=\$ac_header_preproc"
5423 fi
5424 ac_res=`eval 'as_val=${'$as_ac_Header'}
5425 $as_echo "$as_val"'`
5426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5427 $as_echo "$ac_res" >&6; }
5428
5429 fi
5430 as_val=`eval 'as_val=${'$as_ac_Header'}
5431 $as_echo "$as_val"'`
5432 if test "x$as_val" = x""yes; then
5433 cat >>confdefs.h <<_ACEOF
5434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5436
5437 fi
5438
5439 done
5440
5441 ac_ext=cpp
5442 ac_cpp='$CXXCPP $CPPFLAGS'
5443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446 if test -z "$CXX"; then
5447 if test -n "$CCC"; then
5448 CXX=$CCC
5449 else
5450 if test -n "$ac_tool_prefix"; then
5451 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5452 do
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if test "${ac_cv_prog_CXX+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$CXX"; then
5461 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474 done
5475 done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 CXX=$ac_cv_prog_CXX
5481 if test -n "$CXX"; then
5482 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5483 $as_echo "$CXX" >&6; }
5484 else
5485 { $as_echo "$as_me:$LINENO: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489
5490 test -n "$CXX" && break
5491 done
5492 fi
5493 if test -z "$CXX"; then
5494 ac_ct_CXX=$CXX
5495 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5496 do
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$ac_ct_CXX"; then
5505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_ac_ct_CXX="$ac_prog"
5515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520 IFS=$as_save_IFS
5521
5522 fi
5523 fi
5524 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5525 if test -n "$ac_ct_CXX"; then
5526 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5527 $as_echo "$ac_ct_CXX" >&6; }
5528 else
5529 { $as_echo "$as_me:$LINENO: result: no" >&5
5530 $as_echo "no" >&6; }
5531 fi
5532
5533
5534 test -n "$ac_ct_CXX" && break
5535 done
5536
5537 if test "x$ac_ct_CXX" = x; then
5538 CXX="g++"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541 yes:)
5542 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5545 esac
5546 CXX=$ac_ct_CXX
5547 fi
5548 fi
5549
5550 fi
5551 fi
5552 # Provide some information about the compiler.
5553 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5554 set X $ac_compile
5555 ac_compiler=$2
5556 { (ac_try="$ac_compiler --version >&5"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5562 $as_echo "$ac_try_echo") >&5
5563 (eval "$ac_compiler --version >&5") 2>&5
5564 ac_status=$?
5565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }
5567 { (ac_try="$ac_compiler -v >&5"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574 (eval "$ac_compiler -v >&5") 2>&5
5575 ac_status=$?
5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }
5578 { (ac_try="$ac_compiler -V >&5"
5579 case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582 esac
5583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584 $as_echo "$ac_try_echo") >&5
5585 (eval "$ac_compiler -V >&5") 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }
5589
5590 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5591 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5592 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 cat >conftest.$ac_ext <<_ACEOF
5596 /* confdefs.h. */
5597 _ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601
5602 int
5603 main ()
5604 {
5605 #ifndef __GNUC__
5606 choke me
5607 #endif
5608
5609 ;
5610 return 0;
5611 }
5612 _ACEOF
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5615 case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618 esac
5619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620 $as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_cxx_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_compiler_gnu=yes
5632 else
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ac_compiler_gnu=no
5637 fi
5638
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5641
5642 fi
5643 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5644 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5645 if test $ac_compiler_gnu = yes; then
5646 GXX=yes
5647 else
5648 GXX=
5649 fi
5650 ac_test_CXXFLAGS=${CXXFLAGS+set}
5651 ac_save_CXXFLAGS=$CXXFLAGS
5652 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5653 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5654 if test "${ac_cv_prog_cxx_g+set}" = set; then
5655 $as_echo_n "(cached) " >&6
5656 else
5657 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5658 ac_cxx_werror_flag=yes
5659 ac_cv_prog_cxx_g=no
5660 CXXFLAGS="-g"
5661 cat >conftest.$ac_ext <<_ACEOF
5662 /* confdefs.h. */
5663 _ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667
5668 int
5669 main ()
5670 {
5671
5672 ;
5673 return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5683 $as_echo "$ac_try_echo") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_cxx_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_prog_cxx_g=yes
5695 else
5696 $as_echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 CXXFLAGS=""
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706
5707 int
5708 main ()
5709 {
5710
5711 ;
5712 return 0;
5713 }
5714 _ACEOF
5715 rm -f conftest.$ac_objext
5716 if { (ac_try="$ac_compile"
5717 case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5722 $as_echo "$ac_try_echo") >&5
5723 (eval "$ac_compile") 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && {
5730 test -z "$ac_cxx_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
5733 :
5734 else
5735 $as_echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5739 CXXFLAGS="-g"
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h. */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5757 case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760 esac
5761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5762 $as_echo "$ac_try_echo") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5764 ac_status=$?
5765 grep -v '^ *+' conftest.er1 >conftest.err
5766 rm -f conftest.er1
5767 cat conftest.err >&5
5768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_cxx_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 ac_cv_prog_cxx_g=yes
5774 else
5775 $as_echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5777
5778
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 fi
5786
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5789 fi
5790 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5791 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5792 if test "$ac_test_CXXFLAGS" = set; then
5793 CXXFLAGS=$ac_save_CXXFLAGS
5794 elif test $ac_cv_prog_cxx_g = yes; then
5795 if test "$GXX" = yes; then
5796 CXXFLAGS="-g -O2"
5797 else
5798 CXXFLAGS="-g"
5799 fi
5800 else
5801 if test "$GXX" = yes; then
5802 CXXFLAGS="-O2"
5803 else
5804 CXXFLAGS=
5805 fi
5806 fi
5807 ac_ext=cpp
5808 ac_cpp='$CXXCPP $CPPFLAGS'
5809 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812
5813 depcc="$CXX" am_compiler_list=
5814
5815 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5816 $as_echo_n "checking dependency style of $depcc... " >&6; }
5817 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5821 # We make a subdir and do the tests there. Otherwise we can end up
5822 # making bogus files that we don't know about and never remove. For
5823 # instance it was reported that on HP-UX the gcc test will end up
5824 # making a dummy file named `D' -- because `-MD' means `put the output
5825 # in D'.
5826 mkdir conftest.dir
5827 # Copy depcomp to subdir because otherwise we won't find it if we're
5828 # using a relative directory.
5829 cp "$am_depcomp" conftest.dir
5830 cd conftest.dir
5831 # We will build objects and dependencies in a subdirectory because
5832 # it helps to detect inapplicable dependency modes. For instance
5833 # both Tru64's cc and ICC support -MD to output dependencies as a
5834 # side effect of compilation, but ICC will put the dependencies in
5835 # the current directory while Tru64 will put them in the object
5836 # directory.
5837 mkdir sub
5838
5839 am_cv_CXX_dependencies_compiler_type=none
5840 if test "$am_compiler_list" = ""; then
5841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5842 fi
5843 am__universal=false
5844 case " $depcc " in #(
5845 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5846 esac
5847
5848 for depmode in $am_compiler_list; do
5849 # Setup a source with many dependencies, because some compilers
5850 # like to wrap large dependency lists on column 80 (with \), and
5851 # we should not choose a depcomp mode which is confused by this.
5852 #
5853 # We need to recreate these files for each test, as the compiler may
5854 # overwrite some of them when testing with obscure command lines.
5855 # This happens at least with the AIX C compiler.
5856 : > sub/conftest.c
5857 for i in 1 2 3 4 5 6; do
5858 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5859 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5860 # Solaris 8's {/usr,}/bin/sh.
5861 touch sub/conftst$i.h
5862 done
5863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5864
5865 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5866 # mode. It turns out that the SunPro C++ compiler does not properly
5867 # handle `-M -o', and we need to detect this. Also, some Intel
5868 # versions had trouble with output in subdirs
5869 am__obj=sub/conftest.${OBJEXT-o}
5870 am__minus_obj="-o $am__obj"
5871 case $depmode in
5872 gcc)
5873 # This depmode causes a compiler race in universal mode.
5874 test "$am__universal" = false || continue
5875 ;;
5876 nosideeffect)
5877 # after this tag, mechanisms are not by side-effect, so they'll
5878 # only be used when explicitly requested
5879 if test "x$enable_dependency_tracking" = xyes; then
5880 continue
5881 else
5882 break
5883 fi
5884 ;;
5885 msvisualcpp | msvcmsys)
5886 # This compiler won't grok `-c -o', but also, the minuso test has
5887 # not run yet. These depmodes are late enough in the game, and
5888 # so weak that their functioning should not be impacted.
5889 am__obj=conftest.${OBJEXT-o}
5890 am__minus_obj=
5891 ;;
5892 none) break ;;
5893 esac
5894 if depmode=$depmode \
5895 source=sub/conftest.c object=$am__obj \
5896 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5897 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5898 >/dev/null 2>conftest.err &&
5899 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5900 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5901 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5902 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5903 # icc doesn't choke on unknown options, it will just issue warnings
5904 # or remarks (even with -Werror). So we grep stderr for any message
5905 # that says an option was ignored or not supported.
5906 # When given -MP, icc 7.0 and 7.1 complain thusly:
5907 # icc: Command line warning: ignoring option '-M'; no argument required
5908 # The diagnosis changed in icc 8.0:
5909 # icc: Command line remark: option '-MP' not supported
5910 if (grep 'ignoring option' conftest.err ||
5911 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5912 am_cv_CXX_dependencies_compiler_type=$depmode
5913 break
5914 fi
5915 fi
5916 done
5917
5918 cd ..
5919 rm -rf conftest.dir
5920 else
5921 am_cv_CXX_dependencies_compiler_type=none
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5926 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5927 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5928
5929 if
5930 test "x$enable_dependency_tracking" != xno \
5931 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5932 am__fastdepCXX_TRUE=
5933 am__fastdepCXX_FALSE='#'
5934 else
5935 am__fastdepCXX_TRUE='#'
5936 am__fastdepCXX_FALSE=
5937 fi
5938
5939
5940
5941
5942 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5943 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5944 (test "X$CXX" != "Xg++"))) ; then
5945 ac_ext=cpp
5946 ac_cpp='$CXXCPP $CPPFLAGS'
5947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5950 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5951 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5952 if test -z "$CXXCPP"; then
5953 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5954 $as_echo_n "(cached) " >&6
5955 else
5956 # Double quotes because CXXCPP needs to be expanded
5957 for CXXCPP in "$CXX -E" "/lib/cpp"
5958 do
5959 ac_preproc_ok=false
5960 for ac_cxx_preproc_warn_flag in '' yes
5961 do
5962 # Use a header file that comes with gcc, so configuring glibc
5963 # with a fresh cross-compiler works.
5964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5965 # <limits.h> exists even on freestanding compilers.
5966 # On the NeXT, cc -E runs the code through the compiler's parser,
5967 # not just through cpp. "Syntax error" is here to catch this case.
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #ifdef __STDC__
5975 # include <limits.h>
5976 #else
5977 # include <assert.h>
5978 #endif
5979 Syntax error
5980 _ACEOF
5981 if { (ac_try="$ac_cpp conftest.$ac_ext"
5982 case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985 esac
5986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5987 $as_echo "$ac_try_echo") >&5
5988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 ac_status=$?
5990 grep -v '^ *+' conftest.er1 >conftest.err
5991 rm -f conftest.er1
5992 cat conftest.err >&5
5993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); } >/dev/null && {
5995 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5996 test ! -s conftest.err
5997 }; then
5998 :
5999 else
6000 $as_echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6002
6003 # Broken: fails on valid input.
6004 continue
6005 fi
6006
6007 rm -f conftest.err conftest.$ac_ext
6008
6009 # OK, works on sane cases. Now check whether nonexistent headers
6010 # can be detected and how.
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <ac_nonexistent.h>
6018 _ACEOF
6019 if { (ac_try="$ac_cpp conftest.$ac_ext"
6020 case "(($ac_try" in
6021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022 *) ac_try_echo=$ac_try;;
6023 esac
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6027 ac_status=$?
6028 grep -v '^ *+' conftest.er1 >conftest.err
6029 rm -f conftest.er1
6030 cat conftest.err >&5
6031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } >/dev/null && {
6033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6035 }; then
6036 # Broken: success on invalid input.
6037 continue
6038 else
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 # Passes both tests.
6043 ac_preproc_ok=:
6044 break
6045 fi
6046
6047 rm -f conftest.err conftest.$ac_ext
6048
6049 done
6050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6051 rm -f conftest.err conftest.$ac_ext
6052 if $ac_preproc_ok; then
6053 break
6054 fi
6055
6056 done
6057 ac_cv_prog_CXXCPP=$CXXCPP
6058
6059 fi
6060 CXXCPP=$ac_cv_prog_CXXCPP
6061 else
6062 ac_cv_prog_CXXCPP=$CXXCPP
6063 fi
6064 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
6065 $as_echo "$CXXCPP" >&6; }
6066 ac_preproc_ok=false
6067 for ac_cxx_preproc_warn_flag in '' yes
6068 do
6069 # Use a header file that comes with gcc, so configuring glibc
6070 # with a fresh cross-compiler works.
6071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6072 # <limits.h> exists even on freestanding compilers.
6073 # On the NeXT, cc -E runs the code through the compiler's parser,
6074 # not just through cpp. "Syntax error" is here to catch this case.
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #ifdef __STDC__
6082 # include <limits.h>
6083 #else
6084 # include <assert.h>
6085 #endif
6086 Syntax error
6087 _ACEOF
6088 if { (ac_try="$ac_cpp conftest.$ac_ext"
6089 case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092 esac
6093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6094 $as_echo "$ac_try_echo") >&5
6095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } >/dev/null && {
6102 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6103 test ! -s conftest.err
6104 }; then
6105 :
6106 else
6107 $as_echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 # Broken: fails on valid input.
6111 continue
6112 fi
6113
6114 rm -f conftest.err conftest.$ac_ext
6115
6116 # OK, works on sane cases. Now check whether nonexistent headers
6117 # can be detected and how.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <ac_nonexistent.h>
6125 _ACEOF
6126 if { (ac_try="$ac_cpp conftest.$ac_ext"
6127 case "(($ac_try" in
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6130 esac
6131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6132 $as_echo "$ac_try_echo") >&5
6133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } >/dev/null && {
6140 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6141 test ! -s conftest.err
6142 }; then
6143 # Broken: success on invalid input.
6144 continue
6145 else
6146 $as_echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 # Passes both tests.
6150 ac_preproc_ok=:
6151 break
6152 fi
6153
6154 rm -f conftest.err conftest.$ac_ext
6155
6156 done
6157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6158 rm -f conftest.err conftest.$ac_ext
6159 if $ac_preproc_ok; then
6160 :
6161 else
6162 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6164 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6165 See \`config.log' for more details." >&5
6166 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6167 See \`config.log' for more details." >&2;}
6168 { (exit 1); exit 1; }; }; }
6169 fi
6170
6171 ac_ext=cpp
6172 ac_cpp='$CXXCPP $CPPFLAGS'
6173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6176
6177 fi
6178
6179
6180 ac_ext=f
6181 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6182 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6183 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6184 if test -n "$ac_tool_prefix"; then
6185 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
6186 do
6187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6188 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6189 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if test "${ac_cv_prog_F77+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$F77"; then
6195 ac_cv_prog_F77="$F77" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6204 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6205 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 F77=$ac_cv_prog_F77
6215 if test -n "$F77"; then
6216 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6217 $as_echo "$F77" >&6; }
6218 else
6219 { $as_echo "$as_me:$LINENO: result: no" >&5
6220 $as_echo "no" >&6; }
6221 fi
6222
6223
6224 test -n "$F77" && break
6225 done
6226 fi
6227 if test -z "$F77"; then
6228 ac_ct_F77=$F77
6229 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
6230 do
6231 # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test -n "$ac_ct_F77"; then
6239 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6240 else
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242 for as_dir in $PATH
6243 do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_prog_ac_ct_F77="$ac_prog"
6249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252 done
6253 done
6254 IFS=$as_save_IFS
6255
6256 fi
6257 fi
6258 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6259 if test -n "$ac_ct_F77"; then
6260 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6261 $as_echo "$ac_ct_F77" >&6; }
6262 else
6263 { $as_echo "$as_me:$LINENO: result: no" >&5
6264 $as_echo "no" >&6; }
6265 fi
6266
6267
6268 test -n "$ac_ct_F77" && break
6269 done
6270
6271 if test "x$ac_ct_F77" = x; then
6272 F77=""
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 F77=$ac_ct_F77
6281 fi
6282 fi
6283
6284
6285 # Provide some information about the compiler.
6286 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6287 set X $ac_compile
6288 ac_compiler=$2
6289 { (ac_try="$ac_compiler --version >&5"
6290 case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293 esac
6294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6295 $as_echo "$ac_try_echo") >&5
6296 (eval "$ac_compiler --version >&5") 2>&5
6297 ac_status=$?
6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }
6300 { (ac_try="$ac_compiler -v >&5"
6301 case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304 esac
6305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6306 $as_echo "$ac_try_echo") >&5
6307 (eval "$ac_compiler -v >&5") 2>&5
6308 ac_status=$?
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }
6311 { (ac_try="$ac_compiler -V >&5"
6312 case "(($ac_try" in
6313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6314 *) ac_try_echo=$ac_try;;
6315 esac
6316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6317 $as_echo "$ac_try_echo") >&5
6318 (eval "$ac_compiler -V >&5") 2>&5
6319 ac_status=$?
6320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }
6322 rm -f a.out
6323
6324 # If we don't use `.F' as extension, the preprocessor is not run on the
6325 # input file. (Note that this only needs to work for GNU compilers.)
6326 ac_save_ext=$ac_ext
6327 ac_ext=F
6328 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6329 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6330 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6332 else
6333 cat >conftest.$ac_ext <<_ACEOF
6334 program main
6335 #ifndef __GNUC__
6336 choke me
6337 #endif
6338
6339 end
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6348 $as_echo "$ac_try_echo") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_f77_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_compiler_gnu=yes
6360 else
6361 $as_echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_compiler_gnu=no
6365 fi
6366
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6369
6370 fi
6371 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6372 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6373 ac_ext=$ac_save_ext
6374 ac_test_FFLAGS=${FFLAGS+set}
6375 ac_save_FFLAGS=$FFLAGS
6376 FFLAGS=
6377 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6378 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6379 if test "${ac_cv_prog_f77_g+set}" = set; then
6380 $as_echo_n "(cached) " >&6
6381 else
6382 FFLAGS=-g
6383 cat >conftest.$ac_ext <<_ACEOF
6384 program main
6385
6386 end
6387 _ACEOF
6388 rm -f conftest.$ac_objext
6389 if { (ac_try="$ac_compile"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6395 $as_echo "$ac_try_echo") >&5
6396 (eval "$ac_compile") 2>conftest.er1
6397 ac_status=$?
6398 grep -v '^ *+' conftest.er1 >conftest.err
6399 rm -f conftest.er1
6400 cat conftest.err >&5
6401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } && {
6403 test -z "$ac_f77_werror_flag" ||
6404 test ! -s conftest.err
6405 } && test -s conftest.$ac_objext; then
6406 ac_cv_prog_f77_g=yes
6407 else
6408 $as_echo "$as_me: failed program was:" >&5
6409 sed 's/^/| /' conftest.$ac_ext >&5
6410
6411 ac_cv_prog_f77_g=no
6412 fi
6413
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415
6416 fi
6417 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6418 $as_echo "$ac_cv_prog_f77_g" >&6; }
6419 if test "$ac_test_FFLAGS" = set; then
6420 FFLAGS=$ac_save_FFLAGS
6421 elif test $ac_cv_prog_f77_g = yes; then
6422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6423 FFLAGS="-g -O2"
6424 else
6425 FFLAGS="-g"
6426 fi
6427 else
6428 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6429 FFLAGS="-O2"
6430 else
6431 FFLAGS=
6432 fi
6433 fi
6434
6435 if test $ac_compiler_gnu = yes; then
6436 G77=yes
6437 else
6438 G77=
6439 fi
6440 ac_ext=c
6441 ac_cpp='$CPP $CPPFLAGS'
6442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6445
6446
6447
6448 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6449 # find the maximum length of command line arguments
6450 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6451 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6452 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6453 $as_echo_n "(cached) " >&6
6454 else
6455 i=0
6456 teststring="ABCD"
6457
6458 case $build_os in
6459 msdosdjgpp*)
6460 # On DJGPP, this test can blow up pretty badly due to problems in libc
6461 # (any single argument exceeding 2000 bytes causes a buffer overrun
6462 # during glob expansion). Even if it were fixed, the result of this
6463 # check would be larger than it should be.
6464 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6465 ;;
6466
6467 gnu*)
6468 # Under GNU Hurd, this test is not required because there is
6469 # no limit to the length of command line arguments.
6470 # Libtool will interpret -1 as no limit whatsoever
6471 lt_cv_sys_max_cmd_len=-1;
6472 ;;
6473
6474 cygwin* | mingw*)
6475 # On Win9x/ME, this test blows up -- it succeeds, but takes
6476 # about 5 minutes as the teststring grows exponentially.
6477 # Worse, since 9x/ME are not pre-emptively multitasking,
6478 # you end up with a "frozen" computer, even though with patience
6479 # the test eventually succeeds (with a max line length of 256k).
6480 # Instead, let's just punt: use the minimum linelength reported by
6481 # all of the supported platforms: 8192 (on NT/2K/XP).
6482 lt_cv_sys_max_cmd_len=8192;
6483 ;;
6484
6485 amigaos*)
6486 # On AmigaOS with pdksh, this test takes hours, literally.
6487 # So we just punt and use a minimum line length of 8192.
6488 lt_cv_sys_max_cmd_len=8192;
6489 ;;
6490
6491 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6492 # This has been around since 386BSD, at least. Likely further.
6493 if test -x /sbin/sysctl; then
6494 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6495 elif test -x /usr/sbin/sysctl; then
6496 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6497 else
6498 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6499 fi
6500 # And add a safety zone
6501 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6503 ;;
6504
6505 interix*)
6506 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6507 lt_cv_sys_max_cmd_len=196608
6508 ;;
6509
6510 osf*)
6511 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6512 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6513 # nice to cause kernel panics so lets avoid the loop below.
6514 # First set a reasonable default.
6515 lt_cv_sys_max_cmd_len=16384
6516 #
6517 if test -x /sbin/sysconfig; then
6518 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6519 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6520 esac
6521 fi
6522 ;;
6523 sco3.2v5*)
6524 lt_cv_sys_max_cmd_len=102400
6525 ;;
6526 sysv5* | sco5v6* | sysv4.2uw2*)
6527 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6528 if test -n "$kargmax"; then
6529 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6530 else
6531 lt_cv_sys_max_cmd_len=32768
6532 fi
6533 ;;
6534 *)
6535 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6536 if test -n "$lt_cv_sys_max_cmd_len"; then
6537 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6539 else
6540 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6541 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6542 = "XX$teststring") >/dev/null 2>&1 &&
6543 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6544 lt_cv_sys_max_cmd_len=$new_result &&
6545 test $i != 17 # 1/2 MB should be enough
6546 do
6547 i=`expr $i + 1`
6548 teststring=$teststring$teststring
6549 done
6550 teststring=
6551 # Add a significant safety factor because C++ compilers can tack on massive
6552 # amounts of additional arguments before passing them to the linker.
6553 # It appears as though 1/2 is a usable value.
6554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6555 fi
6556 ;;
6557 esac
6558
6559 fi
6560
6561 if test -n $lt_cv_sys_max_cmd_len ; then
6562 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6563 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6564 else
6565 { $as_echo "$as_me:$LINENO: result: none" >&5
6566 $as_echo "none" >&6; }
6567 fi
6568
6569
6570
6571
6572
6573 # Check for command to grab the raw symbol name followed by C symbol from nm.
6574 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6576 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6577 $as_echo_n "(cached) " >&6
6578 else
6579
6580 # These are sane defaults that work on at least a few old systems.
6581 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6582
6583 # Character class describing NM global symbol codes.
6584 symcode='[BCDEGRST]'
6585
6586 # Regexp to match symbols that can be accessed directly from C.
6587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
6589 # Transform an extracted symbol line into a proper C declaration
6590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6591
6592 # Transform an extracted symbol line into symbol name and symbol address
6593 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'"
6594
6595 # Define system-specific variables.
6596 case $host_os in
6597 aix*)
6598 symcode='[BCDT]'
6599 ;;
6600 cygwin* | mingw* | pw32*)
6601 symcode='[ABCDGISTW]'
6602 ;;
6603 hpux*) # Its linker distinguishes data from code symbols
6604 if test "$host_cpu" = ia64; then
6605 symcode='[ABCDEGRST]'
6606 fi
6607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6608 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'"
6609 ;;
6610 linux* | k*bsd*-gnu)
6611 if test "$host_cpu" = ia64; then
6612 symcode='[ABCDGIRSTW]'
6613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6614 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'"
6615 fi
6616 ;;
6617 irix* | nonstopux*)
6618 symcode='[BCDEGRST]'
6619 ;;
6620 osf*)
6621 symcode='[BCDEGQRST]'
6622 ;;
6623 solaris*)
6624 symcode='[BDRT]'
6625 ;;
6626 sco3.2v5*)
6627 symcode='[DT]'
6628 ;;
6629 sysv4.2uw2*)
6630 symcode='[DT]'
6631 ;;
6632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6633 symcode='[ABDT]'
6634 ;;
6635 sysv4)
6636 symcode='[DFNSTU]'
6637 ;;
6638 esac
6639
6640 # Handle CRLF in mingw tool chain
6641 opt_cr=
6642 case $build_os in
6643 mingw*)
6644 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645 ;;
6646 esac
6647
6648 # If we're using GNU nm, then use its standard symbol codes.
6649 case `$NM -V 2>&1` in
6650 *GNU* | *'with BFD'*)
6651 symcode='[ABCDGIRSTW]' ;;
6652 esac
6653
6654 # Try without a prefix undercore, then with it.
6655 for ac_symprfx in "" "_"; do
6656
6657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6658 symxfrm="\\1 $ac_symprfx\\2 \\2"
6659
6660 # Write the raw and C identifiers.
6661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6662
6663 # Check to see that the pipe works correctly.
6664 pipe_works=no
6665
6666 rm -f conftest*
6667 cat > conftest.$ac_ext <<EOF
6668 #ifdef __cplusplus
6669 extern "C" {
6670 #endif
6671 char nm_test_var;
6672 void nm_test_func(){}
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 int main(){nm_test_var='a';nm_test_func();return(0);}
6677 EOF
6678
6679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; then
6684 # Now try to grab the symbols.
6685 nlist=conftest.nm
6686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6688 ac_status=$?
6689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && test -s "$nlist"; then
6691 # Try sorting and uniquifying the output.
6692 if sort "$nlist" | uniq > "$nlist"T; then
6693 mv -f "$nlist"T "$nlist"
6694 else
6695 rm -f "$nlist"T
6696 fi
6697
6698 # Make sure that we snagged all the symbols we need.
6699 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6700 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6701 cat <<EOF > conftest.$ac_ext
6702 #ifdef __cplusplus
6703 extern "C" {
6704 #endif
6705
6706 EOF
6707 # Now generate the symbol file.
6708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6709
6710 cat <<EOF >> conftest.$ac_ext
6711 #if defined (__STDC__) && __STDC__
6712 # define lt_ptr_t void *
6713 #else
6714 # define lt_ptr_t char *
6715 # define const
6716 #endif
6717
6718 /* The mapping between symbol names and symbols. */
6719 const struct {
6720 const char *name;
6721 lt_ptr_t address;
6722 }
6723 lt_preloaded_symbols[] =
6724 {
6725 EOF
6726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6727 cat <<\EOF >> conftest.$ac_ext
6728 {0, (lt_ptr_t) 0}
6729 };
6730
6731 #ifdef __cplusplus
6732 }
6733 #endif
6734 EOF
6735 # Now try linking the two files.
6736 mv conftest.$ac_objext conftstm.$ac_objext
6737 lt_save_LIBS="$LIBS"
6738 lt_save_CFLAGS="$CFLAGS"
6739 LIBS="conftstm.$ac_objext"
6740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6743 ac_status=$?
6744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6746 pipe_works=yes
6747 fi
6748 LIBS="$lt_save_LIBS"
6749 CFLAGS="$lt_save_CFLAGS"
6750 else
6751 echo "cannot find nm_test_func in $nlist" >&5
6752 fi
6753 else
6754 echo "cannot find nm_test_var in $nlist" >&5
6755 fi
6756 else
6757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6758 fi
6759 else
6760 echo "$progname: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6762 fi
6763 rm -rf conftest* conftst*
6764
6765 # Do not use the global_symbol_pipe unless it works.
6766 if test "$pipe_works" = yes; then
6767 break
6768 else
6769 lt_cv_sys_global_symbol_pipe=
6770 fi
6771 done
6772
6773 fi
6774
6775 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6776 lt_cv_sys_global_symbol_to_cdecl=
6777 fi
6778 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6779 { $as_echo "$as_me:$LINENO: result: failed" >&5
6780 $as_echo "failed" >&6; }
6781 else
6782 { $as_echo "$as_me:$LINENO: result: ok" >&5
6783 $as_echo "ok" >&6; }
6784 fi
6785
6786 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6787 $as_echo_n "checking for objdir... " >&6; }
6788 if test "${lt_cv_objdir+set}" = set; then
6789 $as_echo_n "(cached) " >&6
6790 else
6791 rm -f .libs 2>/dev/null
6792 mkdir .libs 2>/dev/null
6793 if test -d .libs; then
6794 lt_cv_objdir=.libs
6795 else
6796 # MS-DOS does not allow filenames that begin with a dot.
6797 lt_cv_objdir=_libs
6798 fi
6799 rmdir .libs 2>/dev/null
6800 fi
6801 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6802 $as_echo "$lt_cv_objdir" >&6; }
6803 objdir=$lt_cv_objdir
6804
6805
6806
6807
6808
6809 case $host_os in
6810 aix3*)
6811 # AIX sometimes has problems with the GCC collect2 program. For some
6812 # reason, if we set the COLLECT_NAMES environment variable, the problems
6813 # vanish in a puff of smoke.
6814 if test "X${COLLECT_NAMES+set}" != Xset; then
6815 COLLECT_NAMES=
6816 export COLLECT_NAMES
6817 fi
6818 ;;
6819 esac
6820
6821 # Sed substitution that helps us do robust quoting. It backslashifies
6822 # metacharacters that are still active within double-quoted strings.
6823 Xsed='sed -e 1s/^X//'
6824 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6825
6826 # Same as above, but do not quote variable references.
6827 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6828
6829 # Sed substitution to delay expansion of an escaped shell variable in a
6830 # double_quote_subst'ed string.
6831 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6832
6833 # Sed substitution to avoid accidental globbing in evaled expressions
6834 no_glob_subst='s/\*/\\\*/g'
6835
6836 # Constants:
6837 rm="rm -f"
6838
6839 # Global variables:
6840 default_ofile=libtool
6841 can_build_shared=yes
6842
6843 # All known linkers require a `.a' archive for static linking (except MSVC,
6844 # which needs '.lib').
6845 libext=a
6846 ltmain="$ac_aux_dir/ltmain.sh"
6847 ofile="$default_ofile"
6848 with_gnu_ld="$lt_cv_prog_gnu_ld"
6849
6850 if test -n "$ac_tool_prefix"; then
6851 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ar; ac_word=$2
6853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if test "${ac_cv_prog_AR+set}" = set; then
6856 $as_echo_n "(cached) " >&6
6857 else
6858 if test -n "$AR"; then
6859 ac_cv_prog_AR="$AR" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_exec_ext in '' $ac_executable_extensions; do
6867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868 ac_cv_prog_AR="${ac_tool_prefix}ar"
6869 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870 break 2
6871 fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 AR=$ac_cv_prog_AR
6879 if test -n "$AR"; then
6880 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6881 $as_echo "$AR" >&6; }
6882 else
6883 { $as_echo "$as_me:$LINENO: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_AR"; then
6890 ac_ct_AR=$AR
6891 # Extract the first word of "ar", so it can be a program name with args.
6892 set dummy ar; ac_word=$2
6893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$ac_ct_AR"; then
6899 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_ac_ct_AR="ar"
6909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6911 fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6919 if test -n "$ac_ct_AR"; then
6920 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6921 $as_echo "$ac_ct_AR" >&6; }
6922 else
6923 { $as_echo "$as_me:$LINENO: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927 if test "x$ac_ct_AR" = x; then
6928 AR="false"
6929 else
6930 case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6934 ac_tool_warned=yes ;;
6935 esac
6936 AR=$ac_ct_AR
6937 fi
6938 else
6939 AR="$ac_cv_prog_AR"
6940 fi
6941
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_RANLIB+set}" = set; then
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$RANLIB"; then
6951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6973 $as_echo "$RANLIB" >&6; }
6974 else
6975 { $as_echo "$as_me:$LINENO: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982 ac_ct_RANLIB=$RANLIB
6983 # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$ac_ct_RANLIB"; then
6991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_ac_ct_RANLIB="ranlib"
7001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013 $as_echo "$ac_ct_RANLIB" >&6; }
7014 else
7015 { $as_echo "$as_me:$LINENO: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019 if test "x$ac_ct_RANLIB" = x; then
7020 RANLIB=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028 RANLIB=$ac_ct_RANLIB
7029 fi
7030 else
7031 RANLIB="$ac_cv_prog_RANLIB"
7032 fi
7033
7034 if test -n "$ac_tool_prefix"; then
7035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}strip; ac_word=$2
7037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_prog_STRIP+set}" = set; then
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$STRIP"; then
7043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056 done
7057 done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 STRIP=$ac_cv_prog_STRIP
7063 if test -n "$STRIP"; then
7064 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7065 $as_echo "$STRIP" >&6; }
7066 else
7067 { $as_echo "$as_me:$LINENO: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071
7072 fi
7073 if test -z "$ac_cv_prog_STRIP"; then
7074 ac_ct_STRIP=$STRIP
7075 # Extract the first word of "strip", so it can be a program name with args.
7076 set dummy strip; ac_word=$2
7077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081 else
7082 if test -n "$ac_ct_STRIP"; then
7083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_prog_ac_ct_STRIP="strip"
7093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7103 if test -n "$ac_ct_STRIP"; then
7104 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7105 $as_echo "$ac_ct_STRIP" >&6; }
7106 else
7107 { $as_echo "$as_me:$LINENO: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111 if test "x$ac_ct_STRIP" = x; then
7112 STRIP=":"
7113 else
7114 case $cross_compiling:$ac_tool_warned in
7115 yes:)
7116 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120 STRIP=$ac_ct_STRIP
7121 fi
7122 else
7123 STRIP="$ac_cv_prog_STRIP"
7124 fi
7125
7126
7127 old_CC="$CC"
7128 old_CFLAGS="$CFLAGS"
7129
7130 # Set sane defaults for various variables
7131 test -z "$AR" && AR=ar
7132 test -z "$AR_FLAGS" && AR_FLAGS=cru
7133 test -z "$AS" && AS=as
7134 test -z "$CC" && CC=cc
7135 test -z "$LTCC" && LTCC=$CC
7136 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7137 test -z "$DLLTOOL" && DLLTOOL=dlltool
7138 test -z "$LD" && LD=ld
7139 test -z "$LN_S" && LN_S="ln -s"
7140 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7141 test -z "$NM" && NM=nm
7142 test -z "$SED" && SED=sed
7143 test -z "$OBJDUMP" && OBJDUMP=objdump
7144 test -z "$RANLIB" && RANLIB=:
7145 test -z "$STRIP" && STRIP=:
7146 test -z "$ac_objext" && ac_objext=o
7147
7148 # Determine commands to create old-style static archives.
7149 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7150 old_postinstall_cmds='chmod 644 $oldlib'
7151 old_postuninstall_cmds=
7152
7153 if test -n "$RANLIB"; then
7154 case $host_os in
7155 openbsd*)
7156 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7157 ;;
7158 *)
7159 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7160 ;;
7161 esac
7162 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7163 fi
7164
7165 for cc_temp in $compiler""; do
7166 case $cc_temp in
7167 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7168 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7169 \-*) ;;
7170 *) break;;
7171 esac
7172 done
7173 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7174
7175
7176 # Only perform the check for file, if the check method requires it
7177 case $deplibs_check_method in
7178 file_magic*)
7179 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7180 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7181 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7183 $as_echo_n "(cached) " >&6
7184 else
7185 case $MAGIC_CMD in
7186 [\\/*] | ?:[\\/]*)
7187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 lt_save_MAGIC_CMD="$MAGIC_CMD"
7191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7193 for ac_dir in $ac_dummy; do
7194 IFS="$lt_save_ifs"
7195 test -z "$ac_dir" && ac_dir=.
7196 if test -f $ac_dir/${ac_tool_prefix}file; then
7197 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7198 if test -n "$file_magic_test_file"; then
7199 case $deplibs_check_method in
7200 "file_magic "*)
7201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7204 $EGREP "$file_magic_regex" > /dev/null; then
7205 :
7206 else
7207 cat <<EOF 1>&2
7208
7209 *** Warning: the command libtool uses to detect shared libraries,
7210 *** $file_magic_cmd, produces output that libtool cannot recognize.
7211 *** The result is that libtool may fail to recognize shared libraries
7212 *** as such. This will affect the creation of libtool libraries that
7213 *** depend on shared libraries, but programs linked with such libtool
7214 *** libraries will work regardless of this problem. Nevertheless, you
7215 *** may want to report the problem to your system manager and/or to
7216 *** bug-libtool@gnu.org
7217
7218 EOF
7219 fi ;;
7220 esac
7221 fi
7222 break
7223 fi
7224 done
7225 IFS="$lt_save_ifs"
7226 MAGIC_CMD="$lt_save_MAGIC_CMD"
7227 ;;
7228 esac
7229 fi
7230
7231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7232 if test -n "$MAGIC_CMD"; then
7233 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7234 $as_echo "$MAGIC_CMD" >&6; }
7235 else
7236 { $as_echo "$as_me:$LINENO: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240 if test -z "$lt_cv_path_MAGIC_CMD"; then
7241 if test -n "$ac_tool_prefix"; then
7242 { $as_echo "$as_me:$LINENO: checking for file" >&5
7243 $as_echo_n "checking for file... " >&6; }
7244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7245 $as_echo_n "(cached) " >&6
7246 else
7247 case $MAGIC_CMD in
7248 [\\/*] | ?:[\\/]*)
7249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7250 ;;
7251 *)
7252 lt_save_MAGIC_CMD="$MAGIC_CMD"
7253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7255 for ac_dir in $ac_dummy; do
7256 IFS="$lt_save_ifs"
7257 test -z "$ac_dir" && ac_dir=.
7258 if test -f $ac_dir/file; then
7259 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7260 if test -n "$file_magic_test_file"; then
7261 case $deplibs_check_method in
7262 "file_magic "*)
7263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7266 $EGREP "$file_magic_regex" > /dev/null; then
7267 :
7268 else
7269 cat <<EOF 1>&2
7270
7271 *** Warning: the command libtool uses to detect shared libraries,
7272 *** $file_magic_cmd, produces output that libtool cannot recognize.
7273 *** The result is that libtool may fail to recognize shared libraries
7274 *** as such. This will affect the creation of libtool libraries that
7275 *** depend on shared libraries, but programs linked with such libtool
7276 *** libraries will work regardless of this problem. Nevertheless, you
7277 *** may want to report the problem to your system manager and/or to
7278 *** bug-libtool@gnu.org
7279
7280 EOF
7281 fi ;;
7282 esac
7283 fi
7284 break
7285 fi
7286 done
7287 IFS="$lt_save_ifs"
7288 MAGIC_CMD="$lt_save_MAGIC_CMD"
7289 ;;
7290 esac
7291 fi
7292
7293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7294 if test -n "$MAGIC_CMD"; then
7295 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7296 $as_echo "$MAGIC_CMD" >&6; }
7297 else
7298 { $as_echo "$as_me:$LINENO: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302 else
7303 MAGIC_CMD=:
7304 fi
7305 fi
7306
7307 fi
7308 ;;
7309 esac
7310
7311
7312 case $host_os in
7313 rhapsody* | darwin*)
7314 if test -n "$ac_tool_prefix"; then
7315 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7316 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7320 $as_echo_n "(cached) " >&6
7321 else
7322 if test -n "$DSYMUTIL"; then
7323 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7324 else
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 for as_dir in $PATH
7327 do
7328 IFS=$as_save_IFS
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 break 2
7335 fi
7336 done
7337 done
7338 IFS=$as_save_IFS
7339
7340 fi
7341 fi
7342 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7343 if test -n "$DSYMUTIL"; then
7344 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7345 $as_echo "$DSYMUTIL" >&6; }
7346 else
7347 { $as_echo "$as_me:$LINENO: result: no" >&5
7348 $as_echo "no" >&6; }
7349 fi
7350
7351
7352 fi
7353 if test -z "$ac_cv_prog_DSYMUTIL"; then
7354 ac_ct_DSYMUTIL=$DSYMUTIL
7355 # Extract the first word of "dsymutil", so it can be a program name with args.
7356 set dummy dsymutil; ac_word=$2
7357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$ac_ct_DSYMUTIL"; then
7363 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368 IFS=$as_save_IFS
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 break 2
7375 fi
7376 done
7377 done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7383 if test -n "$ac_ct_DSYMUTIL"; then
7384 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7385 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7386 else
7387 { $as_echo "$as_me:$LINENO: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391 if test "x$ac_ct_DSYMUTIL" = x; then
7392 DSYMUTIL=":"
7393 else
7394 case $cross_compiling:$ac_tool_warned in
7395 yes:)
7396 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400 DSYMUTIL=$ac_ct_DSYMUTIL
7401 fi
7402 else
7403 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7404 fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$NMEDIT"; then
7415 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 NMEDIT=$ac_cv_prog_NMEDIT
7435 if test -n "$NMEDIT"; then
7436 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7437 $as_echo "$NMEDIT" >&6; }
7438 else
7439 { $as_echo "$as_me:$LINENO: result: no" >&5
7440 $as_echo "no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_NMEDIT"; then
7446 ac_ct_NMEDIT=$NMEDIT
7447 # Extract the first word of "nmedit", so it can be a program name with args.
7448 set dummy nmedit; ac_word=$2
7449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$ac_ct_NMEDIT"; then
7455 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7475 if test -n "$ac_ct_NMEDIT"; then
7476 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7477 $as_echo "$ac_ct_NMEDIT" >&6; }
7478 else
7479 { $as_echo "$as_me:$LINENO: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483 if test "x$ac_ct_NMEDIT" = x; then
7484 NMEDIT=":"
7485 else
7486 case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7490 ac_tool_warned=yes ;;
7491 esac
7492 NMEDIT=$ac_ct_NMEDIT
7493 fi
7494 else
7495 NMEDIT="$ac_cv_prog_NMEDIT"
7496 fi
7497
7498
7499 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7500 $as_echo_n "checking for -single_module linker flag... " >&6; }
7501 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7502 $as_echo_n "(cached) " >&6
7503 else
7504 lt_cv_apple_cc_single_mod=no
7505 if test -z "${LT_MULTI_MODULE}"; then
7506 # By default we will add the -single_module flag. You can override
7507 # by either setting the environment variable LT_MULTI_MODULE
7508 # non-empty at configure time, or by adding -multi_module to the
7509 # link flags.
7510 echo "int foo(void){return 1;}" > conftest.c
7511 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7512 -dynamiclib ${wl}-single_module conftest.c
7513 if test -f libconftest.dylib; then
7514 lt_cv_apple_cc_single_mod=yes
7515 rm -rf libconftest.dylib*
7516 fi
7517 rm conftest.c
7518 fi
7519 fi
7520 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7521 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7522 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7523 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7524 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_ld_exported_symbols_list=no
7528 save_LDFLAGS=$LDFLAGS
7529 echo "_main" > conftest.sym
7530 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 /* confdefs.h. */
7533 _ACEOF
7534 cat confdefs.h >>conftest.$ac_ext
7535 cat >>conftest.$ac_ext <<_ACEOF
7536 /* end confdefs.h. */
7537
7538 int
7539 main ()
7540 {
7541
7542 ;
7543 return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (ac_try="$ac_link"
7548 case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551 esac
7552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553 $as_echo "$ac_try_echo") >&5
7554 (eval "$ac_link") 2>conftest.er1
7555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
7559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
7563 } && test -s conftest$ac_exeext && {
7564 test "$cross_compiling" = yes ||
7565 $as_test_x conftest$ac_exeext
7566 }; then
7567 lt_cv_ld_exported_symbols_list=yes
7568 else
7569 $as_echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 lt_cv_ld_exported_symbols_list=no
7573 fi
7574
7575 rm -rf conftest.dSYM
7576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7577 conftest$ac_exeext conftest.$ac_ext
7578 LDFLAGS="$save_LDFLAGS"
7579
7580 fi
7581 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7582 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583 case $host_os in
7584 rhapsody* | darwin1.[0123])
7585 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7586 darwin1.*)
7587 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7588 darwin*)
7589 # if running on 10.5 or later, the deployment target defaults
7590 # to the OS version, if on x86, and 10.4, the deployment
7591 # target defaults to 10.4. Don't you love it?
7592 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7593 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7595 10.[012]*)
7596 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7597 10.*)
7598 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7599 esac
7600 ;;
7601 esac
7602 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7603 _lt_dar_single_mod='$single_module'
7604 fi
7605 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7606 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7607 else
7608 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7609 fi
7610 if test "$DSYMUTIL" != ":"; then
7611 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7612 else
7613 _lt_dsymutil=
7614 fi
7615 ;;
7616 esac
7617
7618
7619 enable_dlopen=no
7620 enable_win32_dll=no
7621
7622 # Check whether --enable-libtool-lock was given.
7623 if test "${enable_libtool_lock+set}" = set; then
7624 enableval=$enable_libtool_lock;
7625 fi
7626
7627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7628
7629
7630 # Check whether --with-pic was given.
7631 if test "${with_pic+set}" = set; then
7632 withval=$with_pic; pic_mode="$withval"
7633 else
7634 pic_mode=default
7635 fi
7636
7637 test -z "$pic_mode" && pic_mode=default
7638
7639 # Use C for the default configuration in the libtool script
7640 tagname=
7641 lt_save_CC="$CC"
7642 ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648
7649 # Source file extension for C test sources.
7650 ac_ext=c
7651
7652 # Object file extension for compiled C test sources.
7653 objext=o
7654 objext=$objext
7655
7656 # Code to be used in simple compile tests
7657 lt_simple_compile_test_code="int some_variable = 0;"
7658
7659 # Code to be used in simple link tests
7660 lt_simple_link_test_code='int main(){return(0);}'
7661
7662
7663 # If no C compiler was specified, use CC.
7664 LTCC=${LTCC-"$CC"}
7665
7666 # If no C compiler flags were specified, use CFLAGS.
7667 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7668
7669 # Allow CC to be a program name with arguments.
7670 compiler=$CC
7671
7672
7673 # save warnings/boilerplate of simple test code
7674 ac_outfile=conftest.$ac_objext
7675 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7676 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7677 _lt_compiler_boilerplate=`cat conftest.err`
7678 $rm conftest*
7679
7680 ac_outfile=conftest.$ac_objext
7681 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7682 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7683 _lt_linker_boilerplate=`cat conftest.err`
7684 $rm -r conftest*
7685
7686
7687
7688 lt_prog_compiler_no_builtin_flag=
7689
7690 if test "$GCC" = yes; then
7691 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7692
7693
7694 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7698 else
7699 lt_cv_prog_compiler_rtti_exceptions=no
7700 ac_outfile=conftest.$ac_objext
7701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7702 lt_compiler_flag="-fno-rtti -fno-exceptions"
7703 # Insert the option either (1) after the last *FLAGS variable, or
7704 # (2) before a word containing "conftest.", or (3) at the end.
7705 # Note that $ac_compile itself does not contain backslashes and begins
7706 # with a dollar sign (not a hyphen), so the echo should work correctly.
7707 # The option is referenced via a variable to avoid confusing sed.
7708 lt_compile=`echo "$ac_compile" | $SED \
7709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711 -e 's:$: $lt_compiler_flag:'`
7712 (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713 (eval "$lt_compile" 2>conftest.err)
7714 ac_status=$?
7715 cat conftest.err >&5
7716 echo "$as_me:7716: \$? = $ac_status" >&5
7717 if (exit $ac_status) && test -s "$ac_outfile"; then
7718 # The compiler can only warn and ignore the option if not recognized
7719 # So say no if there are warnings other than the usual output.
7720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7722 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7723 lt_cv_prog_compiler_rtti_exceptions=yes
7724 fi
7725 fi
7726 $rm conftest*
7727
7728 fi
7729 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7731
7732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7734 else
7735 :
7736 fi
7737
7738 fi
7739
7740 lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7743
7744 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7746
7747 if test "$GCC" = yes; then
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_static='-static'
7750
7751 case $host_os in
7752 aix*)
7753 # All AIX code is PIC.
7754 if test "$host_cpu" = ia64; then
7755 # AIX 5 now supports IA64 processor
7756 lt_prog_compiler_static='-Bstatic'
7757 fi
7758 ;;
7759
7760 amigaos*)
7761 # FIXME: we need at least 68020 code to build shared libraries, but
7762 # adding the `-m68020' flag to GCC prevents building anything better,
7763 # like `-m68040'.
7764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7765 ;;
7766
7767 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768 # PIC is the default for these OSes.
7769 ;;
7770
7771 mingw* | cygwin* | pw32* | os2*)
7772 # This hack is so that the source file can tell whether it is being
7773 # built for inclusion in a dll (and should export symbols for example).
7774 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7775 # (--disable-auto-import) libraries
7776 lt_prog_compiler_pic='-DDLL_EXPORT'
7777 ;;
7778
7779 darwin* | rhapsody*)
7780 # PIC is the default on this platform
7781 # Common symbols not allowed in MH_DYLIB files
7782 lt_prog_compiler_pic='-fno-common'
7783 ;;
7784
7785 interix[3-9]*)
7786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7787 # Instead, we relocate shared libraries at runtime.
7788 ;;
7789
7790 msdosdjgpp*)
7791 # Just because we use GCC doesn't mean we suddenly get shared libraries
7792 # on systems that don't support them.
7793 lt_prog_compiler_can_build_shared=no
7794 enable_shared=no
7795 ;;
7796
7797 sysv4*MP*)
7798 if test -d /usr/nec; then
7799 lt_prog_compiler_pic=-Kconform_pic
7800 fi
7801 ;;
7802
7803 hpux*)
7804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7805 # not for PA HP-UX.
7806 case $host_cpu in
7807 hppa*64*|ia64*)
7808 # +Z the default
7809 ;;
7810 *)
7811 lt_prog_compiler_pic='-fPIC'
7812 ;;
7813 esac
7814 ;;
7815
7816 *)
7817 lt_prog_compiler_pic='-fPIC'
7818 ;;
7819 esac
7820 else
7821 # PORTME Check for flag to pass linker flags through the system compiler.
7822 case $host_os in
7823 aix*)
7824 lt_prog_compiler_wl='-Wl,'
7825 if test "$host_cpu" = ia64; then
7826 # AIX 5 now supports IA64 processor
7827 lt_prog_compiler_static='-Bstatic'
7828 else
7829 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7830 fi
7831 ;;
7832 darwin*)
7833 # PIC is the default on this platform
7834 # Common symbols not allowed in MH_DYLIB files
7835 case $cc_basename in
7836 xlc*)
7837 lt_prog_compiler_pic='-qnocommon'
7838 lt_prog_compiler_wl='-Wl,'
7839 ;;
7840 esac
7841 ;;
7842
7843 mingw* | cygwin* | pw32* | os2*)
7844 # This hack is so that the source file can tell whether it is being
7845 # built for inclusion in a dll (and should export symbols for example).
7846 lt_prog_compiler_pic='-DDLL_EXPORT'
7847 ;;
7848
7849 hpux9* | hpux10* | hpux11*)
7850 lt_prog_compiler_wl='-Wl,'
7851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7852 # not for PA HP-UX.
7853 case $host_cpu in
7854 hppa*64*|ia64*)
7855 # +Z the default
7856 ;;
7857 *)
7858 lt_prog_compiler_pic='+Z'
7859 ;;
7860 esac
7861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7862 lt_prog_compiler_static='${wl}-a ${wl}archive'
7863 ;;
7864
7865 irix5* | irix6* | nonstopux*)
7866 lt_prog_compiler_wl='-Wl,'
7867 # PIC (with -KPIC) is the default.
7868 lt_prog_compiler_static='-non_shared'
7869 ;;
7870
7871 newsos6)
7872 lt_prog_compiler_pic='-KPIC'
7873 lt_prog_compiler_static='-Bstatic'
7874 ;;
7875
7876 linux* | k*bsd*-gnu)
7877 case $cc_basename in
7878 icc* | ecc*)
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-KPIC'
7881 lt_prog_compiler_static='-static'
7882 ;;
7883 pgcc* | pgf77* | pgf90* | pgf95*)
7884 # Portland Group compilers (*not* the Pentium gcc compiler,
7885 # which looks to be a dead project)
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_pic='-fpic'
7888 lt_prog_compiler_static='-Bstatic'
7889 ;;
7890 ccc*)
7891 lt_prog_compiler_wl='-Wl,'
7892 # All Alpha code is PIC.
7893 lt_prog_compiler_static='-non_shared'
7894 ;;
7895 *)
7896 case `$CC -V 2>&1 | sed 5q` in
7897 *Sun\ C*)
7898 # Sun C 5.9
7899 lt_prog_compiler_pic='-KPIC'
7900 lt_prog_compiler_static='-Bstatic'
7901 lt_prog_compiler_wl='-Wl,'
7902 ;;
7903 *Sun\ F*)
7904 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7905 lt_prog_compiler_pic='-KPIC'
7906 lt_prog_compiler_static='-Bstatic'
7907 lt_prog_compiler_wl=''
7908 ;;
7909 esac
7910 ;;
7911 esac
7912 ;;
7913
7914 osf3* | osf4* | osf5*)
7915 lt_prog_compiler_wl='-Wl,'
7916 # All OSF/1 code is PIC.
7917 lt_prog_compiler_static='-non_shared'
7918 ;;
7919
7920 rdos*)
7921 lt_prog_compiler_static='-non_shared'
7922 ;;
7923
7924 solaris*)
7925 lt_prog_compiler_pic='-KPIC'
7926 lt_prog_compiler_static='-Bstatic'
7927 case $cc_basename in
7928 f77* | f90* | f95*)
7929 lt_prog_compiler_wl='-Qoption ld ';;
7930 *)
7931 lt_prog_compiler_wl='-Wl,';;
7932 esac
7933 ;;
7934
7935 sunos4*)
7936 lt_prog_compiler_wl='-Qoption ld '
7937 lt_prog_compiler_pic='-PIC'
7938 lt_prog_compiler_static='-Bstatic'
7939 ;;
7940
7941 sysv4 | sysv4.2uw2* | sysv4.3*)
7942 lt_prog_compiler_wl='-Wl,'
7943 lt_prog_compiler_pic='-KPIC'
7944 lt_prog_compiler_static='-Bstatic'
7945 ;;
7946
7947 sysv4*MP*)
7948 if test -d /usr/nec ;then
7949 lt_prog_compiler_pic='-Kconform_pic'
7950 lt_prog_compiler_static='-Bstatic'
7951 fi
7952 ;;
7953
7954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7955 lt_prog_compiler_wl='-Wl,'
7956 lt_prog_compiler_pic='-KPIC'
7957 lt_prog_compiler_static='-Bstatic'
7958 ;;
7959
7960 unicos*)
7961 lt_prog_compiler_wl='-Wl,'
7962 lt_prog_compiler_can_build_shared=no
7963 ;;
7964
7965 uts4*)
7966 lt_prog_compiler_pic='-pic'
7967 lt_prog_compiler_static='-Bstatic'
7968 ;;
7969
7970 *)
7971 lt_prog_compiler_can_build_shared=no
7972 ;;
7973 esac
7974 fi
7975
7976 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7977 $as_echo "$lt_prog_compiler_pic" >&6; }
7978
7979 #
7980 # Check to make sure the PIC flag actually works.
7981 #
7982 if test -n "$lt_prog_compiler_pic"; then
7983
7984 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7985 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7986 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7987 $as_echo_n "(cached) " >&6
7988 else
7989 lt_cv_prog_compiler_pic_works=no
7990 ac_outfile=conftest.$ac_objext
7991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7992 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7993 # Insert the option either (1) after the last *FLAGS variable, or
7994 # (2) before a word containing "conftest.", or (3) at the end.
7995 # Note that $ac_compile itself does not contain backslashes and begins
7996 # with a dollar sign (not a hyphen), so the echo should work correctly.
7997 # The option is referenced via a variable to avoid confusing sed.
7998 lt_compile=`echo "$ac_compile" | $SED \
7999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8001 -e 's:$: $lt_compiler_flag:'`
8002 (eval echo "\"\$as_me:8002: $lt_compile\"" >&5)
8003 (eval "$lt_compile" 2>conftest.err)
8004 ac_status=$?
8005 cat conftest.err >&5
8006 echo "$as_me:8006: \$? = $ac_status" >&5
8007 if (exit $ac_status) && test -s "$ac_outfile"; then
8008 # The compiler can only warn and ignore the option if not recognized
8009 # So say no if there are warnings other than the usual output.
8010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8013 lt_cv_prog_compiler_pic_works=yes
8014 fi
8015 fi
8016 $rm conftest*
8017
8018 fi
8019 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8020 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8021
8022 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8023 case $lt_prog_compiler_pic in
8024 "" | " "*) ;;
8025 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8026 esac
8027 else
8028 lt_prog_compiler_pic=
8029 lt_prog_compiler_can_build_shared=no
8030 fi
8031
8032 fi
8033 case $host_os in
8034 # For platforms which do not support PIC, -DPIC is meaningless:
8035 *djgpp*)
8036 lt_prog_compiler_pic=
8037 ;;
8038 *)
8039 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8040 ;;
8041 esac
8042
8043 #
8044 # Check to make sure the static flag actually works.
8045 #
8046 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8047 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8048 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8049 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8050 $as_echo_n "(cached) " >&6
8051 else
8052 lt_cv_prog_compiler_static_works=no
8053 save_LDFLAGS="$LDFLAGS"
8054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8057 # The linker can only warn and ignore the option if not recognized
8058 # So say no if there are warnings
8059 if test -s conftest.err; then
8060 # Append any errors to the config.log.
8061 cat conftest.err 1>&5
8062 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8064 if diff conftest.exp conftest.er2 >/dev/null; then
8065 lt_cv_prog_compiler_static_works=yes
8066 fi
8067 else
8068 lt_cv_prog_compiler_static_works=yes
8069 fi
8070 fi
8071 $rm -r conftest*
8072 LDFLAGS="$save_LDFLAGS"
8073
8074 fi
8075 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8076 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8077
8078 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8079 :
8080 else
8081 lt_prog_compiler_static=
8082 fi
8083
8084
8085 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8087 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8088 $as_echo_n "(cached) " >&6
8089 else
8090 lt_cv_prog_compiler_c_o=no
8091 $rm -r conftest 2>/dev/null
8092 mkdir conftest
8093 cd conftest
8094 mkdir out
8095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8096
8097 lt_compiler_flag="-o out/conftest2.$ac_objext"
8098 # Insert the option either (1) after the last *FLAGS variable, or
8099 # (2) before a word containing "conftest.", or (3) at the end.
8100 # Note that $ac_compile itself does not contain backslashes and begins
8101 # with a dollar sign (not a hyphen), so the echo should work correctly.
8102 lt_compile=`echo "$ac_compile" | $SED \
8103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8105 -e 's:$: $lt_compiler_flag:'`
8106 (eval echo "\"\$as_me:8106: $lt_compile\"" >&5)
8107 (eval "$lt_compile" 2>out/conftest.err)
8108 ac_status=$?
8109 cat out/conftest.err >&5
8110 echo "$as_me:8110: \$? = $ac_status" >&5
8111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8112 then
8113 # The compiler can only warn and ignore the option if not recognized
8114 # So say no if there are warnings
8115 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8116 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8117 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8118 lt_cv_prog_compiler_c_o=yes
8119 fi
8120 fi
8121 chmod u+w . 2>&5
8122 $rm conftest*
8123 # SGI C++ compiler will create directory out/ii_files/ for
8124 # template instantiation
8125 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8126 $rm out/* && rmdir out
8127 cd ..
8128 rmdir conftest
8129 $rm conftest*
8130
8131 fi
8132 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8134
8135
8136 hard_links="nottested"
8137 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8138 # do not overwrite the value of need_locks provided by the user
8139 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8140 $as_echo_n "checking if we can lock with hard links... " >&6; }
8141 hard_links=yes
8142 $rm conftest*
8143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8144 touch conftest.a
8145 ln conftest.a conftest.b 2>&5 || hard_links=no
8146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8147 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8148 $as_echo "$hard_links" >&6; }
8149 if test "$hard_links" = no; then
8150 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8151 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8152 need_locks=warn
8153 fi
8154 else
8155 need_locks=no
8156 fi
8157
8158 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8159 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8160
8161 runpath_var=
8162 allow_undefined_flag=
8163 enable_shared_with_static_runtimes=no
8164 archive_cmds=
8165 archive_expsym_cmds=
8166 old_archive_From_new_cmds=
8167 old_archive_from_expsyms_cmds=
8168 export_dynamic_flag_spec=
8169 whole_archive_flag_spec=
8170 thread_safe_flag_spec=
8171 hardcode_libdir_flag_spec=
8172 hardcode_libdir_flag_spec_ld=
8173 hardcode_libdir_separator=
8174 hardcode_direct=no
8175 hardcode_minus_L=no
8176 hardcode_shlibpath_var=unsupported
8177 link_all_deplibs=unknown
8178 hardcode_automatic=no
8179 module_cmds=
8180 module_expsym_cmds=
8181 always_export_symbols=no
8182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8183 # include_expsyms should be a list of space-separated symbols to be *always*
8184 # included in the symbol list
8185 include_expsyms=
8186 # exclude_expsyms can be an extended regexp of symbols to exclude
8187 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8188 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8189 # as well as any symbol that contains `d'.
8190 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8191 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8192 # platforms (ab)use it in PIC code, but their linkers get confused if
8193 # the symbol is explicitly referenced. Since portable code cannot
8194 # rely on this symbol name, it's probably fine to never include it in
8195 # preloaded symbol tables.
8196 # Exclude shared library initialization/finalization symbols.
8197 extract_expsyms_cmds=
8198 # Just being paranoid about ensuring that cc_basename is set.
8199 for cc_temp in $compiler""; do
8200 case $cc_temp in
8201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8203 \-*) ;;
8204 *) break;;
8205 esac
8206 done
8207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8208
8209 case $host_os in
8210 cygwin* | mingw* | pw32*)
8211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8212 # When not using gcc, we currently assume that we are using
8213 # Microsoft Visual C++.
8214 if test "$GCC" != yes; then
8215 with_gnu_ld=no
8216 fi
8217 ;;
8218 interix*)
8219 # we just hope/assume this is gcc and not c89 (= MSVC++)
8220 with_gnu_ld=yes
8221 ;;
8222 openbsd*)
8223 with_gnu_ld=no
8224 ;;
8225 esac
8226
8227 ld_shlibs=yes
8228 if test "$with_gnu_ld" = yes; then
8229 # If archive_cmds runs LD, not CC, wlarc should be empty
8230 wlarc='${wl}'
8231
8232 # Set some defaults for GNU ld with shared library support. These
8233 # are reset later if shared libraries are not supported. Putting them
8234 # here allows them to be overridden if necessary.
8235 runpath_var=LD_RUN_PATH
8236 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8237 export_dynamic_flag_spec='${wl}--export-dynamic'
8238 # ancient GNU ld didn't support --whole-archive et. al.
8239 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8240 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8241 else
8242 whole_archive_flag_spec=
8243 fi
8244 supports_anon_versioning=no
8245 case `$LD -v 2>/dev/null` in
8246 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8247 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8248 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8249 *\ 2.11.*) ;; # other 2.11 versions
8250 *) supports_anon_versioning=yes ;;
8251 esac
8252
8253 # See if GNU ld supports shared libraries.
8254 case $host_os in
8255 aix[3-9]*)
8256 # On AIX/PPC, the GNU linker is very broken
8257 if test "$host_cpu" != ia64; then
8258 ld_shlibs=no
8259 cat <<EOF 1>&2
8260
8261 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8262 *** to be unable to reliably create shared libraries on AIX.
8263 *** Therefore, libtool is disabling shared libraries support. If you
8264 *** really care for shared libraries, you may want to modify your PATH
8265 *** so that a non-GNU linker is found, and then restart.
8266
8267 EOF
8268 fi
8269 ;;
8270
8271 amigaos*)
8272 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)'
8273 hardcode_libdir_flag_spec='-L$libdir'
8274 hardcode_minus_L=yes
8275
8276 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8277 # that the semantics of dynamic libraries on AmigaOS, at least up
8278 # to version 4, is to share data among multiple programs linked
8279 # with the same dynamic library. Since this doesn't match the
8280 # behavior of shared libraries on other platforms, we can't use
8281 # them.
8282 ld_shlibs=no
8283 ;;
8284
8285 beos*)
8286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8287 allow_undefined_flag=unsupported
8288 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8289 # support --undefined. This deserves some investigation. FIXME
8290 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 else
8292 ld_shlibs=no
8293 fi
8294 ;;
8295
8296 cygwin* | mingw* | pw32*)
8297 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8298 # as there is no search path for DLLs.
8299 hardcode_libdir_flag_spec='-L$libdir'
8300 allow_undefined_flag=unsupported
8301 always_export_symbols=no
8302 enable_shared_with_static_runtimes=yes
8303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8304
8305 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8307 # If the export-symbols file already is a .def file (1st line
8308 # is EXPORTS), use it as is; otherwise, prepend...
8309 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8310 cp $export_symbols $output_objdir/$soname.def;
8311 else
8312 echo EXPORTS > $output_objdir/$soname.def;
8313 cat $export_symbols >> $output_objdir/$soname.def;
8314 fi~
8315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8316 else
8317 ld_shlibs=no
8318 fi
8319 ;;
8320
8321 interix[3-9]*)
8322 hardcode_direct=no
8323 hardcode_shlibpath_var=no
8324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8325 export_dynamic_flag_spec='${wl}-E'
8326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8327 # Instead, shared libraries are loaded at an image base (0x10000000 by
8328 # default) and relocated if they conflict, which is a slow very memory
8329 # consuming and fragmenting process. To avoid this, we pick a random,
8330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8332 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8333 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'
8334 ;;
8335
8336 gnu* | linux* | k*bsd*-gnu)
8337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8338 tmp_addflag=
8339 case $cc_basename,$host_cpu in
8340 pgcc*) # Portland Group C compiler
8341 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'
8342 tmp_addflag=' $pic_flag'
8343 ;;
8344 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8345 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'
8346 tmp_addflag=' $pic_flag -Mnomain' ;;
8347 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8348 tmp_addflag=' -i_dynamic' ;;
8349 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8350 tmp_addflag=' -i_dynamic -nofor_main' ;;
8351 ifc* | ifort*) # Intel Fortran compiler
8352 tmp_addflag=' -nofor_main' ;;
8353 esac
8354 case `$CC -V 2>&1 | sed 5q` in
8355 *Sun\ C*) # Sun C 5.9
8356 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'
8357 tmp_sharedflag='-G' ;;
8358 *Sun\ F*) # Sun Fortran 8.3
8359 tmp_sharedflag='-G' ;;
8360 *)
8361 tmp_sharedflag='-shared' ;;
8362 esac
8363 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364
8365 if test $supports_anon_versioning = yes; then
8366 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8368 $echo "local: *; };" >> $output_objdir/$libname.ver~
8369 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8370 fi
8371 else
8372 ld_shlibs=no
8373 fi
8374 ;;
8375
8376 netbsd*)
8377 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8378 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8379 wlarc=
8380 else
8381 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8382 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8383 fi
8384 ;;
8385
8386 solaris*)
8387 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8388 ld_shlibs=no
8389 cat <<EOF 1>&2
8390
8391 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8392 *** create shared libraries on Solaris systems. Therefore, libtool
8393 *** is disabling shared libraries support. We urge you to upgrade GNU
8394 *** binutils to release 2.9.1 or newer. Another option is to modify
8395 *** your PATH or compiler configuration so that the native linker is
8396 *** used, and then restart.
8397
8398 EOF
8399 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8402 else
8403 ld_shlibs=no
8404 fi
8405 ;;
8406
8407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8408 case `$LD -v 2>&1` in
8409 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8410 ld_shlibs=no
8411 cat <<_LT_EOF 1>&2
8412
8413 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8414 *** reliably create shared libraries on SCO systems. Therefore, libtool
8415 *** is disabling shared libraries support. We urge you to upgrade GNU
8416 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8417 *** your PATH or compiler configuration so that the native linker is
8418 *** used, and then restart.
8419
8420 _LT_EOF
8421 ;;
8422 *)
8423 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8424 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8427 else
8428 ld_shlibs=no
8429 fi
8430 ;;
8431 esac
8432 ;;
8433
8434 sunos4*)
8435 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8436 wlarc=
8437 hardcode_direct=yes
8438 hardcode_shlibpath_var=no
8439 ;;
8440
8441 *)
8442 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8444 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8445 else
8446 ld_shlibs=no
8447 fi
8448 ;;
8449 esac
8450
8451 if test "$ld_shlibs" = no; then
8452 runpath_var=
8453 hardcode_libdir_flag_spec=
8454 export_dynamic_flag_spec=
8455 whole_archive_flag_spec=
8456 fi
8457 else
8458 # PORTME fill in a description of your system's linker (not GNU ld)
8459 case $host_os in
8460 aix3*)
8461 allow_undefined_flag=unsupported
8462 always_export_symbols=yes
8463 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'
8464 # Note: this linker hardcodes the directories in LIBPATH if there
8465 # are no directories specified by -L.
8466 hardcode_minus_L=yes
8467 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8468 # Neither direct hardcoding nor static linking is supported with a
8469 # broken collect2.
8470 hardcode_direct=unsupported
8471 fi
8472 ;;
8473
8474 aix[4-9]*)
8475 if test "$host_cpu" = ia64; then
8476 # On IA64, the linker does run time linking by default, so we don't
8477 # have to do anything special.
8478 aix_use_runtimelinking=no
8479 exp_sym_flag='-Bexport'
8480 no_entry_flag=""
8481 else
8482 # If we're using GNU nm, then we don't want the "-C" option.
8483 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8484 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8485 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'
8486 else
8487 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'
8488 fi
8489 aix_use_runtimelinking=no
8490
8491 # Test if we are trying to use run time linking or normal
8492 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8493 # need to do runtime linking.
8494 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8495 for ld_flag in $LDFLAGS; do
8496 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8497 aix_use_runtimelinking=yes
8498 break
8499 fi
8500 done
8501 ;;
8502 esac
8503
8504 exp_sym_flag='-bexport'
8505 no_entry_flag='-bnoentry'
8506 fi
8507
8508 # When large executables or shared objects are built, AIX ld can
8509 # have problems creating the table of contents. If linking a library
8510 # or program results in "error TOC overflow" add -mminimal-toc to
8511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8513
8514 archive_cmds=''
8515 hardcode_direct=yes
8516 hardcode_libdir_separator=':'
8517 link_all_deplibs=yes
8518
8519 if test "$GCC" = yes; then
8520 case $host_os in aix4.[012]|aix4.[012].*)
8521 # We only want to do this on AIX 4.2 and lower, the check
8522 # below for broken collect2 doesn't work under 4.3+
8523 collect2name=`${CC} -print-prog-name=collect2`
8524 if test -f "$collect2name" && \
8525 strings "$collect2name" | grep resolve_lib_name >/dev/null
8526 then
8527 # We have reworked collect2
8528 :
8529 else
8530 # We have old collect2
8531 hardcode_direct=unsupported
8532 # It fails to find uninstalled libraries when the uninstalled
8533 # path is not listed in the libpath. Setting hardcode_minus_L
8534 # to unsupported forces relinking
8535 hardcode_minus_L=yes
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_libdir_separator=
8538 fi
8539 ;;
8540 esac
8541 shared_flag='-shared'
8542 if test "$aix_use_runtimelinking" = yes; then
8543 shared_flag="$shared_flag "'${wl}-G'
8544 fi
8545 else
8546 # not using gcc
8547 if test "$host_cpu" = ia64; then
8548 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8549 # chokes on -Wl,-G. The following line is correct:
8550 shared_flag='-G'
8551 else
8552 if test "$aix_use_runtimelinking" = yes; then
8553 shared_flag='${wl}-G'
8554 else
8555 shared_flag='${wl}-bM:SRE'
8556 fi
8557 fi
8558 fi
8559
8560 # It seems that -bexpall does not export symbols beginning with
8561 # underscore (_), so it is better to generate a list of symbols to export.
8562 always_export_symbols=yes
8563 if test "$aix_use_runtimelinking" = yes; then
8564 # Warning - without using the other runtime loading flags (-brtl),
8565 # -berok will link without error, but may produce a broken library.
8566 allow_undefined_flag='-berok'
8567 # Determine the default libpath from the value encoded in an empty executable.
8568 cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h. */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8574
8575 int
8576 main ()
8577 {
8578
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (ac_try="$ac_link"
8585 case "(($ac_try" in
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8588 esac
8589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590 $as_echo "$ac_try_echo") >&5
8591 (eval "$ac_link") 2>conftest.er1
8592 ac_status=$?
8593 grep -v '^ *+' conftest.er1 >conftest.err
8594 rm -f conftest.er1
8595 cat conftest.err >&5
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest$ac_exeext && {
8601 test "$cross_compiling" = yes ||
8602 $as_test_x conftest$ac_exeext
8603 }; then
8604
8605 lt_aix_libpath_sed='
8606 /Import File Strings/,/^$/ {
8607 /^0/ {
8608 s/^0 *\(.*\)$/\1/
8609 p
8610 }
8611 }'
8612 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8613 # Check for a 64-bit object if we didn't find anything.
8614 if test -z "$aix_libpath"; then
8615 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8616 fi
8617 else
8618 $as_echo "$as_me: failed program was:" >&5
8619 sed 's/^/| /' conftest.$ac_ext >&5
8620
8621
8622 fi
8623
8624 rm -rf conftest.dSYM
8625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8626 conftest$ac_exeext conftest.$ac_ext
8627 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8628
8629 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8630 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"
8631 else
8632 if test "$host_cpu" = ia64; then
8633 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8634 allow_undefined_flag="-z nodefs"
8635 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"
8636 else
8637 # Determine the default libpath from the value encoded in an empty executable.
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644
8645 int
8646 main ()
8647 {
8648
8649 ;
8650 return 0;
8651 }
8652 _ACEOF
8653 rm -f conftest.$ac_objext conftest$ac_exeext
8654 if { (ac_try="$ac_link"
8655 case "(($ac_try" in
8656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8657 *) ac_try_echo=$ac_try;;
8658 esac
8659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8660 $as_echo "$ac_try_echo") >&5
8661 (eval "$ac_link") 2>conftest.er1
8662 ac_status=$?
8663 grep -v '^ *+' conftest.er1 >conftest.err
8664 rm -f conftest.er1
8665 cat conftest.err >&5
8666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } && {
8668 test -z "$ac_c_werror_flag" ||
8669 test ! -s conftest.err
8670 } && test -s conftest$ac_exeext && {
8671 test "$cross_compiling" = yes ||
8672 $as_test_x conftest$ac_exeext
8673 }; then
8674
8675 lt_aix_libpath_sed='
8676 /Import File Strings/,/^$/ {
8677 /^0/ {
8678 s/^0 *\(.*\)$/\1/
8679 p
8680 }
8681 }'
8682 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8683 # Check for a 64-bit object if we didn't find anything.
8684 if test -z "$aix_libpath"; then
8685 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8686 fi
8687 else
8688 $as_echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691
8692 fi
8693
8694 rm -rf conftest.dSYM
8695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8696 conftest$ac_exeext conftest.$ac_ext
8697 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8698
8699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8700 # Warning - without using the other run time loading flags,
8701 # -berok will link without error, but may produce a broken library.
8702 no_undefined_flag=' ${wl}-bernotok'
8703 allow_undefined_flag=' ${wl}-berok'
8704 # Exported symbols can be pulled into shared objects from archives
8705 whole_archive_flag_spec='$convenience'
8706 archive_cmds_need_lc=yes
8707 # This is similar to how AIX traditionally builds its shared libraries.
8708 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'
8709 fi
8710 fi
8711 ;;
8712
8713 amigaos*)
8714 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)'
8715 hardcode_libdir_flag_spec='-L$libdir'
8716 hardcode_minus_L=yes
8717 # see comment about different semantics on the GNU ld section
8718 ld_shlibs=no
8719 ;;
8720
8721 bsdi[45]*)
8722 export_dynamic_flag_spec=-rdynamic
8723 ;;
8724
8725 cygwin* | mingw* | pw32*)
8726 # When not using gcc, we currently assume that we are using
8727 # Microsoft Visual C++.
8728 # hardcode_libdir_flag_spec is actually meaningless, as there is
8729 # no search path for DLLs.
8730 hardcode_libdir_flag_spec=' '
8731 allow_undefined_flag=unsupported
8732 # Tell ltmain to make .lib files, not .a files.
8733 libext=lib
8734 # Tell ltmain to make .dll files, not .so files.
8735 shrext_cmds=".dll"
8736 # FIXME: Setting linknames here is a bad hack.
8737 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8738 # The linker will automatically build a .lib file if we build a DLL.
8739 old_archive_From_new_cmds='true'
8740 # FIXME: Should let the user specify the lib program.
8741 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8742 fix_srcfile_path='`cygpath -w "$srcfile"`'
8743 enable_shared_with_static_runtimes=yes
8744 ;;
8745
8746 darwin* | rhapsody*)
8747 case $host_os in
8748 rhapsody* | darwin1.[012])
8749 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8750 ;;
8751 *) # Darwin 1.3 on
8752 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8753 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8754 else
8755 case ${MACOSX_DEPLOYMENT_TARGET} in
8756 10.[012])
8757 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8758 ;;
8759 10.*)
8760 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8761 ;;
8762 esac
8763 fi
8764 ;;
8765 esac
8766 archive_cmds_need_lc=no
8767 hardcode_direct=no
8768 hardcode_automatic=yes
8769 hardcode_shlibpath_var=unsupported
8770 whole_archive_flag_spec=''
8771 link_all_deplibs=yes
8772 if test "$GCC" = yes ; then
8773 output_verbose_link_cmd='echo'
8774 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8775 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8776 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}"
8777 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}"
8778 else
8779 case $cc_basename in
8780 xlc*)
8781 output_verbose_link_cmd='echo'
8782 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8783 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8784 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8785 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}'
8786 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}'
8787 ;;
8788 *)
8789 ld_shlibs=no
8790 ;;
8791 esac
8792 fi
8793 ;;
8794
8795 dgux*)
8796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8797 hardcode_libdir_flag_spec='-L$libdir'
8798 hardcode_shlibpath_var=no
8799 ;;
8800
8801 freebsd1*)
8802 ld_shlibs=no
8803 ;;
8804
8805 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8806 # support. Future versions do this automatically, but an explicit c++rt0.o
8807 # does not break anything, and helps significantly (at the cost of a little
8808 # extra space).
8809 freebsd2.2*)
8810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8811 hardcode_libdir_flag_spec='-R$libdir'
8812 hardcode_direct=yes
8813 hardcode_shlibpath_var=no
8814 ;;
8815
8816 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8817 freebsd2*)
8818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8819 hardcode_direct=yes
8820 hardcode_minus_L=yes
8821 hardcode_shlibpath_var=no
8822 ;;
8823
8824 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8825 freebsd* | dragonfly*)
8826 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8827 hardcode_libdir_flag_spec='-R$libdir'
8828 hardcode_direct=yes
8829 hardcode_shlibpath_var=no
8830 ;;
8831
8832 hpux9*)
8833 if test "$GCC" = yes; then
8834 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'
8835 else
8836 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'
8837 fi
8838 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8839 hardcode_libdir_separator=:
8840 hardcode_direct=yes
8841
8842 # hardcode_minus_L: Not really in the search PATH,
8843 # but as the default location of the library.
8844 hardcode_minus_L=yes
8845 export_dynamic_flag_spec='${wl}-E'
8846 ;;
8847
8848 hpux10*)
8849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8850 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8853 fi
8854 if test "$with_gnu_ld" = no; then
8855 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8856 hardcode_libdir_separator=:
8857
8858 hardcode_direct=yes
8859 export_dynamic_flag_spec='${wl}-E'
8860
8861 # hardcode_minus_L: Not really in the search PATH,
8862 # but as the default location of the library.
8863 hardcode_minus_L=yes
8864 fi
8865 ;;
8866
8867 hpux11*)
8868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8869 case $host_cpu in
8870 hppa*64*)
8871 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8872 ;;
8873 ia64*)
8874 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8875 ;;
8876 *)
8877 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8878 ;;
8879 esac
8880 else
8881 case $host_cpu in
8882 hppa*64*)
8883 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8884 ;;
8885 ia64*)
8886 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8887 ;;
8888 *)
8889 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8890 ;;
8891 esac
8892 fi
8893 if test "$with_gnu_ld" = no; then
8894 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8895 hardcode_libdir_separator=:
8896
8897 case $host_cpu in
8898 hppa*64*|ia64*)
8899 hardcode_libdir_flag_spec_ld='+b $libdir'
8900 hardcode_direct=no
8901 hardcode_shlibpath_var=no
8902 ;;
8903 *)
8904 hardcode_direct=yes
8905 export_dynamic_flag_spec='${wl}-E'
8906
8907 # hardcode_minus_L: Not really in the search PATH,
8908 # but as the default location of the library.
8909 hardcode_minus_L=yes
8910 ;;
8911 esac
8912 fi
8913 ;;
8914
8915 irix5* | irix6* | nonstopux*)
8916 if test "$GCC" = yes; then
8917 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'
8918 else
8919 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'
8920 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8921 fi
8922 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8923 hardcode_libdir_separator=:
8924 link_all_deplibs=yes
8925 ;;
8926
8927 netbsd*)
8928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8929 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8930 else
8931 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8932 fi
8933 hardcode_libdir_flag_spec='-R$libdir'
8934 hardcode_direct=yes
8935 hardcode_shlibpath_var=no
8936 ;;
8937
8938 newsos6)
8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8940 hardcode_direct=yes
8941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8942 hardcode_libdir_separator=:
8943 hardcode_shlibpath_var=no
8944 ;;
8945
8946 openbsd*)
8947 if test -f /usr/libexec/ld.so; then
8948 hardcode_direct=yes
8949 hardcode_shlibpath_var=no
8950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8954 export_dynamic_flag_spec='${wl}-E'
8955 else
8956 case $host_os in
8957 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8958 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959 hardcode_libdir_flag_spec='-R$libdir'
8960 ;;
8961 *)
8962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8964 ;;
8965 esac
8966 fi
8967 else
8968 ld_shlibs=no
8969 fi
8970 ;;
8971
8972 os2*)
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 hardcode_minus_L=yes
8975 allow_undefined_flag=unsupported
8976 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'
8977 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8978 ;;
8979
8980 osf3*)
8981 if test "$GCC" = yes; then
8982 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8983 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'
8984 else
8985 allow_undefined_flag=' -expect_unresolved \*'
8986 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'
8987 fi
8988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8989 hardcode_libdir_separator=:
8990 ;;
8991
8992 osf4* | osf5*) # as osf3* with the addition of -msym flag
8993 if test "$GCC" = yes; then
8994 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8995 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'
8996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8997 else
8998 allow_undefined_flag=' -expect_unresolved \*'
8999 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'
9000 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9001 $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'
9002
9003 # Both c and cxx compiler support -rpath directly
9004 hardcode_libdir_flag_spec='-rpath $libdir'
9005 fi
9006 hardcode_libdir_separator=:
9007 ;;
9008
9009 solaris*)
9010 no_undefined_flag=' -z text'
9011 if test "$GCC" = yes; then
9012 wlarc='${wl}'
9013 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9014 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9015 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9016 else
9017 wlarc=''
9018 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9019 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9020 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9021 fi
9022 hardcode_libdir_flag_spec='-R$libdir'
9023 hardcode_shlibpath_var=no
9024 case $host_os in
9025 solaris2.[0-5] | solaris2.[0-5].*) ;;
9026 *)
9027 # The compiler driver will combine and reorder linker options,
9028 # but understands `-z linker_flag'. GCC discards it without `$wl',
9029 # but is careful enough not to reorder.
9030 # Supported since Solaris 2.6 (maybe 2.5.1?)
9031 if test "$GCC" = yes; then
9032 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9033 else
9034 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9035 fi
9036 ;;
9037 esac
9038 link_all_deplibs=yes
9039 ;;
9040
9041 sunos4*)
9042 if test "x$host_vendor" = xsequent; then
9043 # Use $CC to link under sequent, because it throws in some extra .o
9044 # files that make .init and .fini sections work.
9045 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9046 else
9047 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9048 fi
9049 hardcode_libdir_flag_spec='-L$libdir'
9050 hardcode_direct=yes
9051 hardcode_minus_L=yes
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 sysv4)
9056 case $host_vendor in
9057 sni)
9058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9059 hardcode_direct=yes # is this really true???
9060 ;;
9061 siemens)
9062 ## LD is ld it makes a PLAMLIB
9063 ## CC just makes a GrossModule.
9064 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9065 reload_cmds='$CC -r -o $output$reload_objs'
9066 hardcode_direct=no
9067 ;;
9068 motorola)
9069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9070 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9071 ;;
9072 esac
9073 runpath_var='LD_RUN_PATH'
9074 hardcode_shlibpath_var=no
9075 ;;
9076
9077 sysv4.3*)
9078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079 hardcode_shlibpath_var=no
9080 export_dynamic_flag_spec='-Bexport'
9081 ;;
9082
9083 sysv4*MP*)
9084 if test -d /usr/nec; then
9085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9086 hardcode_shlibpath_var=no
9087 runpath_var=LD_RUN_PATH
9088 hardcode_runpath_var=yes
9089 ld_shlibs=yes
9090 fi
9091 ;;
9092
9093 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9094 no_undefined_flag='${wl}-z,text'
9095 archive_cmds_need_lc=no
9096 hardcode_shlibpath_var=no
9097 runpath_var='LD_RUN_PATH'
9098
9099 if test "$GCC" = yes; then
9100 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9102 else
9103 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9104 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9105 fi
9106 ;;
9107
9108 sysv5* | sco3.2v5* | sco5v6*)
9109 # Note: We can NOT use -z defs as we might desire, because we do not
9110 # link with -lc, and that would cause any symbols used from libc to
9111 # always be unresolved, which means just about no library would
9112 # ever link correctly. If we're not using GNU ld we use -z text
9113 # though, which does catch some bad symbols but isn't as heavy-handed
9114 # as -z defs.
9115 no_undefined_flag='${wl}-z,text'
9116 allow_undefined_flag='${wl}-z,nodefs'
9117 archive_cmds_need_lc=no
9118 hardcode_shlibpath_var=no
9119 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9120 hardcode_libdir_separator=':'
9121 link_all_deplibs=yes
9122 export_dynamic_flag_spec='${wl}-Bexport'
9123 runpath_var='LD_RUN_PATH'
9124
9125 if test "$GCC" = yes; then
9126 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9127 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9128 else
9129 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9130 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9131 fi
9132 ;;
9133
9134 uts4*)
9135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_shlibpath_var=no
9138 ;;
9139
9140 *)
9141 ld_shlibs=no
9142 ;;
9143 esac
9144 fi
9145
9146 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9147 $as_echo "$ld_shlibs" >&6; }
9148 test "$ld_shlibs" = no && can_build_shared=no
9149
9150 #
9151 # Do we need to explicitly link libc?
9152 #
9153 case "x$archive_cmds_need_lc" in
9154 x|xyes)
9155 # Assume -lc should be added
9156 archive_cmds_need_lc=yes
9157
9158 if test "$enable_shared" = yes && test "$GCC" = yes; then
9159 case $archive_cmds in
9160 *'~'*)
9161 # FIXME: we may have to deal with multi-command sequences.
9162 ;;
9163 '$CC '*)
9164 # Test whether the compiler implicitly links with -lc since on some
9165 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9166 # to ld, don't add -lc before -lgcc.
9167 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9168 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9169 $rm conftest*
9170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9171
9172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9173 (eval $ac_compile) 2>&5
9174 ac_status=$?
9175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); } 2>conftest.err; then
9177 soname=conftest
9178 lib=conftest
9179 libobjs=conftest.$ac_objext
9180 deplibs=
9181 wl=$lt_prog_compiler_wl
9182 pic_flag=$lt_prog_compiler_pic
9183 compiler_flags=-v
9184 linker_flags=-v
9185 verstring=
9186 output_objdir=.
9187 libname=conftest
9188 lt_save_allow_undefined_flag=$allow_undefined_flag
9189 allow_undefined_flag=
9190 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9191 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9192 ac_status=$?
9193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }
9195 then
9196 archive_cmds_need_lc=no
9197 else
9198 archive_cmds_need_lc=yes
9199 fi
9200 allow_undefined_flag=$lt_save_allow_undefined_flag
9201 else
9202 cat conftest.err 1>&5
9203 fi
9204 $rm conftest*
9205 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9206 $as_echo "$archive_cmds_need_lc" >&6; }
9207 ;;
9208 esac
9209 fi
9210 ;;
9211 esac
9212
9213 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9214 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9215 library_names_spec=
9216 libname_spec='lib$name'
9217 soname_spec=
9218 shrext_cmds=".so"
9219 postinstall_cmds=
9220 postuninstall_cmds=
9221 finish_cmds=
9222 finish_eval=
9223 shlibpath_var=
9224 shlibpath_overrides_runpath=unknown
9225 version_type=none
9226 dynamic_linker="$host_os ld.so"
9227 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9228
9229 if test "$GCC" = yes; then
9230 case $host_os in
9231 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9232 *) lt_awk_arg="/^libraries:/" ;;
9233 esac
9234 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9235 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9236 # if the path contains ";" then we assume it to be the separator
9237 # otherwise default to the standard path separator (i.e. ":") - it is
9238 # assumed that no part of a normal pathname contains ";" but that should
9239 # okay in the real world where ";" in dirpaths is itself problematic.
9240 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9241 else
9242 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9243 fi
9244 # Ok, now we have the path, separated by spaces, we can step through it
9245 # and add multilib dir if necessary.
9246 lt_tmp_lt_search_path_spec=
9247 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9248 for lt_sys_path in $lt_search_path_spec; do
9249 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9250 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9251 else
9252 test -d "$lt_sys_path" && \
9253 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9254 fi
9255 done
9256 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9257 BEGIN {RS=" "; FS="/|\n";} {
9258 lt_foo="";
9259 lt_count=0;
9260 for (lt_i = NF; lt_i > 0; lt_i--) {
9261 if ($lt_i != "" && $lt_i != ".") {
9262 if ($lt_i == "..") {
9263 lt_count++;
9264 } else {
9265 if (lt_count == 0) {
9266 lt_foo="/" $lt_i lt_foo;
9267 } else {
9268 lt_count--;
9269 }
9270 }
9271 }
9272 }
9273 if (lt_foo != "") { lt_freq[lt_foo]++; }
9274 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9275 }'`
9276 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9277 else
9278 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9279 fi
9280 need_lib_prefix=unknown
9281 hardcode_into_libs=no
9282
9283 # when you set need_version to no, make sure it does not cause -set_version
9284 # flags to be left without arguments
9285 need_version=unknown
9286
9287 case $host_os in
9288 aix3*)
9289 version_type=linux
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9291 shlibpath_var=LIBPATH
9292
9293 # AIX 3 has no versioning support, so we append a major version to the name.
9294 soname_spec='${libname}${release}${shared_ext}$major'
9295 ;;
9296
9297 aix[4-9]*)
9298 version_type=linux
9299 need_lib_prefix=no
9300 need_version=no
9301 hardcode_into_libs=yes
9302 if test "$host_cpu" = ia64; then
9303 # AIX 5 supports IA64
9304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 else
9307 # With GCC up to 2.95.x, collect2 would create an import file
9308 # for dependence libraries. The import file would start with
9309 # the line `#! .'. This would cause the generated library to
9310 # depend on `.', always an invalid library. This was fixed in
9311 # development snapshots of GCC prior to 3.0.
9312 case $host_os in
9313 aix4 | aix4.[01] | aix4.[01].*)
9314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9315 echo ' yes '
9316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9317 :
9318 else
9319 can_build_shared=no
9320 fi
9321 ;;
9322 esac
9323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9324 # soname into executable. Probably we can add versioning support to
9325 # collect2, so additional links can be useful in future.
9326 if test "$aix_use_runtimelinking" = yes; then
9327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9328 # instead of lib<name>.a to let people know that these are not
9329 # typical AIX shared libraries.
9330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9331 else
9332 # We preserve .a as extension for shared libraries through AIX4.2
9333 # and later when we are not doing run time linking.
9334 library_names_spec='${libname}${release}.a $libname.a'
9335 soname_spec='${libname}${release}${shared_ext}$major'
9336 fi
9337 shlibpath_var=LIBPATH
9338 fi
9339 ;;
9340
9341 amigaos*)
9342 library_names_spec='$libname.ixlibrary $libname.a'
9343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9344 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'
9345 ;;
9346
9347 beos*)
9348 library_names_spec='${libname}${shared_ext}'
9349 dynamic_linker="$host_os ld.so"
9350 shlibpath_var=LIBRARY_PATH
9351 ;;
9352
9353 bsdi[45]*)
9354 version_type=linux
9355 need_version=no
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9359 shlibpath_var=LD_LIBRARY_PATH
9360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9362 # the default ld.so.conf also contains /usr/contrib/lib and
9363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9364 # libtool to hard-code these into programs
9365 ;;
9366
9367 cygwin* | mingw* | pw32*)
9368 version_type=windows
9369 shrext_cmds=".dll"
9370 need_version=no
9371 need_lib_prefix=no
9372
9373 case $GCC,$host_os in
9374 yes,cygwin* | yes,mingw* | yes,pw32*)
9375 library_names_spec='$libname.dll.a'
9376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9377 postinstall_cmds='base_file=`basename \${file}`~
9378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9379 dldir=$destdir/`dirname \$dlpath`~
9380 test -d \$dldir || mkdir -p \$dldir~
9381 $install_prog $dir/$dlname \$dldir/$dlname~
9382 chmod a+x \$dldir/$dlname'
9383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9384 dlpath=$dir/\$dldll~
9385 $rm \$dlpath'
9386 shlibpath_overrides_runpath=yes
9387
9388 case $host_os in
9389 cygwin*)
9390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9393 ;;
9394 mingw*)
9395 # MinGW DLLs use traditional 'lib' prefix
9396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9399 # It is most probably a Windows format PATH printed by
9400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9401 # path with ; separators, and with drive letters. We can handle the
9402 # drive letters (cygwin fileutils understands them), so leave them,
9403 # especially as we might pass files found there to a mingw objdump,
9404 # which wouldn't understand a cygwinified path. Ahh.
9405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9406 else
9407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9408 fi
9409 ;;
9410 pw32*)
9411 # pw32 DLLs use 'pw' prefix rather than 'lib'
9412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9413 ;;
9414 esac
9415 ;;
9416
9417 *)
9418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9419 ;;
9420 esac
9421 dynamic_linker='Win32 ld.exe'
9422 # FIXME: first we should search . and the directory the executable is in
9423 shlibpath_var=PATH
9424 ;;
9425
9426 darwin* | rhapsody*)
9427 dynamic_linker="$host_os dyld"
9428 version_type=darwin
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9432 soname_spec='${libname}${release}${major}$shared_ext'
9433 shlibpath_overrides_runpath=yes
9434 shlibpath_var=DYLD_LIBRARY_PATH
9435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9436
9437 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9439 ;;
9440
9441 dgux*)
9442 version_type=linux
9443 need_lib_prefix=no
9444 need_version=no
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 ;;
9449
9450 freebsd1*)
9451 dynamic_linker=no
9452 ;;
9453
9454 freebsd* | dragonfly*)
9455 # DragonFly does not have aout. When/if they implement a new
9456 # versioning mechanism, adjust this.
9457 if test -x /usr/bin/objformat; then
9458 objformat=`/usr/bin/objformat`
9459 else
9460 case $host_os in
9461 freebsd[123]*) objformat=aout ;;
9462 *) objformat=elf ;;
9463 esac
9464 fi
9465 version_type=freebsd-$objformat
9466 case $version_type in
9467 freebsd-elf*)
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9469 need_version=no
9470 need_lib_prefix=no
9471 ;;
9472 freebsd-*)
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9474 need_version=yes
9475 ;;
9476 esac
9477 shlibpath_var=LD_LIBRARY_PATH
9478 case $host_os in
9479 freebsd2*)
9480 shlibpath_overrides_runpath=yes
9481 ;;
9482 freebsd3.[01]* | freebsdelf3.[01]*)
9483 shlibpath_overrides_runpath=yes
9484 hardcode_into_libs=yes
9485 ;;
9486 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9487 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9488 shlibpath_overrides_runpath=no
9489 hardcode_into_libs=yes
9490 ;;
9491 *) # from 4.6 on, and DragonFly
9492 shlibpath_overrides_runpath=yes
9493 hardcode_into_libs=yes
9494 ;;
9495 esac
9496 ;;
9497
9498 gnu*)
9499 version_type=linux
9500 need_lib_prefix=no
9501 need_version=no
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 hardcode_into_libs=yes
9506 ;;
9507
9508 hpux9* | hpux10* | hpux11*)
9509 # Give a soname corresponding to the major version so that dld.sl refuses to
9510 # link against other versions.
9511 version_type=sunos
9512 need_lib_prefix=no
9513 need_version=no
9514 case $host_cpu in
9515 ia64*)
9516 shrext_cmds='.so'
9517 hardcode_into_libs=yes
9518 dynamic_linker="$host_os dld.so"
9519 shlibpath_var=LD_LIBRARY_PATH
9520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 if test "X$HPUX_IA64_MODE" = X32; then
9524 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9525 else
9526 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9527 fi
9528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9529 ;;
9530 hppa*64*)
9531 shrext_cmds='.sl'
9532 hardcode_into_libs=yes
9533 dynamic_linker="$host_os dld.sl"
9534 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9535 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9539 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9540 ;;
9541 *)
9542 shrext_cmds='.sl'
9543 dynamic_linker="$host_os dld.sl"
9544 shlibpath_var=SHLIB_PATH
9545 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9547 soname_spec='${libname}${release}${shared_ext}$major'
9548 ;;
9549 esac
9550 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9551 postinstall_cmds='chmod 555 $lib'
9552 ;;
9553
9554 interix[3-9]*)
9555 version_type=linux
9556 need_lib_prefix=no
9557 need_version=no
9558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9559 soname_spec='${libname}${release}${shared_ext}$major'
9560 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=no
9563 hardcode_into_libs=yes
9564 ;;
9565
9566 irix5* | irix6* | nonstopux*)
9567 case $host_os in
9568 nonstopux*) version_type=nonstopux ;;
9569 *)
9570 if test "$lt_cv_prog_gnu_ld" = yes; then
9571 version_type=linux
9572 else
9573 version_type=irix
9574 fi ;;
9575 esac
9576 need_lib_prefix=no
9577 need_version=no
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9580 case $host_os in
9581 irix5* | nonstopux*)
9582 libsuff= shlibsuff=
9583 ;;
9584 *)
9585 case $LD in # libtool.m4 will add one of these switches to LD
9586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9587 libsuff= shlibsuff= libmagic=32-bit;;
9588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9589 libsuff=32 shlibsuff=N32 libmagic=N32;;
9590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9592 *) libsuff= shlibsuff= libmagic=never-match;;
9593 esac
9594 ;;
9595 esac
9596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9597 shlibpath_overrides_runpath=no
9598 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9599 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9600 hardcode_into_libs=yes
9601 ;;
9602
9603 # No shared lib support for Linux oldld, aout, or coff.
9604 linux*oldld* | linux*aout* | linux*coff*)
9605 dynamic_linker=no
9606 ;;
9607
9608 # This must be Linux ELF.
9609 linux* | k*bsd*-gnu)
9610 version_type=linux
9611 need_lib_prefix=no
9612 need_version=no
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614 soname_spec='${libname}${release}${shared_ext}$major'
9615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9616 shlibpath_var=LD_LIBRARY_PATH
9617 shlibpath_overrides_runpath=no
9618 # This implies no fast_install, which is unacceptable.
9619 # Some rework will be needed to allow for fast_install
9620 # before this can be enabled.
9621 hardcode_into_libs=yes
9622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9624
9625 # Append ld.so.conf contents to the search path
9626 if test -f /etc/ld.so.conf; then
9627 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' ' '`
9628 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9629 fi
9630
9631 # We used to test for /lib/ld.so.1 and disable shared libraries on
9632 # powerpc, because MkLinux only supported shared libraries with the
9633 # GNU dynamic linker. Since this was broken with cross compilers,
9634 # most powerpc-linux boxes support dynamic linking these days and
9635 # people can always --disable-shared, the test was removed, and we
9636 # assume the GNU/Linux dynamic linker is in use.
9637 dynamic_linker='GNU/Linux ld.so'
9638 ;;
9639
9640 netbsd*)
9641 version_type=sunos
9642 need_lib_prefix=no
9643 need_version=no
9644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9647 dynamic_linker='NetBSD (a.out) ld.so'
9648 else
9649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9650 soname_spec='${libname}${release}${shared_ext}$major'
9651 dynamic_linker='NetBSD ld.elf_so'
9652 fi
9653 shlibpath_var=LD_LIBRARY_PATH
9654 shlibpath_overrides_runpath=yes
9655 hardcode_into_libs=yes
9656 ;;
9657
9658 newsos6)
9659 version_type=linux
9660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9661 shlibpath_var=LD_LIBRARY_PATH
9662 shlibpath_overrides_runpath=yes
9663 ;;
9664
9665 nto-qnx*)
9666 version_type=linux
9667 need_lib_prefix=no
9668 need_version=no
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670 soname_spec='${libname}${release}${shared_ext}$major'
9671 shlibpath_var=LD_LIBRARY_PATH
9672 shlibpath_overrides_runpath=yes
9673 ;;
9674
9675 openbsd*)
9676 version_type=sunos
9677 sys_lib_dlsearch_path_spec="/usr/lib"
9678 need_lib_prefix=no
9679 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9680 case $host_os in
9681 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9682 *) need_version=no ;;
9683 esac
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9688 case $host_os in
9689 openbsd2.[89] | openbsd2.[89].*)
9690 shlibpath_overrides_runpath=no
9691 ;;
9692 *)
9693 shlibpath_overrides_runpath=yes
9694 ;;
9695 esac
9696 else
9697 shlibpath_overrides_runpath=yes
9698 fi
9699 ;;
9700
9701 os2*)
9702 libname_spec='$name'
9703 shrext_cmds=".dll"
9704 need_lib_prefix=no
9705 library_names_spec='$libname${shared_ext} $libname.a'
9706 dynamic_linker='OS/2 ld.exe'
9707 shlibpath_var=LIBPATH
9708 ;;
9709
9710 osf3* | osf4* | osf5*)
9711 version_type=osf
9712 need_lib_prefix=no
9713 need_version=no
9714 soname_spec='${libname}${release}${shared_ext}$major'
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716 shlibpath_var=LD_LIBRARY_PATH
9717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9719 ;;
9720
9721 rdos*)
9722 dynamic_linker=no
9723 ;;
9724
9725 solaris*)
9726 version_type=linux
9727 need_lib_prefix=no
9728 need_version=no
9729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730 soname_spec='${libname}${release}${shared_ext}$major'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=yes
9733 hardcode_into_libs=yes
9734 # ldd complains unless libraries are executable
9735 postinstall_cmds='chmod +x $lib'
9736 ;;
9737
9738 sunos4*)
9739 version_type=sunos
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9741 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 shlibpath_overrides_runpath=yes
9744 if test "$with_gnu_ld" = yes; then
9745 need_lib_prefix=no
9746 fi
9747 need_version=yes
9748 ;;
9749
9750 sysv4 | sysv4.3*)
9751 version_type=linux
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 shlibpath_var=LD_LIBRARY_PATH
9755 case $host_vendor in
9756 sni)
9757 shlibpath_overrides_runpath=no
9758 need_lib_prefix=no
9759 export_dynamic_flag_spec='${wl}-Blargedynsym'
9760 runpath_var=LD_RUN_PATH
9761 ;;
9762 siemens)
9763 need_lib_prefix=no
9764 ;;
9765 motorola)
9766 need_lib_prefix=no
9767 need_version=no
9768 shlibpath_overrides_runpath=no
9769 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9770 ;;
9771 esac
9772 ;;
9773
9774 sysv4*MP*)
9775 if test -d /usr/nec ;then
9776 version_type=linux
9777 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9778 soname_spec='$libname${shared_ext}.$major'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 fi
9781 ;;
9782
9783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9784 version_type=freebsd-elf
9785 need_lib_prefix=no
9786 need_version=no
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 hardcode_into_libs=yes
9791 if test "$with_gnu_ld" = yes; then
9792 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9793 shlibpath_overrides_runpath=no
9794 else
9795 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9796 shlibpath_overrides_runpath=yes
9797 case $host_os in
9798 sco3.2v5*)
9799 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9800 ;;
9801 esac
9802 fi
9803 sys_lib_dlsearch_path_spec='/usr/lib'
9804 ;;
9805
9806 uts4*)
9807 version_type=linux
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 ;;
9812
9813 *)
9814 dynamic_linker=no
9815 ;;
9816 esac
9817 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9818 $as_echo "$dynamic_linker" >&6; }
9819 test "$dynamic_linker" = no && can_build_shared=no
9820
9821 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9822 $as_echo_n "(cached) " >&6
9823 else
9824 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9825 fi
9826
9827 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9828 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9829 $as_echo_n "(cached) " >&6
9830 else
9831 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9832 fi
9833
9834 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9835
9836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9837 if test "$GCC" = yes; then
9838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9839 fi
9840
9841 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9842 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9843 hardcode_action=
9844 if test -n "$hardcode_libdir_flag_spec" || \
9845 test -n "$runpath_var" || \
9846 test "X$hardcode_automatic" = "Xyes" ; then
9847
9848 # We can hardcode non-existant directories.
9849 if test "$hardcode_direct" != no &&
9850 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9851 # have to relink, otherwise we might link with an installed library
9852 # when we should be linking with a yet-to-be-installed one
9853 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9854 test "$hardcode_minus_L" != no; then
9855 # Linking always hardcodes the temporary library directory.
9856 hardcode_action=relink
9857 else
9858 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9859 hardcode_action=immediate
9860 fi
9861 else
9862 # We cannot hardcode anything, or else we can only hardcode existing
9863 # directories.
9864 hardcode_action=unsupported
9865 fi
9866 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9867 $as_echo "$hardcode_action" >&6; }
9868
9869 if test "$hardcode_action" = relink; then
9870 # Fast installation is not supported
9871 enable_fast_install=no
9872 elif test "$shlibpath_overrides_runpath" = yes ||
9873 test "$enable_shared" = no; then
9874 # Fast installation is not necessary
9875 enable_fast_install=needless
9876 fi
9877
9878 striplib=
9879 old_striplib=
9880 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9881 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9882 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9885 { $as_echo "$as_me:$LINENO: result: yes" >&5
9886 $as_echo "yes" >&6; }
9887 else
9888 # FIXME - insert some real tests, host_os isn't really good enough
9889 case $host_os in
9890 darwin*)
9891 if test -n "$STRIP" ; then
9892 striplib="$STRIP -x"
9893 old_striplib="$STRIP -S"
9894 { $as_echo "$as_me:$LINENO: result: yes" >&5
9895 $as_echo "yes" >&6; }
9896 else
9897 { $as_echo "$as_me:$LINENO: result: no" >&5
9898 $as_echo "no" >&6; }
9899 fi
9900 ;;
9901 *)
9902 { $as_echo "$as_me:$LINENO: result: no" >&5
9903 $as_echo "no" >&6; }
9904 ;;
9905 esac
9906 fi
9907
9908 if test "x$enable_dlopen" != xyes; then
9909 enable_dlopen=unknown
9910 enable_dlopen_self=unknown
9911 enable_dlopen_self_static=unknown
9912 else
9913 lt_cv_dlopen=no
9914 lt_cv_dlopen_libs=
9915
9916 case $host_os in
9917 beos*)
9918 lt_cv_dlopen="load_add_on"
9919 lt_cv_dlopen_libs=
9920 lt_cv_dlopen_self=yes
9921 ;;
9922
9923 mingw* | pw32*)
9924 lt_cv_dlopen="LoadLibrary"
9925 lt_cv_dlopen_libs=
9926 ;;
9927
9928 cygwin*)
9929 lt_cv_dlopen="dlopen"
9930 lt_cv_dlopen_libs=
9931 ;;
9932
9933 darwin*)
9934 # if libdl is installed we need to link against it
9935 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9936 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9938 $as_echo_n "(cached) " >&6
9939 else
9940 ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-ldl $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948
9949 /* Override any GCC internal prototype to avoid an error.
9950 Use char because int might match the return type of a GCC
9951 builtin and then its argument prototype would still apply. */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char dlopen ();
9956 int
9957 main ()
9958 {
9959 return dlopen ();
9960 ;
9961 return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 $as_echo "$ac_try_echo") >&5
9972 (eval "$ac_link") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest$ac_exeext && {
9982 test "$cross_compiling" = yes ||
9983 $as_test_x conftest$ac_exeext
9984 }; then
9985 ac_cv_lib_dl_dlopen=yes
9986 else
9987 $as_echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990 ac_cv_lib_dl_dlopen=no
9991 fi
9992
9993 rm -rf conftest.dSYM
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995 conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9997 fi
9998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10000 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10001 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10002 else
10003
10004 lt_cv_dlopen="dyld"
10005 lt_cv_dlopen_libs=
10006 lt_cv_dlopen_self=yes
10007
10008 fi
10009
10010 ;;
10011
10012 *)
10013 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10014 $as_echo_n "checking for shl_load... " >&6; }
10015 if test "${ac_cv_func_shl_load+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10017 else
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define shl_load innocuous_shl_load
10027
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char shl_load (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10032
10033 #ifdef __STDC__
10034 # include <limits.h>
10035 #else
10036 # include <assert.h>
10037 #endif
10038
10039 #undef shl_load
10040
10041 /* Override any GCC internal prototype to avoid an error.
10042 Use char because int might match the return type of a GCC
10043 builtin and then its argument prototype would still apply. */
10044 #ifdef __cplusplus
10045 extern "C"
10046 #endif
10047 char shl_load ();
10048 /* The GNU C library defines this for functions which it implements
10049 to always fail with ENOSYS. Some functions are actually named
10050 something starting with __ and the normal name is an alias. */
10051 #if defined __stub_shl_load || defined __stub___shl_load
10052 choke me
10053 #endif
10054
10055 int
10056 main ()
10057 {
10058 return shl_load ();
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (ac_try="$ac_link"
10065 case "(($ac_try" in
10066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067 *) ac_try_echo=$ac_try;;
10068 esac
10069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070 $as_echo "$ac_try_echo") >&5
10071 (eval "$ac_link") 2>conftest.er1
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext && {
10081 test "$cross_compiling" = yes ||
10082 $as_test_x conftest$ac_exeext
10083 }; then
10084 ac_cv_func_shl_load=yes
10085 else
10086 $as_echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10088
10089 ac_cv_func_shl_load=no
10090 fi
10091
10092 rm -rf conftest.dSYM
10093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094 conftest$ac_exeext conftest.$ac_ext
10095 fi
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10097 $as_echo "$ac_cv_func_shl_load" >&6; }
10098 if test "x$ac_cv_func_shl_load" = x""yes; then
10099 lt_cv_dlopen="shl_load"
10100 else
10101 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10102 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10103 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10105 else
10106 ac_check_lib_save_LIBS=$LIBS
10107 LIBS="-ldld $LIBS"
10108 cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h. */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h. */
10114
10115 /* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 char shl_load ();
10122 int
10123 main ()
10124 {
10125 return shl_load ();
10126 ;
10127 return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (ac_try="$ac_link"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135 esac
10136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137 $as_echo "$ac_try_echo") >&5
10138 (eval "$ac_link") 2>conftest.er1
10139 ac_status=$?
10140 grep -v '^ *+' conftest.er1 >conftest.err
10141 rm -f conftest.er1
10142 cat conftest.err >&5
10143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } && {
10145 test -z "$ac_c_werror_flag" ||
10146 test ! -s conftest.err
10147 } && test -s conftest$ac_exeext && {
10148 test "$cross_compiling" = yes ||
10149 $as_test_x conftest$ac_exeext
10150 }; then
10151 ac_cv_lib_dld_shl_load=yes
10152 else
10153 $as_echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 ac_cv_lib_dld_shl_load=no
10157 fi
10158
10159 rm -rf conftest.dSYM
10160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10163 fi
10164 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10165 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10166 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10167 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10168 else
10169 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10170 $as_echo_n "checking for dlopen... " >&6; }
10171 if test "${ac_cv_func_dlopen+set}" = set; then
10172 $as_echo_n "(cached) " >&6
10173 else
10174 cat >conftest.$ac_ext <<_ACEOF
10175 /* confdefs.h. */
10176 _ACEOF
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10182 #define dlopen innocuous_dlopen
10183
10184 /* System header to define __stub macros and hopefully few prototypes,
10185 which can conflict with char dlopen (); below.
10186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10187 <limits.h> exists even on freestanding compilers. */
10188
10189 #ifdef __STDC__
10190 # include <limits.h>
10191 #else
10192 # include <assert.h>
10193 #endif
10194
10195 #undef dlopen
10196
10197 /* Override any GCC internal prototype to avoid an error.
10198 Use char because int might match the return type of a GCC
10199 builtin and then its argument prototype would still apply. */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 char dlopen ();
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined __stub_dlopen || defined __stub___dlopen
10208 choke me
10209 #endif
10210
10211 int
10212 main ()
10213 {
10214 return dlopen ();
10215 ;
10216 return 0;
10217 }
10218 _ACEOF
10219 rm -f conftest.$ac_objext conftest$ac_exeext
10220 if { (ac_try="$ac_link"
10221 case "(($ac_try" in
10222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10224 esac
10225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10226 $as_echo "$ac_try_echo") >&5
10227 (eval "$ac_link") 2>conftest.er1
10228 ac_status=$?
10229 grep -v '^ *+' conftest.er1 >conftest.err
10230 rm -f conftest.er1
10231 cat conftest.err >&5
10232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); } && {
10234 test -z "$ac_c_werror_flag" ||
10235 test ! -s conftest.err
10236 } && test -s conftest$ac_exeext && {
10237 test "$cross_compiling" = yes ||
10238 $as_test_x conftest$ac_exeext
10239 }; then
10240 ac_cv_func_dlopen=yes
10241 else
10242 $as_echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_func_dlopen=no
10246 fi
10247
10248 rm -rf conftest.dSYM
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250 conftest$ac_exeext conftest.$ac_ext
10251 fi
10252 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10253 $as_echo "$ac_cv_func_dlopen" >&6; }
10254 if test "x$ac_cv_func_dlopen" = x""yes; then
10255 lt_cv_dlopen="dlopen"
10256 else
10257 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10258 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10259 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-ldl $LIBS"
10264 cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h. */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10274 #ifdef __cplusplus
10275 extern "C"
10276 #endif
10277 char dlopen ();
10278 int
10279 main ()
10280 {
10281 return dlopen ();
10282 ;
10283 return 0;
10284 }
10285 _ACEOF
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10291 esac
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_link") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext && {
10304 test "$cross_compiling" = yes ||
10305 $as_test_x conftest$ac_exeext
10306 }; then
10307 ac_cv_lib_dl_dlopen=yes
10308 else
10309 $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_cv_lib_dl_dlopen=no
10313 fi
10314
10315 rm -rf conftest.dSYM
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10321 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10322 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10324 else
10325 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10326 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10327 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10328 $as_echo_n "(cached) " >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-lsvld $LIBS"
10332 cat >conftest.$ac_ext <<_ACEOF
10333 /* confdefs.h. */
10334 _ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10342 #ifdef __cplusplus
10343 extern "C"
10344 #endif
10345 char dlopen ();
10346 int
10347 main ()
10348 {
10349 return dlopen ();
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10359 esac
10360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10361 $as_echo "$ac_try_echo") >&5
10362 (eval "$ac_link") 2>conftest.er1
10363 ac_status=$?
10364 grep -v '^ *+' conftest.er1 >conftest.err
10365 rm -f conftest.er1
10366 cat conftest.err >&5
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && {
10369 test -z "$ac_c_werror_flag" ||
10370 test ! -s conftest.err
10371 } && test -s conftest$ac_exeext && {
10372 test "$cross_compiling" = yes ||
10373 $as_test_x conftest$ac_exeext
10374 }; then
10375 ac_cv_lib_svld_dlopen=yes
10376 else
10377 $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_cv_lib_svld_dlopen=no
10381 fi
10382
10383 rm -rf conftest.dSYM
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10387 fi
10388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10389 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10390 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10392 else
10393 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10394 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10395 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10396 $as_echo_n "(cached) " >&6
10397 else
10398 ac_check_lib_save_LIBS=$LIBS
10399 LIBS="-ldld $LIBS"
10400 cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h. */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h. */
10406
10407 /* Override any GCC internal prototype to avoid an error.
10408 Use char because int might match the return type of a GCC
10409 builtin and then its argument prototype would still apply. */
10410 #ifdef __cplusplus
10411 extern "C"
10412 #endif
10413 char dld_link ();
10414 int
10415 main ()
10416 {
10417 return dld_link ();
10418 ;
10419 return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427 esac
10428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10429 $as_echo "$ac_try_echo") >&5
10430 (eval "$ac_link") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest$ac_exeext && {
10440 test "$cross_compiling" = yes ||
10441 $as_test_x conftest$ac_exeext
10442 }; then
10443 ac_cv_lib_dld_dld_link=yes
10444 else
10445 $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 ac_cv_lib_dld_dld_link=no
10449 fi
10450
10451 rm -rf conftest.dSYM
10452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10455 fi
10456 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10457 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10458 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10460 fi
10461
10462
10463 fi
10464
10465
10466 fi
10467
10468
10469 fi
10470
10471
10472 fi
10473
10474
10475 fi
10476
10477 ;;
10478 esac
10479
10480 if test "x$lt_cv_dlopen" != xno; then
10481 enable_dlopen=yes
10482 else
10483 enable_dlopen=no
10484 fi
10485
10486 case $lt_cv_dlopen in
10487 dlopen)
10488 save_CPPFLAGS="$CPPFLAGS"
10489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10490
10491 save_LDFLAGS="$LDFLAGS"
10492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10493
10494 save_LIBS="$LIBS"
10495 LIBS="$lt_cv_dlopen_libs $LIBS"
10496
10497 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10498 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10499 if test "${lt_cv_dlopen_self+set}" = set; then
10500 $as_echo_n "(cached) " >&6
10501 else
10502 if test "$cross_compiling" = yes; then :
10503 lt_cv_dlopen_self=cross
10504 else
10505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10506 lt_status=$lt_dlunknown
10507 cat > conftest.$ac_ext <<EOF
10508 #line 10508 "configure"
10509 #include "confdefs.h"
10510
10511 #if HAVE_DLFCN_H
10512 #include <dlfcn.h>
10513 #endif
10514
10515 #include <stdio.h>
10516
10517 #ifdef RTLD_GLOBAL
10518 # define LT_DLGLOBAL RTLD_GLOBAL
10519 #else
10520 # ifdef DL_GLOBAL
10521 # define LT_DLGLOBAL DL_GLOBAL
10522 # else
10523 # define LT_DLGLOBAL 0
10524 # endif
10525 #endif
10526
10527 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10528 find out it does not work in some platform. */
10529 #ifndef LT_DLLAZY_OR_NOW
10530 # ifdef RTLD_LAZY
10531 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10532 # else
10533 # ifdef DL_LAZY
10534 # define LT_DLLAZY_OR_NOW DL_LAZY
10535 # else
10536 # ifdef RTLD_NOW
10537 # define LT_DLLAZY_OR_NOW RTLD_NOW
10538 # else
10539 # ifdef DL_NOW
10540 # define LT_DLLAZY_OR_NOW DL_NOW
10541 # else
10542 # define LT_DLLAZY_OR_NOW 0
10543 # endif
10544 # endif
10545 # endif
10546 # endif
10547 #endif
10548
10549 #ifdef __cplusplus
10550 extern "C" void exit (int);
10551 #endif
10552
10553 void fnord() { int i=42;}
10554 int main ()
10555 {
10556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10557 int status = $lt_dlunknown;
10558
10559 if (self)
10560 {
10561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10563 /* dlclose (self); */
10564 }
10565 else
10566 puts (dlerror ());
10567
10568 exit (status);
10569 }
10570 EOF
10571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572 (eval $ac_link) 2>&5
10573 ac_status=$?
10574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10576 (./conftest; exit; ) >&5 2>/dev/null
10577 lt_status=$?
10578 case x$lt_status in
10579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10581 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10582 esac
10583 else :
10584 # compilation failed
10585 lt_cv_dlopen_self=no
10586 fi
10587 fi
10588 rm -fr conftest*
10589
10590
10591 fi
10592 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10593 $as_echo "$lt_cv_dlopen_self" >&6; }
10594
10595 if test "x$lt_cv_dlopen_self" = xyes; then
10596 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10597 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10598 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10599 if test "${lt_cv_dlopen_self_static+set}" = set; then
10600 $as_echo_n "(cached) " >&6
10601 else
10602 if test "$cross_compiling" = yes; then :
10603 lt_cv_dlopen_self_static=cross
10604 else
10605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10606 lt_status=$lt_dlunknown
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10608 "configure"
10609 #include "confdefs.h"
10610
10611 #if HAVE_DLFCN_H
10612 #include <dlfcn.h>
10613 #endif
10614
10615 #include <stdio.h>
10616
10617 #ifdef RTLD_GLOBAL
10618 # define LT_DLGLOBAL RTLD_GLOBAL
10619 #else
10620 # ifdef DL_GLOBAL
10621 # define LT_DLGLOBAL DL_GLOBAL
10622 # else
10623 # define LT_DLGLOBAL 0
10624 # endif
10625 #endif
10626
10627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10628 find out it does not work in some platform. */
10629 #ifndef LT_DLLAZY_OR_NOW
10630 # ifdef RTLD_LAZY
10631 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10632 # else
10633 # ifdef DL_LAZY
10634 # define LT_DLLAZY_OR_NOW DL_LAZY
10635 # else
10636 # ifdef RTLD_NOW
10637 # define LT_DLLAZY_OR_NOW RTLD_NOW
10638 # else
10639 # ifdef DL_NOW
10640 # define LT_DLLAZY_OR_NOW DL_NOW
10641 # else
10642 # define LT_DLLAZY_OR_NOW 0
10643 # endif
10644 # endif
10645 # endif
10646 # endif
10647 #endif
10648
10649 #ifdef __cplusplus
10650 extern "C" void exit (int);
10651 #endif
10652
10653 void fnord() { int i=42;}
10654 int main ()
10655 {
10656 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10657 int status = $lt_dlunknown;
10658
10659 if (self)
10660 {
10661 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10662 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10663 /* dlclose (self); */
10664 }
10665 else
10666 puts (dlerror ());
10667
10668 exit (status);
10669 }
10670 EOF
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>&5
10673 ac_status=$?
10674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10676 (./conftest; exit; ) >&5 2>/dev/null
10677 lt_status=$?
10678 case x$lt_status in
10679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10681 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10682 esac
10683 else :
10684 # compilation failed
10685 lt_cv_dlopen_self_static=no
10686 fi
10687 fi
10688 rm -fr conftest*
10689
10690
10691 fi
10692 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10693 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10694 fi
10695
10696 CPPFLAGS="$save_CPPFLAGS"
10697 LDFLAGS="$save_LDFLAGS"
10698 LIBS="$save_LIBS"
10699 ;;
10700 esac
10701
10702 case $lt_cv_dlopen_self in
10703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10704 *) enable_dlopen_self=unknown ;;
10705 esac
10706
10707 case $lt_cv_dlopen_self_static in
10708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10709 *) enable_dlopen_self_static=unknown ;;
10710 esac
10711 fi
10712
10713
10714 # Report which library types will actually be built
10715 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10716 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10717 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10718 $as_echo "$can_build_shared" >&6; }
10719
10720 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10721 $as_echo_n "checking whether to build shared libraries... " >&6; }
10722 test "$can_build_shared" = "no" && enable_shared=no
10723
10724 # On AIX, shared libraries and static libraries use the same namespace, and
10725 # are all built from PIC.
10726 case $host_os in
10727 aix3*)
10728 test "$enable_shared" = yes && enable_static=no
10729 if test -n "$RANLIB"; then
10730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10731 postinstall_cmds='$RANLIB $lib'
10732 fi
10733 ;;
10734
10735 aix[4-9]*)
10736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10737 test "$enable_shared" = yes && enable_static=no
10738 fi
10739 ;;
10740 esac
10741 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10742 $as_echo "$enable_shared" >&6; }
10743
10744 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10745 $as_echo_n "checking whether to build static libraries... " >&6; }
10746 # Make sure either enable_shared or enable_static is yes.
10747 test "$enable_shared" = yes || enable_static=yes
10748 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10749 $as_echo "$enable_static" >&6; }
10750
10751 # The else clause should only fire when bootstrapping the
10752 # libtool distribution, otherwise you forgot to ship ltmain.sh
10753 # with your package, and you will get complaints that there are
10754 # no rules to generate ltmain.sh.
10755 if test -f "$ltmain"; then
10756 # See if we are running on zsh, and set the options which allow our commands through
10757 # without removal of \ escapes.
10758 if test -n "${ZSH_VERSION+set}" ; then
10759 setopt NO_GLOB_SUBST
10760 fi
10761 # Now quote all the things that may contain metacharacters while being
10762 # careful not to overquote the AC_SUBSTed values. We take copies of the
10763 # variables and quote the copies for generation of the libtool script.
10764 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10765 SED SHELL STRIP \
10766 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10767 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10768 deplibs_check_method reload_flag reload_cmds need_locks \
10769 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10770 lt_cv_sys_global_symbol_to_c_name_address \
10771 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10772 old_postinstall_cmds old_postuninstall_cmds \
10773 compiler \
10774 CC \
10775 LD \
10776 lt_prog_compiler_wl \
10777 lt_prog_compiler_pic \
10778 lt_prog_compiler_static \
10779 lt_prog_compiler_no_builtin_flag \
10780 export_dynamic_flag_spec \
10781 thread_safe_flag_spec \
10782 whole_archive_flag_spec \
10783 enable_shared_with_static_runtimes \
10784 old_archive_cmds \
10785 old_archive_from_new_cmds \
10786 predep_objects \
10787 postdep_objects \
10788 predeps \
10789 postdeps \
10790 compiler_lib_search_path \
10791 compiler_lib_search_dirs \
10792 archive_cmds \
10793 archive_expsym_cmds \
10794 postinstall_cmds \
10795 postuninstall_cmds \
10796 old_archive_from_expsyms_cmds \
10797 allow_undefined_flag \
10798 no_undefined_flag \
10799 export_symbols_cmds \
10800 hardcode_libdir_flag_spec \
10801 hardcode_libdir_flag_spec_ld \
10802 hardcode_libdir_separator \
10803 hardcode_automatic \
10804 module_cmds \
10805 module_expsym_cmds \
10806 lt_cv_prog_compiler_c_o \
10807 fix_srcfile_path \
10808 exclude_expsyms \
10809 include_expsyms; do
10810
10811 case $var in
10812 old_archive_cmds | \
10813 old_archive_from_new_cmds | \
10814 archive_cmds | \
10815 archive_expsym_cmds | \
10816 module_cmds | \
10817 module_expsym_cmds | \
10818 old_archive_from_expsyms_cmds | \
10819 export_symbols_cmds | \
10820 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10821 postinstall_cmds | postuninstall_cmds | \
10822 old_postinstall_cmds | old_postuninstall_cmds | \
10823 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10824 # Double-quote double-evaled strings.
10825 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10826 ;;
10827 *)
10828 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10829 ;;
10830 esac
10831 done
10832
10833 case $lt_echo in
10834 *'\$0 --fallback-echo"')
10835 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10836 ;;
10837 esac
10838
10839 cfgfile="${ofile}T"
10840 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10841 $rm -f "$cfgfile"
10842 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10843 $as_echo "$as_me: creating $ofile" >&6;}
10844
10845 cat <<__EOF__ >> "$cfgfile"
10846 #! $SHELL
10847
10848 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10849 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10850 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10851 #
10852 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10853 # Free Software Foundation, Inc.
10854 #
10855 # This file is part of GNU Libtool:
10856 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10857 #
10858 # This program is free software; you can redistribute it and/or modify
10859 # it under the terms of the GNU General Public License as published by
10860 # the Free Software Foundation; either version 2 of the License, or
10861 # (at your option) any later version.
10862 #
10863 # This program is distributed in the hope that it will be useful, but
10864 # WITHOUT ANY WARRANTY; without even the implied warranty of
10865 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10866 # General Public License for more details.
10867 #
10868 # You should have received a copy of the GNU General Public License
10869 # along with this program; if not, write to the Free Software
10870 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10871 #
10872 # As a special exception to the GNU General Public License, if you
10873 # distribute this file as part of a program that contains a
10874 # configuration script generated by Autoconf, you may include it under
10875 # the same distribution terms that you use for the rest of that program.
10876
10877 # A sed program that does not truncate output.
10878 SED=$lt_SED
10879
10880 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10881 Xsed="$SED -e 1s/^X//"
10882
10883 # The HP-UX ksh and POSIX shell print the target directory to stdout
10884 # if CDPATH is set.
10885 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10886
10887 # The names of the tagged configurations supported by this script.
10888 available_tags=
10889
10890 # ### BEGIN LIBTOOL CONFIG
10891
10892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10893
10894 # Shell to use when invoking shell scripts.
10895 SHELL=$lt_SHELL
10896
10897 # Whether or not to build shared libraries.
10898 build_libtool_libs=$enable_shared
10899
10900 # Whether or not to build static libraries.
10901 build_old_libs=$enable_static
10902
10903 # Whether or not to add -lc for building shared libraries.
10904 build_libtool_need_lc=$archive_cmds_need_lc
10905
10906 # Whether or not to disallow shared libs when runtime libs are static
10907 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10908
10909 # Whether or not to optimize for fast installation.
10910 fast_install=$enable_fast_install
10911
10912 # The host system.
10913 host_alias=$host_alias
10914 host=$host
10915 host_os=$host_os
10916
10917 # The build system.
10918 build_alias=$build_alias
10919 build=$build
10920 build_os=$build_os
10921
10922 # An echo program that does not interpret backslashes.
10923 echo=$lt_echo
10924
10925 # The archiver.
10926 AR=$lt_AR
10927 AR_FLAGS=$lt_AR_FLAGS
10928
10929 # A C compiler.
10930 LTCC=$lt_LTCC
10931
10932 # LTCC compiler flags.
10933 LTCFLAGS=$lt_LTCFLAGS
10934
10935 # A language-specific compiler.
10936 CC=$lt_compiler
10937
10938 # Is the compiler the GNU C compiler?
10939 with_gcc=$GCC
10940
10941 # An ERE matcher.
10942 EGREP=$lt_EGREP
10943
10944 # The linker used to build libraries.
10945 LD=$lt_LD
10946
10947 # Whether we need hard or soft links.
10948 LN_S=$lt_LN_S
10949
10950 # A BSD-compatible nm program.
10951 NM=$lt_NM
10952
10953 # A symbol stripping program
10954 STRIP=$lt_STRIP
10955
10956 # Used to examine libraries when file_magic_cmd begins "file"
10957 MAGIC_CMD=$MAGIC_CMD
10958
10959 # Used on cygwin: DLL creation program.
10960 DLLTOOL="$DLLTOOL"
10961
10962 # Used on cygwin: object dumper.
10963 OBJDUMP="$OBJDUMP"
10964
10965 # Used on cygwin: assembler.
10966 AS="$AS"
10967
10968 # The name of the directory that contains temporary libtool files.
10969 objdir=$objdir
10970
10971 # How to create reloadable object files.
10972 reload_flag=$lt_reload_flag
10973 reload_cmds=$lt_reload_cmds
10974
10975 # How to pass a linker flag through the compiler.
10976 wl=$lt_lt_prog_compiler_wl
10977
10978 # Object file suffix (normally "o").
10979 objext="$ac_objext"
10980
10981 # Old archive suffix (normally "a").
10982 libext="$libext"
10983
10984 # Shared library suffix (normally ".so").
10985 shrext_cmds='$shrext_cmds'
10986
10987 # Executable file suffix (normally "").
10988 exeext="$exeext"
10989
10990 # Additional compiler flags for building library objects.
10991 pic_flag=$lt_lt_prog_compiler_pic
10992 pic_mode=$pic_mode
10993
10994 # What is the maximum length of a command?
10995 max_cmd_len=$lt_cv_sys_max_cmd_len
10996
10997 # Does compiler simultaneously support -c and -o options?
10998 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10999
11000 # Must we lock files when doing compilation?
11001 need_locks=$lt_need_locks
11002
11003 # Do we need the lib prefix for modules?
11004 need_lib_prefix=$need_lib_prefix
11005
11006 # Do we need a version for libraries?
11007 need_version=$need_version
11008
11009 # Whether dlopen is supported.
11010 dlopen_support=$enable_dlopen
11011
11012 # Whether dlopen of programs is supported.
11013 dlopen_self=$enable_dlopen_self
11014
11015 # Whether dlopen of statically linked programs is supported.
11016 dlopen_self_static=$enable_dlopen_self_static
11017
11018 # Compiler flag to prevent dynamic linking.
11019 link_static_flag=$lt_lt_prog_compiler_static
11020
11021 # Compiler flag to turn off builtin functions.
11022 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11023
11024 # Compiler flag to allow reflexive dlopens.
11025 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11026
11027 # Compiler flag to generate shared objects directly from archives.
11028 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11029
11030 # Compiler flag to generate thread-safe objects.
11031 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11032
11033 # Library versioning type.
11034 version_type=$version_type
11035
11036 # Format of library name prefix.
11037 libname_spec=$lt_libname_spec
11038
11039 # List of archive names. First name is the real one, the rest are links.
11040 # The last name is the one that the linker finds with -lNAME.
11041 library_names_spec=$lt_library_names_spec
11042
11043 # The coded name of the library, if different from the real name.
11044 soname_spec=$lt_soname_spec
11045
11046 # Commands used to build and install an old-style archive.
11047 RANLIB=$lt_RANLIB
11048 old_archive_cmds=$lt_old_archive_cmds
11049 old_postinstall_cmds=$lt_old_postinstall_cmds
11050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11051
11052 # Create an old-style archive from a shared archive.
11053 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11054
11055 # Create a temporary old-style archive to link instead of a shared archive.
11056 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11057
11058 # Commands used to build and install a shared archive.
11059 archive_cmds=$lt_archive_cmds
11060 archive_expsym_cmds=$lt_archive_expsym_cmds
11061 postinstall_cmds=$lt_postinstall_cmds
11062 postuninstall_cmds=$lt_postuninstall_cmds
11063
11064 # Commands used to build a loadable module (assumed same as above if empty)
11065 module_cmds=$lt_module_cmds
11066 module_expsym_cmds=$lt_module_expsym_cmds
11067
11068 # Commands to strip libraries.
11069 old_striplib=$lt_old_striplib
11070 striplib=$lt_striplib
11071
11072 # Dependencies to place before the objects being linked to create a
11073 # shared library.
11074 predep_objects=$lt_predep_objects
11075
11076 # Dependencies to place after the objects being linked to create a
11077 # shared library.
11078 postdep_objects=$lt_postdep_objects
11079
11080 # Dependencies to place before the objects being linked to create a
11081 # shared library.
11082 predeps=$lt_predeps
11083
11084 # Dependencies to place after the objects being linked to create a
11085 # shared library.
11086 postdeps=$lt_postdeps
11087
11088 # The directories searched by this compiler when creating a shared
11089 # library
11090 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11091
11092 # The library search path used internally by the compiler when linking
11093 # a shared library.
11094 compiler_lib_search_path=$lt_compiler_lib_search_path
11095
11096 # Method to check whether dependent libraries are shared objects.
11097 deplibs_check_method=$lt_deplibs_check_method
11098
11099 # Command to use when deplibs_check_method == file_magic.
11100 file_magic_cmd=$lt_file_magic_cmd
11101
11102 # Flag that allows shared libraries with undefined symbols to be built.
11103 allow_undefined_flag=$lt_allow_undefined_flag
11104
11105 # Flag that forces no undefined symbols.
11106 no_undefined_flag=$lt_no_undefined_flag
11107
11108 # Commands used to finish a libtool library installation in a directory.
11109 finish_cmds=$lt_finish_cmds
11110
11111 # Same as above, but a single script fragment to be evaled but not shown.
11112 finish_eval=$lt_finish_eval
11113
11114 # Take the output of nm and produce a listing of raw symbols and C names.
11115 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11116
11117 # Transform the output of nm in a proper C declaration
11118 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11119
11120 # Transform the output of nm in a C name address pair
11121 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11122
11123 # This is the shared library runtime path variable.
11124 runpath_var=$runpath_var
11125
11126 # This is the shared library path variable.
11127 shlibpath_var=$shlibpath_var
11128
11129 # Is shlibpath searched before the hard-coded library search path?
11130 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11131
11132 # How to hardcode a shared library path into an executable.
11133 hardcode_action=$hardcode_action
11134
11135 # Whether we should hardcode library paths into libraries.
11136 hardcode_into_libs=$hardcode_into_libs
11137
11138 # Flag to hardcode \$libdir into a binary during linking.
11139 # This must work even if \$libdir does not exist.
11140 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11141
11142 # If ld is used when linking, flag to hardcode \$libdir into
11143 # a binary during linking. This must work even if \$libdir does
11144 # not exist.
11145 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11146
11147 # Whether we need a single -rpath flag with a separated argument.
11148 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11149
11150 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11151 # resulting binary.
11152 hardcode_direct=$hardcode_direct
11153
11154 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11155 # resulting binary.
11156 hardcode_minus_L=$hardcode_minus_L
11157
11158 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11159 # the resulting binary.
11160 hardcode_shlibpath_var=$hardcode_shlibpath_var
11161
11162 # Set to yes if building a shared library automatically hardcodes DIR into the library
11163 # and all subsequent libraries and executables linked against it.
11164 hardcode_automatic=$hardcode_automatic
11165
11166 # Variables whose values should be saved in libtool wrapper scripts and
11167 # restored at relink time.
11168 variables_saved_for_relink="$variables_saved_for_relink"
11169
11170 # Whether libtool must link a program against all its dependency libraries.
11171 link_all_deplibs=$link_all_deplibs
11172
11173 # Compile-time system search path for libraries
11174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11175
11176 # Run-time system search path for libraries
11177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11178
11179 # Fix the shell variable \$srcfile for the compiler.
11180 fix_srcfile_path=$lt_fix_srcfile_path
11181
11182 # Set to yes if exported symbols are required.
11183 always_export_symbols=$always_export_symbols
11184
11185 # The commands to list exported symbols.
11186 export_symbols_cmds=$lt_export_symbols_cmds
11187
11188 # The commands to extract the exported symbol list from a shared archive.
11189 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11190
11191 # Symbols that should not be listed in the preloaded symbols.
11192 exclude_expsyms=$lt_exclude_expsyms
11193
11194 # Symbols that must always be exported.
11195 include_expsyms=$lt_include_expsyms
11196
11197 # ### END LIBTOOL CONFIG
11198
11199 __EOF__
11200
11201
11202 case $host_os in
11203 aix3*)
11204 cat <<\EOF >> "$cfgfile"
11205
11206 # AIX sometimes has problems with the GCC collect2 program. For some
11207 # reason, if we set the COLLECT_NAMES environment variable, the problems
11208 # vanish in a puff of smoke.
11209 if test "X${COLLECT_NAMES+set}" != Xset; then
11210 COLLECT_NAMES=
11211 export COLLECT_NAMES
11212 fi
11213 EOF
11214 ;;
11215 esac
11216
11217 # We use sed instead of cat because bash on DJGPP gets confused if
11218 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11219 # text mode, it properly converts lines to CR/LF. This bash problem
11220 # is reportedly fixed, but why not run on old versions too?
11221 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11222
11223 mv -f "$cfgfile" "$ofile" || \
11224 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11225 chmod +x "$ofile"
11226
11227 else
11228 # If there is no Makefile yet, we rely on a make rule to execute
11229 # `config.status --recheck' to rerun these tests and create the
11230 # libtool script then.
11231 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11232 if test -f "$ltmain_in"; then
11233 test -f Makefile && make "$ltmain"
11234 fi
11235 fi
11236
11237
11238 ac_ext=c
11239 ac_cpp='$CPP $CPPFLAGS'
11240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11243
11244 CC="$lt_save_CC"
11245
11246
11247 # Check whether --with-tags was given.
11248 if test "${with_tags+set}" = set; then
11249 withval=$with_tags; tagnames="$withval"
11250 fi
11251
11252
11253 if test -f "$ltmain" && test -n "$tagnames"; then
11254 if test ! -f "${ofile}"; then
11255 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11256 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11257 fi
11258
11259 if test -z "$LTCC"; then
11260 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11261 if test -z "$LTCC"; then
11262 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11263 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11264 else
11265 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11266 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11267 fi
11268 fi
11269 if test -z "$LTCFLAGS"; then
11270 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11271 fi
11272
11273 # Extract list of available tagged configurations in $ofile.
11274 # Note that this assumes the entire list is on one line.
11275 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11276
11277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11278 for tagname in $tagnames; do
11279 IFS="$lt_save_ifs"
11280 # Check whether tagname contains only valid characters
11281 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11282 "") ;;
11283 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11284 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11285 { (exit 1); exit 1; }; }
11286 ;;
11287 esac
11288
11289 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11290 then
11291 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11292 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11293 { (exit 1); exit 1; }; }
11294 fi
11295
11296 # Update the list of available tags.
11297 if test -n "$tagname"; then
11298 echo appending configuration tag \"$tagname\" to $ofile
11299
11300 case $tagname in
11301 CXX)
11302 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11303 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11304 (test "X$CXX" != "Xg++"))) ; then
11305 ac_ext=cpp
11306 ac_cpp='$CXXCPP $CPPFLAGS'
11307 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11308 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11309 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11310
11311
11312
11313
11314 archive_cmds_need_lc_CXX=no
11315 allow_undefined_flag_CXX=
11316 always_export_symbols_CXX=no
11317 archive_expsym_cmds_CXX=
11318 export_dynamic_flag_spec_CXX=
11319 hardcode_direct_CXX=no
11320 hardcode_libdir_flag_spec_CXX=
11321 hardcode_libdir_flag_spec_ld_CXX=
11322 hardcode_libdir_separator_CXX=
11323 hardcode_minus_L_CXX=no
11324 hardcode_shlibpath_var_CXX=unsupported
11325 hardcode_automatic_CXX=no
11326 module_cmds_CXX=
11327 module_expsym_cmds_CXX=
11328 link_all_deplibs_CXX=unknown
11329 old_archive_cmds_CXX=$old_archive_cmds
11330 no_undefined_flag_CXX=
11331 whole_archive_flag_spec_CXX=
11332 enable_shared_with_static_runtimes_CXX=no
11333
11334 # Dependencies to place before and after the object being linked:
11335 predep_objects_CXX=
11336 postdep_objects_CXX=
11337 predeps_CXX=
11338 postdeps_CXX=
11339 compiler_lib_search_path_CXX=
11340 compiler_lib_search_dirs_CXX=
11341
11342 # Source file extension for C++ test sources.
11343 ac_ext=cpp
11344
11345 # Object file extension for compiled C++ test sources.
11346 objext=o
11347 objext_CXX=$objext
11348
11349 # Code to be used in simple compile tests
11350 lt_simple_compile_test_code="int some_variable = 0;"
11351
11352 # Code to be used in simple link tests
11353 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11354
11355 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11356
11357 # If no C compiler was specified, use CC.
11358 LTCC=${LTCC-"$CC"}
11359
11360 # If no C compiler flags were specified, use CFLAGS.
11361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11362
11363 # Allow CC to be a program name with arguments.
11364 compiler=$CC
11365
11366
11367 # save warnings/boilerplate of simple test code
11368 ac_outfile=conftest.$ac_objext
11369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11371 _lt_compiler_boilerplate=`cat conftest.err`
11372 $rm conftest*
11373
11374 ac_outfile=conftest.$ac_objext
11375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11377 _lt_linker_boilerplate=`cat conftest.err`
11378 $rm -r conftest*
11379
11380
11381 # Allow CC to be a program name with arguments.
11382 lt_save_CC=$CC
11383 lt_save_LD=$LD
11384 lt_save_GCC=$GCC
11385 GCC=$GXX
11386 lt_save_with_gnu_ld=$with_gnu_ld
11387 lt_save_path_LD=$lt_cv_path_LD
11388 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11389 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11390 else
11391 $as_unset lt_cv_prog_gnu_ld
11392 fi
11393 if test -n "${lt_cv_path_LDCXX+set}"; then
11394 lt_cv_path_LD=$lt_cv_path_LDCXX
11395 else
11396 $as_unset lt_cv_path_LD
11397 fi
11398 test -z "${LDCXX+set}" || LD=$LDCXX
11399 CC=${CXX-"c++"}
11400 compiler=$CC
11401 compiler_CXX=$CC
11402 for cc_temp in $compiler""; do
11403 case $cc_temp in
11404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11406 \-*) ;;
11407 *) break;;
11408 esac
11409 done
11410 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11411
11412
11413 # We don't want -fno-exception wen compiling C++ code, so set the
11414 # no_builtin_flag separately
11415 if test "$GXX" = yes; then
11416 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11417 else
11418 lt_prog_compiler_no_builtin_flag_CXX=
11419 fi
11420
11421 if test "$GXX" = yes; then
11422 # Set up default GNU C++ configuration
11423
11424
11425 # Check whether --with-gnu-ld was given.
11426 if test "${with_gnu_ld+set}" = set; then
11427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11428 else
11429 with_gnu_ld=no
11430 fi
11431
11432 ac_prog=ld
11433 if test "$GCC" = yes; then
11434 # Check if gcc -print-prog-name=ld gives a path.
11435 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11436 $as_echo_n "checking for ld used by $CC... " >&6; }
11437 case $host in
11438 *-*-mingw*)
11439 # gcc leaves a trailing carriage return which upsets mingw
11440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11441 *)
11442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11443 esac
11444 case $ac_prog in
11445 # Accept absolute paths.
11446 [\\/]* | ?:[\\/]*)
11447 re_direlt='/[^/][^/]*/\.\./'
11448 # Canonicalize the pathname of ld
11449 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11451 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11452 done
11453 test -z "$LD" && LD="$ac_prog"
11454 ;;
11455 "")
11456 # If it fails, then pretend we aren't using GCC.
11457 ac_prog=ld
11458 ;;
11459 *)
11460 # If it is relative, then search for the first ld in PATH.
11461 with_gnu_ld=unknown
11462 ;;
11463 esac
11464 elif test "$with_gnu_ld" = yes; then
11465 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11466 $as_echo_n "checking for GNU ld... " >&6; }
11467 else
11468 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11469 $as_echo_n "checking for non-GNU ld... " >&6; }
11470 fi
11471 if test "${lt_cv_path_LD+set}" = set; then
11472 $as_echo_n "(cached) " >&6
11473 else
11474 if test -z "$LD"; then
11475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11476 for ac_dir in $PATH; do
11477 IFS="$lt_save_ifs"
11478 test -z "$ac_dir" && ac_dir=.
11479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11480 lt_cv_path_LD="$ac_dir/$ac_prog"
11481 # Check to see if the program is GNU ld. I'd rather use --version,
11482 # but apparently some variants of GNU ld only accept -v.
11483 # Break only if it was the GNU/non-GNU ld that we prefer.
11484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11485 *GNU* | *'with BFD'*)
11486 test "$with_gnu_ld" != no && break
11487 ;;
11488 *)
11489 test "$with_gnu_ld" != yes && break
11490 ;;
11491 esac
11492 fi
11493 done
11494 IFS="$lt_save_ifs"
11495 else
11496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11497 fi
11498 fi
11499
11500 LD="$lt_cv_path_LD"
11501 if test -n "$LD"; then
11502 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11503 $as_echo "$LD" >&6; }
11504 else
11505 { $as_echo "$as_me:$LINENO: result: no" >&5
11506 $as_echo "no" >&6; }
11507 fi
11508 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11509 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11510 { (exit 1); exit 1; }; }
11511 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11513 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11514 $as_echo_n "(cached) " >&6
11515 else
11516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11517 case `$LD -v 2>&1 </dev/null` in
11518 *GNU* | *'with BFD'*)
11519 lt_cv_prog_gnu_ld=yes
11520 ;;
11521 *)
11522 lt_cv_prog_gnu_ld=no
11523 ;;
11524 esac
11525 fi
11526 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11528 with_gnu_ld=$lt_cv_prog_gnu_ld
11529
11530
11531
11532 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11533 # archiving commands below assume that GNU ld is being used.
11534 if test "$with_gnu_ld" = yes; then
11535 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11536 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'
11537
11538 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11539 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11540
11541 # If archive_cmds runs LD, not CC, wlarc should be empty
11542 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11543 # investigate it a little bit more. (MM)
11544 wlarc='${wl}'
11545
11546 # ancient GNU ld didn't support --whole-archive et. al.
11547 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11548 grep 'no-whole-archive' > /dev/null; then
11549 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11550 else
11551 whole_archive_flag_spec_CXX=
11552 fi
11553 else
11554 with_gnu_ld=no
11555 wlarc=
11556
11557 # A generic and very simple default shared library creation
11558 # command for GNU C++ for the case where it uses the native
11559 # linker, instead of GNU ld. If possible, this setting should
11560 # overridden to take advantage of the native linker features on
11561 # the platform it is being used on.
11562 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11563 fi
11564
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11568 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11569
11570 else
11571 GXX=no
11572 with_gnu_ld=no
11573 wlarc=
11574 fi
11575
11576 # PORTME: fill in a description of your system's C++ link characteristics
11577 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11578 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11579 ld_shlibs_CXX=yes
11580 case $host_os in
11581 aix3*)
11582 # FIXME: insert proper C++ library support
11583 ld_shlibs_CXX=no
11584 ;;
11585 aix[4-9]*)
11586 if test "$host_cpu" = ia64; then
11587 # On IA64, the linker does run time linking by default, so we don't
11588 # have to do anything special.
11589 aix_use_runtimelinking=no
11590 exp_sym_flag='-Bexport'
11591 no_entry_flag=""
11592 else
11593 aix_use_runtimelinking=no
11594
11595 # Test if we are trying to use run time linking or normal
11596 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11597 # need to do runtime linking.
11598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11599 for ld_flag in $LDFLAGS; do
11600 case $ld_flag in
11601 *-brtl*)
11602 aix_use_runtimelinking=yes
11603 break
11604 ;;
11605 esac
11606 done
11607 ;;
11608 esac
11609
11610 exp_sym_flag='-bexport'
11611 no_entry_flag='-bnoentry'
11612 fi
11613
11614 # When large executables or shared objects are built, AIX ld can
11615 # have problems creating the table of contents. If linking a library
11616 # or program results in "error TOC overflow" add -mminimal-toc to
11617 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11618 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11619
11620 archive_cmds_CXX=''
11621 hardcode_direct_CXX=yes
11622 hardcode_libdir_separator_CXX=':'
11623 link_all_deplibs_CXX=yes
11624
11625 if test "$GXX" = yes; then
11626 case $host_os in aix4.[012]|aix4.[012].*)
11627 # We only want to do this on AIX 4.2 and lower, the check
11628 # below for broken collect2 doesn't work under 4.3+
11629 collect2name=`${CC} -print-prog-name=collect2`
11630 if test -f "$collect2name" && \
11631 strings "$collect2name" | grep resolve_lib_name >/dev/null
11632 then
11633 # We have reworked collect2
11634 :
11635 else
11636 # We have old collect2
11637 hardcode_direct_CXX=unsupported
11638 # It fails to find uninstalled libraries when the uninstalled
11639 # path is not listed in the libpath. Setting hardcode_minus_L
11640 # to unsupported forces relinking
11641 hardcode_minus_L_CXX=yes
11642 hardcode_libdir_flag_spec_CXX='-L$libdir'
11643 hardcode_libdir_separator_CXX=
11644 fi
11645 ;;
11646 esac
11647 shared_flag='-shared'
11648 if test "$aix_use_runtimelinking" = yes; then
11649 shared_flag="$shared_flag "'${wl}-G'
11650 fi
11651 else
11652 # not using gcc
11653 if test "$host_cpu" = ia64; then
11654 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11655 # chokes on -Wl,-G. The following line is correct:
11656 shared_flag='-G'
11657 else
11658 if test "$aix_use_runtimelinking" = yes; then
11659 shared_flag='${wl}-G'
11660 else
11661 shared_flag='${wl}-bM:SRE'
11662 fi
11663 fi
11664 fi
11665
11666 # It seems that -bexpall does not export symbols beginning with
11667 # underscore (_), so it is better to generate a list of symbols to export.
11668 always_export_symbols_CXX=yes
11669 if test "$aix_use_runtimelinking" = yes; then
11670 # Warning - without using the other runtime loading flags (-brtl),
11671 # -berok will link without error, but may produce a broken library.
11672 allow_undefined_flag_CXX='-berok'
11673 # Determine the default libpath from the value encoded in an empty executable.
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h. */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680
11681 int
11682 main ()
11683 {
11684
11685 ;
11686 return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext conftest$ac_exeext
11690 if { (ac_try="$ac_link"
11691 case "(($ac_try" in
11692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11694 esac
11695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11696 $as_echo "$ac_try_echo") >&5
11697 (eval "$ac_link") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_cxx_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest$ac_exeext && {
11707 test "$cross_compiling" = yes ||
11708 $as_test_x conftest$ac_exeext
11709 }; then
11710
11711 lt_aix_libpath_sed='
11712 /Import File Strings/,/^$/ {
11713 /^0/ {
11714 s/^0 *\(.*\)$/\1/
11715 p
11716 }
11717 }'
11718 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11719 # Check for a 64-bit object if we didn't find anything.
11720 if test -z "$aix_libpath"; then
11721 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11722 fi
11723 else
11724 $as_echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727
11728 fi
11729
11730 rm -rf conftest.dSYM
11731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11732 conftest$ac_exeext conftest.$ac_ext
11733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11734
11735 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11736
11737 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"
11738 else
11739 if test "$host_cpu" = ia64; then
11740 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11741 allow_undefined_flag_CXX="-z nodefs"
11742 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"
11743 else
11744 # Determine the default libpath from the value encoded in an empty executable.
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751
11752 int
11753 main ()
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765 esac
11766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11767 $as_echo "$ac_try_echo") >&5
11768 (eval "$ac_link") 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } && {
11775 test -z "$ac_cxx_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest$ac_exeext && {
11778 test "$cross_compiling" = yes ||
11779 $as_test_x conftest$ac_exeext
11780 }; then
11781
11782 lt_aix_libpath_sed='
11783 /Import File Strings/,/^$/ {
11784 /^0/ {
11785 s/^0 *\(.*\)$/\1/
11786 p
11787 }
11788 }'
11789 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11790 # Check for a 64-bit object if we didn't find anything.
11791 if test -z "$aix_libpath"; then
11792 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11793 fi
11794 else
11795 $as_echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798
11799 fi
11800
11801 rm -rf conftest.dSYM
11802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11803 conftest$ac_exeext conftest.$ac_ext
11804 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11805
11806 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11807 # Warning - without using the other run time loading flags,
11808 # -berok will link without error, but may produce a broken library.
11809 no_undefined_flag_CXX=' ${wl}-bernotok'
11810 allow_undefined_flag_CXX=' ${wl}-berok'
11811 # Exported symbols can be pulled into shared objects from archives
11812 whole_archive_flag_spec_CXX='$convenience'
11813 archive_cmds_need_lc_CXX=yes
11814 # This is similar to how AIX traditionally builds its shared libraries.
11815 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'
11816 fi
11817 fi
11818 ;;
11819
11820 beos*)
11821 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11822 allow_undefined_flag_CXX=unsupported
11823 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11824 # support --undefined. This deserves some investigation. FIXME
11825 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11826 else
11827 ld_shlibs_CXX=no
11828 fi
11829 ;;
11830
11831 chorus*)
11832 case $cc_basename in
11833 *)
11834 # FIXME: insert proper C++ library support
11835 ld_shlibs_CXX=no
11836 ;;
11837 esac
11838 ;;
11839
11840 cygwin* | mingw* | pw32*)
11841 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11842 # as there is no search path for DLLs.
11843 hardcode_libdir_flag_spec_CXX='-L$libdir'
11844 allow_undefined_flag_CXX=unsupported
11845 always_export_symbols_CXX=no
11846 enable_shared_with_static_runtimes_CXX=yes
11847
11848 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11849 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'
11850 # If the export-symbols file already is a .def file (1st line
11851 # is EXPORTS), use it as is; otherwise, prepend...
11852 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11853 cp $export_symbols $output_objdir/$soname.def;
11854 else
11855 echo EXPORTS > $output_objdir/$soname.def;
11856 cat $export_symbols >> $output_objdir/$soname.def;
11857 fi~
11858 $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'
11859 else
11860 ld_shlibs_CXX=no
11861 fi
11862 ;;
11863 darwin* | rhapsody*)
11864 archive_cmds_need_lc_CXX=no
11865 hardcode_direct_CXX=no
11866 hardcode_automatic_CXX=yes
11867 hardcode_shlibpath_var_CXX=unsupported
11868 whole_archive_flag_spec_CXX=''
11869 link_all_deplibs_CXX=yes
11870 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11871 if test "$GXX" = yes ; then
11872 output_verbose_link_cmd='echo'
11873 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}"
11874 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11875 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}"
11876 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}"
11877 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11878 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}"
11879 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}"
11880 fi
11881 else
11882 case $cc_basename in
11883 xlc*)
11884 output_verbose_link_cmd='echo'
11885 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'
11886 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11887 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11888 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}'
11889 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}'
11890 ;;
11891 *)
11892 ld_shlibs_CXX=no
11893 ;;
11894 esac
11895 fi
11896 ;;
11897
11898 dgux*)
11899 case $cc_basename in
11900 ec++*)
11901 # FIXME: insert proper C++ library support
11902 ld_shlibs_CXX=no
11903 ;;
11904 ghcx*)
11905 # Green Hills C++ Compiler
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 ;;
11909 *)
11910 # FIXME: insert proper C++ library support
11911 ld_shlibs_CXX=no
11912 ;;
11913 esac
11914 ;;
11915 freebsd[12]*)
11916 # C++ shared libraries reported to be fairly broken before switch to ELF
11917 ld_shlibs_CXX=no
11918 ;;
11919 freebsd-elf*)
11920 archive_cmds_need_lc_CXX=no
11921 ;;
11922 freebsd* | dragonfly*)
11923 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11924 # conventions
11925 ld_shlibs_CXX=yes
11926 ;;
11927 gnu*)
11928 ;;
11929 hpux9*)
11930 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11931 hardcode_libdir_separator_CXX=:
11932 export_dynamic_flag_spec_CXX='${wl}-E'
11933 hardcode_direct_CXX=yes
11934 hardcode_minus_L_CXX=yes # Not in the search PATH,
11935 # but as the default
11936 # location of the library.
11937
11938 case $cc_basename in
11939 CC*)
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 ;;
11943 aCC*)
11944 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'
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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'
11954 ;;
11955 *)
11956 if test "$GXX" = yes; then
11957 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'
11958 else
11959 # FIXME: insert proper C++ library support
11960 ld_shlibs_CXX=no
11961 fi
11962 ;;
11963 esac
11964 ;;
11965 hpux10*|hpux11*)
11966 if test $with_gnu_ld = no; then
11967 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11968 hardcode_libdir_separator_CXX=:
11969
11970 case $host_cpu in
11971 hppa*64*|ia64*) ;;
11972 *)
11973 export_dynamic_flag_spec_CXX='${wl}-E'
11974 ;;
11975 esac
11976 fi
11977 case $host_cpu in
11978 hppa*64*|ia64*)
11979 hardcode_direct_CXX=no
11980 hardcode_shlibpath_var_CXX=no
11981 ;;
11982 *)
11983 hardcode_direct_CXX=yes
11984 hardcode_minus_L_CXX=yes # Not in the search PATH,
11985 # but as the default
11986 # location of the library.
11987 ;;
11988 esac
11989
11990 case $cc_basename in
11991 CC*)
11992 # FIXME: insert proper C++ library support
11993 ld_shlibs_CXX=no
11994 ;;
11995 aCC*)
11996 case $host_cpu in
11997 hppa*64*)
11998 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11999 ;;
12000 ia64*)
12001 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12002 ;;
12003 *)
12004 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12005 ;;
12006 esac
12007 # Commands to make compiler produce verbose output that lists
12008 # what "hidden" libraries, object files and flags are used when
12009 # linking a shared library.
12010 #
12011 # There doesn't appear to be a way to prevent this compiler from
12012 # explicitly linking system object files so we need to strip them
12013 # from the output so that they don't get included in the library
12014 # dependencies.
12015 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'
12016 ;;
12017 *)
12018 if test "$GXX" = yes; then
12019 if test $with_gnu_ld = no; then
12020 case $host_cpu in
12021 hppa*64*)
12022 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12023 ;;
12024 ia64*)
12025 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12026 ;;
12027 *)
12028 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'
12029 ;;
12030 esac
12031 fi
12032 else
12033 # FIXME: insert proper C++ library support
12034 ld_shlibs_CXX=no
12035 fi
12036 ;;
12037 esac
12038 ;;
12039 interix[3-9]*)
12040 hardcode_direct_CXX=no
12041 hardcode_shlibpath_var_CXX=no
12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043 export_dynamic_flag_spec_CXX='${wl}-E'
12044 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12045 # Instead, shared libraries are loaded at an image base (0x10000000 by
12046 # default) and relocated if they conflict, which is a slow very memory
12047 # consuming and fragmenting process. To avoid this, we pick a random,
12048 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12049 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12050 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'
12051 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'
12052 ;;
12053 irix5* | irix6*)
12054 case $cc_basename in
12055 CC*)
12056 # SGI C++
12057 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'
12058
12059 # Archives containing C++ object files must be created using
12060 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12061 # necessary to make sure instantiated templates are included
12062 # in the archive.
12063 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12064 ;;
12065 *)
12066 if test "$GXX" = yes; then
12067 if test "$with_gnu_ld" = no; then
12068 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'
12069 else
12070 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'
12071 fi
12072 fi
12073 link_all_deplibs_CXX=yes
12074 ;;
12075 esac
12076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12077 hardcode_libdir_separator_CXX=:
12078 ;;
12079 linux* | k*bsd*-gnu)
12080 case $cc_basename in
12081 KCC*)
12082 # Kuck and Associates, Inc. (KAI) C++ Compiler
12083
12084 # KCC will only create a shared library if the output file
12085 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12086 # to its proper name (with version) after linking.
12087 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'
12088 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'
12089 # Commands to make compiler produce verbose output that lists
12090 # what "hidden" libraries, object files and flags are used when
12091 # linking a shared library.
12092 #
12093 # There doesn't appear to be a way to prevent this compiler from
12094 # explicitly linking system object files so we need to strip them
12095 # from the output so that they don't get included in the library
12096 # dependencies.
12097 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'
12098
12099 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12101
12102 # Archives containing C++ object files must be created using
12103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12104 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12105 ;;
12106 icpc*)
12107 # Intel C++
12108 with_gnu_ld=yes
12109 # version 8.0 and above of icpc choke on multiply defined symbols
12110 # if we add $predep_objects and $postdep_objects, however 7.1 and
12111 # earlier do not add the objects themselves.
12112 case `$CC -V 2>&1` in
12113 *"Version 7."*)
12114 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12115 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'
12116 ;;
12117 *) # Version 8.0 or newer
12118 tmp_idyn=
12119 case $host_cpu in
12120 ia64*) tmp_idyn=' -i_dynamic';;
12121 esac
12122 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12123 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'
12124 ;;
12125 esac
12126 archive_cmds_need_lc_CXX=no
12127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12129 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12130 ;;
12131 pgCC* | pgcpp*)
12132 # Portland Group C++ compiler
12133 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12134 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'
12135
12136 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12137 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12138 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'
12139 ;;
12140 cxx*)
12141 # Compaq C++
12142 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12143 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'
12144
12145 runpath_var=LD_RUN_PATH
12146 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12147 hardcode_libdir_separator_CXX=:
12148
12149 # Commands to make compiler produce verbose output that lists
12150 # what "hidden" libraries, object files and flags are used when
12151 # linking a shared library.
12152 #
12153 # There doesn't appear to be a way to prevent this compiler from
12154 # explicitly linking system object files so we need to strip them
12155 # from the output so that they don't get included in the library
12156 # dependencies.
12157 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'
12158 ;;
12159 *)
12160 case `$CC -V 2>&1 | sed 5q` in
12161 *Sun\ C*)
12162 # Sun C++ 5.9
12163 no_undefined_flag_CXX=' -zdefs'
12164 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12165 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'
12166 hardcode_libdir_flag_spec_CXX='-R$libdir'
12167 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'
12168
12169 # Not sure whether something based on
12170 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12171 # would be better.
12172 output_verbose_link_cmd='echo'
12173
12174 # Archives containing C++ object files must be created using
12175 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12176 # necessary to make sure instantiated templates are included
12177 # in the archive.
12178 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12179 ;;
12180 esac
12181 ;;
12182 esac
12183 ;;
12184 lynxos*)
12185 # FIXME: insert proper C++ library support
12186 ld_shlibs_CXX=no
12187 ;;
12188 m88k*)
12189 # FIXME: insert proper C++ library support
12190 ld_shlibs_CXX=no
12191 ;;
12192 mvs*)
12193 case $cc_basename in
12194 cxx*)
12195 # FIXME: insert proper C++ library support
12196 ld_shlibs_CXX=no
12197 ;;
12198 *)
12199 # FIXME: insert proper C++ library support
12200 ld_shlibs_CXX=no
12201 ;;
12202 esac
12203 ;;
12204 netbsd*)
12205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12206 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12207 wlarc=
12208 hardcode_libdir_flag_spec_CXX='-R$libdir'
12209 hardcode_direct_CXX=yes
12210 hardcode_shlibpath_var_CXX=no
12211 fi
12212 # Workaround some broken pre-1.5 toolchains
12213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12214 ;;
12215 openbsd2*)
12216 # C++ shared libraries are fairly broken
12217 ld_shlibs_CXX=no
12218 ;;
12219 openbsd*)
12220 if test -f /usr/libexec/ld.so; then
12221 hardcode_direct_CXX=yes
12222 hardcode_shlibpath_var_CXX=no
12223 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12225 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12226 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12227 export_dynamic_flag_spec_CXX='${wl}-E'
12228 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12229 fi
12230 output_verbose_link_cmd='echo'
12231 else
12232 ld_shlibs_CXX=no
12233 fi
12234 ;;
12235 osf3*)
12236 case $cc_basename in
12237 KCC*)
12238 # Kuck and Associates, Inc. (KAI) C++ Compiler
12239
12240 # KCC will only create a shared library if the output file
12241 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12242 # to its proper name (with version) after linking.
12243 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'
12244
12245 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12246 hardcode_libdir_separator_CXX=:
12247
12248 # Archives containing C++ object files must be created using
12249 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12250 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12251
12252 ;;
12253 RCC*)
12254 # Rational C++ 2.4.1
12255 # FIXME: insert proper C++ library support
12256 ld_shlibs_CXX=no
12257 ;;
12258 cxx*)
12259 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12260 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'
12261
12262 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12263 hardcode_libdir_separator_CXX=:
12264
12265 # Commands to make compiler produce verbose output that lists
12266 # what "hidden" libraries, object files and flags are used when
12267 # linking a shared library.
12268 #
12269 # There doesn't appear to be a way to prevent this compiler from
12270 # explicitly linking system object files so we need to strip them
12271 # from the output so that they don't get included in the library
12272 # dependencies.
12273 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'
12274 ;;
12275 *)
12276 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12277 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12278 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'
12279
12280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12281 hardcode_libdir_separator_CXX=:
12282
12283 # Commands to make compiler produce verbose output that lists
12284 # what "hidden" libraries, object files and flags are used when
12285 # linking a shared library.
12286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12287
12288 else
12289 # FIXME: insert proper C++ library support
12290 ld_shlibs_CXX=no
12291 fi
12292 ;;
12293 esac
12294 ;;
12295 osf4* | osf5*)
12296 case $cc_basename in
12297 KCC*)
12298 # Kuck and Associates, Inc. (KAI) C++ Compiler
12299
12300 # KCC will only create a shared library if the output file
12301 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12302 # to its proper name (with version) after linking.
12303 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'
12304
12305 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12306 hardcode_libdir_separator_CXX=:
12307
12308 # Archives containing C++ object files must be created using
12309 # the KAI C++ compiler.
12310 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12311 ;;
12312 RCC*)
12313 # Rational C++ 2.4.1
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12316 ;;
12317 cxx*)
12318 allow_undefined_flag_CXX=' -expect_unresolved \*'
12319 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'
12320 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12321 echo "-hidden">> $lib.exp~
12322 $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~
12323 $rm $lib.exp'
12324
12325 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12326 hardcode_libdir_separator_CXX=:
12327
12328 # Commands to make compiler produce verbose output that lists
12329 # what "hidden" libraries, object files and flags are used when
12330 # linking a shared library.
12331 #
12332 # There doesn't appear to be a way to prevent this compiler from
12333 # explicitly linking system object files so we need to strip them
12334 # from the output so that they don't get included in the library
12335 # dependencies.
12336 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'
12337 ;;
12338 *)
12339 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12340 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12341 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'
12342
12343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12344 hardcode_libdir_separator_CXX=:
12345
12346 # Commands to make compiler produce verbose output that lists
12347 # what "hidden" libraries, object files and flags are used when
12348 # linking a shared library.
12349 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12350
12351 else
12352 # FIXME: insert proper C++ library support
12353 ld_shlibs_CXX=no
12354 fi
12355 ;;
12356 esac
12357 ;;
12358 psos*)
12359 # FIXME: insert proper C++ library support
12360 ld_shlibs_CXX=no
12361 ;;
12362 sunos4*)
12363 case $cc_basename in
12364 CC*)
12365 # Sun C++ 4.x
12366 # FIXME: insert proper C++ library support
12367 ld_shlibs_CXX=no
12368 ;;
12369 lcc*)
12370 # Lucid
12371 # FIXME: insert proper C++ library support
12372 ld_shlibs_CXX=no
12373 ;;
12374 *)
12375 # FIXME: insert proper C++ library support
12376 ld_shlibs_CXX=no
12377 ;;
12378 esac
12379 ;;
12380 solaris*)
12381 case $cc_basename in
12382 CC*)
12383 # Sun C++ 4.2, 5.x and Centerline C++
12384 archive_cmds_need_lc_CXX=yes
12385 no_undefined_flag_CXX=' -zdefs'
12386 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12387 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12388 $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'
12389
12390 hardcode_libdir_flag_spec_CXX='-R$libdir'
12391 hardcode_shlibpath_var_CXX=no
12392 case $host_os in
12393 solaris2.[0-5] | solaris2.[0-5].*) ;;
12394 *)
12395 # The compiler driver will combine and reorder linker options,
12396 # but understands `-z linker_flag'.
12397 # Supported since Solaris 2.6 (maybe 2.5.1?)
12398 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12399 ;;
12400 esac
12401 link_all_deplibs_CXX=yes
12402
12403 output_verbose_link_cmd='echo'
12404
12405 # Archives containing C++ object files must be created using
12406 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12407 # necessary to make sure instantiated templates are included
12408 # in the archive.
12409 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12410 ;;
12411 gcx*)
12412 # Green Hills C++ Compiler
12413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12414
12415 # The C++ compiler must be used to create the archive.
12416 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12417 ;;
12418 *)
12419 # GNU C++ compiler with Solaris linker
12420 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12421 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12422 if $CC --version | grep -v '^2\.7' > /dev/null; then
12423 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12424 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12425 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12426
12427 # Commands to make compiler produce verbose output that lists
12428 # what "hidden" libraries, object files and flags are used when
12429 # linking a shared library.
12430 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12431 else
12432 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12433 # platform.
12434 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12435 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12436 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12437
12438 # Commands to make compiler produce verbose output that lists
12439 # what "hidden" libraries, object files and flags are used when
12440 # linking a shared library.
12441 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12442 fi
12443
12444 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12445 case $host_os in
12446 solaris2.[0-5] | solaris2.[0-5].*) ;;
12447 *)
12448 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12449 ;;
12450 esac
12451 fi
12452 ;;
12453 esac
12454 ;;
12455 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12456 no_undefined_flag_CXX='${wl}-z,text'
12457 archive_cmds_need_lc_CXX=no
12458 hardcode_shlibpath_var_CXX=no
12459 runpath_var='LD_RUN_PATH'
12460
12461 case $cc_basename in
12462 CC*)
12463 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12464 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12465 ;;
12466 *)
12467 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12468 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12469 ;;
12470 esac
12471 ;;
12472 sysv5* | sco3.2v5* | sco5v6*)
12473 # Note: We can NOT use -z defs as we might desire, because we do not
12474 # link with -lc, and that would cause any symbols used from libc to
12475 # always be unresolved, which means just about no library would
12476 # ever link correctly. If we're not using GNU ld we use -z text
12477 # though, which does catch some bad symbols but isn't as heavy-handed
12478 # as -z defs.
12479 # For security reasons, it is highly recommended that you always
12480 # use absolute paths for naming shared libraries, and exclude the
12481 # DT_RUNPATH tag from executables and libraries. But doing so
12482 # requires that you compile everything twice, which is a pain.
12483 # So that behaviour is only enabled if SCOABSPATH is set to a
12484 # non-empty value in the environment. Most likely only useful for
12485 # creating official distributions of packages.
12486 # This is a hack until libtool officially supports absolute path
12487 # names for shared libraries.
12488 no_undefined_flag_CXX='${wl}-z,text'
12489 allow_undefined_flag_CXX='${wl}-z,nodefs'
12490 archive_cmds_need_lc_CXX=no
12491 hardcode_shlibpath_var_CXX=no
12492 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12493 hardcode_libdir_separator_CXX=':'
12494 link_all_deplibs_CXX=yes
12495 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12496 runpath_var='LD_RUN_PATH'
12497
12498 case $cc_basename in
12499 CC*)
12500 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12501 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12502 ;;
12503 *)
12504 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12505 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12506 ;;
12507 esac
12508 ;;
12509 tandem*)
12510 case $cc_basename in
12511 NCC*)
12512 # NonStop-UX NCC 3.20
12513 # FIXME: insert proper C++ library support
12514 ld_shlibs_CXX=no
12515 ;;
12516 *)
12517 # FIXME: insert proper C++ library support
12518 ld_shlibs_CXX=no
12519 ;;
12520 esac
12521 ;;
12522 vxworks*)
12523 # FIXME: insert proper C++ library support
12524 ld_shlibs_CXX=no
12525 ;;
12526 *)
12527 # FIXME: insert proper C++ library support
12528 ld_shlibs_CXX=no
12529 ;;
12530 esac
12531 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12532 $as_echo "$ld_shlibs_CXX" >&6; }
12533 test "$ld_shlibs_CXX" = no && can_build_shared=no
12534
12535 GCC_CXX="$GXX"
12536 LD_CXX="$LD"
12537
12538 cat > conftest.$ac_ext <<EOF
12539 class Foo
12540 {
12541 public:
12542 Foo (void) { a = 0; }
12543 private:
12544 int a;
12545 };
12546 EOF
12547
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549 (eval $ac_compile) 2>&5
12550 ac_status=$?
12551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; then
12553 # Parse the compiler output and extract the necessary
12554 # objects, libraries and library flags.
12555
12556 # Sentinel used to keep track of whether or not we are before
12557 # the conftest object file.
12558 pre_test_object_deps_done=no
12559
12560 # The `*' in the case matches for architectures that use `case' in
12561 # $output_verbose_cmd can trigger glob expansion during the loop
12562 # eval without this substitution.
12563 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12564
12565 for p in `eval $output_verbose_link_cmd`; do
12566 case $p in
12567
12568 -L* | -R* | -l*)
12569 # Some compilers place space between "-{L,R}" and the path.
12570 # Remove the space.
12571 if test $p = "-L" \
12572 || test $p = "-R"; then
12573 prev=$p
12574 continue
12575 else
12576 prev=
12577 fi
12578
12579 if test "$pre_test_object_deps_done" = no; then
12580 case $p in
12581 -L* | -R*)
12582 # Internal compiler library paths should come after those
12583 # provided the user. The postdeps already come after the
12584 # user supplied libs so there is no need to process them.
12585 if test -z "$compiler_lib_search_path_CXX"; then
12586 compiler_lib_search_path_CXX="${prev}${p}"
12587 else
12588 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12589 fi
12590 ;;
12591 # The "-l" case would never come before the object being
12592 # linked, so don't bother handling this case.
12593 esac
12594 else
12595 if test -z "$postdeps_CXX"; then
12596 postdeps_CXX="${prev}${p}"
12597 else
12598 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12599 fi
12600 fi
12601 ;;
12602
12603 *.$objext)
12604 # This assumes that the test object file only shows up
12605 # once in the compiler output.
12606 if test "$p" = "conftest.$objext"; then
12607 pre_test_object_deps_done=yes
12608 continue
12609 fi
12610
12611 if test "$pre_test_object_deps_done" = no; then
12612 if test -z "$predep_objects_CXX"; then
12613 predep_objects_CXX="$p"
12614 else
12615 predep_objects_CXX="$predep_objects_CXX $p"
12616 fi
12617 else
12618 if test -z "$postdep_objects_CXX"; then
12619 postdep_objects_CXX="$p"
12620 else
12621 postdep_objects_CXX="$postdep_objects_CXX $p"
12622 fi
12623 fi
12624 ;;
12625
12626 *) ;; # Ignore the rest.
12627
12628 esac
12629 done
12630
12631 # Clean up.
12632 rm -f a.out a.exe
12633 else
12634 echo "libtool.m4: error: problem compiling CXX test program"
12635 fi
12636
12637 $rm -f confest.$objext
12638
12639 compiler_lib_search_dirs_CXX=
12640 if test -n "$compiler_lib_search_path_CXX"; then
12641 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12642 fi
12643
12644 # PORTME: override above test on systems where it is broken
12645 case $host_os in
12646 interix[3-9]*)
12647 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12648 # hack all around it, let's just trust "g++" to DTRT.
12649 predep_objects_CXX=
12650 postdep_objects_CXX=
12651 postdeps_CXX=
12652 ;;
12653
12654 linux*)
12655 case `$CC -V 2>&1 | sed 5q` in
12656 *Sun\ C*)
12657 # Sun C++ 5.9
12658 #
12659 # The more standards-conforming stlport4 library is
12660 # incompatible with the Cstd library. Avoid specifying
12661 # it if it's in CXXFLAGS. Ignore libCrun as
12662 # -library=stlport4 depends on it.
12663 case " $CXX $CXXFLAGS " in
12664 *" -library=stlport4 "*)
12665 solaris_use_stlport4=yes
12666 ;;
12667 esac
12668 if test "$solaris_use_stlport4" != yes; then
12669 postdeps_CXX='-library=Cstd -library=Crun'
12670 fi
12671 ;;
12672 esac
12673 ;;
12674
12675 solaris*)
12676 case $cc_basename in
12677 CC*)
12678 # The more standards-conforming stlport4 library is
12679 # incompatible with the Cstd library. Avoid specifying
12680 # it if it's in CXXFLAGS. Ignore libCrun as
12681 # -library=stlport4 depends on it.
12682 case " $CXX $CXXFLAGS " in
12683 *" -library=stlport4 "*)
12684 solaris_use_stlport4=yes
12685 ;;
12686 esac
12687
12688 # Adding this requires a known-good setup of shared libraries for
12689 # Sun compiler versions before 5.6, else PIC objects from an old
12690 # archive will be linked into the output, leading to subtle bugs.
12691 if test "$solaris_use_stlport4" != yes; then
12692 postdeps_CXX='-library=Cstd -library=Crun'
12693 fi
12694 ;;
12695 esac
12696 ;;
12697 esac
12698
12699 case " $postdeps_CXX " in
12700 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12701 esac
12702
12703 lt_prog_compiler_wl_CXX=
12704 lt_prog_compiler_pic_CXX=
12705 lt_prog_compiler_static_CXX=
12706
12707 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12708 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12709
12710 # C++ specific cases for pic, static, wl, etc.
12711 if test "$GXX" = yes; then
12712 lt_prog_compiler_wl_CXX='-Wl,'
12713 lt_prog_compiler_static_CXX='-static'
12714
12715 case $host_os in
12716 aix*)
12717 # All AIX code is PIC.
12718 if test "$host_cpu" = ia64; then
12719 # AIX 5 now supports IA64 processor
12720 lt_prog_compiler_static_CXX='-Bstatic'
12721 fi
12722 ;;
12723 amigaos*)
12724 # FIXME: we need at least 68020 code to build shared libraries, but
12725 # adding the `-m68020' flag to GCC prevents building anything better,
12726 # like `-m68040'.
12727 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12728 ;;
12729 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12730 # PIC is the default for these OSes.
12731 ;;
12732 mingw* | cygwin* | os2* | pw32*)
12733 # This hack is so that the source file can tell whether it is being
12734 # built for inclusion in a dll (and should export symbols for example).
12735 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12736 # (--disable-auto-import) libraries
12737 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12738 ;;
12739 darwin* | rhapsody*)
12740 # PIC is the default on this platform
12741 # Common symbols not allowed in MH_DYLIB files
12742 lt_prog_compiler_pic_CXX='-fno-common'
12743 ;;
12744 *djgpp*)
12745 # DJGPP does not support shared libraries at all
12746 lt_prog_compiler_pic_CXX=
12747 ;;
12748 interix[3-9]*)
12749 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12750 # Instead, we relocate shared libraries at runtime.
12751 ;;
12752 sysv4*MP*)
12753 if test -d /usr/nec; then
12754 lt_prog_compiler_pic_CXX=-Kconform_pic
12755 fi
12756 ;;
12757 hpux*)
12758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12759 # not for PA HP-UX.
12760 case $host_cpu in
12761 hppa*64*|ia64*)
12762 ;;
12763 *)
12764 lt_prog_compiler_pic_CXX='-fPIC'
12765 ;;
12766 esac
12767 ;;
12768 *)
12769 lt_prog_compiler_pic_CXX='-fPIC'
12770 ;;
12771 esac
12772 else
12773 case $host_os in
12774 aix[4-9]*)
12775 # All AIX code is PIC.
12776 if test "$host_cpu" = ia64; then
12777 # AIX 5 now supports IA64 processor
12778 lt_prog_compiler_static_CXX='-Bstatic'
12779 else
12780 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12781 fi
12782 ;;
12783 chorus*)
12784 case $cc_basename in
12785 cxch68*)
12786 # Green Hills C++ Compiler
12787 # _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"
12788 ;;
12789 esac
12790 ;;
12791 darwin*)
12792 # PIC is the default on this platform
12793 # Common symbols not allowed in MH_DYLIB files
12794 case $cc_basename in
12795 xlc*)
12796 lt_prog_compiler_pic_CXX='-qnocommon'
12797 lt_prog_compiler_wl_CXX='-Wl,'
12798 ;;
12799 esac
12800 ;;
12801 dgux*)
12802 case $cc_basename in
12803 ec++*)
12804 lt_prog_compiler_pic_CXX='-KPIC'
12805 ;;
12806 ghcx*)
12807 # Green Hills C++ Compiler
12808 lt_prog_compiler_pic_CXX='-pic'
12809 ;;
12810 *)
12811 ;;
12812 esac
12813 ;;
12814 freebsd* | dragonfly*)
12815 # FreeBSD uses GNU C++
12816 ;;
12817 hpux9* | hpux10* | hpux11*)
12818 case $cc_basename in
12819 CC*)
12820 lt_prog_compiler_wl_CXX='-Wl,'
12821 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12822 if test "$host_cpu" != ia64; then
12823 lt_prog_compiler_pic_CXX='+Z'
12824 fi
12825 ;;
12826 aCC*)
12827 lt_prog_compiler_wl_CXX='-Wl,'
12828 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12829 case $host_cpu in
12830 hppa*64*|ia64*)
12831 # +Z the default
12832 ;;
12833 *)
12834 lt_prog_compiler_pic_CXX='+Z'
12835 ;;
12836 esac
12837 ;;
12838 *)
12839 ;;
12840 esac
12841 ;;
12842 interix*)
12843 # This is c89, which is MS Visual C++ (no shared libs)
12844 # Anyone wants to do a port?
12845 ;;
12846 irix5* | irix6* | nonstopux*)
12847 case $cc_basename in
12848 CC*)
12849 lt_prog_compiler_wl_CXX='-Wl,'
12850 lt_prog_compiler_static_CXX='-non_shared'
12851 # CC pic flag -KPIC is the default.
12852 ;;
12853 *)
12854 ;;
12855 esac
12856 ;;
12857 linux* | k*bsd*-gnu)
12858 case $cc_basename in
12859 KCC*)
12860 # KAI C++ Compiler
12861 lt_prog_compiler_wl_CXX='--backend -Wl,'
12862 lt_prog_compiler_pic_CXX='-fPIC'
12863 ;;
12864 icpc* | ecpc*)
12865 # Intel C++
12866 lt_prog_compiler_wl_CXX='-Wl,'
12867 lt_prog_compiler_pic_CXX='-KPIC'
12868 lt_prog_compiler_static_CXX='-static'
12869 ;;
12870 pgCC* | pgcpp*)
12871 # Portland Group C++ compiler.
12872 lt_prog_compiler_wl_CXX='-Wl,'
12873 lt_prog_compiler_pic_CXX='-fpic'
12874 lt_prog_compiler_static_CXX='-Bstatic'
12875 ;;
12876 cxx*)
12877 # Compaq C++
12878 # Make sure the PIC flag is empty. It appears that all Alpha
12879 # Linux and Compaq Tru64 Unix objects are PIC.
12880 lt_prog_compiler_pic_CXX=
12881 lt_prog_compiler_static_CXX='-non_shared'
12882 ;;
12883 *)
12884 case `$CC -V 2>&1 | sed 5q` in
12885 *Sun\ C*)
12886 # Sun C++ 5.9
12887 lt_prog_compiler_pic_CXX='-KPIC'
12888 lt_prog_compiler_static_CXX='-Bstatic'
12889 lt_prog_compiler_wl_CXX='-Qoption ld '
12890 ;;
12891 esac
12892 ;;
12893 esac
12894 ;;
12895 lynxos*)
12896 ;;
12897 m88k*)
12898 ;;
12899 mvs*)
12900 case $cc_basename in
12901 cxx*)
12902 lt_prog_compiler_pic_CXX='-W c,exportall'
12903 ;;
12904 *)
12905 ;;
12906 esac
12907 ;;
12908 netbsd*)
12909 ;;
12910 osf3* | osf4* | osf5*)
12911 case $cc_basename in
12912 KCC*)
12913 lt_prog_compiler_wl_CXX='--backend -Wl,'
12914 ;;
12915 RCC*)
12916 # Rational C++ 2.4.1
12917 lt_prog_compiler_pic_CXX='-pic'
12918 ;;
12919 cxx*)
12920 # Digital/Compaq C++
12921 lt_prog_compiler_wl_CXX='-Wl,'
12922 # Make sure the PIC flag is empty. It appears that all Alpha
12923 # Linux and Compaq Tru64 Unix objects are PIC.
12924 lt_prog_compiler_pic_CXX=
12925 lt_prog_compiler_static_CXX='-non_shared'
12926 ;;
12927 *)
12928 ;;
12929 esac
12930 ;;
12931 psos*)
12932 ;;
12933 solaris*)
12934 case $cc_basename in
12935 CC*)
12936 # Sun C++ 4.2, 5.x and Centerline C++
12937 lt_prog_compiler_pic_CXX='-KPIC'
12938 lt_prog_compiler_static_CXX='-Bstatic'
12939 lt_prog_compiler_wl_CXX='-Qoption ld '
12940 ;;
12941 gcx*)
12942 # Green Hills C++ Compiler
12943 lt_prog_compiler_pic_CXX='-PIC'
12944 ;;
12945 *)
12946 ;;
12947 esac
12948 ;;
12949 sunos4*)
12950 case $cc_basename in
12951 CC*)
12952 # Sun C++ 4.x
12953 lt_prog_compiler_pic_CXX='-pic'
12954 lt_prog_compiler_static_CXX='-Bstatic'
12955 ;;
12956 lcc*)
12957 # Lucid
12958 lt_prog_compiler_pic_CXX='-pic'
12959 ;;
12960 *)
12961 ;;
12962 esac
12963 ;;
12964 tandem*)
12965 case $cc_basename in
12966 NCC*)
12967 # NonStop-UX NCC 3.20
12968 lt_prog_compiler_pic_CXX='-KPIC'
12969 ;;
12970 *)
12971 ;;
12972 esac
12973 ;;
12974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12975 case $cc_basename in
12976 CC*)
12977 lt_prog_compiler_wl_CXX='-Wl,'
12978 lt_prog_compiler_pic_CXX='-KPIC'
12979 lt_prog_compiler_static_CXX='-Bstatic'
12980 ;;
12981 esac
12982 ;;
12983 vxworks*)
12984 ;;
12985 *)
12986 lt_prog_compiler_can_build_shared_CXX=no
12987 ;;
12988 esac
12989 fi
12990
12991 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12992 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12993
12994 #
12995 # Check to make sure the PIC flag actually works.
12996 #
12997 if test -n "$lt_prog_compiler_pic_CXX"; then
12998
12999 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13000 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13001 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13002 $as_echo_n "(cached) " >&6
13003 else
13004 lt_cv_prog_compiler_pic_works_CXX=no
13005 ac_outfile=conftest.$ac_objext
13006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13007 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13008 # Insert the option either (1) after the last *FLAGS variable, or
13009 # (2) before a word containing "conftest.", or (3) at the end.
13010 # Note that $ac_compile itself does not contain backslashes and begins
13011 # with a dollar sign (not a hyphen), so the echo should work correctly.
13012 # The option is referenced via a variable to avoid confusing sed.
13013 lt_compile=`echo "$ac_compile" | $SED \
13014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13016 -e 's:$: $lt_compiler_flag:'`
13017 (eval echo "\"\$as_me:13017: $lt_compile\"" >&5)
13018 (eval "$lt_compile" 2>conftest.err)
13019 ac_status=$?
13020 cat conftest.err >&5
13021 echo "$as_me:13021: \$? = $ac_status" >&5
13022 if (exit $ac_status) && test -s "$ac_outfile"; then
13023 # The compiler can only warn and ignore the option if not recognized
13024 # So say no if there are warnings other than the usual output.
13025 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13027 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13028 lt_cv_prog_compiler_pic_works_CXX=yes
13029 fi
13030 fi
13031 $rm conftest*
13032
13033 fi
13034 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13035 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13036
13037 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13038 case $lt_prog_compiler_pic_CXX in
13039 "" | " "*) ;;
13040 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13041 esac
13042 else
13043 lt_prog_compiler_pic_CXX=
13044 lt_prog_compiler_can_build_shared_CXX=no
13045 fi
13046
13047 fi
13048 case $host_os in
13049 # For platforms which do not support PIC, -DPIC is meaningless:
13050 *djgpp*)
13051 lt_prog_compiler_pic_CXX=
13052 ;;
13053 *)
13054 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13055 ;;
13056 esac
13057
13058 #
13059 # Check to make sure the static flag actually works.
13060 #
13061 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13062 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13064 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13065 $as_echo_n "(cached) " >&6
13066 else
13067 lt_cv_prog_compiler_static_works_CXX=no
13068 save_LDFLAGS="$LDFLAGS"
13069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13072 # The linker can only warn and ignore the option if not recognized
13073 # So say no if there are warnings
13074 if test -s conftest.err; then
13075 # Append any errors to the config.log.
13076 cat conftest.err 1>&5
13077 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13079 if diff conftest.exp conftest.er2 >/dev/null; then
13080 lt_cv_prog_compiler_static_works_CXX=yes
13081 fi
13082 else
13083 lt_cv_prog_compiler_static_works_CXX=yes
13084 fi
13085 fi
13086 $rm -r conftest*
13087 LDFLAGS="$save_LDFLAGS"
13088
13089 fi
13090 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13091 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13092
13093 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13094 :
13095 else
13096 lt_prog_compiler_static_CXX=
13097 fi
13098
13099
13100 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13101 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13102 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13103 $as_echo_n "(cached) " >&6
13104 else
13105 lt_cv_prog_compiler_c_o_CXX=no
13106 $rm -r conftest 2>/dev/null
13107 mkdir conftest
13108 cd conftest
13109 mkdir out
13110 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13111
13112 lt_compiler_flag="-o out/conftest2.$ac_objext"
13113 # Insert the option either (1) after the last *FLAGS variable, or
13114 # (2) before a word containing "conftest.", or (3) at the end.
13115 # Note that $ac_compile itself does not contain backslashes and begins
13116 # with a dollar sign (not a hyphen), so the echo should work correctly.
13117 lt_compile=`echo "$ac_compile" | $SED \
13118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13120 -e 's:$: $lt_compiler_flag:'`
13121 (eval echo "\"\$as_me:13121: $lt_compile\"" >&5)
13122 (eval "$lt_compile" 2>out/conftest.err)
13123 ac_status=$?
13124 cat out/conftest.err >&5
13125 echo "$as_me:13125: \$? = $ac_status" >&5
13126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13127 then
13128 # The compiler can only warn and ignore the option if not recognized
13129 # So say no if there are warnings
13130 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13131 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13132 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13133 lt_cv_prog_compiler_c_o_CXX=yes
13134 fi
13135 fi
13136 chmod u+w . 2>&5
13137 $rm conftest*
13138 # SGI C++ compiler will create directory out/ii_files/ for
13139 # template instantiation
13140 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13141 $rm out/* && rmdir out
13142 cd ..
13143 rmdir conftest
13144 $rm conftest*
13145
13146 fi
13147 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13148 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13149
13150
13151 hard_links="nottested"
13152 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13153 # do not overwrite the value of need_locks provided by the user
13154 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13155 $as_echo_n "checking if we can lock with hard links... " >&6; }
13156 hard_links=yes
13157 $rm conftest*
13158 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13159 touch conftest.a
13160 ln conftest.a conftest.b 2>&5 || hard_links=no
13161 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13162 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13163 $as_echo "$hard_links" >&6; }
13164 if test "$hard_links" = no; then
13165 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13166 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13167 need_locks=warn
13168 fi
13169 else
13170 need_locks=no
13171 fi
13172
13173 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13174 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13175
13176 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13177 case $host_os in
13178 aix[4-9]*)
13179 # If we're using GNU nm, then we don't want the "-C" option.
13180 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13181 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13182 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'
13183 else
13184 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'
13185 fi
13186 ;;
13187 pw32*)
13188 export_symbols_cmds_CXX="$ltdll_cmds"
13189 ;;
13190 cygwin* | mingw*)
13191 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'
13192 ;;
13193 *)
13194 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13195 ;;
13196 esac
13197 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13198
13199 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13200 $as_echo "$ld_shlibs_CXX" >&6; }
13201 test "$ld_shlibs_CXX" = no && can_build_shared=no
13202
13203 #
13204 # Do we need to explicitly link libc?
13205 #
13206 case "x$archive_cmds_need_lc_CXX" in
13207 x|xyes)
13208 # Assume -lc should be added
13209 archive_cmds_need_lc_CXX=yes
13210
13211 if test "$enable_shared" = yes && test "$GCC" = yes; then
13212 case $archive_cmds_CXX in
13213 *'~'*)
13214 # FIXME: we may have to deal with multi-command sequences.
13215 ;;
13216 '$CC '*)
13217 # Test whether the compiler implicitly links with -lc since on some
13218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13219 # to ld, don't add -lc before -lgcc.
13220 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13221 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13222 $rm conftest*
13223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13224
13225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13226 (eval $ac_compile) 2>&5
13227 ac_status=$?
13228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } 2>conftest.err; then
13230 soname=conftest
13231 lib=conftest
13232 libobjs=conftest.$ac_objext
13233 deplibs=
13234 wl=$lt_prog_compiler_wl_CXX
13235 pic_flag=$lt_prog_compiler_pic_CXX
13236 compiler_flags=-v
13237 linker_flags=-v
13238 verstring=
13239 output_objdir=.
13240 libname=conftest
13241 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13242 allow_undefined_flag_CXX=
13243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13244 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13245 ac_status=$?
13246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }
13248 then
13249 archive_cmds_need_lc_CXX=no
13250 else
13251 archive_cmds_need_lc_CXX=yes
13252 fi
13253 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13254 else
13255 cat conftest.err 1>&5
13256 fi
13257 $rm conftest*
13258 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13259 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13260 ;;
13261 esac
13262 fi
13263 ;;
13264 esac
13265
13266 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13267 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13268 library_names_spec=
13269 libname_spec='lib$name'
13270 soname_spec=
13271 shrext_cmds=".so"
13272 postinstall_cmds=
13273 postuninstall_cmds=
13274 finish_cmds=
13275 finish_eval=
13276 shlibpath_var=
13277 shlibpath_overrides_runpath=unknown
13278 version_type=none
13279 dynamic_linker="$host_os ld.so"
13280 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13281
13282 need_lib_prefix=unknown
13283 hardcode_into_libs=no
13284
13285 # when you set need_version to no, make sure it does not cause -set_version
13286 # flags to be left without arguments
13287 need_version=unknown
13288
13289 case $host_os in
13290 aix3*)
13291 version_type=linux
13292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13293 shlibpath_var=LIBPATH
13294
13295 # AIX 3 has no versioning support, so we append a major version to the name.
13296 soname_spec='${libname}${release}${shared_ext}$major'
13297 ;;
13298
13299 aix[4-9]*)
13300 version_type=linux
13301 need_lib_prefix=no
13302 need_version=no
13303 hardcode_into_libs=yes
13304 if test "$host_cpu" = ia64; then
13305 # AIX 5 supports IA64
13306 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13307 shlibpath_var=LD_LIBRARY_PATH
13308 else
13309 # With GCC up to 2.95.x, collect2 would create an import file
13310 # for dependence libraries. The import file would start with
13311 # the line `#! .'. This would cause the generated library to
13312 # depend on `.', always an invalid library. This was fixed in
13313 # development snapshots of GCC prior to 3.0.
13314 case $host_os in
13315 aix4 | aix4.[01] | aix4.[01].*)
13316 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13317 echo ' yes '
13318 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13319 :
13320 else
13321 can_build_shared=no
13322 fi
13323 ;;
13324 esac
13325 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13326 # soname into executable. Probably we can add versioning support to
13327 # collect2, so additional links can be useful in future.
13328 if test "$aix_use_runtimelinking" = yes; then
13329 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13330 # instead of lib<name>.a to let people know that these are not
13331 # typical AIX shared libraries.
13332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13333 else
13334 # We preserve .a as extension for shared libraries through AIX4.2
13335 # and later when we are not doing run time linking.
13336 library_names_spec='${libname}${release}.a $libname.a'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 fi
13339 shlibpath_var=LIBPATH
13340 fi
13341 ;;
13342
13343 amigaos*)
13344 library_names_spec='$libname.ixlibrary $libname.a'
13345 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13346 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'
13347 ;;
13348
13349 beos*)
13350 library_names_spec='${libname}${shared_ext}'
13351 dynamic_linker="$host_os ld.so"
13352 shlibpath_var=LIBRARY_PATH
13353 ;;
13354
13355 bsdi[45]*)
13356 version_type=linux
13357 need_version=no
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13363 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13364 # the default ld.so.conf also contains /usr/contrib/lib and
13365 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13366 # libtool to hard-code these into programs
13367 ;;
13368
13369 cygwin* | mingw* | pw32*)
13370 version_type=windows
13371 shrext_cmds=".dll"
13372 need_version=no
13373 need_lib_prefix=no
13374
13375 case $GCC,$host_os in
13376 yes,cygwin* | yes,mingw* | yes,pw32*)
13377 library_names_spec='$libname.dll.a'
13378 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13379 postinstall_cmds='base_file=`basename \${file}`~
13380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13381 dldir=$destdir/`dirname \$dlpath`~
13382 test -d \$dldir || mkdir -p \$dldir~
13383 $install_prog $dir/$dlname \$dldir/$dlname~
13384 chmod a+x \$dldir/$dlname'
13385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13386 dlpath=$dir/\$dldll~
13387 $rm \$dlpath'
13388 shlibpath_overrides_runpath=yes
13389
13390 case $host_os in
13391 cygwin*)
13392 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13393 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13394 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13395 ;;
13396 mingw*)
13397 # MinGW DLLs use traditional 'lib' prefix
13398 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13399 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13400 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13401 # It is most probably a Windows format PATH printed by
13402 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13403 # path with ; separators, and with drive letters. We can handle the
13404 # drive letters (cygwin fileutils understands them), so leave them,
13405 # especially as we might pass files found there to a mingw objdump,
13406 # which wouldn't understand a cygwinified path. Ahh.
13407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13408 else
13409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13410 fi
13411 ;;
13412 pw32*)
13413 # pw32 DLLs use 'pw' prefix rather than 'lib'
13414 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13415 ;;
13416 esac
13417 ;;
13418
13419 *)
13420 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13421 ;;
13422 esac
13423 dynamic_linker='Win32 ld.exe'
13424 # FIXME: first we should search . and the directory the executable is in
13425 shlibpath_var=PATH
13426 ;;
13427
13428 darwin* | rhapsody*)
13429 dynamic_linker="$host_os dyld"
13430 version_type=darwin
13431 need_lib_prefix=no
13432 need_version=no
13433 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13434 soname_spec='${libname}${release}${major}$shared_ext'
13435 shlibpath_overrides_runpath=yes
13436 shlibpath_var=DYLD_LIBRARY_PATH
13437 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13438
13439 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13440 ;;
13441
13442 dgux*)
13443 version_type=linux
13444 need_lib_prefix=no
13445 need_version=no
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 ;;
13450
13451 freebsd1*)
13452 dynamic_linker=no
13453 ;;
13454
13455 freebsd* | dragonfly*)
13456 # DragonFly does not have aout. When/if they implement a new
13457 # versioning mechanism, adjust this.
13458 if test -x /usr/bin/objformat; then
13459 objformat=`/usr/bin/objformat`
13460 else
13461 case $host_os in
13462 freebsd[123]*) objformat=aout ;;
13463 *) objformat=elf ;;
13464 esac
13465 fi
13466 version_type=freebsd-$objformat
13467 case $version_type in
13468 freebsd-elf*)
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13470 need_version=no
13471 need_lib_prefix=no
13472 ;;
13473 freebsd-*)
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13475 need_version=yes
13476 ;;
13477 esac
13478 shlibpath_var=LD_LIBRARY_PATH
13479 case $host_os in
13480 freebsd2*)
13481 shlibpath_overrides_runpath=yes
13482 ;;
13483 freebsd3.[01]* | freebsdelf3.[01]*)
13484 shlibpath_overrides_runpath=yes
13485 hardcode_into_libs=yes
13486 ;;
13487 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13488 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13489 shlibpath_overrides_runpath=no
13490 hardcode_into_libs=yes
13491 ;;
13492 *) # from 4.6 on, and DragonFly
13493 shlibpath_overrides_runpath=yes
13494 hardcode_into_libs=yes
13495 ;;
13496 esac
13497 ;;
13498
13499 gnu*)
13500 version_type=linux
13501 need_lib_prefix=no
13502 need_version=no
13503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13504 soname_spec='${libname}${release}${shared_ext}$major'
13505 shlibpath_var=LD_LIBRARY_PATH
13506 hardcode_into_libs=yes
13507 ;;
13508
13509 hpux9* | hpux10* | hpux11*)
13510 # Give a soname corresponding to the major version so that dld.sl refuses to
13511 # link against other versions.
13512 version_type=sunos
13513 need_lib_prefix=no
13514 need_version=no
13515 case $host_cpu in
13516 ia64*)
13517 shrext_cmds='.so'
13518 hardcode_into_libs=yes
13519 dynamic_linker="$host_os dld.so"
13520 shlibpath_var=LD_LIBRARY_PATH
13521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 if test "X$HPUX_IA64_MODE" = X32; then
13525 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13526 else
13527 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13528 fi
13529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13530 ;;
13531 hppa*64*)
13532 shrext_cmds='.sl'
13533 hardcode_into_libs=yes
13534 dynamic_linker="$host_os dld.sl"
13535 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13538 soname_spec='${libname}${release}${shared_ext}$major'
13539 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13541 ;;
13542 *)
13543 shrext_cmds='.sl'
13544 dynamic_linker="$host_os dld.sl"
13545 shlibpath_var=SHLIB_PATH
13546 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13548 soname_spec='${libname}${release}${shared_ext}$major'
13549 ;;
13550 esac
13551 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13552 postinstall_cmds='chmod 555 $lib'
13553 ;;
13554
13555 interix[3-9]*)
13556 version_type=linux
13557 need_lib_prefix=no
13558 need_version=no
13559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13560 soname_spec='${libname}${release}${shared_ext}$major'
13561 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 shlibpath_overrides_runpath=no
13564 hardcode_into_libs=yes
13565 ;;
13566
13567 irix5* | irix6* | nonstopux*)
13568 case $host_os in
13569 nonstopux*) version_type=nonstopux ;;
13570 *)
13571 if test "$lt_cv_prog_gnu_ld" = yes; then
13572 version_type=linux
13573 else
13574 version_type=irix
13575 fi ;;
13576 esac
13577 need_lib_prefix=no
13578 need_version=no
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13581 case $host_os in
13582 irix5* | nonstopux*)
13583 libsuff= shlibsuff=
13584 ;;
13585 *)
13586 case $LD in # libtool.m4 will add one of these switches to LD
13587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13588 libsuff= shlibsuff= libmagic=32-bit;;
13589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13590 libsuff=32 shlibsuff=N32 libmagic=N32;;
13591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13593 *) libsuff= shlibsuff= libmagic=never-match;;
13594 esac
13595 ;;
13596 esac
13597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13598 shlibpath_overrides_runpath=no
13599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13601 hardcode_into_libs=yes
13602 ;;
13603
13604 # No shared lib support for Linux oldld, aout, or coff.
13605 linux*oldld* | linux*aout* | linux*coff*)
13606 dynamic_linker=no
13607 ;;
13608
13609 # This must be Linux ELF.
13610 linux* | k*bsd*-gnu)
13611 version_type=linux
13612 need_lib_prefix=no
13613 need_version=no
13614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615 soname_spec='${libname}${release}${shared_ext}$major'
13616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13617 shlibpath_var=LD_LIBRARY_PATH
13618 shlibpath_overrides_runpath=no
13619 # This implies no fast_install, which is unacceptable.
13620 # Some rework will be needed to allow for fast_install
13621 # before this can be enabled.
13622 hardcode_into_libs=yes
13623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13625
13626 # Append ld.so.conf contents to the search path
13627 if test -f /etc/ld.so.conf; then
13628 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' ' '`
13629 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13630 fi
13631
13632 # We used to test for /lib/ld.so.1 and disable shared libraries on
13633 # powerpc, because MkLinux only supported shared libraries with the
13634 # GNU dynamic linker. Since this was broken with cross compilers,
13635 # most powerpc-linux boxes support dynamic linking these days and
13636 # people can always --disable-shared, the test was removed, and we
13637 # assume the GNU/Linux dynamic linker is in use.
13638 dynamic_linker='GNU/Linux ld.so'
13639 ;;
13640
13641 netbsd*)
13642 version_type=sunos
13643 need_lib_prefix=no
13644 need_version=no
13645 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13648 dynamic_linker='NetBSD (a.out) ld.so'
13649 else
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13651 soname_spec='${libname}${release}${shared_ext}$major'
13652 dynamic_linker='NetBSD ld.elf_so'
13653 fi
13654 shlibpath_var=LD_LIBRARY_PATH
13655 shlibpath_overrides_runpath=yes
13656 hardcode_into_libs=yes
13657 ;;
13658
13659 newsos6)
13660 version_type=linux
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 shlibpath_var=LD_LIBRARY_PATH
13663 shlibpath_overrides_runpath=yes
13664 ;;
13665
13666 nto-qnx*)
13667 version_type=linux
13668 need_lib_prefix=no
13669 need_version=no
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 shlibpath_var=LD_LIBRARY_PATH
13673 shlibpath_overrides_runpath=yes
13674 ;;
13675
13676 openbsd*)
13677 version_type=sunos
13678 sys_lib_dlsearch_path_spec="/usr/lib"
13679 need_lib_prefix=no
13680 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13681 case $host_os in
13682 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13683 *) need_version=no ;;
13684 esac
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13686 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13687 shlibpath_var=LD_LIBRARY_PATH
13688 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13689 case $host_os in
13690 openbsd2.[89] | openbsd2.[89].*)
13691 shlibpath_overrides_runpath=no
13692 ;;
13693 *)
13694 shlibpath_overrides_runpath=yes
13695 ;;
13696 esac
13697 else
13698 shlibpath_overrides_runpath=yes
13699 fi
13700 ;;
13701
13702 os2*)
13703 libname_spec='$name'
13704 shrext_cmds=".dll"
13705 need_lib_prefix=no
13706 library_names_spec='$libname${shared_ext} $libname.a'
13707 dynamic_linker='OS/2 ld.exe'
13708 shlibpath_var=LIBPATH
13709 ;;
13710
13711 osf3* | osf4* | osf5*)
13712 version_type=osf
13713 need_lib_prefix=no
13714 need_version=no
13715 soname_spec='${libname}${release}${shared_ext}$major'
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717 shlibpath_var=LD_LIBRARY_PATH
13718 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13719 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13720 ;;
13721
13722 rdos*)
13723 dynamic_linker=no
13724 ;;
13725
13726 solaris*)
13727 version_type=linux
13728 need_lib_prefix=no
13729 need_version=no
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13731 soname_spec='${libname}${release}${shared_ext}$major'
13732 shlibpath_var=LD_LIBRARY_PATH
13733 shlibpath_overrides_runpath=yes
13734 hardcode_into_libs=yes
13735 # ldd complains unless libraries are executable
13736 postinstall_cmds='chmod +x $lib'
13737 ;;
13738
13739 sunos4*)
13740 version_type=sunos
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13742 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13743 shlibpath_var=LD_LIBRARY_PATH
13744 shlibpath_overrides_runpath=yes
13745 if test "$with_gnu_ld" = yes; then
13746 need_lib_prefix=no
13747 fi
13748 need_version=yes
13749 ;;
13750
13751 sysv4 | sysv4.3*)
13752 version_type=linux
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 case $host_vendor in
13757 sni)
13758 shlibpath_overrides_runpath=no
13759 need_lib_prefix=no
13760 export_dynamic_flag_spec='${wl}-Blargedynsym'
13761 runpath_var=LD_RUN_PATH
13762 ;;
13763 siemens)
13764 need_lib_prefix=no
13765 ;;
13766 motorola)
13767 need_lib_prefix=no
13768 need_version=no
13769 shlibpath_overrides_runpath=no
13770 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13771 ;;
13772 esac
13773 ;;
13774
13775 sysv4*MP*)
13776 if test -d /usr/nec ;then
13777 version_type=linux
13778 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13779 soname_spec='$libname${shared_ext}.$major'
13780 shlibpath_var=LD_LIBRARY_PATH
13781 fi
13782 ;;
13783
13784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13785 version_type=freebsd-elf
13786 need_lib_prefix=no
13787 need_version=no
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 shlibpath_var=LD_LIBRARY_PATH
13791 hardcode_into_libs=yes
13792 if test "$with_gnu_ld" = yes; then
13793 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13794 shlibpath_overrides_runpath=no
13795 else
13796 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13797 shlibpath_overrides_runpath=yes
13798 case $host_os in
13799 sco3.2v5*)
13800 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13801 ;;
13802 esac
13803 fi
13804 sys_lib_dlsearch_path_spec='/usr/lib'
13805 ;;
13806
13807 uts4*)
13808 version_type=linux
13809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13810 soname_spec='${libname}${release}${shared_ext}$major'
13811 shlibpath_var=LD_LIBRARY_PATH
13812 ;;
13813
13814 *)
13815 dynamic_linker=no
13816 ;;
13817 esac
13818 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13819 $as_echo "$dynamic_linker" >&6; }
13820 test "$dynamic_linker" = no && can_build_shared=no
13821
13822 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13823 $as_echo_n "(cached) " >&6
13824 else
13825 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13826 fi
13827
13828 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13829 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13830 $as_echo_n "(cached) " >&6
13831 else
13832 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13833 fi
13834
13835 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13836
13837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13838 if test "$GCC" = yes; then
13839 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13840 fi
13841
13842 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13844 hardcode_action_CXX=
13845 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13846 test -n "$runpath_var_CXX" || \
13847 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13848
13849 # We can hardcode non-existant directories.
13850 if test "$hardcode_direct_CXX" != no &&
13851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13852 # have to relink, otherwise we might link with an installed library
13853 # when we should be linking with a yet-to-be-installed one
13854 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13855 test "$hardcode_minus_L_CXX" != no; then
13856 # Linking always hardcodes the temporary library directory.
13857 hardcode_action_CXX=relink
13858 else
13859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13860 hardcode_action_CXX=immediate
13861 fi
13862 else
13863 # We cannot hardcode anything, or else we can only hardcode existing
13864 # directories.
13865 hardcode_action_CXX=unsupported
13866 fi
13867 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13868 $as_echo "$hardcode_action_CXX" >&6; }
13869
13870 if test "$hardcode_action_CXX" = relink; then
13871 # Fast installation is not supported
13872 enable_fast_install=no
13873 elif test "$shlibpath_overrides_runpath" = yes ||
13874 test "$enable_shared" = no; then
13875 # Fast installation is not necessary
13876 enable_fast_install=needless
13877 fi
13878
13879
13880 # The else clause should only fire when bootstrapping the
13881 # libtool distribution, otherwise you forgot to ship ltmain.sh
13882 # with your package, and you will get complaints that there are
13883 # no rules to generate ltmain.sh.
13884 if test -f "$ltmain"; then
13885 # See if we are running on zsh, and set the options which allow our commands through
13886 # without removal of \ escapes.
13887 if test -n "${ZSH_VERSION+set}" ; then
13888 setopt NO_GLOB_SUBST
13889 fi
13890 # Now quote all the things that may contain metacharacters while being
13891 # careful not to overquote the AC_SUBSTed values. We take copies of the
13892 # variables and quote the copies for generation of the libtool script.
13893 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13894 SED SHELL STRIP \
13895 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13896 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13897 deplibs_check_method reload_flag reload_cmds need_locks \
13898 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13899 lt_cv_sys_global_symbol_to_c_name_address \
13900 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13901 old_postinstall_cmds old_postuninstall_cmds \
13902 compiler_CXX \
13903 CC_CXX \
13904 LD_CXX \
13905 lt_prog_compiler_wl_CXX \
13906 lt_prog_compiler_pic_CXX \
13907 lt_prog_compiler_static_CXX \
13908 lt_prog_compiler_no_builtin_flag_CXX \
13909 export_dynamic_flag_spec_CXX \
13910 thread_safe_flag_spec_CXX \
13911 whole_archive_flag_spec_CXX \
13912 enable_shared_with_static_runtimes_CXX \
13913 old_archive_cmds_CXX \
13914 old_archive_from_new_cmds_CXX \
13915 predep_objects_CXX \
13916 postdep_objects_CXX \
13917 predeps_CXX \
13918 postdeps_CXX \
13919 compiler_lib_search_path_CXX \
13920 compiler_lib_search_dirs_CXX \
13921 archive_cmds_CXX \
13922 archive_expsym_cmds_CXX \
13923 postinstall_cmds_CXX \
13924 postuninstall_cmds_CXX \
13925 old_archive_from_expsyms_cmds_CXX \
13926 allow_undefined_flag_CXX \
13927 no_undefined_flag_CXX \
13928 export_symbols_cmds_CXX \
13929 hardcode_libdir_flag_spec_CXX \
13930 hardcode_libdir_flag_spec_ld_CXX \
13931 hardcode_libdir_separator_CXX \
13932 hardcode_automatic_CXX \
13933 module_cmds_CXX \
13934 module_expsym_cmds_CXX \
13935 lt_cv_prog_compiler_c_o_CXX \
13936 fix_srcfile_path_CXX \
13937 exclude_expsyms_CXX \
13938 include_expsyms_CXX; do
13939
13940 case $var in
13941 old_archive_cmds_CXX | \
13942 old_archive_from_new_cmds_CXX | \
13943 archive_cmds_CXX | \
13944 archive_expsym_cmds_CXX | \
13945 module_cmds_CXX | \
13946 module_expsym_cmds_CXX | \
13947 old_archive_from_expsyms_cmds_CXX | \
13948 export_symbols_cmds_CXX | \
13949 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13950 postinstall_cmds | postuninstall_cmds | \
13951 old_postinstall_cmds | old_postuninstall_cmds | \
13952 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13953 # Double-quote double-evaled strings.
13954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13955 ;;
13956 *)
13957 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13958 ;;
13959 esac
13960 done
13961
13962 case $lt_echo in
13963 *'\$0 --fallback-echo"')
13964 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13965 ;;
13966 esac
13967
13968 cfgfile="$ofile"
13969
13970 cat <<__EOF__ >> "$cfgfile"
13971 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13972
13973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13974
13975 # Shell to use when invoking shell scripts.
13976 SHELL=$lt_SHELL
13977
13978 # Whether or not to build shared libraries.
13979 build_libtool_libs=$enable_shared
13980
13981 # Whether or not to build static libraries.
13982 build_old_libs=$enable_static
13983
13984 # Whether or not to add -lc for building shared libraries.
13985 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13986
13987 # Whether or not to disallow shared libs when runtime libs are static
13988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13989
13990 # Whether or not to optimize for fast installation.
13991 fast_install=$enable_fast_install
13992
13993 # The host system.
13994 host_alias=$host_alias
13995 host=$host
13996 host_os=$host_os
13997
13998 # The build system.
13999 build_alias=$build_alias
14000 build=$build
14001 build_os=$build_os
14002
14003 # An echo program that does not interpret backslashes.
14004 echo=$lt_echo
14005
14006 # The archiver.
14007 AR=$lt_AR
14008 AR_FLAGS=$lt_AR_FLAGS
14009
14010 # A C compiler.
14011 LTCC=$lt_LTCC
14012
14013 # LTCC compiler flags.
14014 LTCFLAGS=$lt_LTCFLAGS
14015
14016 # A language-specific compiler.
14017 CC=$lt_compiler_CXX
14018
14019 # Is the compiler the GNU C compiler?
14020 with_gcc=$GCC_CXX
14021
14022 # An ERE matcher.
14023 EGREP=$lt_EGREP
14024
14025 # The linker used to build libraries.
14026 LD=$lt_LD_CXX
14027
14028 # Whether we need hard or soft links.
14029 LN_S=$lt_LN_S
14030
14031 # A BSD-compatible nm program.
14032 NM=$lt_NM
14033
14034 # A symbol stripping program
14035 STRIP=$lt_STRIP
14036
14037 # Used to examine libraries when file_magic_cmd begins "file"
14038 MAGIC_CMD=$MAGIC_CMD
14039
14040 # Used on cygwin: DLL creation program.
14041 DLLTOOL="$DLLTOOL"
14042
14043 # Used on cygwin: object dumper.
14044 OBJDUMP="$OBJDUMP"
14045
14046 # Used on cygwin: assembler.
14047 AS="$AS"
14048
14049 # The name of the directory that contains temporary libtool files.
14050 objdir=$objdir
14051
14052 # How to create reloadable object files.
14053 reload_flag=$lt_reload_flag
14054 reload_cmds=$lt_reload_cmds
14055
14056 # How to pass a linker flag through the compiler.
14057 wl=$lt_lt_prog_compiler_wl_CXX
14058
14059 # Object file suffix (normally "o").
14060 objext="$ac_objext"
14061
14062 # Old archive suffix (normally "a").
14063 libext="$libext"
14064
14065 # Shared library suffix (normally ".so").
14066 shrext_cmds='$shrext_cmds'
14067
14068 # Executable file suffix (normally "").
14069 exeext="$exeext"
14070
14071 # Additional compiler flags for building library objects.
14072 pic_flag=$lt_lt_prog_compiler_pic_CXX
14073 pic_mode=$pic_mode
14074
14075 # What is the maximum length of a command?
14076 max_cmd_len=$lt_cv_sys_max_cmd_len
14077
14078 # Does compiler simultaneously support -c and -o options?
14079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14080
14081 # Must we lock files when doing compilation?
14082 need_locks=$lt_need_locks
14083
14084 # Do we need the lib prefix for modules?
14085 need_lib_prefix=$need_lib_prefix
14086
14087 # Do we need a version for libraries?
14088 need_version=$need_version
14089
14090 # Whether dlopen is supported.
14091 dlopen_support=$enable_dlopen
14092
14093 # Whether dlopen of programs is supported.
14094 dlopen_self=$enable_dlopen_self
14095
14096 # Whether dlopen of statically linked programs is supported.
14097 dlopen_self_static=$enable_dlopen_self_static
14098
14099 # Compiler flag to prevent dynamic linking.
14100 link_static_flag=$lt_lt_prog_compiler_static_CXX
14101
14102 # Compiler flag to turn off builtin functions.
14103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14104
14105 # Compiler flag to allow reflexive dlopens.
14106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14107
14108 # Compiler flag to generate shared objects directly from archives.
14109 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14110
14111 # Compiler flag to generate thread-safe objects.
14112 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14113
14114 # Library versioning type.
14115 version_type=$version_type
14116
14117 # Format of library name prefix.
14118 libname_spec=$lt_libname_spec
14119
14120 # List of archive names. First name is the real one, the rest are links.
14121 # The last name is the one that the linker finds with -lNAME.
14122 library_names_spec=$lt_library_names_spec
14123
14124 # The coded name of the library, if different from the real name.
14125 soname_spec=$lt_soname_spec
14126
14127 # Commands used to build and install an old-style archive.
14128 RANLIB=$lt_RANLIB
14129 old_archive_cmds=$lt_old_archive_cmds_CXX
14130 old_postinstall_cmds=$lt_old_postinstall_cmds
14131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14132
14133 # Create an old-style archive from a shared archive.
14134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14135
14136 # Create a temporary old-style archive to link instead of a shared archive.
14137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14138
14139 # Commands used to build and install a shared archive.
14140 archive_cmds=$lt_archive_cmds_CXX
14141 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14142 postinstall_cmds=$lt_postinstall_cmds
14143 postuninstall_cmds=$lt_postuninstall_cmds
14144
14145 # Commands used to build a loadable module (assumed same as above if empty)
14146 module_cmds=$lt_module_cmds_CXX
14147 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14148
14149 # Commands to strip libraries.
14150 old_striplib=$lt_old_striplib
14151 striplib=$lt_striplib
14152
14153 # Dependencies to place before the objects being linked to create a
14154 # shared library.
14155 predep_objects=$lt_predep_objects_CXX
14156
14157 # Dependencies to place after the objects being linked to create a
14158 # shared library.
14159 postdep_objects=$lt_postdep_objects_CXX
14160
14161 # Dependencies to place before the objects being linked to create a
14162 # shared library.
14163 predeps=$lt_predeps_CXX
14164
14165 # Dependencies to place after the objects being linked to create a
14166 # shared library.
14167 postdeps=$lt_postdeps_CXX
14168
14169 # The directories searched by this compiler when creating a shared
14170 # library
14171 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14172
14173 # The library search path used internally by the compiler when linking
14174 # a shared library.
14175 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14176
14177 # Method to check whether dependent libraries are shared objects.
14178 deplibs_check_method=$lt_deplibs_check_method
14179
14180 # Command to use when deplibs_check_method == file_magic.
14181 file_magic_cmd=$lt_file_magic_cmd
14182
14183 # Flag that allows shared libraries with undefined symbols to be built.
14184 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14185
14186 # Flag that forces no undefined symbols.
14187 no_undefined_flag=$lt_no_undefined_flag_CXX
14188
14189 # Commands used to finish a libtool library installation in a directory.
14190 finish_cmds=$lt_finish_cmds
14191
14192 # Same as above, but a single script fragment to be evaled but not shown.
14193 finish_eval=$lt_finish_eval
14194
14195 # Take the output of nm and produce a listing of raw symbols and C names.
14196 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14197
14198 # Transform the output of nm in a proper C declaration
14199 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14200
14201 # Transform the output of nm in a C name address pair
14202 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14203
14204 # This is the shared library runtime path variable.
14205 runpath_var=$runpath_var
14206
14207 # This is the shared library path variable.
14208 shlibpath_var=$shlibpath_var
14209
14210 # Is shlibpath searched before the hard-coded library search path?
14211 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14212
14213 # How to hardcode a shared library path into an executable.
14214 hardcode_action=$hardcode_action_CXX
14215
14216 # Whether we should hardcode library paths into libraries.
14217 hardcode_into_libs=$hardcode_into_libs
14218
14219 # Flag to hardcode \$libdir into a binary during linking.
14220 # This must work even if \$libdir does not exist.
14221 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14222
14223 # If ld is used when linking, flag to hardcode \$libdir into
14224 # a binary during linking. This must work even if \$libdir does
14225 # not exist.
14226 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14227
14228 # Whether we need a single -rpath flag with a separated argument.
14229 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14230
14231 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14232 # resulting binary.
14233 hardcode_direct=$hardcode_direct_CXX
14234
14235 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14236 # resulting binary.
14237 hardcode_minus_L=$hardcode_minus_L_CXX
14238
14239 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14240 # the resulting binary.
14241 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14242
14243 # Set to yes if building a shared library automatically hardcodes DIR into the library
14244 # and all subsequent libraries and executables linked against it.
14245 hardcode_automatic=$hardcode_automatic_CXX
14246
14247 # Variables whose values should be saved in libtool wrapper scripts and
14248 # restored at relink time.
14249 variables_saved_for_relink="$variables_saved_for_relink"
14250
14251 # Whether libtool must link a program against all its dependency libraries.
14252 link_all_deplibs=$link_all_deplibs_CXX
14253
14254 # Compile-time system search path for libraries
14255 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14256
14257 # Run-time system search path for libraries
14258 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14259
14260 # Fix the shell variable \$srcfile for the compiler.
14261 fix_srcfile_path=$lt_fix_srcfile_path
14262
14263 # Set to yes if exported symbols are required.
14264 always_export_symbols=$always_export_symbols_CXX
14265
14266 # The commands to list exported symbols.
14267 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14268
14269 # The commands to extract the exported symbol list from a shared archive.
14270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14271
14272 # Symbols that should not be listed in the preloaded symbols.
14273 exclude_expsyms=$lt_exclude_expsyms_CXX
14274
14275 # Symbols that must always be exported.
14276 include_expsyms=$lt_include_expsyms_CXX
14277
14278 # ### END LIBTOOL TAG CONFIG: $tagname
14279
14280 __EOF__
14281
14282
14283 else
14284 # If there is no Makefile yet, we rely on a make rule to execute
14285 # `config.status --recheck' to rerun these tests and create the
14286 # libtool script then.
14287 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14288 if test -f "$ltmain_in"; then
14289 test -f Makefile && make "$ltmain"
14290 fi
14291 fi
14292
14293
14294 ac_ext=c
14295 ac_cpp='$CPP $CPPFLAGS'
14296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14299
14300 CC=$lt_save_CC
14301 LDCXX=$LD
14302 LD=$lt_save_LD
14303 GCC=$lt_save_GCC
14304 with_gnu_ldcxx=$with_gnu_ld
14305 with_gnu_ld=$lt_save_with_gnu_ld
14306 lt_cv_path_LDCXX=$lt_cv_path_LD
14307 lt_cv_path_LD=$lt_save_path_LD
14308 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14309 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14310
14311 else
14312 tagname=""
14313 fi
14314 ;;
14315
14316 F77)
14317 if test -n "$F77" && test "X$F77" != "Xno"; then
14318
14319 ac_ext=f
14320 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14321 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14322 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14323
14324
14325 archive_cmds_need_lc_F77=no
14326 allow_undefined_flag_F77=
14327 always_export_symbols_F77=no
14328 archive_expsym_cmds_F77=
14329 export_dynamic_flag_spec_F77=
14330 hardcode_direct_F77=no
14331 hardcode_libdir_flag_spec_F77=
14332 hardcode_libdir_flag_spec_ld_F77=
14333 hardcode_libdir_separator_F77=
14334 hardcode_minus_L_F77=no
14335 hardcode_automatic_F77=no
14336 module_cmds_F77=
14337 module_expsym_cmds_F77=
14338 link_all_deplibs_F77=unknown
14339 old_archive_cmds_F77=$old_archive_cmds
14340 no_undefined_flag_F77=
14341 whole_archive_flag_spec_F77=
14342 enable_shared_with_static_runtimes_F77=no
14343
14344 # Source file extension for f77 test sources.
14345 ac_ext=f
14346
14347 # Object file extension for compiled f77 test sources.
14348 objext=o
14349 objext_F77=$objext
14350
14351 # Code to be used in simple compile tests
14352 lt_simple_compile_test_code="\
14353 subroutine t
14354 return
14355 end
14356 "
14357
14358 # Code to be used in simple link tests
14359 lt_simple_link_test_code="\
14360 program t
14361 end
14362 "
14363
14364 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14365
14366 # If no C compiler was specified, use CC.
14367 LTCC=${LTCC-"$CC"}
14368
14369 # If no C compiler flags were specified, use CFLAGS.
14370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14371
14372 # Allow CC to be a program name with arguments.
14373 compiler=$CC
14374
14375
14376 # save warnings/boilerplate of simple test code
14377 ac_outfile=conftest.$ac_objext
14378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14380 _lt_compiler_boilerplate=`cat conftest.err`
14381 $rm conftest*
14382
14383 ac_outfile=conftest.$ac_objext
14384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14386 _lt_linker_boilerplate=`cat conftest.err`
14387 $rm -r conftest*
14388
14389
14390 # Allow CC to be a program name with arguments.
14391 lt_save_CC="$CC"
14392 CC=${F77-"f77"}
14393 compiler=$CC
14394 compiler_F77=$CC
14395 for cc_temp in $compiler""; do
14396 case $cc_temp in
14397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14399 \-*) ;;
14400 *) break;;
14401 esac
14402 done
14403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14404
14405
14406 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14407 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14408 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14409 $as_echo "$can_build_shared" >&6; }
14410
14411 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14412 $as_echo_n "checking whether to build shared libraries... " >&6; }
14413 test "$can_build_shared" = "no" && enable_shared=no
14414
14415 # On AIX, shared libraries and static libraries use the same namespace, and
14416 # are all built from PIC.
14417 case $host_os in
14418 aix3*)
14419 test "$enable_shared" = yes && enable_static=no
14420 if test -n "$RANLIB"; then
14421 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14422 postinstall_cmds='$RANLIB $lib'
14423 fi
14424 ;;
14425 aix[4-9]*)
14426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14427 test "$enable_shared" = yes && enable_static=no
14428 fi
14429 ;;
14430 esac
14431 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14432 $as_echo "$enable_shared" >&6; }
14433
14434 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14435 $as_echo_n "checking whether to build static libraries... " >&6; }
14436 # Make sure either enable_shared or enable_static is yes.
14437 test "$enable_shared" = yes || enable_static=yes
14438 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14439 $as_echo "$enable_static" >&6; }
14440
14441 GCC_F77="$G77"
14442 LD_F77="$LD"
14443
14444 lt_prog_compiler_wl_F77=
14445 lt_prog_compiler_pic_F77=
14446 lt_prog_compiler_static_F77=
14447
14448 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14449 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14450
14451 if test "$GCC" = yes; then
14452 lt_prog_compiler_wl_F77='-Wl,'
14453 lt_prog_compiler_static_F77='-static'
14454
14455 case $host_os in
14456 aix*)
14457 # All AIX code is PIC.
14458 if test "$host_cpu" = ia64; then
14459 # AIX 5 now supports IA64 processor
14460 lt_prog_compiler_static_F77='-Bstatic'
14461 fi
14462 ;;
14463
14464 amigaos*)
14465 # FIXME: we need at least 68020 code to build shared libraries, but
14466 # adding the `-m68020' flag to GCC prevents building anything better,
14467 # like `-m68040'.
14468 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14469 ;;
14470
14471 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14472 # PIC is the default for these OSes.
14473 ;;
14474
14475 mingw* | cygwin* | pw32* | os2*)
14476 # This hack is so that the source file can tell whether it is being
14477 # built for inclusion in a dll (and should export symbols for example).
14478 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14479 # (--disable-auto-import) libraries
14480 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14481 ;;
14482
14483 darwin* | rhapsody*)
14484 # PIC is the default on this platform
14485 # Common symbols not allowed in MH_DYLIB files
14486 lt_prog_compiler_pic_F77='-fno-common'
14487 ;;
14488
14489 interix[3-9]*)
14490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14491 # Instead, we relocate shared libraries at runtime.
14492 ;;
14493
14494 msdosdjgpp*)
14495 # Just because we use GCC doesn't mean we suddenly get shared libraries
14496 # on systems that don't support them.
14497 lt_prog_compiler_can_build_shared_F77=no
14498 enable_shared=no
14499 ;;
14500
14501 sysv4*MP*)
14502 if test -d /usr/nec; then
14503 lt_prog_compiler_pic_F77=-Kconform_pic
14504 fi
14505 ;;
14506
14507 hpux*)
14508 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14509 # not for PA HP-UX.
14510 case $host_cpu in
14511 hppa*64*|ia64*)
14512 # +Z the default
14513 ;;
14514 *)
14515 lt_prog_compiler_pic_F77='-fPIC'
14516 ;;
14517 esac
14518 ;;
14519
14520 *)
14521 lt_prog_compiler_pic_F77='-fPIC'
14522 ;;
14523 esac
14524 else
14525 # PORTME Check for flag to pass linker flags through the system compiler.
14526 case $host_os in
14527 aix*)
14528 lt_prog_compiler_wl_F77='-Wl,'
14529 if test "$host_cpu" = ia64; then
14530 # AIX 5 now supports IA64 processor
14531 lt_prog_compiler_static_F77='-Bstatic'
14532 else
14533 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14534 fi
14535 ;;
14536 darwin*)
14537 # PIC is the default on this platform
14538 # Common symbols not allowed in MH_DYLIB files
14539 case $cc_basename in
14540 xlc*)
14541 lt_prog_compiler_pic_F77='-qnocommon'
14542 lt_prog_compiler_wl_F77='-Wl,'
14543 ;;
14544 esac
14545 ;;
14546
14547 mingw* | cygwin* | pw32* | os2*)
14548 # This hack is so that the source file can tell whether it is being
14549 # built for inclusion in a dll (and should export symbols for example).
14550 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14551 ;;
14552
14553 hpux9* | hpux10* | hpux11*)
14554 lt_prog_compiler_wl_F77='-Wl,'
14555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14556 # not for PA HP-UX.
14557 case $host_cpu in
14558 hppa*64*|ia64*)
14559 # +Z the default
14560 ;;
14561 *)
14562 lt_prog_compiler_pic_F77='+Z'
14563 ;;
14564 esac
14565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14566 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14567 ;;
14568
14569 irix5* | irix6* | nonstopux*)
14570 lt_prog_compiler_wl_F77='-Wl,'
14571 # PIC (with -KPIC) is the default.
14572 lt_prog_compiler_static_F77='-non_shared'
14573 ;;
14574
14575 newsos6)
14576 lt_prog_compiler_pic_F77='-KPIC'
14577 lt_prog_compiler_static_F77='-Bstatic'
14578 ;;
14579
14580 linux* | k*bsd*-gnu)
14581 case $cc_basename in
14582 icc* | ecc*)
14583 lt_prog_compiler_wl_F77='-Wl,'
14584 lt_prog_compiler_pic_F77='-KPIC'
14585 lt_prog_compiler_static_F77='-static'
14586 ;;
14587 pgcc* | pgf77* | pgf90* | pgf95*)
14588 # Portland Group compilers (*not* the Pentium gcc compiler,
14589 # which looks to be a dead project)
14590 lt_prog_compiler_wl_F77='-Wl,'
14591 lt_prog_compiler_pic_F77='-fpic'
14592 lt_prog_compiler_static_F77='-Bstatic'
14593 ;;
14594 ccc*)
14595 lt_prog_compiler_wl_F77='-Wl,'
14596 # All Alpha code is PIC.
14597 lt_prog_compiler_static_F77='-non_shared'
14598 ;;
14599 *)
14600 case `$CC -V 2>&1 | sed 5q` in
14601 *Sun\ C*)
14602 # Sun C 5.9
14603 lt_prog_compiler_pic_F77='-KPIC'
14604 lt_prog_compiler_static_F77='-Bstatic'
14605 lt_prog_compiler_wl_F77='-Wl,'
14606 ;;
14607 *Sun\ F*)
14608 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14609 lt_prog_compiler_pic_F77='-KPIC'
14610 lt_prog_compiler_static_F77='-Bstatic'
14611 lt_prog_compiler_wl_F77=''
14612 ;;
14613 esac
14614 ;;
14615 esac
14616 ;;
14617
14618 osf3* | osf4* | osf5*)
14619 lt_prog_compiler_wl_F77='-Wl,'
14620 # All OSF/1 code is PIC.
14621 lt_prog_compiler_static_F77='-non_shared'
14622 ;;
14623
14624 rdos*)
14625 lt_prog_compiler_static_F77='-non_shared'
14626 ;;
14627
14628 solaris*)
14629 lt_prog_compiler_pic_F77='-KPIC'
14630 lt_prog_compiler_static_F77='-Bstatic'
14631 case $cc_basename in
14632 f77* | f90* | f95*)
14633 lt_prog_compiler_wl_F77='-Qoption ld ';;
14634 *)
14635 lt_prog_compiler_wl_F77='-Wl,';;
14636 esac
14637 ;;
14638
14639 sunos4*)
14640 lt_prog_compiler_wl_F77='-Qoption ld '
14641 lt_prog_compiler_pic_F77='-PIC'
14642 lt_prog_compiler_static_F77='-Bstatic'
14643 ;;
14644
14645 sysv4 | sysv4.2uw2* | sysv4.3*)
14646 lt_prog_compiler_wl_F77='-Wl,'
14647 lt_prog_compiler_pic_F77='-KPIC'
14648 lt_prog_compiler_static_F77='-Bstatic'
14649 ;;
14650
14651 sysv4*MP*)
14652 if test -d /usr/nec ;then
14653 lt_prog_compiler_pic_F77='-Kconform_pic'
14654 lt_prog_compiler_static_F77='-Bstatic'
14655 fi
14656 ;;
14657
14658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14659 lt_prog_compiler_wl_F77='-Wl,'
14660 lt_prog_compiler_pic_F77='-KPIC'
14661 lt_prog_compiler_static_F77='-Bstatic'
14662 ;;
14663
14664 unicos*)
14665 lt_prog_compiler_wl_F77='-Wl,'
14666 lt_prog_compiler_can_build_shared_F77=no
14667 ;;
14668
14669 uts4*)
14670 lt_prog_compiler_pic_F77='-pic'
14671 lt_prog_compiler_static_F77='-Bstatic'
14672 ;;
14673
14674 *)
14675 lt_prog_compiler_can_build_shared_F77=no
14676 ;;
14677 esac
14678 fi
14679
14680 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14681 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14682
14683 #
14684 # Check to make sure the PIC flag actually works.
14685 #
14686 if test -n "$lt_prog_compiler_pic_F77"; then
14687
14688 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14689 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14690 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14691 $as_echo_n "(cached) " >&6
14692 else
14693 lt_cv_prog_compiler_pic_works_F77=no
14694 ac_outfile=conftest.$ac_objext
14695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14696 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14697 # Insert the option either (1) after the last *FLAGS variable, or
14698 # (2) before a word containing "conftest.", or (3) at the end.
14699 # Note that $ac_compile itself does not contain backslashes and begins
14700 # with a dollar sign (not a hyphen), so the echo should work correctly.
14701 # The option is referenced via a variable to avoid confusing sed.
14702 lt_compile=`echo "$ac_compile" | $SED \
14703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14705 -e 's:$: $lt_compiler_flag:'`
14706 (eval echo "\"\$as_me:14706: $lt_compile\"" >&5)
14707 (eval "$lt_compile" 2>conftest.err)
14708 ac_status=$?
14709 cat conftest.err >&5
14710 echo "$as_me:14710: \$? = $ac_status" >&5
14711 if (exit $ac_status) && test -s "$ac_outfile"; then
14712 # The compiler can only warn and ignore the option if not recognized
14713 # So say no if there are warnings other than the usual output.
14714 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14717 lt_cv_prog_compiler_pic_works_F77=yes
14718 fi
14719 fi
14720 $rm conftest*
14721
14722 fi
14723 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14724 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14725
14726 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14727 case $lt_prog_compiler_pic_F77 in
14728 "" | " "*) ;;
14729 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14730 esac
14731 else
14732 lt_prog_compiler_pic_F77=
14733 lt_prog_compiler_can_build_shared_F77=no
14734 fi
14735
14736 fi
14737 case $host_os in
14738 # For platforms which do not support PIC, -DPIC is meaningless:
14739 *djgpp*)
14740 lt_prog_compiler_pic_F77=
14741 ;;
14742 *)
14743 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14744 ;;
14745 esac
14746
14747 #
14748 # Check to make sure the static flag actually works.
14749 #
14750 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14751 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14752 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14753 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14754 $as_echo_n "(cached) " >&6
14755 else
14756 lt_cv_prog_compiler_static_works_F77=no
14757 save_LDFLAGS="$LDFLAGS"
14758 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14759 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14760 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14761 # The linker can only warn and ignore the option if not recognized
14762 # So say no if there are warnings
14763 if test -s conftest.err; then
14764 # Append any errors to the config.log.
14765 cat conftest.err 1>&5
14766 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14767 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14768 if diff conftest.exp conftest.er2 >/dev/null; then
14769 lt_cv_prog_compiler_static_works_F77=yes
14770 fi
14771 else
14772 lt_cv_prog_compiler_static_works_F77=yes
14773 fi
14774 fi
14775 $rm -r conftest*
14776 LDFLAGS="$save_LDFLAGS"
14777
14778 fi
14779 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14780 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14781
14782 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14783 :
14784 else
14785 lt_prog_compiler_static_F77=
14786 fi
14787
14788
14789 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14791 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14792 $as_echo_n "(cached) " >&6
14793 else
14794 lt_cv_prog_compiler_c_o_F77=no
14795 $rm -r conftest 2>/dev/null
14796 mkdir conftest
14797 cd conftest
14798 mkdir out
14799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14800
14801 lt_compiler_flag="-o out/conftest2.$ac_objext"
14802 # Insert the option either (1) after the last *FLAGS variable, or
14803 # (2) before a word containing "conftest.", or (3) at the end.
14804 # Note that $ac_compile itself does not contain backslashes and begins
14805 # with a dollar sign (not a hyphen), so the echo should work correctly.
14806 lt_compile=`echo "$ac_compile" | $SED \
14807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14809 -e 's:$: $lt_compiler_flag:'`
14810 (eval echo "\"\$as_me:14810: $lt_compile\"" >&5)
14811 (eval "$lt_compile" 2>out/conftest.err)
14812 ac_status=$?
14813 cat out/conftest.err >&5
14814 echo "$as_me:14814: \$? = $ac_status" >&5
14815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14816 then
14817 # The compiler can only warn and ignore the option if not recognized
14818 # So say no if there are warnings
14819 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14822 lt_cv_prog_compiler_c_o_F77=yes
14823 fi
14824 fi
14825 chmod u+w . 2>&5
14826 $rm conftest*
14827 # SGI C++ compiler will create directory out/ii_files/ for
14828 # template instantiation
14829 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14830 $rm out/* && rmdir out
14831 cd ..
14832 rmdir conftest
14833 $rm conftest*
14834
14835 fi
14836 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14837 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14838
14839
14840 hard_links="nottested"
14841 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14842 # do not overwrite the value of need_locks provided by the user
14843 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14844 $as_echo_n "checking if we can lock with hard links... " >&6; }
14845 hard_links=yes
14846 $rm conftest*
14847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14848 touch conftest.a
14849 ln conftest.a conftest.b 2>&5 || hard_links=no
14850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14851 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14852 $as_echo "$hard_links" >&6; }
14853 if test "$hard_links" = no; then
14854 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14855 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14856 need_locks=warn
14857 fi
14858 else
14859 need_locks=no
14860 fi
14861
14862 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14863 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14864
14865 runpath_var=
14866 allow_undefined_flag_F77=
14867 enable_shared_with_static_runtimes_F77=no
14868 archive_cmds_F77=
14869 archive_expsym_cmds_F77=
14870 old_archive_From_new_cmds_F77=
14871 old_archive_from_expsyms_cmds_F77=
14872 export_dynamic_flag_spec_F77=
14873 whole_archive_flag_spec_F77=
14874 thread_safe_flag_spec_F77=
14875 hardcode_libdir_flag_spec_F77=
14876 hardcode_libdir_flag_spec_ld_F77=
14877 hardcode_libdir_separator_F77=
14878 hardcode_direct_F77=no
14879 hardcode_minus_L_F77=no
14880 hardcode_shlibpath_var_F77=unsupported
14881 link_all_deplibs_F77=unknown
14882 hardcode_automatic_F77=no
14883 module_cmds_F77=
14884 module_expsym_cmds_F77=
14885 always_export_symbols_F77=no
14886 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14887 # include_expsyms should be a list of space-separated symbols to be *always*
14888 # included in the symbol list
14889 include_expsyms_F77=
14890 # exclude_expsyms can be an extended regexp of symbols to exclude
14891 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14892 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14893 # as well as any symbol that contains `d'.
14894 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14896 # platforms (ab)use it in PIC code, but their linkers get confused if
14897 # the symbol is explicitly referenced. Since portable code cannot
14898 # rely on this symbol name, it's probably fine to never include it in
14899 # preloaded symbol tables.
14900 # Exclude shared library initialization/finalization symbols.
14901 extract_expsyms_cmds=
14902 # Just being paranoid about ensuring that cc_basename is set.
14903 for cc_temp in $compiler""; do
14904 case $cc_temp in
14905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14907 \-*) ;;
14908 *) break;;
14909 esac
14910 done
14911 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14912
14913 case $host_os in
14914 cygwin* | mingw* | pw32*)
14915 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14916 # When not using gcc, we currently assume that we are using
14917 # Microsoft Visual C++.
14918 if test "$GCC" != yes; then
14919 with_gnu_ld=no
14920 fi
14921 ;;
14922 interix*)
14923 # we just hope/assume this is gcc and not c89 (= MSVC++)
14924 with_gnu_ld=yes
14925 ;;
14926 openbsd*)
14927 with_gnu_ld=no
14928 ;;
14929 esac
14930
14931 ld_shlibs_F77=yes
14932 if test "$with_gnu_ld" = yes; then
14933 # If archive_cmds runs LD, not CC, wlarc should be empty
14934 wlarc='${wl}'
14935
14936 # Set some defaults for GNU ld with shared library support. These
14937 # are reset later if shared libraries are not supported. Putting them
14938 # here allows them to be overridden if necessary.
14939 runpath_var=LD_RUN_PATH
14940 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14941 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14942 # ancient GNU ld didn't support --whole-archive et. al.
14943 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14944 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14945 else
14946 whole_archive_flag_spec_F77=
14947 fi
14948 supports_anon_versioning=no
14949 case `$LD -v 2>/dev/null` in
14950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14953 *\ 2.11.*) ;; # other 2.11 versions
14954 *) supports_anon_versioning=yes ;;
14955 esac
14956
14957 # See if GNU ld supports shared libraries.
14958 case $host_os in
14959 aix[3-9]*)
14960 # On AIX/PPC, the GNU linker is very broken
14961 if test "$host_cpu" != ia64; then
14962 ld_shlibs_F77=no
14963 cat <<EOF 1>&2
14964
14965 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14966 *** to be unable to reliably create shared libraries on AIX.
14967 *** Therefore, libtool is disabling shared libraries support. If you
14968 *** really care for shared libraries, you may want to modify your PATH
14969 *** so that a non-GNU linker is found, and then restart.
14970
14971 EOF
14972 fi
14973 ;;
14974
14975 amigaos*)
14976 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)'
14977 hardcode_libdir_flag_spec_F77='-L$libdir'
14978 hardcode_minus_L_F77=yes
14979
14980 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14981 # that the semantics of dynamic libraries on AmigaOS, at least up
14982 # to version 4, is to share data among multiple programs linked
14983 # with the same dynamic library. Since this doesn't match the
14984 # behavior of shared libraries on other platforms, we can't use
14985 # them.
14986 ld_shlibs_F77=no
14987 ;;
14988
14989 beos*)
14990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14991 allow_undefined_flag_F77=unsupported
14992 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14993 # support --undefined. This deserves some investigation. FIXME
14994 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14995 else
14996 ld_shlibs_F77=no
14997 fi
14998 ;;
14999
15000 cygwin* | mingw* | pw32*)
15001 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15002 # as there is no search path for DLLs.
15003 hardcode_libdir_flag_spec_F77='-L$libdir'
15004 allow_undefined_flag_F77=unsupported
15005 always_export_symbols_F77=no
15006 enable_shared_with_static_runtimes_F77=yes
15007 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15008
15009 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15010 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15011 # If the export-symbols file already is a .def file (1st line
15012 # is EXPORTS), use it as is; otherwise, prepend...
15013 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15014 cp $export_symbols $output_objdir/$soname.def;
15015 else
15016 echo EXPORTS > $output_objdir/$soname.def;
15017 cat $export_symbols >> $output_objdir/$soname.def;
15018 fi~
15019 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15020 else
15021 ld_shlibs_F77=no
15022 fi
15023 ;;
15024
15025 interix[3-9]*)
15026 hardcode_direct_F77=no
15027 hardcode_shlibpath_var_F77=no
15028 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15029 export_dynamic_flag_spec_F77='${wl}-E'
15030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15031 # Instead, shared libraries are loaded at an image base (0x10000000 by
15032 # default) and relocated if they conflict, which is a slow very memory
15033 # consuming and fragmenting process. To avoid this, we pick a random,
15034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15036 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'
15037 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'
15038 ;;
15039
15040 gnu* | linux* | k*bsd*-gnu)
15041 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15042 tmp_addflag=
15043 case $cc_basename,$host_cpu in
15044 pgcc*) # Portland Group C compiler
15045 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'
15046 tmp_addflag=' $pic_flag'
15047 ;;
15048 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15049 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'
15050 tmp_addflag=' $pic_flag -Mnomain' ;;
15051 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15052 tmp_addflag=' -i_dynamic' ;;
15053 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15054 tmp_addflag=' -i_dynamic -nofor_main' ;;
15055 ifc* | ifort*) # Intel Fortran compiler
15056 tmp_addflag=' -nofor_main' ;;
15057 esac
15058 case `$CC -V 2>&1 | sed 5q` in
15059 *Sun\ C*) # Sun C 5.9
15060 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'
15061 tmp_sharedflag='-G' ;;
15062 *Sun\ F*) # Sun Fortran 8.3
15063 tmp_sharedflag='-G' ;;
15064 *)
15065 tmp_sharedflag='-shared' ;;
15066 esac
15067 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15068
15069 if test $supports_anon_versioning = yes; then
15070 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15071 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15072 $echo "local: *; };" >> $output_objdir/$libname.ver~
15073 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15074 fi
15075 else
15076 ld_shlibs_F77=no
15077 fi
15078 ;;
15079
15080 netbsd*)
15081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15082 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15083 wlarc=
15084 else
15085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15086 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15087 fi
15088 ;;
15089
15090 solaris*)
15091 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15092 ld_shlibs_F77=no
15093 cat <<EOF 1>&2
15094
15095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15096 *** create shared libraries on Solaris systems. Therefore, libtool
15097 *** is disabling shared libraries support. We urge you to upgrade GNU
15098 *** binutils to release 2.9.1 or newer. Another option is to modify
15099 *** your PATH or compiler configuration so that the native linker is
15100 *** used, and then restart.
15101
15102 EOF
15103 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15104 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15106 else
15107 ld_shlibs_F77=no
15108 fi
15109 ;;
15110
15111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15112 case `$LD -v 2>&1` in
15113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15114 ld_shlibs_F77=no
15115 cat <<_LT_EOF 1>&2
15116
15117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15118 *** reliably create shared libraries on SCO systems. Therefore, libtool
15119 *** is disabling shared libraries support. We urge you to upgrade GNU
15120 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15121 *** your PATH or compiler configuration so that the native linker is
15122 *** used, and then restart.
15123
15124 _LT_EOF
15125 ;;
15126 *)
15127 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15128 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15129 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15130 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15131 else
15132 ld_shlibs_F77=no
15133 fi
15134 ;;
15135 esac
15136 ;;
15137
15138 sunos4*)
15139 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15140 wlarc=
15141 hardcode_direct_F77=yes
15142 hardcode_shlibpath_var_F77=no
15143 ;;
15144
15145 *)
15146 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15147 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15148 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15149 else
15150 ld_shlibs_F77=no
15151 fi
15152 ;;
15153 esac
15154
15155 if test "$ld_shlibs_F77" = no; then
15156 runpath_var=
15157 hardcode_libdir_flag_spec_F77=
15158 export_dynamic_flag_spec_F77=
15159 whole_archive_flag_spec_F77=
15160 fi
15161 else
15162 # PORTME fill in a description of your system's linker (not GNU ld)
15163 case $host_os in
15164 aix3*)
15165 allow_undefined_flag_F77=unsupported
15166 always_export_symbols_F77=yes
15167 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'
15168 # Note: this linker hardcodes the directories in LIBPATH if there
15169 # are no directories specified by -L.
15170 hardcode_minus_L_F77=yes
15171 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15172 # Neither direct hardcoding nor static linking is supported with a
15173 # broken collect2.
15174 hardcode_direct_F77=unsupported
15175 fi
15176 ;;
15177
15178 aix[4-9]*)
15179 if test "$host_cpu" = ia64; then
15180 # On IA64, the linker does run time linking by default, so we don't
15181 # have to do anything special.
15182 aix_use_runtimelinking=no
15183 exp_sym_flag='-Bexport'
15184 no_entry_flag=""
15185 else
15186 # If we're using GNU nm, then we don't want the "-C" option.
15187 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15188 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15189 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'
15190 else
15191 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'
15192 fi
15193 aix_use_runtimelinking=no
15194
15195 # Test if we are trying to use run time linking or normal
15196 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15197 # need to do runtime linking.
15198 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15199 for ld_flag in $LDFLAGS; do
15200 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15201 aix_use_runtimelinking=yes
15202 break
15203 fi
15204 done
15205 ;;
15206 esac
15207
15208 exp_sym_flag='-bexport'
15209 no_entry_flag='-bnoentry'
15210 fi
15211
15212 # When large executables or shared objects are built, AIX ld can
15213 # have problems creating the table of contents. If linking a library
15214 # or program results in "error TOC overflow" add -mminimal-toc to
15215 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15216 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15217
15218 archive_cmds_F77=''
15219 hardcode_direct_F77=yes
15220 hardcode_libdir_separator_F77=':'
15221 link_all_deplibs_F77=yes
15222
15223 if test "$GCC" = yes; then
15224 case $host_os in aix4.[012]|aix4.[012].*)
15225 # We only want to do this on AIX 4.2 and lower, the check
15226 # below for broken collect2 doesn't work under 4.3+
15227 collect2name=`${CC} -print-prog-name=collect2`
15228 if test -f "$collect2name" && \
15229 strings "$collect2name" | grep resolve_lib_name >/dev/null
15230 then
15231 # We have reworked collect2
15232 :
15233 else
15234 # We have old collect2
15235 hardcode_direct_F77=unsupported
15236 # It fails to find uninstalled libraries when the uninstalled
15237 # path is not listed in the libpath. Setting hardcode_minus_L
15238 # to unsupported forces relinking
15239 hardcode_minus_L_F77=yes
15240 hardcode_libdir_flag_spec_F77='-L$libdir'
15241 hardcode_libdir_separator_F77=
15242 fi
15243 ;;
15244 esac
15245 shared_flag='-shared'
15246 if test "$aix_use_runtimelinking" = yes; then
15247 shared_flag="$shared_flag "'${wl}-G'
15248 fi
15249 else
15250 # not using gcc
15251 if test "$host_cpu" = ia64; then
15252 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15253 # chokes on -Wl,-G. The following line is correct:
15254 shared_flag='-G'
15255 else
15256 if test "$aix_use_runtimelinking" = yes; then
15257 shared_flag='${wl}-G'
15258 else
15259 shared_flag='${wl}-bM:SRE'
15260 fi
15261 fi
15262 fi
15263
15264 # It seems that -bexpall does not export symbols beginning with
15265 # underscore (_), so it is better to generate a list of symbols to export.
15266 always_export_symbols_F77=yes
15267 if test "$aix_use_runtimelinking" = yes; then
15268 # Warning - without using the other runtime loading flags (-brtl),
15269 # -berok will link without error, but may produce a broken library.
15270 allow_undefined_flag_F77='-berok'
15271 # Determine the default libpath from the value encoded in an empty executable.
15272 cat >conftest.$ac_ext <<_ACEOF
15273 program main
15274
15275 end
15276 _ACEOF
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281 *) ac_try_echo=$ac_try;;
15282 esac
15283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15284 $as_echo "$ac_try_echo") >&5
15285 (eval "$ac_link") 2>conftest.er1
15286 ac_status=$?
15287 grep -v '^ *+' conftest.er1 >conftest.err
15288 rm -f conftest.er1
15289 cat conftest.err >&5
15290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && {
15292 test -z "$ac_f77_werror_flag" ||
15293 test ! -s conftest.err
15294 } && test -s conftest$ac_exeext && {
15295 test "$cross_compiling" = yes ||
15296 $as_test_x conftest$ac_exeext
15297 }; then
15298
15299 lt_aix_libpath_sed='
15300 /Import File Strings/,/^$/ {
15301 /^0/ {
15302 s/^0 *\(.*\)$/\1/
15303 p
15304 }
15305 }'
15306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15307 # Check for a 64-bit object if we didn't find anything.
15308 if test -z "$aix_libpath"; then
15309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15310 fi
15311 else
15312 $as_echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315
15316 fi
15317
15318 rm -rf conftest.dSYM
15319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15320 conftest$ac_exeext conftest.$ac_ext
15321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15322
15323 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15324 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"
15325 else
15326 if test "$host_cpu" = ia64; then
15327 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15328 allow_undefined_flag_F77="-z nodefs"
15329 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"
15330 else
15331 # Determine the default libpath from the value encoded in an empty executable.
15332 cat >conftest.$ac_ext <<_ACEOF
15333 program main
15334
15335 end
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15344 $as_echo "$ac_try_echo") >&5
15345 (eval "$ac_link") 2>conftest.er1
15346 ac_status=$?
15347 grep -v '^ *+' conftest.er1 >conftest.err
15348 rm -f conftest.er1
15349 cat conftest.err >&5
15350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } && {
15352 test -z "$ac_f77_werror_flag" ||
15353 test ! -s conftest.err
15354 } && test -s conftest$ac_exeext && {
15355 test "$cross_compiling" = yes ||
15356 $as_test_x conftest$ac_exeext
15357 }; then
15358
15359 lt_aix_libpath_sed='
15360 /Import File Strings/,/^$/ {
15361 /^0/ {
15362 s/^0 *\(.*\)$/\1/
15363 p
15364 }
15365 }'
15366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15367 # Check for a 64-bit object if we didn't find anything.
15368 if test -z "$aix_libpath"; then
15369 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15370 fi
15371 else
15372 $as_echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15374
15375
15376 fi
15377
15378 rm -rf conftest.dSYM
15379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15380 conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15382
15383 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15384 # Warning - without using the other run time loading flags,
15385 # -berok will link without error, but may produce a broken library.
15386 no_undefined_flag_F77=' ${wl}-bernotok'
15387 allow_undefined_flag_F77=' ${wl}-berok'
15388 # Exported symbols can be pulled into shared objects from archives
15389 whole_archive_flag_spec_F77='$convenience'
15390 archive_cmds_need_lc_F77=yes
15391 # This is similar to how AIX traditionally builds its shared libraries.
15392 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'
15393 fi
15394 fi
15395 ;;
15396
15397 amigaos*)
15398 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)'
15399 hardcode_libdir_flag_spec_F77='-L$libdir'
15400 hardcode_minus_L_F77=yes
15401 # see comment about different semantics on the GNU ld section
15402 ld_shlibs_F77=no
15403 ;;
15404
15405 bsdi[45]*)
15406 export_dynamic_flag_spec_F77=-rdynamic
15407 ;;
15408
15409 cygwin* | mingw* | pw32*)
15410 # When not using gcc, we currently assume that we are using
15411 # Microsoft Visual C++.
15412 # hardcode_libdir_flag_spec is actually meaningless, as there is
15413 # no search path for DLLs.
15414 hardcode_libdir_flag_spec_F77=' '
15415 allow_undefined_flag_F77=unsupported
15416 # Tell ltmain to make .lib files, not .a files.
15417 libext=lib
15418 # Tell ltmain to make .dll files, not .so files.
15419 shrext_cmds=".dll"
15420 # FIXME: Setting linknames here is a bad hack.
15421 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15422 # The linker will automatically build a .lib file if we build a DLL.
15423 old_archive_From_new_cmds_F77='true'
15424 # FIXME: Should let the user specify the lib program.
15425 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15426 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15427 enable_shared_with_static_runtimes_F77=yes
15428 ;;
15429
15430 darwin* | rhapsody*)
15431 case $host_os in
15432 rhapsody* | darwin1.[012])
15433 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15434 ;;
15435 *) # Darwin 1.3 on
15436 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15437 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15438 else
15439 case ${MACOSX_DEPLOYMENT_TARGET} in
15440 10.[012])
15441 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15442 ;;
15443 10.*)
15444 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15445 ;;
15446 esac
15447 fi
15448 ;;
15449 esac
15450 archive_cmds_need_lc_F77=no
15451 hardcode_direct_F77=no
15452 hardcode_automatic_F77=yes
15453 hardcode_shlibpath_var_F77=unsupported
15454 whole_archive_flag_spec_F77=''
15455 link_all_deplibs_F77=yes
15456 if test "$GCC" = yes ; then
15457 output_verbose_link_cmd='echo'
15458 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}"
15459 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15460 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}"
15461 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}"
15462 else
15463 case $cc_basename in
15464 xlc*)
15465 output_verbose_link_cmd='echo'
15466 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15467 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15469 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}'
15470 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}'
15471 ;;
15472 *)
15473 ld_shlibs_F77=no
15474 ;;
15475 esac
15476 fi
15477 ;;
15478
15479 dgux*)
15480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15481 hardcode_libdir_flag_spec_F77='-L$libdir'
15482 hardcode_shlibpath_var_F77=no
15483 ;;
15484
15485 freebsd1*)
15486 ld_shlibs_F77=no
15487 ;;
15488
15489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15490 # support. Future versions do this automatically, but an explicit c++rt0.o
15491 # does not break anything, and helps significantly (at the cost of a little
15492 # extra space).
15493 freebsd2.2*)
15494 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15495 hardcode_libdir_flag_spec_F77='-R$libdir'
15496 hardcode_direct_F77=yes
15497 hardcode_shlibpath_var_F77=no
15498 ;;
15499
15500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15501 freebsd2*)
15502 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15503 hardcode_direct_F77=yes
15504 hardcode_minus_L_F77=yes
15505 hardcode_shlibpath_var_F77=no
15506 ;;
15507
15508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15509 freebsd* | dragonfly*)
15510 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15511 hardcode_libdir_flag_spec_F77='-R$libdir'
15512 hardcode_direct_F77=yes
15513 hardcode_shlibpath_var_F77=no
15514 ;;
15515
15516 hpux9*)
15517 if test "$GCC" = yes; then
15518 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'
15519 else
15520 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'
15521 fi
15522 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15523 hardcode_libdir_separator_F77=:
15524 hardcode_direct_F77=yes
15525
15526 # hardcode_minus_L: Not really in the search PATH,
15527 # but as the default location of the library.
15528 hardcode_minus_L_F77=yes
15529 export_dynamic_flag_spec_F77='${wl}-E'
15530 ;;
15531
15532 hpux10*)
15533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15534 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15535 else
15536 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15537 fi
15538 if test "$with_gnu_ld" = no; then
15539 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15540 hardcode_libdir_separator_F77=:
15541
15542 hardcode_direct_F77=yes
15543 export_dynamic_flag_spec_F77='${wl}-E'
15544
15545 # hardcode_minus_L: Not really in the search PATH,
15546 # but as the default location of the library.
15547 hardcode_minus_L_F77=yes
15548 fi
15549 ;;
15550
15551 hpux11*)
15552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15553 case $host_cpu in
15554 hppa*64*)
15555 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 ;;
15557 ia64*)
15558 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15559 ;;
15560 *)
15561 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15562 ;;
15563 esac
15564 else
15565 case $host_cpu in
15566 hppa*64*)
15567 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15568 ;;
15569 ia64*)
15570 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15571 ;;
15572 *)
15573 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15574 ;;
15575 esac
15576 fi
15577 if test "$with_gnu_ld" = no; then
15578 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15579 hardcode_libdir_separator_F77=:
15580
15581 case $host_cpu in
15582 hppa*64*|ia64*)
15583 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15584 hardcode_direct_F77=no
15585 hardcode_shlibpath_var_F77=no
15586 ;;
15587 *)
15588 hardcode_direct_F77=yes
15589 export_dynamic_flag_spec_F77='${wl}-E'
15590
15591 # hardcode_minus_L: Not really in the search PATH,
15592 # but as the default location of the library.
15593 hardcode_minus_L_F77=yes
15594 ;;
15595 esac
15596 fi
15597 ;;
15598
15599 irix5* | irix6* | nonstopux*)
15600 if test "$GCC" = yes; then
15601 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'
15602 else
15603 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'
15604 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15605 fi
15606 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15607 hardcode_libdir_separator_F77=:
15608 link_all_deplibs_F77=yes
15609 ;;
15610
15611 netbsd*)
15612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15613 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15614 else
15615 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15616 fi
15617 hardcode_libdir_flag_spec_F77='-R$libdir'
15618 hardcode_direct_F77=yes
15619 hardcode_shlibpath_var_F77=no
15620 ;;
15621
15622 newsos6)
15623 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15624 hardcode_direct_F77=yes
15625 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15626 hardcode_libdir_separator_F77=:
15627 hardcode_shlibpath_var_F77=no
15628 ;;
15629
15630 openbsd*)
15631 if test -f /usr/libexec/ld.so; then
15632 hardcode_direct_F77=yes
15633 hardcode_shlibpath_var_F77=no
15634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15635 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15637 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15638 export_dynamic_flag_spec_F77='${wl}-E'
15639 else
15640 case $host_os in
15641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15642 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643 hardcode_libdir_flag_spec_F77='-R$libdir'
15644 ;;
15645 *)
15646 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15647 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15648 ;;
15649 esac
15650 fi
15651 else
15652 ld_shlibs_F77=no
15653 fi
15654 ;;
15655
15656 os2*)
15657 hardcode_libdir_flag_spec_F77='-L$libdir'
15658 hardcode_minus_L_F77=yes
15659 allow_undefined_flag_F77=unsupported
15660 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'
15661 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15662 ;;
15663
15664 osf3*)
15665 if test "$GCC" = yes; then
15666 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15667 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'
15668 else
15669 allow_undefined_flag_F77=' -expect_unresolved \*'
15670 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'
15671 fi
15672 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15673 hardcode_libdir_separator_F77=:
15674 ;;
15675
15676 osf4* | osf5*) # as osf3* with the addition of -msym flag
15677 if test "$GCC" = yes; then
15678 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15679 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'
15680 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15681 else
15682 allow_undefined_flag_F77=' -expect_unresolved \*'
15683 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'
15684 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~
15685 $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'
15686
15687 # Both c and cxx compiler support -rpath directly
15688 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15689 fi
15690 hardcode_libdir_separator_F77=:
15691 ;;
15692
15693 solaris*)
15694 no_undefined_flag_F77=' -z text'
15695 if test "$GCC" = yes; then
15696 wlarc='${wl}'
15697 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15699 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15700 else
15701 wlarc=''
15702 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15703 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15704 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15705 fi
15706 hardcode_libdir_flag_spec_F77='-R$libdir'
15707 hardcode_shlibpath_var_F77=no
15708 case $host_os in
15709 solaris2.[0-5] | solaris2.[0-5].*) ;;
15710 *)
15711 # The compiler driver will combine and reorder linker options,
15712 # but understands `-z linker_flag'. GCC discards it without `$wl',
15713 # but is careful enough not to reorder.
15714 # Supported since Solaris 2.6 (maybe 2.5.1?)
15715 if test "$GCC" = yes; then
15716 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15717 else
15718 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15719 fi
15720 ;;
15721 esac
15722 link_all_deplibs_F77=yes
15723 ;;
15724
15725 sunos4*)
15726 if test "x$host_vendor" = xsequent; then
15727 # Use $CC to link under sequent, because it throws in some extra .o
15728 # files that make .init and .fini sections work.
15729 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15730 else
15731 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15732 fi
15733 hardcode_libdir_flag_spec_F77='-L$libdir'
15734 hardcode_direct_F77=yes
15735 hardcode_minus_L_F77=yes
15736 hardcode_shlibpath_var_F77=no
15737 ;;
15738
15739 sysv4)
15740 case $host_vendor in
15741 sni)
15742 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct_F77=yes # is this really true???
15744 ;;
15745 siemens)
15746 ## LD is ld it makes a PLAMLIB
15747 ## CC just makes a GrossModule.
15748 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15749 reload_cmds_F77='$CC -r -o $output$reload_objs'
15750 hardcode_direct_F77=no
15751 ;;
15752 motorola)
15753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15754 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15755 ;;
15756 esac
15757 runpath_var='LD_RUN_PATH'
15758 hardcode_shlibpath_var_F77=no
15759 ;;
15760
15761 sysv4.3*)
15762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_shlibpath_var_F77=no
15764 export_dynamic_flag_spec_F77='-Bexport'
15765 ;;
15766
15767 sysv4*MP*)
15768 if test -d /usr/nec; then
15769 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15770 hardcode_shlibpath_var_F77=no
15771 runpath_var=LD_RUN_PATH
15772 hardcode_runpath_var=yes
15773 ld_shlibs_F77=yes
15774 fi
15775 ;;
15776
15777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15778 no_undefined_flag_F77='${wl}-z,text'
15779 archive_cmds_need_lc_F77=no
15780 hardcode_shlibpath_var_F77=no
15781 runpath_var='LD_RUN_PATH'
15782
15783 if test "$GCC" = yes; then
15784 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15786 else
15787 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15788 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15789 fi
15790 ;;
15791
15792 sysv5* | sco3.2v5* | sco5v6*)
15793 # Note: We can NOT use -z defs as we might desire, because we do not
15794 # link with -lc, and that would cause any symbols used from libc to
15795 # always be unresolved, which means just about no library would
15796 # ever link correctly. If we're not using GNU ld we use -z text
15797 # though, which does catch some bad symbols but isn't as heavy-handed
15798 # as -z defs.
15799 no_undefined_flag_F77='${wl}-z,text'
15800 allow_undefined_flag_F77='${wl}-z,nodefs'
15801 archive_cmds_need_lc_F77=no
15802 hardcode_shlibpath_var_F77=no
15803 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15804 hardcode_libdir_separator_F77=':'
15805 link_all_deplibs_F77=yes
15806 export_dynamic_flag_spec_F77='${wl}-Bexport'
15807 runpath_var='LD_RUN_PATH'
15808
15809 if test "$GCC" = yes; then
15810 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15812 else
15813 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15814 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15815 fi
15816 ;;
15817
15818 uts4*)
15819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15820 hardcode_libdir_flag_spec_F77='-L$libdir'
15821 hardcode_shlibpath_var_F77=no
15822 ;;
15823
15824 *)
15825 ld_shlibs_F77=no
15826 ;;
15827 esac
15828 fi
15829
15830 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15831 $as_echo "$ld_shlibs_F77" >&6; }
15832 test "$ld_shlibs_F77" = no && can_build_shared=no
15833
15834 #
15835 # Do we need to explicitly link libc?
15836 #
15837 case "x$archive_cmds_need_lc_F77" in
15838 x|xyes)
15839 # Assume -lc should be added
15840 archive_cmds_need_lc_F77=yes
15841
15842 if test "$enable_shared" = yes && test "$GCC" = yes; then
15843 case $archive_cmds_F77 in
15844 *'~'*)
15845 # FIXME: we may have to deal with multi-command sequences.
15846 ;;
15847 '$CC '*)
15848 # Test whether the compiler implicitly links with -lc since on some
15849 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15850 # to ld, don't add -lc before -lgcc.
15851 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15852 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15853 $rm conftest*
15854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15855
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857 (eval $ac_compile) 2>&5
15858 ac_status=$?
15859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } 2>conftest.err; then
15861 soname=conftest
15862 lib=conftest
15863 libobjs=conftest.$ac_objext
15864 deplibs=
15865 wl=$lt_prog_compiler_wl_F77
15866 pic_flag=$lt_prog_compiler_pic_F77
15867 compiler_flags=-v
15868 linker_flags=-v
15869 verstring=
15870 output_objdir=.
15871 libname=conftest
15872 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15873 allow_undefined_flag_F77=
15874 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15875 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15876 ac_status=$?
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }
15879 then
15880 archive_cmds_need_lc_F77=no
15881 else
15882 archive_cmds_need_lc_F77=yes
15883 fi
15884 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15885 else
15886 cat conftest.err 1>&5
15887 fi
15888 $rm conftest*
15889 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15890 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15891 ;;
15892 esac
15893 fi
15894 ;;
15895 esac
15896
15897 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15898 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15899 library_names_spec=
15900 libname_spec='lib$name'
15901 soname_spec=
15902 shrext_cmds=".so"
15903 postinstall_cmds=
15904 postuninstall_cmds=
15905 finish_cmds=
15906 finish_eval=
15907 shlibpath_var=
15908 shlibpath_overrides_runpath=unknown
15909 version_type=none
15910 dynamic_linker="$host_os ld.so"
15911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15912
15913 need_lib_prefix=unknown
15914 hardcode_into_libs=no
15915
15916 # when you set need_version to no, make sure it does not cause -set_version
15917 # flags to be left without arguments
15918 need_version=unknown
15919
15920 case $host_os in
15921 aix3*)
15922 version_type=linux
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15924 shlibpath_var=LIBPATH
15925
15926 # AIX 3 has no versioning support, so we append a major version to the name.
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 ;;
15929
15930 aix[4-9]*)
15931 version_type=linux
15932 need_lib_prefix=no
15933 need_version=no
15934 hardcode_into_libs=yes
15935 if test "$host_cpu" = ia64; then
15936 # AIX 5 supports IA64
15937 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 else
15940 # With GCC up to 2.95.x, collect2 would create an import file
15941 # for dependence libraries. The import file would start with
15942 # the line `#! .'. This would cause the generated library to
15943 # depend on `.', always an invalid library. This was fixed in
15944 # development snapshots of GCC prior to 3.0.
15945 case $host_os in
15946 aix4 | aix4.[01] | aix4.[01].*)
15947 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15948 echo ' yes '
15949 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15950 :
15951 else
15952 can_build_shared=no
15953 fi
15954 ;;
15955 esac
15956 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15957 # soname into executable. Probably we can add versioning support to
15958 # collect2, so additional links can be useful in future.
15959 if test "$aix_use_runtimelinking" = yes; then
15960 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15961 # instead of lib<name>.a to let people know that these are not
15962 # typical AIX shared libraries.
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964 else
15965 # We preserve .a as extension for shared libraries through AIX4.2
15966 # and later when we are not doing run time linking.
15967 library_names_spec='${libname}${release}.a $libname.a'
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 fi
15970 shlibpath_var=LIBPATH
15971 fi
15972 ;;
15973
15974 amigaos*)
15975 library_names_spec='$libname.ixlibrary $libname.a'
15976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15977 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'
15978 ;;
15979
15980 beos*)
15981 library_names_spec='${libname}${shared_ext}'
15982 dynamic_linker="$host_os ld.so"
15983 shlibpath_var=LIBRARY_PATH
15984 ;;
15985
15986 bsdi[45]*)
15987 version_type=linux
15988 need_version=no
15989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15990 soname_spec='${libname}${release}${shared_ext}$major'
15991 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15992 shlibpath_var=LD_LIBRARY_PATH
15993 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15994 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15995 # the default ld.so.conf also contains /usr/contrib/lib and
15996 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15997 # libtool to hard-code these into programs
15998 ;;
15999
16000 cygwin* | mingw* | pw32*)
16001 version_type=windows
16002 shrext_cmds=".dll"
16003 need_version=no
16004 need_lib_prefix=no
16005
16006 case $GCC,$host_os in
16007 yes,cygwin* | yes,mingw* | yes,pw32*)
16008 library_names_spec='$libname.dll.a'
16009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16010 postinstall_cmds='base_file=`basename \${file}`~
16011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16012 dldir=$destdir/`dirname \$dlpath`~
16013 test -d \$dldir || mkdir -p \$dldir~
16014 $install_prog $dir/$dlname \$dldir/$dlname~
16015 chmod a+x \$dldir/$dlname'
16016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16017 dlpath=$dir/\$dldll~
16018 $rm \$dlpath'
16019 shlibpath_overrides_runpath=yes
16020
16021 case $host_os in
16022 cygwin*)
16023 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16024 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16025 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16026 ;;
16027 mingw*)
16028 # MinGW DLLs use traditional 'lib' prefix
16029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16031 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16032 # It is most probably a Windows format PATH printed by
16033 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16034 # path with ; separators, and with drive letters. We can handle the
16035 # drive letters (cygwin fileutils understands them), so leave them,
16036 # especially as we might pass files found there to a mingw objdump,
16037 # which wouldn't understand a cygwinified path. Ahh.
16038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16039 else
16040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16041 fi
16042 ;;
16043 pw32*)
16044 # pw32 DLLs use 'pw' prefix rather than 'lib'
16045 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16046 ;;
16047 esac
16048 ;;
16049
16050 *)
16051 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16052 ;;
16053 esac
16054 dynamic_linker='Win32 ld.exe'
16055 # FIXME: first we should search . and the directory the executable is in
16056 shlibpath_var=PATH
16057 ;;
16058
16059 darwin* | rhapsody*)
16060 dynamic_linker="$host_os dyld"
16061 version_type=darwin
16062 need_lib_prefix=no
16063 need_version=no
16064 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16065 soname_spec='${libname}${release}${major}$shared_ext'
16066 shlibpath_overrides_runpath=yes
16067 shlibpath_var=DYLD_LIBRARY_PATH
16068 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16069
16070 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16071 ;;
16072
16073 dgux*)
16074 version_type=linux
16075 need_lib_prefix=no
16076 need_version=no
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16078 soname_spec='${libname}${release}${shared_ext}$major'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 ;;
16081
16082 freebsd1*)
16083 dynamic_linker=no
16084 ;;
16085
16086 freebsd* | dragonfly*)
16087 # DragonFly does not have aout. When/if they implement a new
16088 # versioning mechanism, adjust this.
16089 if test -x /usr/bin/objformat; then
16090 objformat=`/usr/bin/objformat`
16091 else
16092 case $host_os in
16093 freebsd[123]*) objformat=aout ;;
16094 *) objformat=elf ;;
16095 esac
16096 fi
16097 version_type=freebsd-$objformat
16098 case $version_type in
16099 freebsd-elf*)
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16101 need_version=no
16102 need_lib_prefix=no
16103 ;;
16104 freebsd-*)
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16106 need_version=yes
16107 ;;
16108 esac
16109 shlibpath_var=LD_LIBRARY_PATH
16110 case $host_os in
16111 freebsd2*)
16112 shlibpath_overrides_runpath=yes
16113 ;;
16114 freebsd3.[01]* | freebsdelf3.[01]*)
16115 shlibpath_overrides_runpath=yes
16116 hardcode_into_libs=yes
16117 ;;
16118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16120 shlibpath_overrides_runpath=no
16121 hardcode_into_libs=yes
16122 ;;
16123 *) # from 4.6 on, and DragonFly
16124 shlibpath_overrides_runpath=yes
16125 hardcode_into_libs=yes
16126 ;;
16127 esac
16128 ;;
16129
16130 gnu*)
16131 version_type=linux
16132 need_lib_prefix=no
16133 need_version=no
16134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16135 soname_spec='${libname}${release}${shared_ext}$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 hardcode_into_libs=yes
16138 ;;
16139
16140 hpux9* | hpux10* | hpux11*)
16141 # Give a soname corresponding to the major version so that dld.sl refuses to
16142 # link against other versions.
16143 version_type=sunos
16144 need_lib_prefix=no
16145 need_version=no
16146 case $host_cpu in
16147 ia64*)
16148 shrext_cmds='.so'
16149 hardcode_into_libs=yes
16150 dynamic_linker="$host_os dld.so"
16151 shlibpath_var=LD_LIBRARY_PATH
16152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 if test "X$HPUX_IA64_MODE" = X32; then
16156 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16157 else
16158 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16159 fi
16160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16161 ;;
16162 hppa*64*)
16163 shrext_cmds='.sl'
16164 hardcode_into_libs=yes
16165 dynamic_linker="$host_os dld.sl"
16166 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16172 ;;
16173 *)
16174 shrext_cmds='.sl'
16175 dynamic_linker="$host_os dld.sl"
16176 shlibpath_var=SHLIB_PATH
16177 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 ;;
16181 esac
16182 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16183 postinstall_cmds='chmod 555 $lib'
16184 ;;
16185
16186 interix[3-9]*)
16187 version_type=linux
16188 need_lib_prefix=no
16189 need_version=no
16190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16191 soname_spec='${libname}${release}${shared_ext}$major'
16192 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 shlibpath_overrides_runpath=no
16195 hardcode_into_libs=yes
16196 ;;
16197
16198 irix5* | irix6* | nonstopux*)
16199 case $host_os in
16200 nonstopux*) version_type=nonstopux ;;
16201 *)
16202 if test "$lt_cv_prog_gnu_ld" = yes; then
16203 version_type=linux
16204 else
16205 version_type=irix
16206 fi ;;
16207 esac
16208 need_lib_prefix=no
16209 need_version=no
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16212 case $host_os in
16213 irix5* | nonstopux*)
16214 libsuff= shlibsuff=
16215 ;;
16216 *)
16217 case $LD in # libtool.m4 will add one of these switches to LD
16218 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16219 libsuff= shlibsuff= libmagic=32-bit;;
16220 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16221 libsuff=32 shlibsuff=N32 libmagic=N32;;
16222 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16223 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16224 *) libsuff= shlibsuff= libmagic=never-match;;
16225 esac
16226 ;;
16227 esac
16228 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16229 shlibpath_overrides_runpath=no
16230 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16231 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16232 hardcode_into_libs=yes
16233 ;;
16234
16235 # No shared lib support for Linux oldld, aout, or coff.
16236 linux*oldld* | linux*aout* | linux*coff*)
16237 dynamic_linker=no
16238 ;;
16239
16240 # This must be Linux ELF.
16241 linux* | k*bsd*-gnu)
16242 version_type=linux
16243 need_lib_prefix=no
16244 need_version=no
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16248 shlibpath_var=LD_LIBRARY_PATH
16249 shlibpath_overrides_runpath=no
16250 # This implies no fast_install, which is unacceptable.
16251 # Some rework will be needed to allow for fast_install
16252 # before this can be enabled.
16253 hardcode_into_libs=yes
16254 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16255 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16256
16257 # Append ld.so.conf contents to the search path
16258 if test -f /etc/ld.so.conf; then
16259 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' ' '`
16260 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16261 fi
16262
16263 # We used to test for /lib/ld.so.1 and disable shared libraries on
16264 # powerpc, because MkLinux only supported shared libraries with the
16265 # GNU dynamic linker. Since this was broken with cross compilers,
16266 # most powerpc-linux boxes support dynamic linking these days and
16267 # people can always --disable-shared, the test was removed, and we
16268 # assume the GNU/Linux dynamic linker is in use.
16269 dynamic_linker='GNU/Linux ld.so'
16270 ;;
16271
16272 netbsd*)
16273 version_type=sunos
16274 need_lib_prefix=no
16275 need_version=no
16276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16279 dynamic_linker='NetBSD (a.out) ld.so'
16280 else
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 dynamic_linker='NetBSD ld.elf_so'
16284 fi
16285 shlibpath_var=LD_LIBRARY_PATH
16286 shlibpath_overrides_runpath=yes
16287 hardcode_into_libs=yes
16288 ;;
16289
16290 newsos6)
16291 version_type=linux
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=yes
16295 ;;
16296
16297 nto-qnx*)
16298 version_type=linux
16299 need_lib_prefix=no
16300 need_version=no
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 shlibpath_overrides_runpath=yes
16305 ;;
16306
16307 openbsd*)
16308 version_type=sunos
16309 sys_lib_dlsearch_path_spec="/usr/lib"
16310 need_lib_prefix=no
16311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16312 case $host_os in
16313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16314 *) need_version=no ;;
16315 esac
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16318 shlibpath_var=LD_LIBRARY_PATH
16319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16320 case $host_os in
16321 openbsd2.[89] | openbsd2.[89].*)
16322 shlibpath_overrides_runpath=no
16323 ;;
16324 *)
16325 shlibpath_overrides_runpath=yes
16326 ;;
16327 esac
16328 else
16329 shlibpath_overrides_runpath=yes
16330 fi
16331 ;;
16332
16333 os2*)
16334 libname_spec='$name'
16335 shrext_cmds=".dll"
16336 need_lib_prefix=no
16337 library_names_spec='$libname${shared_ext} $libname.a'
16338 dynamic_linker='OS/2 ld.exe'
16339 shlibpath_var=LIBPATH
16340 ;;
16341
16342 osf3* | osf4* | osf5*)
16343 version_type=osf
16344 need_lib_prefix=no
16345 need_version=no
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 shlibpath_var=LD_LIBRARY_PATH
16349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16351 ;;
16352
16353 rdos*)
16354 dynamic_linker=no
16355 ;;
16356
16357 solaris*)
16358 version_type=linux
16359 need_lib_prefix=no
16360 need_version=no
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=yes
16365 hardcode_into_libs=yes
16366 # ldd complains unless libraries are executable
16367 postinstall_cmds='chmod +x $lib'
16368 ;;
16369
16370 sunos4*)
16371 version_type=sunos
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 shlibpath_overrides_runpath=yes
16376 if test "$with_gnu_ld" = yes; then
16377 need_lib_prefix=no
16378 fi
16379 need_version=yes
16380 ;;
16381
16382 sysv4 | sysv4.3*)
16383 version_type=linux
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385 soname_spec='${libname}${release}${shared_ext}$major'
16386 shlibpath_var=LD_LIBRARY_PATH
16387 case $host_vendor in
16388 sni)
16389 shlibpath_overrides_runpath=no
16390 need_lib_prefix=no
16391 export_dynamic_flag_spec='${wl}-Blargedynsym'
16392 runpath_var=LD_RUN_PATH
16393 ;;
16394 siemens)
16395 need_lib_prefix=no
16396 ;;
16397 motorola)
16398 need_lib_prefix=no
16399 need_version=no
16400 shlibpath_overrides_runpath=no
16401 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16402 ;;
16403 esac
16404 ;;
16405
16406 sysv4*MP*)
16407 if test -d /usr/nec ;then
16408 version_type=linux
16409 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16410 soname_spec='$libname${shared_ext}.$major'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 fi
16413 ;;
16414
16415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16416 version_type=freebsd-elf
16417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
16421 shlibpath_var=LD_LIBRARY_PATH
16422 hardcode_into_libs=yes
16423 if test "$with_gnu_ld" = yes; then
16424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16425 shlibpath_overrides_runpath=no
16426 else
16427 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16428 shlibpath_overrides_runpath=yes
16429 case $host_os in
16430 sco3.2v5*)
16431 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16432 ;;
16433 esac
16434 fi
16435 sys_lib_dlsearch_path_spec='/usr/lib'
16436 ;;
16437
16438 uts4*)
16439 version_type=linux
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 ;;
16444
16445 *)
16446 dynamic_linker=no
16447 ;;
16448 esac
16449 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16450 $as_echo "$dynamic_linker" >&6; }
16451 test "$dynamic_linker" = no && can_build_shared=no
16452
16453 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16454 $as_echo_n "(cached) " >&6
16455 else
16456 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16457 fi
16458
16459 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16460 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16461 $as_echo_n "(cached) " >&6
16462 else
16463 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16464 fi
16465
16466 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16467
16468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16469 if test "$GCC" = yes; then
16470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16471 fi
16472
16473 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16474 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16475 hardcode_action_F77=
16476 if test -n "$hardcode_libdir_flag_spec_F77" || \
16477 test -n "$runpath_var_F77" || \
16478 test "X$hardcode_automatic_F77" = "Xyes" ; then
16479
16480 # We can hardcode non-existant directories.
16481 if test "$hardcode_direct_F77" != no &&
16482 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16483 # have to relink, otherwise we might link with an installed library
16484 # when we should be linking with a yet-to-be-installed one
16485 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16486 test "$hardcode_minus_L_F77" != no; then
16487 # Linking always hardcodes the temporary library directory.
16488 hardcode_action_F77=relink
16489 else
16490 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16491 hardcode_action_F77=immediate
16492 fi
16493 else
16494 # We cannot hardcode anything, or else we can only hardcode existing
16495 # directories.
16496 hardcode_action_F77=unsupported
16497 fi
16498 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16499 $as_echo "$hardcode_action_F77" >&6; }
16500
16501 if test "$hardcode_action_F77" = relink; then
16502 # Fast installation is not supported
16503 enable_fast_install=no
16504 elif test "$shlibpath_overrides_runpath" = yes ||
16505 test "$enable_shared" = no; then
16506 # Fast installation is not necessary
16507 enable_fast_install=needless
16508 fi
16509
16510
16511 # The else clause should only fire when bootstrapping the
16512 # libtool distribution, otherwise you forgot to ship ltmain.sh
16513 # with your package, and you will get complaints that there are
16514 # no rules to generate ltmain.sh.
16515 if test -f "$ltmain"; then
16516 # See if we are running on zsh, and set the options which allow our commands through
16517 # without removal of \ escapes.
16518 if test -n "${ZSH_VERSION+set}" ; then
16519 setopt NO_GLOB_SUBST
16520 fi
16521 # Now quote all the things that may contain metacharacters while being
16522 # careful not to overquote the AC_SUBSTed values. We take copies of the
16523 # variables and quote the copies for generation of the libtool script.
16524 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16525 SED SHELL STRIP \
16526 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16527 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16528 deplibs_check_method reload_flag reload_cmds need_locks \
16529 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16530 lt_cv_sys_global_symbol_to_c_name_address \
16531 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16532 old_postinstall_cmds old_postuninstall_cmds \
16533 compiler_F77 \
16534 CC_F77 \
16535 LD_F77 \
16536 lt_prog_compiler_wl_F77 \
16537 lt_prog_compiler_pic_F77 \
16538 lt_prog_compiler_static_F77 \
16539 lt_prog_compiler_no_builtin_flag_F77 \
16540 export_dynamic_flag_spec_F77 \
16541 thread_safe_flag_spec_F77 \
16542 whole_archive_flag_spec_F77 \
16543 enable_shared_with_static_runtimes_F77 \
16544 old_archive_cmds_F77 \
16545 old_archive_from_new_cmds_F77 \
16546 predep_objects_F77 \
16547 postdep_objects_F77 \
16548 predeps_F77 \
16549 postdeps_F77 \
16550 compiler_lib_search_path_F77 \
16551 compiler_lib_search_dirs_F77 \
16552 archive_cmds_F77 \
16553 archive_expsym_cmds_F77 \
16554 postinstall_cmds_F77 \
16555 postuninstall_cmds_F77 \
16556 old_archive_from_expsyms_cmds_F77 \
16557 allow_undefined_flag_F77 \
16558 no_undefined_flag_F77 \
16559 export_symbols_cmds_F77 \
16560 hardcode_libdir_flag_spec_F77 \
16561 hardcode_libdir_flag_spec_ld_F77 \
16562 hardcode_libdir_separator_F77 \
16563 hardcode_automatic_F77 \
16564 module_cmds_F77 \
16565 module_expsym_cmds_F77 \
16566 lt_cv_prog_compiler_c_o_F77 \
16567 fix_srcfile_path_F77 \
16568 exclude_expsyms_F77 \
16569 include_expsyms_F77; do
16570
16571 case $var in
16572 old_archive_cmds_F77 | \
16573 old_archive_from_new_cmds_F77 | \
16574 archive_cmds_F77 | \
16575 archive_expsym_cmds_F77 | \
16576 module_cmds_F77 | \
16577 module_expsym_cmds_F77 | \
16578 old_archive_from_expsyms_cmds_F77 | \
16579 export_symbols_cmds_F77 | \
16580 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16581 postinstall_cmds | postuninstall_cmds | \
16582 old_postinstall_cmds | old_postuninstall_cmds | \
16583 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16584 # Double-quote double-evaled strings.
16585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16586 ;;
16587 *)
16588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16589 ;;
16590 esac
16591 done
16592
16593 case $lt_echo in
16594 *'\$0 --fallback-echo"')
16595 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16596 ;;
16597 esac
16598
16599 cfgfile="$ofile"
16600
16601 cat <<__EOF__ >> "$cfgfile"
16602 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16603
16604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16605
16606 # Shell to use when invoking shell scripts.
16607 SHELL=$lt_SHELL
16608
16609 # Whether or not to build shared libraries.
16610 build_libtool_libs=$enable_shared
16611
16612 # Whether or not to build static libraries.
16613 build_old_libs=$enable_static
16614
16615 # Whether or not to add -lc for building shared libraries.
16616 build_libtool_need_lc=$archive_cmds_need_lc_F77
16617
16618 # Whether or not to disallow shared libs when runtime libs are static
16619 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16620
16621 # Whether or not to optimize for fast installation.
16622 fast_install=$enable_fast_install
16623
16624 # The host system.
16625 host_alias=$host_alias
16626 host=$host
16627 host_os=$host_os
16628
16629 # The build system.
16630 build_alias=$build_alias
16631 build=$build
16632 build_os=$build_os
16633
16634 # An echo program that does not interpret backslashes.
16635 echo=$lt_echo
16636
16637 # The archiver.
16638 AR=$lt_AR
16639 AR_FLAGS=$lt_AR_FLAGS
16640
16641 # A C compiler.
16642 LTCC=$lt_LTCC
16643
16644 # LTCC compiler flags.
16645 LTCFLAGS=$lt_LTCFLAGS
16646
16647 # A language-specific compiler.
16648 CC=$lt_compiler_F77
16649
16650 # Is the compiler the GNU C compiler?
16651 with_gcc=$GCC_F77
16652
16653 # An ERE matcher.
16654 EGREP=$lt_EGREP
16655
16656 # The linker used to build libraries.
16657 LD=$lt_LD_F77
16658
16659 # Whether we need hard or soft links.
16660 LN_S=$lt_LN_S
16661
16662 # A BSD-compatible nm program.
16663 NM=$lt_NM
16664
16665 # A symbol stripping program
16666 STRIP=$lt_STRIP
16667
16668 # Used to examine libraries when file_magic_cmd begins "file"
16669 MAGIC_CMD=$MAGIC_CMD
16670
16671 # Used on cygwin: DLL creation program.
16672 DLLTOOL="$DLLTOOL"
16673
16674 # Used on cygwin: object dumper.
16675 OBJDUMP="$OBJDUMP"
16676
16677 # Used on cygwin: assembler.
16678 AS="$AS"
16679
16680 # The name of the directory that contains temporary libtool files.
16681 objdir=$objdir
16682
16683 # How to create reloadable object files.
16684 reload_flag=$lt_reload_flag
16685 reload_cmds=$lt_reload_cmds
16686
16687 # How to pass a linker flag through the compiler.
16688 wl=$lt_lt_prog_compiler_wl_F77
16689
16690 # Object file suffix (normally "o").
16691 objext="$ac_objext"
16692
16693 # Old archive suffix (normally "a").
16694 libext="$libext"
16695
16696 # Shared library suffix (normally ".so").
16697 shrext_cmds='$shrext_cmds'
16698
16699 # Executable file suffix (normally "").
16700 exeext="$exeext"
16701
16702 # Additional compiler flags for building library objects.
16703 pic_flag=$lt_lt_prog_compiler_pic_F77
16704 pic_mode=$pic_mode
16705
16706 # What is the maximum length of a command?
16707 max_cmd_len=$lt_cv_sys_max_cmd_len
16708
16709 # Does compiler simultaneously support -c and -o options?
16710 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16711
16712 # Must we lock files when doing compilation?
16713 need_locks=$lt_need_locks
16714
16715 # Do we need the lib prefix for modules?
16716 need_lib_prefix=$need_lib_prefix
16717
16718 # Do we need a version for libraries?
16719 need_version=$need_version
16720
16721 # Whether dlopen is supported.
16722 dlopen_support=$enable_dlopen
16723
16724 # Whether dlopen of programs is supported.
16725 dlopen_self=$enable_dlopen_self
16726
16727 # Whether dlopen of statically linked programs is supported.
16728 dlopen_self_static=$enable_dlopen_self_static
16729
16730 # Compiler flag to prevent dynamic linking.
16731 link_static_flag=$lt_lt_prog_compiler_static_F77
16732
16733 # Compiler flag to turn off builtin functions.
16734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16735
16736 # Compiler flag to allow reflexive dlopens.
16737 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16738
16739 # Compiler flag to generate shared objects directly from archives.
16740 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16741
16742 # Compiler flag to generate thread-safe objects.
16743 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16744
16745 # Library versioning type.
16746 version_type=$version_type
16747
16748 # Format of library name prefix.
16749 libname_spec=$lt_libname_spec
16750
16751 # List of archive names. First name is the real one, the rest are links.
16752 # The last name is the one that the linker finds with -lNAME.
16753 library_names_spec=$lt_library_names_spec
16754
16755 # The coded name of the library, if different from the real name.
16756 soname_spec=$lt_soname_spec
16757
16758 # Commands used to build and install an old-style archive.
16759 RANLIB=$lt_RANLIB
16760 old_archive_cmds=$lt_old_archive_cmds_F77
16761 old_postinstall_cmds=$lt_old_postinstall_cmds
16762 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16763
16764 # Create an old-style archive from a shared archive.
16765 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16766
16767 # Create a temporary old-style archive to link instead of a shared archive.
16768 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16769
16770 # Commands used to build and install a shared archive.
16771 archive_cmds=$lt_archive_cmds_F77
16772 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16773 postinstall_cmds=$lt_postinstall_cmds
16774 postuninstall_cmds=$lt_postuninstall_cmds
16775
16776 # Commands used to build a loadable module (assumed same as above if empty)
16777 module_cmds=$lt_module_cmds_F77
16778 module_expsym_cmds=$lt_module_expsym_cmds_F77
16779
16780 # Commands to strip libraries.
16781 old_striplib=$lt_old_striplib
16782 striplib=$lt_striplib
16783
16784 # Dependencies to place before the objects being linked to create a
16785 # shared library.
16786 predep_objects=$lt_predep_objects_F77
16787
16788 # Dependencies to place after the objects being linked to create a
16789 # shared library.
16790 postdep_objects=$lt_postdep_objects_F77
16791
16792 # Dependencies to place before the objects being linked to create a
16793 # shared library.
16794 predeps=$lt_predeps_F77
16795
16796 # Dependencies to place after the objects being linked to create a
16797 # shared library.
16798 postdeps=$lt_postdeps_F77
16799
16800 # The directories searched by this compiler when creating a shared
16801 # library
16802 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16803
16804 # The library search path used internally by the compiler when linking
16805 # a shared library.
16806 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16807
16808 # Method to check whether dependent libraries are shared objects.
16809 deplibs_check_method=$lt_deplibs_check_method
16810
16811 # Command to use when deplibs_check_method == file_magic.
16812 file_magic_cmd=$lt_file_magic_cmd
16813
16814 # Flag that allows shared libraries with undefined symbols to be built.
16815 allow_undefined_flag=$lt_allow_undefined_flag_F77
16816
16817 # Flag that forces no undefined symbols.
16818 no_undefined_flag=$lt_no_undefined_flag_F77
16819
16820 # Commands used to finish a libtool library installation in a directory.
16821 finish_cmds=$lt_finish_cmds
16822
16823 # Same as above, but a single script fragment to be evaled but not shown.
16824 finish_eval=$lt_finish_eval
16825
16826 # Take the output of nm and produce a listing of raw symbols and C names.
16827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16828
16829 # Transform the output of nm in a proper C declaration
16830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16831
16832 # Transform the output of nm in a C name address pair
16833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16834
16835 # This is the shared library runtime path variable.
16836 runpath_var=$runpath_var
16837
16838 # This is the shared library path variable.
16839 shlibpath_var=$shlibpath_var
16840
16841 # Is shlibpath searched before the hard-coded library search path?
16842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16843
16844 # How to hardcode a shared library path into an executable.
16845 hardcode_action=$hardcode_action_F77
16846
16847 # Whether we should hardcode library paths into libraries.
16848 hardcode_into_libs=$hardcode_into_libs
16849
16850 # Flag to hardcode \$libdir into a binary during linking.
16851 # This must work even if \$libdir does not exist.
16852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16853
16854 # If ld is used when linking, flag to hardcode \$libdir into
16855 # a binary during linking. This must work even if \$libdir does
16856 # not exist.
16857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16858
16859 # Whether we need a single -rpath flag with a separated argument.
16860 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16861
16862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16863 # resulting binary.
16864 hardcode_direct=$hardcode_direct_F77
16865
16866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16867 # resulting binary.
16868 hardcode_minus_L=$hardcode_minus_L_F77
16869
16870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16871 # the resulting binary.
16872 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16873
16874 # Set to yes if building a shared library automatically hardcodes DIR into the library
16875 # and all subsequent libraries and executables linked against it.
16876 hardcode_automatic=$hardcode_automatic_F77
16877
16878 # Variables whose values should be saved in libtool wrapper scripts and
16879 # restored at relink time.
16880 variables_saved_for_relink="$variables_saved_for_relink"
16881
16882 # Whether libtool must link a program against all its dependency libraries.
16883 link_all_deplibs=$link_all_deplibs_F77
16884
16885 # Compile-time system search path for libraries
16886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16887
16888 # Run-time system search path for libraries
16889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16890
16891 # Fix the shell variable \$srcfile for the compiler.
16892 fix_srcfile_path=$lt_fix_srcfile_path
16893
16894 # Set to yes if exported symbols are required.
16895 always_export_symbols=$always_export_symbols_F77
16896
16897 # The commands to list exported symbols.
16898 export_symbols_cmds=$lt_export_symbols_cmds_F77
16899
16900 # The commands to extract the exported symbol list from a shared archive.
16901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16902
16903 # Symbols that should not be listed in the preloaded symbols.
16904 exclude_expsyms=$lt_exclude_expsyms_F77
16905
16906 # Symbols that must always be exported.
16907 include_expsyms=$lt_include_expsyms_F77
16908
16909 # ### END LIBTOOL TAG CONFIG: $tagname
16910
16911 __EOF__
16912
16913
16914 else
16915 # If there is no Makefile yet, we rely on a make rule to execute
16916 # `config.status --recheck' to rerun these tests and create the
16917 # libtool script then.
16918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16919 if test -f "$ltmain_in"; then
16920 test -f Makefile && make "$ltmain"
16921 fi
16922 fi
16923
16924
16925 ac_ext=c
16926 ac_cpp='$CPP $CPPFLAGS'
16927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16930
16931 CC="$lt_save_CC"
16932
16933 else
16934 tagname=""
16935 fi
16936 ;;
16937
16938 GCJ)
16939 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16940
16941
16942 # Source file extension for Java test sources.
16943 ac_ext=java
16944
16945 # Object file extension for compiled Java test sources.
16946 objext=o
16947 objext_GCJ=$objext
16948
16949 # Code to be used in simple compile tests
16950 lt_simple_compile_test_code="class foo {}"
16951
16952 # Code to be used in simple link tests
16953 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16954
16955 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16956
16957 # If no C compiler was specified, use CC.
16958 LTCC=${LTCC-"$CC"}
16959
16960 # If no C compiler flags were specified, use CFLAGS.
16961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16962
16963 # Allow CC to be a program name with arguments.
16964 compiler=$CC
16965
16966
16967 # save warnings/boilerplate of simple test code
16968 ac_outfile=conftest.$ac_objext
16969 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16970 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16971 _lt_compiler_boilerplate=`cat conftest.err`
16972 $rm conftest*
16973
16974 ac_outfile=conftest.$ac_objext
16975 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16976 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16977 _lt_linker_boilerplate=`cat conftest.err`
16978 $rm -r conftest*
16979
16980
16981 # Allow CC to be a program name with arguments.
16982 lt_save_CC="$CC"
16983 CC=${GCJ-"gcj"}
16984 compiler=$CC
16985 compiler_GCJ=$CC
16986 for cc_temp in $compiler""; do
16987 case $cc_temp in
16988 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16989 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16990 \-*) ;;
16991 *) break;;
16992 esac
16993 done
16994 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16995
16996
16997 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16998 archive_cmds_need_lc_GCJ=no
16999
17000 old_archive_cmds_GCJ=$old_archive_cmds
17001
17002
17003 lt_prog_compiler_no_builtin_flag_GCJ=
17004
17005 if test "$GCC" = yes; then
17006 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17007
17008
17009 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17010 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17011 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17012 $as_echo_n "(cached) " >&6
17013 else
17014 lt_cv_prog_compiler_rtti_exceptions=no
17015 ac_outfile=conftest.$ac_objext
17016 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17017 lt_compiler_flag="-fno-rtti -fno-exceptions"
17018 # Insert the option either (1) after the last *FLAGS variable, or
17019 # (2) before a word containing "conftest.", or (3) at the end.
17020 # Note that $ac_compile itself does not contain backslashes and begins
17021 # with a dollar sign (not a hyphen), so the echo should work correctly.
17022 # The option is referenced via a variable to avoid confusing sed.
17023 lt_compile=`echo "$ac_compile" | $SED \
17024 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17025 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17026 -e 's:$: $lt_compiler_flag:'`
17027 (eval echo "\"\$as_me:17027: $lt_compile\"" >&5)
17028 (eval "$lt_compile" 2>conftest.err)
17029 ac_status=$?
17030 cat conftest.err >&5
17031 echo "$as_me:17031: \$? = $ac_status" >&5
17032 if (exit $ac_status) && test -s "$ac_outfile"; then
17033 # The compiler can only warn and ignore the option if not recognized
17034 # So say no if there are warnings other than the usual output.
17035 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17037 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17038 lt_cv_prog_compiler_rtti_exceptions=yes
17039 fi
17040 fi
17041 $rm conftest*
17042
17043 fi
17044 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17045 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17046
17047 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17048 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17049 else
17050 :
17051 fi
17052
17053 fi
17054
17055 lt_prog_compiler_wl_GCJ=
17056 lt_prog_compiler_pic_GCJ=
17057 lt_prog_compiler_static_GCJ=
17058
17059 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17060 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17061
17062 if test "$GCC" = yes; then
17063 lt_prog_compiler_wl_GCJ='-Wl,'
17064 lt_prog_compiler_static_GCJ='-static'
17065
17066 case $host_os in
17067 aix*)
17068 # All AIX code is PIC.
17069 if test "$host_cpu" = ia64; then
17070 # AIX 5 now supports IA64 processor
17071 lt_prog_compiler_static_GCJ='-Bstatic'
17072 fi
17073 ;;
17074
17075 amigaos*)
17076 # FIXME: we need at least 68020 code to build shared libraries, but
17077 # adding the `-m68020' flag to GCC prevents building anything better,
17078 # like `-m68040'.
17079 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17080 ;;
17081
17082 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17083 # PIC is the default for these OSes.
17084 ;;
17085
17086 mingw* | cygwin* | pw32* | os2*)
17087 # This hack is so that the source file can tell whether it is being
17088 # built for inclusion in a dll (and should export symbols for example).
17089 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17090 # (--disable-auto-import) libraries
17091
17092 ;;
17093
17094 darwin* | rhapsody*)
17095 # PIC is the default on this platform
17096 # Common symbols not allowed in MH_DYLIB files
17097 lt_prog_compiler_pic_GCJ='-fno-common'
17098 ;;
17099
17100 interix[3-9]*)
17101 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17102 # Instead, we relocate shared libraries at runtime.
17103 ;;
17104
17105 msdosdjgpp*)
17106 # Just because we use GCC doesn't mean we suddenly get shared libraries
17107 # on systems that don't support them.
17108 lt_prog_compiler_can_build_shared_GCJ=no
17109 enable_shared=no
17110 ;;
17111
17112 sysv4*MP*)
17113 if test -d /usr/nec; then
17114 lt_prog_compiler_pic_GCJ=-Kconform_pic
17115 fi
17116 ;;
17117
17118 hpux*)
17119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17120 # not for PA HP-UX.
17121 case $host_cpu in
17122 hppa*64*|ia64*)
17123 # +Z the default
17124 ;;
17125 *)
17126 lt_prog_compiler_pic_GCJ='-fPIC'
17127 ;;
17128 esac
17129 ;;
17130
17131 *)
17132 lt_prog_compiler_pic_GCJ='-fPIC'
17133 ;;
17134 esac
17135 else
17136 # PORTME Check for flag to pass linker flags through the system compiler.
17137 case $host_os in
17138 aix*)
17139 lt_prog_compiler_wl_GCJ='-Wl,'
17140 if test "$host_cpu" = ia64; then
17141 # AIX 5 now supports IA64 processor
17142 lt_prog_compiler_static_GCJ='-Bstatic'
17143 else
17144 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17145 fi
17146 ;;
17147 darwin*)
17148 # PIC is the default on this platform
17149 # Common symbols not allowed in MH_DYLIB files
17150 case $cc_basename in
17151 xlc*)
17152 lt_prog_compiler_pic_GCJ='-qnocommon'
17153 lt_prog_compiler_wl_GCJ='-Wl,'
17154 ;;
17155 esac
17156 ;;
17157
17158 mingw* | cygwin* | pw32* | os2*)
17159 # This hack is so that the source file can tell whether it is being
17160 # built for inclusion in a dll (and should export symbols for example).
17161
17162 ;;
17163
17164 hpux9* | hpux10* | hpux11*)
17165 lt_prog_compiler_wl_GCJ='-Wl,'
17166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17167 # not for PA HP-UX.
17168 case $host_cpu in
17169 hppa*64*|ia64*)
17170 # +Z the default
17171 ;;
17172 *)
17173 lt_prog_compiler_pic_GCJ='+Z'
17174 ;;
17175 esac
17176 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17177 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17178 ;;
17179
17180 irix5* | irix6* | nonstopux*)
17181 lt_prog_compiler_wl_GCJ='-Wl,'
17182 # PIC (with -KPIC) is the default.
17183 lt_prog_compiler_static_GCJ='-non_shared'
17184 ;;
17185
17186 newsos6)
17187 lt_prog_compiler_pic_GCJ='-KPIC'
17188 lt_prog_compiler_static_GCJ='-Bstatic'
17189 ;;
17190
17191 linux* | k*bsd*-gnu)
17192 case $cc_basename in
17193 icc* | ecc*)
17194 lt_prog_compiler_wl_GCJ='-Wl,'
17195 lt_prog_compiler_pic_GCJ='-KPIC'
17196 lt_prog_compiler_static_GCJ='-static'
17197 ;;
17198 pgcc* | pgf77* | pgf90* | pgf95*)
17199 # Portland Group compilers (*not* the Pentium gcc compiler,
17200 # which looks to be a dead project)
17201 lt_prog_compiler_wl_GCJ='-Wl,'
17202 lt_prog_compiler_pic_GCJ='-fpic'
17203 lt_prog_compiler_static_GCJ='-Bstatic'
17204 ;;
17205 ccc*)
17206 lt_prog_compiler_wl_GCJ='-Wl,'
17207 # All Alpha code is PIC.
17208 lt_prog_compiler_static_GCJ='-non_shared'
17209 ;;
17210 *)
17211 case `$CC -V 2>&1 | sed 5q` in
17212 *Sun\ C*)
17213 # Sun C 5.9
17214 lt_prog_compiler_pic_GCJ='-KPIC'
17215 lt_prog_compiler_static_GCJ='-Bstatic'
17216 lt_prog_compiler_wl_GCJ='-Wl,'
17217 ;;
17218 *Sun\ F*)
17219 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17220 lt_prog_compiler_pic_GCJ='-KPIC'
17221 lt_prog_compiler_static_GCJ='-Bstatic'
17222 lt_prog_compiler_wl_GCJ=''
17223 ;;
17224 esac
17225 ;;
17226 esac
17227 ;;
17228
17229 osf3* | osf4* | osf5*)
17230 lt_prog_compiler_wl_GCJ='-Wl,'
17231 # All OSF/1 code is PIC.
17232 lt_prog_compiler_static_GCJ='-non_shared'
17233 ;;
17234
17235 rdos*)
17236 lt_prog_compiler_static_GCJ='-non_shared'
17237 ;;
17238
17239 solaris*)
17240 lt_prog_compiler_pic_GCJ='-KPIC'
17241 lt_prog_compiler_static_GCJ='-Bstatic'
17242 case $cc_basename in
17243 f77* | f90* | f95*)
17244 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17245 *)
17246 lt_prog_compiler_wl_GCJ='-Wl,';;
17247 esac
17248 ;;
17249
17250 sunos4*)
17251 lt_prog_compiler_wl_GCJ='-Qoption ld '
17252 lt_prog_compiler_pic_GCJ='-PIC'
17253 lt_prog_compiler_static_GCJ='-Bstatic'
17254 ;;
17255
17256 sysv4 | sysv4.2uw2* | sysv4.3*)
17257 lt_prog_compiler_wl_GCJ='-Wl,'
17258 lt_prog_compiler_pic_GCJ='-KPIC'
17259 lt_prog_compiler_static_GCJ='-Bstatic'
17260 ;;
17261
17262 sysv4*MP*)
17263 if test -d /usr/nec ;then
17264 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17265 lt_prog_compiler_static_GCJ='-Bstatic'
17266 fi
17267 ;;
17268
17269 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17270 lt_prog_compiler_wl_GCJ='-Wl,'
17271 lt_prog_compiler_pic_GCJ='-KPIC'
17272 lt_prog_compiler_static_GCJ='-Bstatic'
17273 ;;
17274
17275 unicos*)
17276 lt_prog_compiler_wl_GCJ='-Wl,'
17277 lt_prog_compiler_can_build_shared_GCJ=no
17278 ;;
17279
17280 uts4*)
17281 lt_prog_compiler_pic_GCJ='-pic'
17282 lt_prog_compiler_static_GCJ='-Bstatic'
17283 ;;
17284
17285 *)
17286 lt_prog_compiler_can_build_shared_GCJ=no
17287 ;;
17288 esac
17289 fi
17290
17291 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17292 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17293
17294 #
17295 # Check to make sure the PIC flag actually works.
17296 #
17297 if test -n "$lt_prog_compiler_pic_GCJ"; then
17298
17299 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17300 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17301 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17302 $as_echo_n "(cached) " >&6
17303 else
17304 lt_cv_prog_compiler_pic_works_GCJ=no
17305 ac_outfile=conftest.$ac_objext
17306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17307 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17308 # Insert the option either (1) after the last *FLAGS variable, or
17309 # (2) before a word containing "conftest.", or (3) at the end.
17310 # Note that $ac_compile itself does not contain backslashes and begins
17311 # with a dollar sign (not a hyphen), so the echo should work correctly.
17312 # The option is referenced via a variable to avoid confusing sed.
17313 lt_compile=`echo "$ac_compile" | $SED \
17314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17316 -e 's:$: $lt_compiler_flag:'`
17317 (eval echo "\"\$as_me:17317: $lt_compile\"" >&5)
17318 (eval "$lt_compile" 2>conftest.err)
17319 ac_status=$?
17320 cat conftest.err >&5
17321 echo "$as_me:17321: \$? = $ac_status" >&5
17322 if (exit $ac_status) && test -s "$ac_outfile"; then
17323 # The compiler can only warn and ignore the option if not recognized
17324 # So say no if there are warnings other than the usual output.
17325 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17327 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17328 lt_cv_prog_compiler_pic_works_GCJ=yes
17329 fi
17330 fi
17331 $rm conftest*
17332
17333 fi
17334 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17335 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17336
17337 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17338 case $lt_prog_compiler_pic_GCJ in
17339 "" | " "*) ;;
17340 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17341 esac
17342 else
17343 lt_prog_compiler_pic_GCJ=
17344 lt_prog_compiler_can_build_shared_GCJ=no
17345 fi
17346
17347 fi
17348 case $host_os in
17349 # For platforms which do not support PIC, -DPIC is meaningless:
17350 *djgpp*)
17351 lt_prog_compiler_pic_GCJ=
17352 ;;
17353 *)
17354 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17355 ;;
17356 esac
17357
17358 #
17359 # Check to make sure the static flag actually works.
17360 #
17361 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17362 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17363 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17364 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17365 $as_echo_n "(cached) " >&6
17366 else
17367 lt_cv_prog_compiler_static_works_GCJ=no
17368 save_LDFLAGS="$LDFLAGS"
17369 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17370 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17371 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17372 # The linker can only warn and ignore the option if not recognized
17373 # So say no if there are warnings
17374 if test -s conftest.err; then
17375 # Append any errors to the config.log.
17376 cat conftest.err 1>&5
17377 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17379 if diff conftest.exp conftest.er2 >/dev/null; then
17380 lt_cv_prog_compiler_static_works_GCJ=yes
17381 fi
17382 else
17383 lt_cv_prog_compiler_static_works_GCJ=yes
17384 fi
17385 fi
17386 $rm -r conftest*
17387 LDFLAGS="$save_LDFLAGS"
17388
17389 fi
17390 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17391 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17392
17393 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17394 :
17395 else
17396 lt_prog_compiler_static_GCJ=
17397 fi
17398
17399
17400 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17402 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17403 $as_echo_n "(cached) " >&6
17404 else
17405 lt_cv_prog_compiler_c_o_GCJ=no
17406 $rm -r conftest 2>/dev/null
17407 mkdir conftest
17408 cd conftest
17409 mkdir out
17410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17411
17412 lt_compiler_flag="-o out/conftest2.$ac_objext"
17413 # Insert the option either (1) after the last *FLAGS variable, or
17414 # (2) before a word containing "conftest.", or (3) at the end.
17415 # Note that $ac_compile itself does not contain backslashes and begins
17416 # with a dollar sign (not a hyphen), so the echo should work correctly.
17417 lt_compile=`echo "$ac_compile" | $SED \
17418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17420 -e 's:$: $lt_compiler_flag:'`
17421 (eval echo "\"\$as_me:17421: $lt_compile\"" >&5)
17422 (eval "$lt_compile" 2>out/conftest.err)
17423 ac_status=$?
17424 cat out/conftest.err >&5
17425 echo "$as_me:17425: \$? = $ac_status" >&5
17426 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17427 then
17428 # The compiler can only warn and ignore the option if not recognized
17429 # So say no if there are warnings
17430 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17433 lt_cv_prog_compiler_c_o_GCJ=yes
17434 fi
17435 fi
17436 chmod u+w . 2>&5
17437 $rm conftest*
17438 # SGI C++ compiler will create directory out/ii_files/ for
17439 # template instantiation
17440 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17441 $rm out/* && rmdir out
17442 cd ..
17443 rmdir conftest
17444 $rm conftest*
17445
17446 fi
17447 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17448 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17449
17450
17451 hard_links="nottested"
17452 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17453 # do not overwrite the value of need_locks provided by the user
17454 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17455 $as_echo_n "checking if we can lock with hard links... " >&6; }
17456 hard_links=yes
17457 $rm conftest*
17458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17459 touch conftest.a
17460 ln conftest.a conftest.b 2>&5 || hard_links=no
17461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17462 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17463 $as_echo "$hard_links" >&6; }
17464 if test "$hard_links" = no; then
17465 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17466 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17467 need_locks=warn
17468 fi
17469 else
17470 need_locks=no
17471 fi
17472
17473 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17474 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17475
17476 runpath_var=
17477 allow_undefined_flag_GCJ=
17478 enable_shared_with_static_runtimes_GCJ=no
17479 archive_cmds_GCJ=
17480 archive_expsym_cmds_GCJ=
17481 old_archive_From_new_cmds_GCJ=
17482 old_archive_from_expsyms_cmds_GCJ=
17483 export_dynamic_flag_spec_GCJ=
17484 whole_archive_flag_spec_GCJ=
17485 thread_safe_flag_spec_GCJ=
17486 hardcode_libdir_flag_spec_GCJ=
17487 hardcode_libdir_flag_spec_ld_GCJ=
17488 hardcode_libdir_separator_GCJ=
17489 hardcode_direct_GCJ=no
17490 hardcode_minus_L_GCJ=no
17491 hardcode_shlibpath_var_GCJ=unsupported
17492 link_all_deplibs_GCJ=unknown
17493 hardcode_automatic_GCJ=no
17494 module_cmds_GCJ=
17495 module_expsym_cmds_GCJ=
17496 always_export_symbols_GCJ=no
17497 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17498 # include_expsyms should be a list of space-separated symbols to be *always*
17499 # included in the symbol list
17500 include_expsyms_GCJ=
17501 # exclude_expsyms can be an extended regexp of symbols to exclude
17502 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17503 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17504 # as well as any symbol that contains `d'.
17505 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17506 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17507 # platforms (ab)use it in PIC code, but their linkers get confused if
17508 # the symbol is explicitly referenced. Since portable code cannot
17509 # rely on this symbol name, it's probably fine to never include it in
17510 # preloaded symbol tables.
17511 # Exclude shared library initialization/finalization symbols.
17512 extract_expsyms_cmds=
17513 # Just being paranoid about ensuring that cc_basename is set.
17514 for cc_temp in $compiler""; do
17515 case $cc_temp in
17516 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17517 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17518 \-*) ;;
17519 *) break;;
17520 esac
17521 done
17522 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17523
17524 case $host_os in
17525 cygwin* | mingw* | pw32*)
17526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17527 # When not using gcc, we currently assume that we are using
17528 # Microsoft Visual C++.
17529 if test "$GCC" != yes; then
17530 with_gnu_ld=no
17531 fi
17532 ;;
17533 interix*)
17534 # we just hope/assume this is gcc and not c89 (= MSVC++)
17535 with_gnu_ld=yes
17536 ;;
17537 openbsd*)
17538 with_gnu_ld=no
17539 ;;
17540 esac
17541
17542 ld_shlibs_GCJ=yes
17543 if test "$with_gnu_ld" = yes; then
17544 # If archive_cmds runs LD, not CC, wlarc should be empty
17545 wlarc='${wl}'
17546
17547 # Set some defaults for GNU ld with shared library support. These
17548 # are reset later if shared libraries are not supported. Putting them
17549 # here allows them to be overridden if necessary.
17550 runpath_var=LD_RUN_PATH
17551 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17552 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17553 # ancient GNU ld didn't support --whole-archive et. al.
17554 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17555 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17556 else
17557 whole_archive_flag_spec_GCJ=
17558 fi
17559 supports_anon_versioning=no
17560 case `$LD -v 2>/dev/null` in
17561 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17562 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17563 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17564 *\ 2.11.*) ;; # other 2.11 versions
17565 *) supports_anon_versioning=yes ;;
17566 esac
17567
17568 # See if GNU ld supports shared libraries.
17569 case $host_os in
17570 aix[3-9]*)
17571 # On AIX/PPC, the GNU linker is very broken
17572 if test "$host_cpu" != ia64; then
17573 ld_shlibs_GCJ=no
17574 cat <<EOF 1>&2
17575
17576 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17577 *** to be unable to reliably create shared libraries on AIX.
17578 *** Therefore, libtool is disabling shared libraries support. If you
17579 *** really care for shared libraries, you may want to modify your PATH
17580 *** so that a non-GNU linker is found, and then restart.
17581
17582 EOF
17583 fi
17584 ;;
17585
17586 amigaos*)
17587 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)'
17588 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17589 hardcode_minus_L_GCJ=yes
17590
17591 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17592 # that the semantics of dynamic libraries on AmigaOS, at least up
17593 # to version 4, is to share data among multiple programs linked
17594 # with the same dynamic library. Since this doesn't match the
17595 # behavior of shared libraries on other platforms, we can't use
17596 # them.
17597 ld_shlibs_GCJ=no
17598 ;;
17599
17600 beos*)
17601 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17602 allow_undefined_flag_GCJ=unsupported
17603 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17604 # support --undefined. This deserves some investigation. FIXME
17605 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17606 else
17607 ld_shlibs_GCJ=no
17608 fi
17609 ;;
17610
17611 cygwin* | mingw* | pw32*)
17612 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17613 # as there is no search path for DLLs.
17614 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17615 allow_undefined_flag_GCJ=unsupported
17616 always_export_symbols_GCJ=no
17617 enable_shared_with_static_runtimes_GCJ=yes
17618 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17619
17620 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17621 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17622 # If the export-symbols file already is a .def file (1st line
17623 # is EXPORTS), use it as is; otherwise, prepend...
17624 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17625 cp $export_symbols $output_objdir/$soname.def;
17626 else
17627 echo EXPORTS > $output_objdir/$soname.def;
17628 cat $export_symbols >> $output_objdir/$soname.def;
17629 fi~
17630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17631 else
17632 ld_shlibs_GCJ=no
17633 fi
17634 ;;
17635
17636 interix[3-9]*)
17637 hardcode_direct_GCJ=no
17638 hardcode_shlibpath_var_GCJ=no
17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17640 export_dynamic_flag_spec_GCJ='${wl}-E'
17641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17642 # Instead, shared libraries are loaded at an image base (0x10000000 by
17643 # default) and relocated if they conflict, which is a slow very memory
17644 # consuming and fragmenting process. To avoid this, we pick a random,
17645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17646 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17647 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'
17648 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'
17649 ;;
17650
17651 gnu* | linux* | k*bsd*-gnu)
17652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17653 tmp_addflag=
17654 case $cc_basename,$host_cpu in
17655 pgcc*) # Portland Group C compiler
17656 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'
17657 tmp_addflag=' $pic_flag'
17658 ;;
17659 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17660 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'
17661 tmp_addflag=' $pic_flag -Mnomain' ;;
17662 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17663 tmp_addflag=' -i_dynamic' ;;
17664 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17665 tmp_addflag=' -i_dynamic -nofor_main' ;;
17666 ifc* | ifort*) # Intel Fortran compiler
17667 tmp_addflag=' -nofor_main' ;;
17668 esac
17669 case `$CC -V 2>&1 | sed 5q` in
17670 *Sun\ C*) # Sun C 5.9
17671 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'
17672 tmp_sharedflag='-G' ;;
17673 *Sun\ F*) # Sun Fortran 8.3
17674 tmp_sharedflag='-G' ;;
17675 *)
17676 tmp_sharedflag='-shared' ;;
17677 esac
17678 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17679
17680 if test $supports_anon_versioning = yes; then
17681 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17683 $echo "local: *; };" >> $output_objdir/$libname.ver~
17684 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17685 fi
17686 else
17687 ld_shlibs_GCJ=no
17688 fi
17689 ;;
17690
17691 netbsd*)
17692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17693 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17694 wlarc=
17695 else
17696 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17697 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17698 fi
17699 ;;
17700
17701 solaris*)
17702 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17703 ld_shlibs_GCJ=no
17704 cat <<EOF 1>&2
17705
17706 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17707 *** create shared libraries on Solaris systems. Therefore, libtool
17708 *** is disabling shared libraries support. We urge you to upgrade GNU
17709 *** binutils to release 2.9.1 or newer. Another option is to modify
17710 *** your PATH or compiler configuration so that the native linker is
17711 *** used, and then restart.
17712
17713 EOF
17714 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17715 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17716 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17717 else
17718 ld_shlibs_GCJ=no
17719 fi
17720 ;;
17721
17722 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17723 case `$LD -v 2>&1` in
17724 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17725 ld_shlibs_GCJ=no
17726 cat <<_LT_EOF 1>&2
17727
17728 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17729 *** reliably create shared libraries on SCO systems. Therefore, libtool
17730 *** is disabling shared libraries support. We urge you to upgrade GNU
17731 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17732 *** your PATH or compiler configuration so that the native linker is
17733 *** used, and then restart.
17734
17735 _LT_EOF
17736 ;;
17737 *)
17738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17739 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17740 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17741 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17742 else
17743 ld_shlibs_GCJ=no
17744 fi
17745 ;;
17746 esac
17747 ;;
17748
17749 sunos4*)
17750 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17751 wlarc=
17752 hardcode_direct_GCJ=yes
17753 hardcode_shlibpath_var_GCJ=no
17754 ;;
17755
17756 *)
17757 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17758 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17759 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17760 else
17761 ld_shlibs_GCJ=no
17762 fi
17763 ;;
17764 esac
17765
17766 if test "$ld_shlibs_GCJ" = no; then
17767 runpath_var=
17768 hardcode_libdir_flag_spec_GCJ=
17769 export_dynamic_flag_spec_GCJ=
17770 whole_archive_flag_spec_GCJ=
17771 fi
17772 else
17773 # PORTME fill in a description of your system's linker (not GNU ld)
17774 case $host_os in
17775 aix3*)
17776 allow_undefined_flag_GCJ=unsupported
17777 always_export_symbols_GCJ=yes
17778 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'
17779 # Note: this linker hardcodes the directories in LIBPATH if there
17780 # are no directories specified by -L.
17781 hardcode_minus_L_GCJ=yes
17782 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17783 # Neither direct hardcoding nor static linking is supported with a
17784 # broken collect2.
17785 hardcode_direct_GCJ=unsupported
17786 fi
17787 ;;
17788
17789 aix[4-9]*)
17790 if test "$host_cpu" = ia64; then
17791 # On IA64, the linker does run time linking by default, so we don't
17792 # have to do anything special.
17793 aix_use_runtimelinking=no
17794 exp_sym_flag='-Bexport'
17795 no_entry_flag=""
17796 else
17797 # If we're using GNU nm, then we don't want the "-C" option.
17798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17799 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17800 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'
17801 else
17802 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'
17803 fi
17804 aix_use_runtimelinking=no
17805
17806 # Test if we are trying to use run time linking or normal
17807 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17808 # need to do runtime linking.
17809 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17810 for ld_flag in $LDFLAGS; do
17811 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17812 aix_use_runtimelinking=yes
17813 break
17814 fi
17815 done
17816 ;;
17817 esac
17818
17819 exp_sym_flag='-bexport'
17820 no_entry_flag='-bnoentry'
17821 fi
17822
17823 # When large executables or shared objects are built, AIX ld can
17824 # have problems creating the table of contents. If linking a library
17825 # or program results in "error TOC overflow" add -mminimal-toc to
17826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17828
17829 archive_cmds_GCJ=''
17830 hardcode_direct_GCJ=yes
17831 hardcode_libdir_separator_GCJ=':'
17832 link_all_deplibs_GCJ=yes
17833
17834 if test "$GCC" = yes; then
17835 case $host_os in aix4.[012]|aix4.[012].*)
17836 # We only want to do this on AIX 4.2 and lower, the check
17837 # below for broken collect2 doesn't work under 4.3+
17838 collect2name=`${CC} -print-prog-name=collect2`
17839 if test -f "$collect2name" && \
17840 strings "$collect2name" | grep resolve_lib_name >/dev/null
17841 then
17842 # We have reworked collect2
17843 :
17844 else
17845 # We have old collect2
17846 hardcode_direct_GCJ=unsupported
17847 # It fails to find uninstalled libraries when the uninstalled
17848 # path is not listed in the libpath. Setting hardcode_minus_L
17849 # to unsupported forces relinking
17850 hardcode_minus_L_GCJ=yes
17851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17852 hardcode_libdir_separator_GCJ=
17853 fi
17854 ;;
17855 esac
17856 shared_flag='-shared'
17857 if test "$aix_use_runtimelinking" = yes; then
17858 shared_flag="$shared_flag "'${wl}-G'
17859 fi
17860 else
17861 # not using gcc
17862 if test "$host_cpu" = ia64; then
17863 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17864 # chokes on -Wl,-G. The following line is correct:
17865 shared_flag='-G'
17866 else
17867 if test "$aix_use_runtimelinking" = yes; then
17868 shared_flag='${wl}-G'
17869 else
17870 shared_flag='${wl}-bM:SRE'
17871 fi
17872 fi
17873 fi
17874
17875 # It seems that -bexpall does not export symbols beginning with
17876 # underscore (_), so it is better to generate a list of symbols to export.
17877 always_export_symbols_GCJ=yes
17878 if test "$aix_use_runtimelinking" = yes; then
17879 # Warning - without using the other runtime loading flags (-brtl),
17880 # -berok will link without error, but may produce a broken library.
17881 allow_undefined_flag_GCJ='-berok'
17882 # Determine the default libpath from the value encoded in an empty executable.
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889
17890 int
17891 main ()
17892 {
17893
17894 ;
17895 return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903 esac
17904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17905 $as_echo "$ac_try_echo") >&5
17906 (eval "$ac_link") 2>conftest.er1
17907 ac_status=$?
17908 grep -v '^ *+' conftest.er1 >conftest.err
17909 rm -f conftest.er1
17910 cat conftest.err >&5
17911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest$ac_exeext && {
17916 test "$cross_compiling" = yes ||
17917 $as_test_x conftest$ac_exeext
17918 }; then
17919
17920 lt_aix_libpath_sed='
17921 /Import File Strings/,/^$/ {
17922 /^0/ {
17923 s/^0 *\(.*\)$/\1/
17924 p
17925 }
17926 }'
17927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17928 # Check for a 64-bit object if we didn't find anything.
17929 if test -z "$aix_libpath"; then
17930 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17931 fi
17932 else
17933 $as_echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936
17937 fi
17938
17939 rm -rf conftest.dSYM
17940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17941 conftest$ac_exeext conftest.$ac_ext
17942 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17943
17944 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17945 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"
17946 else
17947 if test "$host_cpu" = ia64; then
17948 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17949 allow_undefined_flag_GCJ="-z nodefs"
17950 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"
17951 else
17952 # Determine the default libpath from the value encoded in an empty executable.
17953 cat >conftest.$ac_ext <<_ACEOF
17954 /* confdefs.h. */
17955 _ACEOF
17956 cat confdefs.h >>conftest.$ac_ext
17957 cat >>conftest.$ac_ext <<_ACEOF
17958 /* end confdefs.h. */
17959
17960 int
17961 main ()
17962 {
17963
17964 ;
17965 return 0;
17966 }
17967 _ACEOF
17968 rm -f conftest.$ac_objext conftest$ac_exeext
17969 if { (ac_try="$ac_link"
17970 case "(($ac_try" in
17971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17972 *) ac_try_echo=$ac_try;;
17973 esac
17974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17975 $as_echo "$ac_try_echo") >&5
17976 (eval "$ac_link") 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } && {
17983 test -z "$ac_c_werror_flag" ||
17984 test ! -s conftest.err
17985 } && test -s conftest$ac_exeext && {
17986 test "$cross_compiling" = yes ||
17987 $as_test_x conftest$ac_exeext
17988 }; then
17989
17990 lt_aix_libpath_sed='
17991 /Import File Strings/,/^$/ {
17992 /^0/ {
17993 s/^0 *\(.*\)$/\1/
17994 p
17995 }
17996 }'
17997 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17998 # Check for a 64-bit object if we didn't find anything.
17999 if test -z "$aix_libpath"; then
18000 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18001 fi
18002 else
18003 $as_echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18005
18006
18007 fi
18008
18009 rm -rf conftest.dSYM
18010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18011 conftest$ac_exeext conftest.$ac_ext
18012 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18013
18014 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18015 # Warning - without using the other run time loading flags,
18016 # -berok will link without error, but may produce a broken library.
18017 no_undefined_flag_GCJ=' ${wl}-bernotok'
18018 allow_undefined_flag_GCJ=' ${wl}-berok'
18019 # Exported symbols can be pulled into shared objects from archives
18020 whole_archive_flag_spec_GCJ='$convenience'
18021 archive_cmds_need_lc_GCJ=yes
18022 # This is similar to how AIX traditionally builds its shared libraries.
18023 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'
18024 fi
18025 fi
18026 ;;
18027
18028 amigaos*)
18029 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)'
18030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18031 hardcode_minus_L_GCJ=yes
18032 # see comment about different semantics on the GNU ld section
18033 ld_shlibs_GCJ=no
18034 ;;
18035
18036 bsdi[45]*)
18037 export_dynamic_flag_spec_GCJ=-rdynamic
18038 ;;
18039
18040 cygwin* | mingw* | pw32*)
18041 # When not using gcc, we currently assume that we are using
18042 # Microsoft Visual C++.
18043 # hardcode_libdir_flag_spec is actually meaningless, as there is
18044 # no search path for DLLs.
18045 hardcode_libdir_flag_spec_GCJ=' '
18046 allow_undefined_flag_GCJ=unsupported
18047 # Tell ltmain to make .lib files, not .a files.
18048 libext=lib
18049 # Tell ltmain to make .dll files, not .so files.
18050 shrext_cmds=".dll"
18051 # FIXME: Setting linknames here is a bad hack.
18052 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18053 # The linker will automatically build a .lib file if we build a DLL.
18054 old_archive_From_new_cmds_GCJ='true'
18055 # FIXME: Should let the user specify the lib program.
18056 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18057 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18058 enable_shared_with_static_runtimes_GCJ=yes
18059 ;;
18060
18061 darwin* | rhapsody*)
18062 case $host_os in
18063 rhapsody* | darwin1.[012])
18064 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18065 ;;
18066 *) # Darwin 1.3 on
18067 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18068 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18069 else
18070 case ${MACOSX_DEPLOYMENT_TARGET} in
18071 10.[012])
18072 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18073 ;;
18074 10.*)
18075 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18076 ;;
18077 esac
18078 fi
18079 ;;
18080 esac
18081 archive_cmds_need_lc_GCJ=no
18082 hardcode_direct_GCJ=no
18083 hardcode_automatic_GCJ=yes
18084 hardcode_shlibpath_var_GCJ=unsupported
18085 whole_archive_flag_spec_GCJ=''
18086 link_all_deplibs_GCJ=yes
18087 if test "$GCC" = yes ; then
18088 output_verbose_link_cmd='echo'
18089 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}"
18090 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18091 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}"
18092 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}"
18093 else
18094 case $cc_basename in
18095 xlc*)
18096 output_verbose_link_cmd='echo'
18097 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18098 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18099 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18100 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}'
18101 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}'
18102 ;;
18103 *)
18104 ld_shlibs_GCJ=no
18105 ;;
18106 esac
18107 fi
18108 ;;
18109
18110 dgux*)
18111 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18112 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18113 hardcode_shlibpath_var_GCJ=no
18114 ;;
18115
18116 freebsd1*)
18117 ld_shlibs_GCJ=no
18118 ;;
18119
18120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18121 # support. Future versions do this automatically, but an explicit c++rt0.o
18122 # does not break anything, and helps significantly (at the cost of a little
18123 # extra space).
18124 freebsd2.2*)
18125 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18127 hardcode_direct_GCJ=yes
18128 hardcode_shlibpath_var_GCJ=no
18129 ;;
18130
18131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18132 freebsd2*)
18133 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18134 hardcode_direct_GCJ=yes
18135 hardcode_minus_L_GCJ=yes
18136 hardcode_shlibpath_var_GCJ=no
18137 ;;
18138
18139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18140 freebsd* | dragonfly*)
18141 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18142 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18143 hardcode_direct_GCJ=yes
18144 hardcode_shlibpath_var_GCJ=no
18145 ;;
18146
18147 hpux9*)
18148 if test "$GCC" = yes; then
18149 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'
18150 else
18151 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'
18152 fi
18153 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18154 hardcode_libdir_separator_GCJ=:
18155 hardcode_direct_GCJ=yes
18156
18157 # hardcode_minus_L: Not really in the search PATH,
18158 # but as the default location of the library.
18159 hardcode_minus_L_GCJ=yes
18160 export_dynamic_flag_spec_GCJ='${wl}-E'
18161 ;;
18162
18163 hpux10*)
18164 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18165 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18166 else
18167 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18168 fi
18169 if test "$with_gnu_ld" = no; then
18170 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18171 hardcode_libdir_separator_GCJ=:
18172
18173 hardcode_direct_GCJ=yes
18174 export_dynamic_flag_spec_GCJ='${wl}-E'
18175
18176 # hardcode_minus_L: Not really in the search PATH,
18177 # but as the default location of the library.
18178 hardcode_minus_L_GCJ=yes
18179 fi
18180 ;;
18181
18182 hpux11*)
18183 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18184 case $host_cpu in
18185 hppa*64*)
18186 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18187 ;;
18188 ia64*)
18189 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18190 ;;
18191 *)
18192 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18193 ;;
18194 esac
18195 else
18196 case $host_cpu in
18197 hppa*64*)
18198 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18199 ;;
18200 ia64*)
18201 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18202 ;;
18203 *)
18204 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18205 ;;
18206 esac
18207 fi
18208 if test "$with_gnu_ld" = no; then
18209 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18210 hardcode_libdir_separator_GCJ=:
18211
18212 case $host_cpu in
18213 hppa*64*|ia64*)
18214 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18215 hardcode_direct_GCJ=no
18216 hardcode_shlibpath_var_GCJ=no
18217 ;;
18218 *)
18219 hardcode_direct_GCJ=yes
18220 export_dynamic_flag_spec_GCJ='${wl}-E'
18221
18222 # hardcode_minus_L: Not really in the search PATH,
18223 # but as the default location of the library.
18224 hardcode_minus_L_GCJ=yes
18225 ;;
18226 esac
18227 fi
18228 ;;
18229
18230 irix5* | irix6* | nonstopux*)
18231 if test "$GCC" = yes; then
18232 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'
18233 else
18234 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'
18235 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18236 fi
18237 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18238 hardcode_libdir_separator_GCJ=:
18239 link_all_deplibs_GCJ=yes
18240 ;;
18241
18242 netbsd*)
18243 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18244 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18245 else
18246 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18247 fi
18248 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18249 hardcode_direct_GCJ=yes
18250 hardcode_shlibpath_var_GCJ=no
18251 ;;
18252
18253 newsos6)
18254 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18255 hardcode_direct_GCJ=yes
18256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18257 hardcode_libdir_separator_GCJ=:
18258 hardcode_shlibpath_var_GCJ=no
18259 ;;
18260
18261 openbsd*)
18262 if test -f /usr/libexec/ld.so; then
18263 hardcode_direct_GCJ=yes
18264 hardcode_shlibpath_var_GCJ=no
18265 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18266 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18267 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18269 export_dynamic_flag_spec_GCJ='${wl}-E'
18270 else
18271 case $host_os in
18272 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18273 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18274 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18275 ;;
18276 *)
18277 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18278 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18279 ;;
18280 esac
18281 fi
18282 else
18283 ld_shlibs_GCJ=no
18284 fi
18285 ;;
18286
18287 os2*)
18288 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18289 hardcode_minus_L_GCJ=yes
18290 allow_undefined_flag_GCJ=unsupported
18291 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'
18292 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18293 ;;
18294
18295 osf3*)
18296 if test "$GCC" = yes; then
18297 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18298 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'
18299 else
18300 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18301 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'
18302 fi
18303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18304 hardcode_libdir_separator_GCJ=:
18305 ;;
18306
18307 osf4* | osf5*) # as osf3* with the addition of -msym flag
18308 if test "$GCC" = yes; then
18309 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18310 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'
18311 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18312 else
18313 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18314 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'
18315 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~
18316 $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'
18317
18318 # Both c and cxx compiler support -rpath directly
18319 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18320 fi
18321 hardcode_libdir_separator_GCJ=:
18322 ;;
18323
18324 solaris*)
18325 no_undefined_flag_GCJ=' -z text'
18326 if test "$GCC" = yes; then
18327 wlarc='${wl}'
18328 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18329 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18330 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18331 else
18332 wlarc=''
18333 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18334 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18335 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18336 fi
18337 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18338 hardcode_shlibpath_var_GCJ=no
18339 case $host_os in
18340 solaris2.[0-5] | solaris2.[0-5].*) ;;
18341 *)
18342 # The compiler driver will combine and reorder linker options,
18343 # but understands `-z linker_flag'. GCC discards it without `$wl',
18344 # but is careful enough not to reorder.
18345 # Supported since Solaris 2.6 (maybe 2.5.1?)
18346 if test "$GCC" = yes; then
18347 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18348 else
18349 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18350 fi
18351 ;;
18352 esac
18353 link_all_deplibs_GCJ=yes
18354 ;;
18355
18356 sunos4*)
18357 if test "x$host_vendor" = xsequent; then
18358 # Use $CC to link under sequent, because it throws in some extra .o
18359 # files that make .init and .fini sections work.
18360 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18361 else
18362 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18363 fi
18364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18365 hardcode_direct_GCJ=yes
18366 hardcode_minus_L_GCJ=yes
18367 hardcode_shlibpath_var_GCJ=no
18368 ;;
18369
18370 sysv4)
18371 case $host_vendor in
18372 sni)
18373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374 hardcode_direct_GCJ=yes # is this really true???
18375 ;;
18376 siemens)
18377 ## LD is ld it makes a PLAMLIB
18378 ## CC just makes a GrossModule.
18379 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18380 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18381 hardcode_direct_GCJ=no
18382 ;;
18383 motorola)
18384 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18385 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18386 ;;
18387 esac
18388 runpath_var='LD_RUN_PATH'
18389 hardcode_shlibpath_var_GCJ=no
18390 ;;
18391
18392 sysv4.3*)
18393 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18394 hardcode_shlibpath_var_GCJ=no
18395 export_dynamic_flag_spec_GCJ='-Bexport'
18396 ;;
18397
18398 sysv4*MP*)
18399 if test -d /usr/nec; then
18400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18401 hardcode_shlibpath_var_GCJ=no
18402 runpath_var=LD_RUN_PATH
18403 hardcode_runpath_var=yes
18404 ld_shlibs_GCJ=yes
18405 fi
18406 ;;
18407
18408 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18409 no_undefined_flag_GCJ='${wl}-z,text'
18410 archive_cmds_need_lc_GCJ=no
18411 hardcode_shlibpath_var_GCJ=no
18412 runpath_var='LD_RUN_PATH'
18413
18414 if test "$GCC" = yes; then
18415 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18416 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18417 else
18418 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18419 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18420 fi
18421 ;;
18422
18423 sysv5* | sco3.2v5* | sco5v6*)
18424 # Note: We can NOT use -z defs as we might desire, because we do not
18425 # link with -lc, and that would cause any symbols used from libc to
18426 # always be unresolved, which means just about no library would
18427 # ever link correctly. If we're not using GNU ld we use -z text
18428 # though, which does catch some bad symbols but isn't as heavy-handed
18429 # as -z defs.
18430 no_undefined_flag_GCJ='${wl}-z,text'
18431 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18432 archive_cmds_need_lc_GCJ=no
18433 hardcode_shlibpath_var_GCJ=no
18434 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18435 hardcode_libdir_separator_GCJ=':'
18436 link_all_deplibs_GCJ=yes
18437 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18438 runpath_var='LD_RUN_PATH'
18439
18440 if test "$GCC" = yes; then
18441 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18442 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18443 else
18444 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18445 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18446 fi
18447 ;;
18448
18449 uts4*)
18450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18452 hardcode_shlibpath_var_GCJ=no
18453 ;;
18454
18455 *)
18456 ld_shlibs_GCJ=no
18457 ;;
18458 esac
18459 fi
18460
18461 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18462 $as_echo "$ld_shlibs_GCJ" >&6; }
18463 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18464
18465 #
18466 # Do we need to explicitly link libc?
18467 #
18468 case "x$archive_cmds_need_lc_GCJ" in
18469 x|xyes)
18470 # Assume -lc should be added
18471 archive_cmds_need_lc_GCJ=yes
18472
18473 if test "$enable_shared" = yes && test "$GCC" = yes; then
18474 case $archive_cmds_GCJ in
18475 *'~'*)
18476 # FIXME: we may have to deal with multi-command sequences.
18477 ;;
18478 '$CC '*)
18479 # Test whether the compiler implicitly links with -lc since on some
18480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18481 # to ld, don't add -lc before -lgcc.
18482 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18484 $rm conftest*
18485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18486
18487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18488 (eval $ac_compile) 2>&5
18489 ac_status=$?
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } 2>conftest.err; then
18492 soname=conftest
18493 lib=conftest
18494 libobjs=conftest.$ac_objext
18495 deplibs=
18496 wl=$lt_prog_compiler_wl_GCJ
18497 pic_flag=$lt_prog_compiler_pic_GCJ
18498 compiler_flags=-v
18499 linker_flags=-v
18500 verstring=
18501 output_objdir=.
18502 libname=conftest
18503 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18504 allow_undefined_flag_GCJ=
18505 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18506 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18507 ac_status=$?
18508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }
18510 then
18511 archive_cmds_need_lc_GCJ=no
18512 else
18513 archive_cmds_need_lc_GCJ=yes
18514 fi
18515 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18516 else
18517 cat conftest.err 1>&5
18518 fi
18519 $rm conftest*
18520 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18521 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18522 ;;
18523 esac
18524 fi
18525 ;;
18526 esac
18527
18528 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18529 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18530 library_names_spec=
18531 libname_spec='lib$name'
18532 soname_spec=
18533 shrext_cmds=".so"
18534 postinstall_cmds=
18535 postuninstall_cmds=
18536 finish_cmds=
18537 finish_eval=
18538 shlibpath_var=
18539 shlibpath_overrides_runpath=unknown
18540 version_type=none
18541 dynamic_linker="$host_os ld.so"
18542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18543
18544 need_lib_prefix=unknown
18545 hardcode_into_libs=no
18546
18547 # when you set need_version to no, make sure it does not cause -set_version
18548 # flags to be left without arguments
18549 need_version=unknown
18550
18551 case $host_os in
18552 aix3*)
18553 version_type=linux
18554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18555 shlibpath_var=LIBPATH
18556
18557 # AIX 3 has no versioning support, so we append a major version to the name.
18558 soname_spec='${libname}${release}${shared_ext}$major'
18559 ;;
18560
18561 aix[4-9]*)
18562 version_type=linux
18563 need_lib_prefix=no
18564 need_version=no
18565 hardcode_into_libs=yes
18566 if test "$host_cpu" = ia64; then
18567 # AIX 5 supports IA64
18568 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18569 shlibpath_var=LD_LIBRARY_PATH
18570 else
18571 # With GCC up to 2.95.x, collect2 would create an import file
18572 # for dependence libraries. The import file would start with
18573 # the line `#! .'. This would cause the generated library to
18574 # depend on `.', always an invalid library. This was fixed in
18575 # development snapshots of GCC prior to 3.0.
18576 case $host_os in
18577 aix4 | aix4.[01] | aix4.[01].*)
18578 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18579 echo ' yes '
18580 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18581 :
18582 else
18583 can_build_shared=no
18584 fi
18585 ;;
18586 esac
18587 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18588 # soname into executable. Probably we can add versioning support to
18589 # collect2, so additional links can be useful in future.
18590 if test "$aix_use_runtimelinking" = yes; then
18591 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18592 # instead of lib<name>.a to let people know that these are not
18593 # typical AIX shared libraries.
18594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18595 else
18596 # We preserve .a as extension for shared libraries through AIX4.2
18597 # and later when we are not doing run time linking.
18598 library_names_spec='${libname}${release}.a $libname.a'
18599 soname_spec='${libname}${release}${shared_ext}$major'
18600 fi
18601 shlibpath_var=LIBPATH
18602 fi
18603 ;;
18604
18605 amigaos*)
18606 library_names_spec='$libname.ixlibrary $libname.a'
18607 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18608 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'
18609 ;;
18610
18611 beos*)
18612 library_names_spec='${libname}${shared_ext}'
18613 dynamic_linker="$host_os ld.so"
18614 shlibpath_var=LIBRARY_PATH
18615 ;;
18616
18617 bsdi[45]*)
18618 version_type=linux
18619 need_version=no
18620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18621 soname_spec='${libname}${release}${shared_ext}$major'
18622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18623 shlibpath_var=LD_LIBRARY_PATH
18624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18626 # the default ld.so.conf also contains /usr/contrib/lib and
18627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18628 # libtool to hard-code these into programs
18629 ;;
18630
18631 cygwin* | mingw* | pw32*)
18632 version_type=windows
18633 shrext_cmds=".dll"
18634 need_version=no
18635 need_lib_prefix=no
18636
18637 case $GCC,$host_os in
18638 yes,cygwin* | yes,mingw* | yes,pw32*)
18639 library_names_spec='$libname.dll.a'
18640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18641 postinstall_cmds='base_file=`basename \${file}`~
18642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18643 dldir=$destdir/`dirname \$dlpath`~
18644 test -d \$dldir || mkdir -p \$dldir~
18645 $install_prog $dir/$dlname \$dldir/$dlname~
18646 chmod a+x \$dldir/$dlname'
18647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18648 dlpath=$dir/\$dldll~
18649 $rm \$dlpath'
18650 shlibpath_overrides_runpath=yes
18651
18652 case $host_os in
18653 cygwin*)
18654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18656 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18657 ;;
18658 mingw*)
18659 # MinGW DLLs use traditional 'lib' prefix
18660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18661 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18662 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18663 # It is most probably a Windows format PATH printed by
18664 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18665 # path with ; separators, and with drive letters. We can handle the
18666 # drive letters (cygwin fileutils understands them), so leave them,
18667 # especially as we might pass files found there to a mingw objdump,
18668 # which wouldn't understand a cygwinified path. Ahh.
18669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18670 else
18671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18672 fi
18673 ;;
18674 pw32*)
18675 # pw32 DLLs use 'pw' prefix rather than 'lib'
18676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18677 ;;
18678 esac
18679 ;;
18680
18681 *)
18682 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18683 ;;
18684 esac
18685 dynamic_linker='Win32 ld.exe'
18686 # FIXME: first we should search . and the directory the executable is in
18687 shlibpath_var=PATH
18688 ;;
18689
18690 darwin* | rhapsody*)
18691 dynamic_linker="$host_os dyld"
18692 version_type=darwin
18693 need_lib_prefix=no
18694 need_version=no
18695 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18696 soname_spec='${libname}${release}${major}$shared_ext'
18697 shlibpath_overrides_runpath=yes
18698 shlibpath_var=DYLD_LIBRARY_PATH
18699 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18700
18701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18702 ;;
18703
18704 dgux*)
18705 version_type=linux
18706 need_lib_prefix=no
18707 need_version=no
18708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18709 soname_spec='${libname}${release}${shared_ext}$major'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 ;;
18712
18713 freebsd1*)
18714 dynamic_linker=no
18715 ;;
18716
18717 freebsd* | dragonfly*)
18718 # DragonFly does not have aout. When/if they implement a new
18719 # versioning mechanism, adjust this.
18720 if test -x /usr/bin/objformat; then
18721 objformat=`/usr/bin/objformat`
18722 else
18723 case $host_os in
18724 freebsd[123]*) objformat=aout ;;
18725 *) objformat=elf ;;
18726 esac
18727 fi
18728 version_type=freebsd-$objformat
18729 case $version_type in
18730 freebsd-elf*)
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18732 need_version=no
18733 need_lib_prefix=no
18734 ;;
18735 freebsd-*)
18736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18737 need_version=yes
18738 ;;
18739 esac
18740 shlibpath_var=LD_LIBRARY_PATH
18741 case $host_os in
18742 freebsd2*)
18743 shlibpath_overrides_runpath=yes
18744 ;;
18745 freebsd3.[01]* | freebsdelf3.[01]*)
18746 shlibpath_overrides_runpath=yes
18747 hardcode_into_libs=yes
18748 ;;
18749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18751 shlibpath_overrides_runpath=no
18752 hardcode_into_libs=yes
18753 ;;
18754 *) # from 4.6 on, and DragonFly
18755 shlibpath_overrides_runpath=yes
18756 hardcode_into_libs=yes
18757 ;;
18758 esac
18759 ;;
18760
18761 gnu*)
18762 version_type=linux
18763 need_lib_prefix=no
18764 need_version=no
18765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18766 soname_spec='${libname}${release}${shared_ext}$major'
18767 shlibpath_var=LD_LIBRARY_PATH
18768 hardcode_into_libs=yes
18769 ;;
18770
18771 hpux9* | hpux10* | hpux11*)
18772 # Give a soname corresponding to the major version so that dld.sl refuses to
18773 # link against other versions.
18774 version_type=sunos
18775 need_lib_prefix=no
18776 need_version=no
18777 case $host_cpu in
18778 ia64*)
18779 shrext_cmds='.so'
18780 hardcode_into_libs=yes
18781 dynamic_linker="$host_os dld.so"
18782 shlibpath_var=LD_LIBRARY_PATH
18783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785 soname_spec='${libname}${release}${shared_ext}$major'
18786 if test "X$HPUX_IA64_MODE" = X32; then
18787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18788 else
18789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18790 fi
18791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18792 ;;
18793 hppa*64*)
18794 shrext_cmds='.sl'
18795 hardcode_into_libs=yes
18796 dynamic_linker="$host_os dld.sl"
18797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18800 soname_spec='${libname}${release}${shared_ext}$major'
18801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18803 ;;
18804 *)
18805 shrext_cmds='.sl'
18806 dynamic_linker="$host_os dld.sl"
18807 shlibpath_var=SHLIB_PATH
18808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18810 soname_spec='${libname}${release}${shared_ext}$major'
18811 ;;
18812 esac
18813 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18814 postinstall_cmds='chmod 555 $lib'
18815 ;;
18816
18817 interix[3-9]*)
18818 version_type=linux
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18824 shlibpath_var=LD_LIBRARY_PATH
18825 shlibpath_overrides_runpath=no
18826 hardcode_into_libs=yes
18827 ;;
18828
18829 irix5* | irix6* | nonstopux*)
18830 case $host_os in
18831 nonstopux*) version_type=nonstopux ;;
18832 *)
18833 if test "$lt_cv_prog_gnu_ld" = yes; then
18834 version_type=linux
18835 else
18836 version_type=irix
18837 fi ;;
18838 esac
18839 need_lib_prefix=no
18840 need_version=no
18841 soname_spec='${libname}${release}${shared_ext}$major'
18842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18843 case $host_os in
18844 irix5* | nonstopux*)
18845 libsuff= shlibsuff=
18846 ;;
18847 *)
18848 case $LD in # libtool.m4 will add one of these switches to LD
18849 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18850 libsuff= shlibsuff= libmagic=32-bit;;
18851 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18852 libsuff=32 shlibsuff=N32 libmagic=N32;;
18853 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18854 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18855 *) libsuff= shlibsuff= libmagic=never-match;;
18856 esac
18857 ;;
18858 esac
18859 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18860 shlibpath_overrides_runpath=no
18861 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18862 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18863 hardcode_into_libs=yes
18864 ;;
18865
18866 # No shared lib support for Linux oldld, aout, or coff.
18867 linux*oldld* | linux*aout* | linux*coff*)
18868 dynamic_linker=no
18869 ;;
18870
18871 # This must be Linux ELF.
18872 linux* | k*bsd*-gnu)
18873 version_type=linux
18874 need_lib_prefix=no
18875 need_version=no
18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877 soname_spec='${libname}${release}${shared_ext}$major'
18878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18879 shlibpath_var=LD_LIBRARY_PATH
18880 shlibpath_overrides_runpath=no
18881 # This implies no fast_install, which is unacceptable.
18882 # Some rework will be needed to allow for fast_install
18883 # before this can be enabled.
18884 hardcode_into_libs=yes
18885 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18886 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18887
18888 # Append ld.so.conf contents to the search path
18889 if test -f /etc/ld.so.conf; then
18890 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' ' '`
18891 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18892 fi
18893
18894 # We used to test for /lib/ld.so.1 and disable shared libraries on
18895 # powerpc, because MkLinux only supported shared libraries with the
18896 # GNU dynamic linker. Since this was broken with cross compilers,
18897 # most powerpc-linux boxes support dynamic linking these days and
18898 # people can always --disable-shared, the test was removed, and we
18899 # assume the GNU/Linux dynamic linker is in use.
18900 dynamic_linker='GNU/Linux ld.so'
18901 ;;
18902
18903 netbsd*)
18904 version_type=sunos
18905 need_lib_prefix=no
18906 need_version=no
18907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18910 dynamic_linker='NetBSD (a.out) ld.so'
18911 else
18912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18913 soname_spec='${libname}${release}${shared_ext}$major'
18914 dynamic_linker='NetBSD ld.elf_so'
18915 fi
18916 shlibpath_var=LD_LIBRARY_PATH
18917 shlibpath_overrides_runpath=yes
18918 hardcode_into_libs=yes
18919 ;;
18920
18921 newsos6)
18922 version_type=linux
18923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18924 shlibpath_var=LD_LIBRARY_PATH
18925 shlibpath_overrides_runpath=yes
18926 ;;
18927
18928 nto-qnx*)
18929 version_type=linux
18930 need_lib_prefix=no
18931 need_version=no
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 shlibpath_var=LD_LIBRARY_PATH
18935 shlibpath_overrides_runpath=yes
18936 ;;
18937
18938 openbsd*)
18939 version_type=sunos
18940 sys_lib_dlsearch_path_spec="/usr/lib"
18941 need_lib_prefix=no
18942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18943 case $host_os in
18944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18945 *) need_version=no ;;
18946 esac
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18949 shlibpath_var=LD_LIBRARY_PATH
18950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18951 case $host_os in
18952 openbsd2.[89] | openbsd2.[89].*)
18953 shlibpath_overrides_runpath=no
18954 ;;
18955 *)
18956 shlibpath_overrides_runpath=yes
18957 ;;
18958 esac
18959 else
18960 shlibpath_overrides_runpath=yes
18961 fi
18962 ;;
18963
18964 os2*)
18965 libname_spec='$name'
18966 shrext_cmds=".dll"
18967 need_lib_prefix=no
18968 library_names_spec='$libname${shared_ext} $libname.a'
18969 dynamic_linker='OS/2 ld.exe'
18970 shlibpath_var=LIBPATH
18971 ;;
18972
18973 osf3* | osf4* | osf5*)
18974 version_type=osf
18975 need_lib_prefix=no
18976 need_version=no
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18979 shlibpath_var=LD_LIBRARY_PATH
18980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18982 ;;
18983
18984 rdos*)
18985 dynamic_linker=no
18986 ;;
18987
18988 solaris*)
18989 version_type=linux
18990 need_lib_prefix=no
18991 need_version=no
18992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18993 soname_spec='${libname}${release}${shared_ext}$major'
18994 shlibpath_var=LD_LIBRARY_PATH
18995 shlibpath_overrides_runpath=yes
18996 hardcode_into_libs=yes
18997 # ldd complains unless libraries are executable
18998 postinstall_cmds='chmod +x $lib'
18999 ;;
19000
19001 sunos4*)
19002 version_type=sunos
19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19005 shlibpath_var=LD_LIBRARY_PATH
19006 shlibpath_overrides_runpath=yes
19007 if test "$with_gnu_ld" = yes; then
19008 need_lib_prefix=no
19009 fi
19010 need_version=yes
19011 ;;
19012
19013 sysv4 | sysv4.3*)
19014 version_type=linux
19015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19016 soname_spec='${libname}${release}${shared_ext}$major'
19017 shlibpath_var=LD_LIBRARY_PATH
19018 case $host_vendor in
19019 sni)
19020 shlibpath_overrides_runpath=no
19021 need_lib_prefix=no
19022 export_dynamic_flag_spec='${wl}-Blargedynsym'
19023 runpath_var=LD_RUN_PATH
19024 ;;
19025 siemens)
19026 need_lib_prefix=no
19027 ;;
19028 motorola)
19029 need_lib_prefix=no
19030 need_version=no
19031 shlibpath_overrides_runpath=no
19032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19033 ;;
19034 esac
19035 ;;
19036
19037 sysv4*MP*)
19038 if test -d /usr/nec ;then
19039 version_type=linux
19040 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19041 soname_spec='$libname${shared_ext}.$major'
19042 shlibpath_var=LD_LIBRARY_PATH
19043 fi
19044 ;;
19045
19046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19047 version_type=freebsd-elf
19048 need_lib_prefix=no
19049 need_version=no
19050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19051 soname_spec='${libname}${release}${shared_ext}$major'
19052 shlibpath_var=LD_LIBRARY_PATH
19053 hardcode_into_libs=yes
19054 if test "$with_gnu_ld" = yes; then
19055 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19056 shlibpath_overrides_runpath=no
19057 else
19058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19059 shlibpath_overrides_runpath=yes
19060 case $host_os in
19061 sco3.2v5*)
19062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19063 ;;
19064 esac
19065 fi
19066 sys_lib_dlsearch_path_spec='/usr/lib'
19067 ;;
19068
19069 uts4*)
19070 version_type=linux
19071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19072 soname_spec='${libname}${release}${shared_ext}$major'
19073 shlibpath_var=LD_LIBRARY_PATH
19074 ;;
19075
19076 *)
19077 dynamic_linker=no
19078 ;;
19079 esac
19080 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19081 $as_echo "$dynamic_linker" >&6; }
19082 test "$dynamic_linker" = no && can_build_shared=no
19083
19084 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19085 $as_echo_n "(cached) " >&6
19086 else
19087 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19088 fi
19089
19090 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19091 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19092 $as_echo_n "(cached) " >&6
19093 else
19094 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19095 fi
19096
19097 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19098
19099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19100 if test "$GCC" = yes; then
19101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19102 fi
19103
19104 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19106 hardcode_action_GCJ=
19107 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19108 test -n "$runpath_var_GCJ" || \
19109 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19110
19111 # We can hardcode non-existant directories.
19112 if test "$hardcode_direct_GCJ" != no &&
19113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19114 # have to relink, otherwise we might link with an installed library
19115 # when we should be linking with a yet-to-be-installed one
19116 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19117 test "$hardcode_minus_L_GCJ" != no; then
19118 # Linking always hardcodes the temporary library directory.
19119 hardcode_action_GCJ=relink
19120 else
19121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19122 hardcode_action_GCJ=immediate
19123 fi
19124 else
19125 # We cannot hardcode anything, or else we can only hardcode existing
19126 # directories.
19127 hardcode_action_GCJ=unsupported
19128 fi
19129 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19130 $as_echo "$hardcode_action_GCJ" >&6; }
19131
19132 if test "$hardcode_action_GCJ" = relink; then
19133 # Fast installation is not supported
19134 enable_fast_install=no
19135 elif test "$shlibpath_overrides_runpath" = yes ||
19136 test "$enable_shared" = no; then
19137 # Fast installation is not necessary
19138 enable_fast_install=needless
19139 fi
19140
19141
19142 # The else clause should only fire when bootstrapping the
19143 # libtool distribution, otherwise you forgot to ship ltmain.sh
19144 # with your package, and you will get complaints that there are
19145 # no rules to generate ltmain.sh.
19146 if test -f "$ltmain"; then
19147 # See if we are running on zsh, and set the options which allow our commands through
19148 # without removal of \ escapes.
19149 if test -n "${ZSH_VERSION+set}" ; then
19150 setopt NO_GLOB_SUBST
19151 fi
19152 # Now quote all the things that may contain metacharacters while being
19153 # careful not to overquote the AC_SUBSTed values. We take copies of the
19154 # variables and quote the copies for generation of the libtool script.
19155 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19156 SED SHELL STRIP \
19157 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19158 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19159 deplibs_check_method reload_flag reload_cmds need_locks \
19160 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19161 lt_cv_sys_global_symbol_to_c_name_address \
19162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19163 old_postinstall_cmds old_postuninstall_cmds \
19164 compiler_GCJ \
19165 CC_GCJ \
19166 LD_GCJ \
19167 lt_prog_compiler_wl_GCJ \
19168 lt_prog_compiler_pic_GCJ \
19169 lt_prog_compiler_static_GCJ \
19170 lt_prog_compiler_no_builtin_flag_GCJ \
19171 export_dynamic_flag_spec_GCJ \
19172 thread_safe_flag_spec_GCJ \
19173 whole_archive_flag_spec_GCJ \
19174 enable_shared_with_static_runtimes_GCJ \
19175 old_archive_cmds_GCJ \
19176 old_archive_from_new_cmds_GCJ \
19177 predep_objects_GCJ \
19178 postdep_objects_GCJ \
19179 predeps_GCJ \
19180 postdeps_GCJ \
19181 compiler_lib_search_path_GCJ \
19182 compiler_lib_search_dirs_GCJ \
19183 archive_cmds_GCJ \
19184 archive_expsym_cmds_GCJ \
19185 postinstall_cmds_GCJ \
19186 postuninstall_cmds_GCJ \
19187 old_archive_from_expsyms_cmds_GCJ \
19188 allow_undefined_flag_GCJ \
19189 no_undefined_flag_GCJ \
19190 export_symbols_cmds_GCJ \
19191 hardcode_libdir_flag_spec_GCJ \
19192 hardcode_libdir_flag_spec_ld_GCJ \
19193 hardcode_libdir_separator_GCJ \
19194 hardcode_automatic_GCJ \
19195 module_cmds_GCJ \
19196 module_expsym_cmds_GCJ \
19197 lt_cv_prog_compiler_c_o_GCJ \
19198 fix_srcfile_path_GCJ \
19199 exclude_expsyms_GCJ \
19200 include_expsyms_GCJ; do
19201
19202 case $var in
19203 old_archive_cmds_GCJ | \
19204 old_archive_from_new_cmds_GCJ | \
19205 archive_cmds_GCJ | \
19206 archive_expsym_cmds_GCJ | \
19207 module_cmds_GCJ | \
19208 module_expsym_cmds_GCJ | \
19209 old_archive_from_expsyms_cmds_GCJ | \
19210 export_symbols_cmds_GCJ | \
19211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19212 postinstall_cmds | postuninstall_cmds | \
19213 old_postinstall_cmds | old_postuninstall_cmds | \
19214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19215 # Double-quote double-evaled strings.
19216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19217 ;;
19218 *)
19219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19220 ;;
19221 esac
19222 done
19223
19224 case $lt_echo in
19225 *'\$0 --fallback-echo"')
19226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19227 ;;
19228 esac
19229
19230 cfgfile="$ofile"
19231
19232 cat <<__EOF__ >> "$cfgfile"
19233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19234
19235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19236
19237 # Shell to use when invoking shell scripts.
19238 SHELL=$lt_SHELL
19239
19240 # Whether or not to build shared libraries.
19241 build_libtool_libs=$enable_shared
19242
19243 # Whether or not to build static libraries.
19244 build_old_libs=$enable_static
19245
19246 # Whether or not to add -lc for building shared libraries.
19247 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19248
19249 # Whether or not to disallow shared libs when runtime libs are static
19250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19251
19252 # Whether or not to optimize for fast installation.
19253 fast_install=$enable_fast_install
19254
19255 # The host system.
19256 host_alias=$host_alias
19257 host=$host
19258 host_os=$host_os
19259
19260 # The build system.
19261 build_alias=$build_alias
19262 build=$build
19263 build_os=$build_os
19264
19265 # An echo program that does not interpret backslashes.
19266 echo=$lt_echo
19267
19268 # The archiver.
19269 AR=$lt_AR
19270 AR_FLAGS=$lt_AR_FLAGS
19271
19272 # A C compiler.
19273 LTCC=$lt_LTCC
19274
19275 # LTCC compiler flags.
19276 LTCFLAGS=$lt_LTCFLAGS
19277
19278 # A language-specific compiler.
19279 CC=$lt_compiler_GCJ
19280
19281 # Is the compiler the GNU C compiler?
19282 with_gcc=$GCC_GCJ
19283
19284 # An ERE matcher.
19285 EGREP=$lt_EGREP
19286
19287 # The linker used to build libraries.
19288 LD=$lt_LD_GCJ
19289
19290 # Whether we need hard or soft links.
19291 LN_S=$lt_LN_S
19292
19293 # A BSD-compatible nm program.
19294 NM=$lt_NM
19295
19296 # A symbol stripping program
19297 STRIP=$lt_STRIP
19298
19299 # Used to examine libraries when file_magic_cmd begins "file"
19300 MAGIC_CMD=$MAGIC_CMD
19301
19302 # Used on cygwin: DLL creation program.
19303 DLLTOOL="$DLLTOOL"
19304
19305 # Used on cygwin: object dumper.
19306 OBJDUMP="$OBJDUMP"
19307
19308 # Used on cygwin: assembler.
19309 AS="$AS"
19310
19311 # The name of the directory that contains temporary libtool files.
19312 objdir=$objdir
19313
19314 # How to create reloadable object files.
19315 reload_flag=$lt_reload_flag
19316 reload_cmds=$lt_reload_cmds
19317
19318 # How to pass a linker flag through the compiler.
19319 wl=$lt_lt_prog_compiler_wl_GCJ
19320
19321 # Object file suffix (normally "o").
19322 objext="$ac_objext"
19323
19324 # Old archive suffix (normally "a").
19325 libext="$libext"
19326
19327 # Shared library suffix (normally ".so").
19328 shrext_cmds='$shrext_cmds'
19329
19330 # Executable file suffix (normally "").
19331 exeext="$exeext"
19332
19333 # Additional compiler flags for building library objects.
19334 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19335 pic_mode=$pic_mode
19336
19337 # What is the maximum length of a command?
19338 max_cmd_len=$lt_cv_sys_max_cmd_len
19339
19340 # Does compiler simultaneously support -c and -o options?
19341 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19342
19343 # Must we lock files when doing compilation?
19344 need_locks=$lt_need_locks
19345
19346 # Do we need the lib prefix for modules?
19347 need_lib_prefix=$need_lib_prefix
19348
19349 # Do we need a version for libraries?
19350 need_version=$need_version
19351
19352 # Whether dlopen is supported.
19353 dlopen_support=$enable_dlopen
19354
19355 # Whether dlopen of programs is supported.
19356 dlopen_self=$enable_dlopen_self
19357
19358 # Whether dlopen of statically linked programs is supported.
19359 dlopen_self_static=$enable_dlopen_self_static
19360
19361 # Compiler flag to prevent dynamic linking.
19362 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19363
19364 # Compiler flag to turn off builtin functions.
19365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19366
19367 # Compiler flag to allow reflexive dlopens.
19368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19369
19370 # Compiler flag to generate shared objects directly from archives.
19371 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19372
19373 # Compiler flag to generate thread-safe objects.
19374 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19375
19376 # Library versioning type.
19377 version_type=$version_type
19378
19379 # Format of library name prefix.
19380 libname_spec=$lt_libname_spec
19381
19382 # List of archive names. First name is the real one, the rest are links.
19383 # The last name is the one that the linker finds with -lNAME.
19384 library_names_spec=$lt_library_names_spec
19385
19386 # The coded name of the library, if different from the real name.
19387 soname_spec=$lt_soname_spec
19388
19389 # Commands used to build and install an old-style archive.
19390 RANLIB=$lt_RANLIB
19391 old_archive_cmds=$lt_old_archive_cmds_GCJ
19392 old_postinstall_cmds=$lt_old_postinstall_cmds
19393 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19394
19395 # Create an old-style archive from a shared archive.
19396 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19397
19398 # Create a temporary old-style archive to link instead of a shared archive.
19399 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19400
19401 # Commands used to build and install a shared archive.
19402 archive_cmds=$lt_archive_cmds_GCJ
19403 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19404 postinstall_cmds=$lt_postinstall_cmds
19405 postuninstall_cmds=$lt_postuninstall_cmds
19406
19407 # Commands used to build a loadable module (assumed same as above if empty)
19408 module_cmds=$lt_module_cmds_GCJ
19409 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19410
19411 # Commands to strip libraries.
19412 old_striplib=$lt_old_striplib
19413 striplib=$lt_striplib
19414
19415 # Dependencies to place before the objects being linked to create a
19416 # shared library.
19417 predep_objects=$lt_predep_objects_GCJ
19418
19419 # Dependencies to place after the objects being linked to create a
19420 # shared library.
19421 postdep_objects=$lt_postdep_objects_GCJ
19422
19423 # Dependencies to place before the objects being linked to create a
19424 # shared library.
19425 predeps=$lt_predeps_GCJ
19426
19427 # Dependencies to place after the objects being linked to create a
19428 # shared library.
19429 postdeps=$lt_postdeps_GCJ
19430
19431 # The directories searched by this compiler when creating a shared
19432 # library
19433 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19434
19435 # The library search path used internally by the compiler when linking
19436 # a shared library.
19437 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19438
19439 # Method to check whether dependent libraries are shared objects.
19440 deplibs_check_method=$lt_deplibs_check_method
19441
19442 # Command to use when deplibs_check_method == file_magic.
19443 file_magic_cmd=$lt_file_magic_cmd
19444
19445 # Flag that allows shared libraries with undefined symbols to be built.
19446 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19447
19448 # Flag that forces no undefined symbols.
19449 no_undefined_flag=$lt_no_undefined_flag_GCJ
19450
19451 # Commands used to finish a libtool library installation in a directory.
19452 finish_cmds=$lt_finish_cmds
19453
19454 # Same as above, but a single script fragment to be evaled but not shown.
19455 finish_eval=$lt_finish_eval
19456
19457 # Take the output of nm and produce a listing of raw symbols and C names.
19458 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19459
19460 # Transform the output of nm in a proper C declaration
19461 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19462
19463 # Transform the output of nm in a C name address pair
19464 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19465
19466 # This is the shared library runtime path variable.
19467 runpath_var=$runpath_var
19468
19469 # This is the shared library path variable.
19470 shlibpath_var=$shlibpath_var
19471
19472 # Is shlibpath searched before the hard-coded library search path?
19473 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19474
19475 # How to hardcode a shared library path into an executable.
19476 hardcode_action=$hardcode_action_GCJ
19477
19478 # Whether we should hardcode library paths into libraries.
19479 hardcode_into_libs=$hardcode_into_libs
19480
19481 # Flag to hardcode \$libdir into a binary during linking.
19482 # This must work even if \$libdir does not exist.
19483 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19484
19485 # If ld is used when linking, flag to hardcode \$libdir into
19486 # a binary during linking. This must work even if \$libdir does
19487 # not exist.
19488 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19489
19490 # Whether we need a single -rpath flag with a separated argument.
19491 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19492
19493 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19494 # resulting binary.
19495 hardcode_direct=$hardcode_direct_GCJ
19496
19497 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19498 # resulting binary.
19499 hardcode_minus_L=$hardcode_minus_L_GCJ
19500
19501 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19502 # the resulting binary.
19503 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19504
19505 # Set to yes if building a shared library automatically hardcodes DIR into the library
19506 # and all subsequent libraries and executables linked against it.
19507 hardcode_automatic=$hardcode_automatic_GCJ
19508
19509 # Variables whose values should be saved in libtool wrapper scripts and
19510 # restored at relink time.
19511 variables_saved_for_relink="$variables_saved_for_relink"
19512
19513 # Whether libtool must link a program against all its dependency libraries.
19514 link_all_deplibs=$link_all_deplibs_GCJ
19515
19516 # Compile-time system search path for libraries
19517 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19518
19519 # Run-time system search path for libraries
19520 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19521
19522 # Fix the shell variable \$srcfile for the compiler.
19523 fix_srcfile_path=$lt_fix_srcfile_path
19524
19525 # Set to yes if exported symbols are required.
19526 always_export_symbols=$always_export_symbols_GCJ
19527
19528 # The commands to list exported symbols.
19529 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19530
19531 # The commands to extract the exported symbol list from a shared archive.
19532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19533
19534 # Symbols that should not be listed in the preloaded symbols.
19535 exclude_expsyms=$lt_exclude_expsyms_GCJ
19536
19537 # Symbols that must always be exported.
19538 include_expsyms=$lt_include_expsyms_GCJ
19539
19540 # ### END LIBTOOL TAG CONFIG: $tagname
19541
19542 __EOF__
19543
19544
19545 else
19546 # If there is no Makefile yet, we rely on a make rule to execute
19547 # `config.status --recheck' to rerun these tests and create the
19548 # libtool script then.
19549 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19550 if test -f "$ltmain_in"; then
19551 test -f Makefile && make "$ltmain"
19552 fi
19553 fi
19554
19555
19556 ac_ext=c
19557 ac_cpp='$CPP $CPPFLAGS'
19558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19561
19562 CC="$lt_save_CC"
19563
19564 else
19565 tagname=""
19566 fi
19567 ;;
19568
19569 RC)
19570
19571
19572 # Source file extension for RC test sources.
19573 ac_ext=rc
19574
19575 # Object file extension for compiled RC test sources.
19576 objext=o
19577 objext_RC=$objext
19578
19579 # Code to be used in simple compile tests
19580 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19581
19582 # Code to be used in simple link tests
19583 lt_simple_link_test_code="$lt_simple_compile_test_code"
19584
19585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19586
19587 # If no C compiler was specified, use CC.
19588 LTCC=${LTCC-"$CC"}
19589
19590 # If no C compiler flags were specified, use CFLAGS.
19591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19592
19593 # Allow CC to be a program name with arguments.
19594 compiler=$CC
19595
19596
19597 # save warnings/boilerplate of simple test code
19598 ac_outfile=conftest.$ac_objext
19599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19601 _lt_compiler_boilerplate=`cat conftest.err`
19602 $rm conftest*
19603
19604 ac_outfile=conftest.$ac_objext
19605 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19607 _lt_linker_boilerplate=`cat conftest.err`
19608 $rm -r conftest*
19609
19610
19611 # Allow CC to be a program name with arguments.
19612 lt_save_CC="$CC"
19613 CC=${RC-"windres"}
19614 compiler=$CC
19615 compiler_RC=$CC
19616 for cc_temp in $compiler""; do
19617 case $cc_temp in
19618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19620 \-*) ;;
19621 *) break;;
19622 esac
19623 done
19624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19625
19626 lt_cv_prog_compiler_c_o_RC=yes
19627
19628 # The else clause should only fire when bootstrapping the
19629 # libtool distribution, otherwise you forgot to ship ltmain.sh
19630 # with your package, and you will get complaints that there are
19631 # no rules to generate ltmain.sh.
19632 if test -f "$ltmain"; then
19633 # See if we are running on zsh, and set the options which allow our commands through
19634 # without removal of \ escapes.
19635 if test -n "${ZSH_VERSION+set}" ; then
19636 setopt NO_GLOB_SUBST
19637 fi
19638 # Now quote all the things that may contain metacharacters while being
19639 # careful not to overquote the AC_SUBSTed values. We take copies of the
19640 # variables and quote the copies for generation of the libtool script.
19641 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19642 SED SHELL STRIP \
19643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19645 deplibs_check_method reload_flag reload_cmds need_locks \
19646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19647 lt_cv_sys_global_symbol_to_c_name_address \
19648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19649 old_postinstall_cmds old_postuninstall_cmds \
19650 compiler_RC \
19651 CC_RC \
19652 LD_RC \
19653 lt_prog_compiler_wl_RC \
19654 lt_prog_compiler_pic_RC \
19655 lt_prog_compiler_static_RC \
19656 lt_prog_compiler_no_builtin_flag_RC \
19657 export_dynamic_flag_spec_RC \
19658 thread_safe_flag_spec_RC \
19659 whole_archive_flag_spec_RC \
19660 enable_shared_with_static_runtimes_RC \
19661 old_archive_cmds_RC \
19662 old_archive_from_new_cmds_RC \
19663 predep_objects_RC \
19664 postdep_objects_RC \
19665 predeps_RC \
19666 postdeps_RC \
19667 compiler_lib_search_path_RC \
19668 compiler_lib_search_dirs_RC \
19669 archive_cmds_RC \
19670 archive_expsym_cmds_RC \
19671 postinstall_cmds_RC \
19672 postuninstall_cmds_RC \
19673 old_archive_from_expsyms_cmds_RC \
19674 allow_undefined_flag_RC \
19675 no_undefined_flag_RC \
19676 export_symbols_cmds_RC \
19677 hardcode_libdir_flag_spec_RC \
19678 hardcode_libdir_flag_spec_ld_RC \
19679 hardcode_libdir_separator_RC \
19680 hardcode_automatic_RC \
19681 module_cmds_RC \
19682 module_expsym_cmds_RC \
19683 lt_cv_prog_compiler_c_o_RC \
19684 fix_srcfile_path_RC \
19685 exclude_expsyms_RC \
19686 include_expsyms_RC; do
19687
19688 case $var in
19689 old_archive_cmds_RC | \
19690 old_archive_from_new_cmds_RC | \
19691 archive_cmds_RC | \
19692 archive_expsym_cmds_RC | \
19693 module_cmds_RC | \
19694 module_expsym_cmds_RC | \
19695 old_archive_from_expsyms_cmds_RC | \
19696 export_symbols_cmds_RC | \
19697 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19698 postinstall_cmds | postuninstall_cmds | \
19699 old_postinstall_cmds | old_postuninstall_cmds | \
19700 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19701 # Double-quote double-evaled strings.
19702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19703 ;;
19704 *)
19705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19706 ;;
19707 esac
19708 done
19709
19710 case $lt_echo in
19711 *'\$0 --fallback-echo"')
19712 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19713 ;;
19714 esac
19715
19716 cfgfile="$ofile"
19717
19718 cat <<__EOF__ >> "$cfgfile"
19719 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19720
19721 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19722
19723 # Shell to use when invoking shell scripts.
19724 SHELL=$lt_SHELL
19725
19726 # Whether or not to build shared libraries.
19727 build_libtool_libs=$enable_shared
19728
19729 # Whether or not to build static libraries.
19730 build_old_libs=$enable_static
19731
19732 # Whether or not to add -lc for building shared libraries.
19733 build_libtool_need_lc=$archive_cmds_need_lc_RC
19734
19735 # Whether or not to disallow shared libs when runtime libs are static
19736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19737
19738 # Whether or not to optimize for fast installation.
19739 fast_install=$enable_fast_install
19740
19741 # The host system.
19742 host_alias=$host_alias
19743 host=$host
19744 host_os=$host_os
19745
19746 # The build system.
19747 build_alias=$build_alias
19748 build=$build
19749 build_os=$build_os
19750
19751 # An echo program that does not interpret backslashes.
19752 echo=$lt_echo
19753
19754 # The archiver.
19755 AR=$lt_AR
19756 AR_FLAGS=$lt_AR_FLAGS
19757
19758 # A C compiler.
19759 LTCC=$lt_LTCC
19760
19761 # LTCC compiler flags.
19762 LTCFLAGS=$lt_LTCFLAGS
19763
19764 # A language-specific compiler.
19765 CC=$lt_compiler_RC
19766
19767 # Is the compiler the GNU C compiler?
19768 with_gcc=$GCC_RC
19769
19770 # An ERE matcher.
19771 EGREP=$lt_EGREP
19772
19773 # The linker used to build libraries.
19774 LD=$lt_LD_RC
19775
19776 # Whether we need hard or soft links.
19777 LN_S=$lt_LN_S
19778
19779 # A BSD-compatible nm program.
19780 NM=$lt_NM
19781
19782 # A symbol stripping program
19783 STRIP=$lt_STRIP
19784
19785 # Used to examine libraries when file_magic_cmd begins "file"
19786 MAGIC_CMD=$MAGIC_CMD
19787
19788 # Used on cygwin: DLL creation program.
19789 DLLTOOL="$DLLTOOL"
19790
19791 # Used on cygwin: object dumper.
19792 OBJDUMP="$OBJDUMP"
19793
19794 # Used on cygwin: assembler.
19795 AS="$AS"
19796
19797 # The name of the directory that contains temporary libtool files.
19798 objdir=$objdir
19799
19800 # How to create reloadable object files.
19801 reload_flag=$lt_reload_flag
19802 reload_cmds=$lt_reload_cmds
19803
19804 # How to pass a linker flag through the compiler.
19805 wl=$lt_lt_prog_compiler_wl_RC
19806
19807 # Object file suffix (normally "o").
19808 objext="$ac_objext"
19809
19810 # Old archive suffix (normally "a").
19811 libext="$libext"
19812
19813 # Shared library suffix (normally ".so").
19814 shrext_cmds='$shrext_cmds'
19815
19816 # Executable file suffix (normally "").
19817 exeext="$exeext"
19818
19819 # Additional compiler flags for building library objects.
19820 pic_flag=$lt_lt_prog_compiler_pic_RC
19821 pic_mode=$pic_mode
19822
19823 # What is the maximum length of a command?
19824 max_cmd_len=$lt_cv_sys_max_cmd_len
19825
19826 # Does compiler simultaneously support -c and -o options?
19827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19828
19829 # Must we lock files when doing compilation?
19830 need_locks=$lt_need_locks
19831
19832 # Do we need the lib prefix for modules?
19833 need_lib_prefix=$need_lib_prefix
19834
19835 # Do we need a version for libraries?
19836 need_version=$need_version
19837
19838 # Whether dlopen is supported.
19839 dlopen_support=$enable_dlopen
19840
19841 # Whether dlopen of programs is supported.
19842 dlopen_self=$enable_dlopen_self
19843
19844 # Whether dlopen of statically linked programs is supported.
19845 dlopen_self_static=$enable_dlopen_self_static
19846
19847 # Compiler flag to prevent dynamic linking.
19848 link_static_flag=$lt_lt_prog_compiler_static_RC
19849
19850 # Compiler flag to turn off builtin functions.
19851 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19852
19853 # Compiler flag to allow reflexive dlopens.
19854 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19855
19856 # Compiler flag to generate shared objects directly from archives.
19857 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19858
19859 # Compiler flag to generate thread-safe objects.
19860 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19861
19862 # Library versioning type.
19863 version_type=$version_type
19864
19865 # Format of library name prefix.
19866 libname_spec=$lt_libname_spec
19867
19868 # List of archive names. First name is the real one, the rest are links.
19869 # The last name is the one that the linker finds with -lNAME.
19870 library_names_spec=$lt_library_names_spec
19871
19872 # The coded name of the library, if different from the real name.
19873 soname_spec=$lt_soname_spec
19874
19875 # Commands used to build and install an old-style archive.
19876 RANLIB=$lt_RANLIB
19877 old_archive_cmds=$lt_old_archive_cmds_RC
19878 old_postinstall_cmds=$lt_old_postinstall_cmds
19879 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19880
19881 # Create an old-style archive from a shared archive.
19882 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19883
19884 # Create a temporary old-style archive to link instead of a shared archive.
19885 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19886
19887 # Commands used to build and install a shared archive.
19888 archive_cmds=$lt_archive_cmds_RC
19889 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19890 postinstall_cmds=$lt_postinstall_cmds
19891 postuninstall_cmds=$lt_postuninstall_cmds
19892
19893 # Commands used to build a loadable module (assumed same as above if empty)
19894 module_cmds=$lt_module_cmds_RC
19895 module_expsym_cmds=$lt_module_expsym_cmds_RC
19896
19897 # Commands to strip libraries.
19898 old_striplib=$lt_old_striplib
19899 striplib=$lt_striplib
19900
19901 # Dependencies to place before the objects being linked to create a
19902 # shared library.
19903 predep_objects=$lt_predep_objects_RC
19904
19905 # Dependencies to place after the objects being linked to create a
19906 # shared library.
19907 postdep_objects=$lt_postdep_objects_RC
19908
19909 # Dependencies to place before the objects being linked to create a
19910 # shared library.
19911 predeps=$lt_predeps_RC
19912
19913 # Dependencies to place after the objects being linked to create a
19914 # shared library.
19915 postdeps=$lt_postdeps_RC
19916
19917 # The directories searched by this compiler when creating a shared
19918 # library
19919 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19920
19921 # The library search path used internally by the compiler when linking
19922 # a shared library.
19923 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19924
19925 # Method to check whether dependent libraries are shared objects.
19926 deplibs_check_method=$lt_deplibs_check_method
19927
19928 # Command to use when deplibs_check_method == file_magic.
19929 file_magic_cmd=$lt_file_magic_cmd
19930
19931 # Flag that allows shared libraries with undefined symbols to be built.
19932 allow_undefined_flag=$lt_allow_undefined_flag_RC
19933
19934 # Flag that forces no undefined symbols.
19935 no_undefined_flag=$lt_no_undefined_flag_RC
19936
19937 # Commands used to finish a libtool library installation in a directory.
19938 finish_cmds=$lt_finish_cmds
19939
19940 # Same as above, but a single script fragment to be evaled but not shown.
19941 finish_eval=$lt_finish_eval
19942
19943 # Take the output of nm and produce a listing of raw symbols and C names.
19944 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19945
19946 # Transform the output of nm in a proper C declaration
19947 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19948
19949 # Transform the output of nm in a C name address pair
19950 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19951
19952 # This is the shared library runtime path variable.
19953 runpath_var=$runpath_var
19954
19955 # This is the shared library path variable.
19956 shlibpath_var=$shlibpath_var
19957
19958 # Is shlibpath searched before the hard-coded library search path?
19959 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19960
19961 # How to hardcode a shared library path into an executable.
19962 hardcode_action=$hardcode_action_RC
19963
19964 # Whether we should hardcode library paths into libraries.
19965 hardcode_into_libs=$hardcode_into_libs
19966
19967 # Flag to hardcode \$libdir into a binary during linking.
19968 # This must work even if \$libdir does not exist.
19969 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19970
19971 # If ld is used when linking, flag to hardcode \$libdir into
19972 # a binary during linking. This must work even if \$libdir does
19973 # not exist.
19974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19975
19976 # Whether we need a single -rpath flag with a separated argument.
19977 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19978
19979 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19980 # resulting binary.
19981 hardcode_direct=$hardcode_direct_RC
19982
19983 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19984 # resulting binary.
19985 hardcode_minus_L=$hardcode_minus_L_RC
19986
19987 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19988 # the resulting binary.
19989 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19990
19991 # Set to yes if building a shared library automatically hardcodes DIR into the library
19992 # and all subsequent libraries and executables linked against it.
19993 hardcode_automatic=$hardcode_automatic_RC
19994
19995 # Variables whose values should be saved in libtool wrapper scripts and
19996 # restored at relink time.
19997 variables_saved_for_relink="$variables_saved_for_relink"
19998
19999 # Whether libtool must link a program against all its dependency libraries.
20000 link_all_deplibs=$link_all_deplibs_RC
20001
20002 # Compile-time system search path for libraries
20003 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20004
20005 # Run-time system search path for libraries
20006 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20007
20008 # Fix the shell variable \$srcfile for the compiler.
20009 fix_srcfile_path=$lt_fix_srcfile_path
20010
20011 # Set to yes if exported symbols are required.
20012 always_export_symbols=$always_export_symbols_RC
20013
20014 # The commands to list exported symbols.
20015 export_symbols_cmds=$lt_export_symbols_cmds_RC
20016
20017 # The commands to extract the exported symbol list from a shared archive.
20018 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20019
20020 # Symbols that should not be listed in the preloaded symbols.
20021 exclude_expsyms=$lt_exclude_expsyms_RC
20022
20023 # Symbols that must always be exported.
20024 include_expsyms=$lt_include_expsyms_RC
20025
20026 # ### END LIBTOOL TAG CONFIG: $tagname
20027
20028 __EOF__
20029
20030
20031 else
20032 # If there is no Makefile yet, we rely on a make rule to execute
20033 # `config.status --recheck' to rerun these tests and create the
20034 # libtool script then.
20035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20036 if test -f "$ltmain_in"; then
20037 test -f Makefile && make "$ltmain"
20038 fi
20039 fi
20040
20041
20042 ac_ext=c
20043 ac_cpp='$CPP $CPPFLAGS'
20044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20047
20048 CC="$lt_save_CC"
20049
20050 ;;
20051
20052 *)
20053 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20054 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20055 { (exit 1); exit 1; }; }
20056 ;;
20057 esac
20058
20059 # Append the new tag name to the list of available tags.
20060 if test -n "$tagname" ; then
20061 available_tags="$available_tags $tagname"
20062 fi
20063 fi
20064 done
20065 IFS="$lt_save_ifs"
20066
20067 # Now substitute the updated list of available tags.
20068 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20069 mv "${ofile}T" "$ofile"
20070 chmod +x "$ofile"
20071 else
20072 rm -f "${ofile}T"
20073 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20074 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20075 { (exit 1); exit 1; }; }
20076 fi
20077 fi
20078
20079
20080
20081 # This can be used to rebuild libtool when needed
20082 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20083
20084 # Always use our own libtool.
20085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20086
20087 # Prevent multiple expansion
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108 ac_ext=c
20109 ac_cpp='$CPP $CPPFLAGS'
20110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20113 if test -n "$ac_tool_prefix"; then
20114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20116 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20117 $as_echo_n "checking for $ac_word... " >&6; }
20118 if test "${ac_cv_prog_CC+set}" = set; then
20119 $as_echo_n "(cached) " >&6
20120 else
20121 if test -n "$CC"; then
20122 ac_cv_prog_CC="$CC" # Let the user override the test.
20123 else
20124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20125 for as_dir in $PATH
20126 do
20127 IFS=$as_save_IFS
20128 test -z "$as_dir" && as_dir=.
20129 for ac_exec_ext in '' $ac_executable_extensions; do
20130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20132 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20133 break 2
20134 fi
20135 done
20136 done
20137 IFS=$as_save_IFS
20138
20139 fi
20140 fi
20141 CC=$ac_cv_prog_CC
20142 if test -n "$CC"; then
20143 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20144 $as_echo "$CC" >&6; }
20145 else
20146 { $as_echo "$as_me:$LINENO: result: no" >&5
20147 $as_echo "no" >&6; }
20148 fi
20149
20150
20151 fi
20152 if test -z "$ac_cv_prog_CC"; then
20153 ac_ct_CC=$CC
20154 # Extract the first word of "gcc", so it can be a program name with args.
20155 set dummy gcc; ac_word=$2
20156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20157 $as_echo_n "checking for $ac_word... " >&6; }
20158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20159 $as_echo_n "(cached) " >&6
20160 else
20161 if test -n "$ac_ct_CC"; then
20162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20163 else
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20166 do
20167 IFS=$as_save_IFS
20168 test -z "$as_dir" && as_dir=.
20169 for ac_exec_ext in '' $ac_executable_extensions; do
20170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20171 ac_cv_prog_ac_ct_CC="gcc"
20172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20173 break 2
20174 fi
20175 done
20176 done
20177 IFS=$as_save_IFS
20178
20179 fi
20180 fi
20181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20182 if test -n "$ac_ct_CC"; then
20183 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20184 $as_echo "$ac_ct_CC" >&6; }
20185 else
20186 { $as_echo "$as_me:$LINENO: result: no" >&5
20187 $as_echo "no" >&6; }
20188 fi
20189
20190 if test "x$ac_ct_CC" = x; then
20191 CC=""
20192 else
20193 case $cross_compiling:$ac_tool_warned in
20194 yes:)
20195 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20197 ac_tool_warned=yes ;;
20198 esac
20199 CC=$ac_ct_CC
20200 fi
20201 else
20202 CC="$ac_cv_prog_CC"
20203 fi
20204
20205 if test -z "$CC"; then
20206 if test -n "$ac_tool_prefix"; then
20207 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20208 set dummy ${ac_tool_prefix}cc; ac_word=$2
20209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20210 $as_echo_n "checking for $ac_word... " >&6; }
20211 if test "${ac_cv_prog_CC+set}" = set; then
20212 $as_echo_n "(cached) " >&6
20213 else
20214 if test -n "$CC"; then
20215 ac_cv_prog_CC="$CC" # Let the user override the test.
20216 else
20217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20218 for as_dir in $PATH
20219 do
20220 IFS=$as_save_IFS
20221 test -z "$as_dir" && as_dir=.
20222 for ac_exec_ext in '' $ac_executable_extensions; do
20223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20224 ac_cv_prog_CC="${ac_tool_prefix}cc"
20225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20226 break 2
20227 fi
20228 done
20229 done
20230 IFS=$as_save_IFS
20231
20232 fi
20233 fi
20234 CC=$ac_cv_prog_CC
20235 if test -n "$CC"; then
20236 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20237 $as_echo "$CC" >&6; }
20238 else
20239 { $as_echo "$as_me:$LINENO: result: no" >&5
20240 $as_echo "no" >&6; }
20241 fi
20242
20243
20244 fi
20245 fi
20246 if test -z "$CC"; then
20247 # Extract the first word of "cc", so it can be a program name with args.
20248 set dummy cc; ac_word=$2
20249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20250 $as_echo_n "checking for $ac_word... " >&6; }
20251 if test "${ac_cv_prog_CC+set}" = set; then
20252 $as_echo_n "(cached) " >&6
20253 else
20254 if test -n "$CC"; then
20255 ac_cv_prog_CC="$CC" # Let the user override the test.
20256 else
20257 ac_prog_rejected=no
20258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259 for as_dir in $PATH
20260 do
20261 IFS=$as_save_IFS
20262 test -z "$as_dir" && as_dir=.
20263 for ac_exec_ext in '' $ac_executable_extensions; do
20264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20265 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20266 ac_prog_rejected=yes
20267 continue
20268 fi
20269 ac_cv_prog_CC="cc"
20270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20271 break 2
20272 fi
20273 done
20274 done
20275 IFS=$as_save_IFS
20276
20277 if test $ac_prog_rejected = yes; then
20278 # We found a bogon in the path, so make sure we never use it.
20279 set dummy $ac_cv_prog_CC
20280 shift
20281 if test $# != 0; then
20282 # We chose a different compiler from the bogus one.
20283 # However, it has the same basename, so the bogon will be chosen
20284 # first if we set CC to just the basename; use the full file name.
20285 shift
20286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20287 fi
20288 fi
20289 fi
20290 fi
20291 CC=$ac_cv_prog_CC
20292 if test -n "$CC"; then
20293 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20294 $as_echo "$CC" >&6; }
20295 else
20296 { $as_echo "$as_me:$LINENO: result: no" >&5
20297 $as_echo "no" >&6; }
20298 fi
20299
20300
20301 fi
20302 if test -z "$CC"; then
20303 if test -n "$ac_tool_prefix"; then
20304 for ac_prog in cl.exe
20305 do
20306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20309 $as_echo_n "checking for $ac_word... " >&6; }
20310 if test "${ac_cv_prog_CC+set}" = set; then
20311 $as_echo_n "(cached) " >&6
20312 else
20313 if test -n "$CC"; then
20314 ac_cv_prog_CC="$CC" # Let the user override the test.
20315 else
20316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20317 for as_dir in $PATH
20318 do
20319 IFS=$as_save_IFS
20320 test -z "$as_dir" && as_dir=.
20321 for ac_exec_ext in '' $ac_executable_extensions; do
20322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20323 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20325 break 2
20326 fi
20327 done
20328 done
20329 IFS=$as_save_IFS
20330
20331 fi
20332 fi
20333 CC=$ac_cv_prog_CC
20334 if test -n "$CC"; then
20335 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20336 $as_echo "$CC" >&6; }
20337 else
20338 { $as_echo "$as_me:$LINENO: result: no" >&5
20339 $as_echo "no" >&6; }
20340 fi
20341
20342
20343 test -n "$CC" && break
20344 done
20345 fi
20346 if test -z "$CC"; then
20347 ac_ct_CC=$CC
20348 for ac_prog in cl.exe
20349 do
20350 # Extract the first word of "$ac_prog", so it can be a program name with args.
20351 set dummy $ac_prog; ac_word=$2
20352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20353 $as_echo_n "checking for $ac_word... " >&6; }
20354 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20355 $as_echo_n "(cached) " >&6
20356 else
20357 if test -n "$ac_ct_CC"; then
20358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20359 else
20360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20361 for as_dir in $PATH
20362 do
20363 IFS=$as_save_IFS
20364 test -z "$as_dir" && as_dir=.
20365 for ac_exec_ext in '' $ac_executable_extensions; do
20366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20367 ac_cv_prog_ac_ct_CC="$ac_prog"
20368 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20369 break 2
20370 fi
20371 done
20372 done
20373 IFS=$as_save_IFS
20374
20375 fi
20376 fi
20377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20378 if test -n "$ac_ct_CC"; then
20379 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20380 $as_echo "$ac_ct_CC" >&6; }
20381 else
20382 { $as_echo "$as_me:$LINENO: result: no" >&5
20383 $as_echo "no" >&6; }
20384 fi
20385
20386
20387 test -n "$ac_ct_CC" && break
20388 done
20389
20390 if test "x$ac_ct_CC" = x; then
20391 CC=""
20392 else
20393 case $cross_compiling:$ac_tool_warned in
20394 yes:)
20395 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20397 ac_tool_warned=yes ;;
20398 esac
20399 CC=$ac_ct_CC
20400 fi
20401 fi
20402
20403 fi
20404
20405
20406 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20408 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20409 See \`config.log' for more details." >&5
20410 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20411 See \`config.log' for more details." >&2;}
20412 { (exit 1); exit 1; }; }; }
20413
20414 # Provide some information about the compiler.
20415 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20416 set X $ac_compile
20417 ac_compiler=$2
20418 { (ac_try="$ac_compiler --version >&5"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20422 esac
20423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20424 $as_echo "$ac_try_echo") >&5
20425 (eval "$ac_compiler --version >&5") 2>&5
20426 ac_status=$?
20427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428 (exit $ac_status); }
20429 { (ac_try="$ac_compiler -v >&5"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20435 $as_echo "$ac_try_echo") >&5
20436 (eval "$ac_compiler -v >&5") 2>&5
20437 ac_status=$?
20438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }
20440 { (ac_try="$ac_compiler -V >&5"
20441 case "(($ac_try" in
20442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443 *) ac_try_echo=$ac_try;;
20444 esac
20445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20446 $as_echo "$ac_try_echo") >&5
20447 (eval "$ac_compiler -V >&5") 2>&5
20448 ac_status=$?
20449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }
20451
20452 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20454 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20455 $as_echo_n "(cached) " >&6
20456 else
20457 cat >conftest.$ac_ext <<_ACEOF
20458 /* confdefs.h. */
20459 _ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20463
20464 int
20465 main ()
20466 {
20467 #ifndef __GNUC__
20468 choke me
20469 #endif
20470
20471 ;
20472 return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext
20476 if { (ac_try="$ac_compile"
20477 case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480 esac
20481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20482 $as_echo "$ac_try_echo") >&5
20483 (eval "$ac_compile") 2>conftest.er1
20484 ac_status=$?
20485 grep -v '^ *+' conftest.er1 >conftest.err
20486 rm -f conftest.er1
20487 cat conftest.err >&5
20488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest.$ac_objext; then
20493 ac_compiler_gnu=yes
20494 else
20495 $as_echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 ac_compiler_gnu=no
20499 fi
20500
20501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20502 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20503
20504 fi
20505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20506 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20507 if test $ac_compiler_gnu = yes; then
20508 GCC=yes
20509 else
20510 GCC=
20511 fi
20512 ac_test_CFLAGS=${CFLAGS+set}
20513 ac_save_CFLAGS=$CFLAGS
20514 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20515 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20516 if test "${ac_cv_prog_cc_g+set}" = set; then
20517 $as_echo_n "(cached) " >&6
20518 else
20519 ac_save_c_werror_flag=$ac_c_werror_flag
20520 ac_c_werror_flag=yes
20521 ac_cv_prog_cc_g=no
20522 CFLAGS="-g"
20523 cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h. */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529
20530 int
20531 main ()
20532 {
20533
20534 ;
20535 return 0;
20536 }
20537 _ACEOF
20538 rm -f conftest.$ac_objext
20539 if { (ac_try="$ac_compile"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20543 esac
20544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20545 $as_echo "$ac_try_echo") >&5
20546 (eval "$ac_compile") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest.$ac_objext; then
20556 ac_cv_prog_cc_g=yes
20557 else
20558 $as_echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 CFLAGS=""
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568
20569 int
20570 main ()
20571 {
20572
20573 ;
20574 return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext
20578 if { (ac_try="$ac_compile"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20582 esac
20583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20584 $as_echo "$ac_try_echo") >&5
20585 (eval "$ac_compile") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest.$ac_objext; then
20595 :
20596 else
20597 $as_echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 ac_c_werror_flag=$ac_save_c_werror_flag
20601 CFLAGS="-g"
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608
20609 int
20610 main ()
20611 {
20612
20613 ;
20614 return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext
20618 if { (ac_try="$ac_compile"
20619 case "(($ac_try" in
20620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621 *) ac_try_echo=$ac_try;;
20622 esac
20623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20624 $as_echo "$ac_try_echo") >&5
20625 (eval "$ac_compile") 2>conftest.er1
20626 ac_status=$?
20627 grep -v '^ *+' conftest.er1 >conftest.err
20628 rm -f conftest.er1
20629 cat conftest.err >&5
20630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); } && {
20632 test -z "$ac_c_werror_flag" ||
20633 test ! -s conftest.err
20634 } && test -s conftest.$ac_objext; then
20635 ac_cv_prog_cc_g=yes
20636 else
20637 $as_echo "$as_me: failed program was:" >&5
20638 sed 's/^/| /' conftest.$ac_ext >&5
20639
20640
20641 fi
20642
20643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647 fi
20648
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 ac_c_werror_flag=$ac_save_c_werror_flag
20651 fi
20652 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20653 $as_echo "$ac_cv_prog_cc_g" >&6; }
20654 if test "$ac_test_CFLAGS" = set; then
20655 CFLAGS=$ac_save_CFLAGS
20656 elif test $ac_cv_prog_cc_g = yes; then
20657 if test "$GCC" = yes; then
20658 CFLAGS="-g -O2"
20659 else
20660 CFLAGS="-g"
20661 fi
20662 else
20663 if test "$GCC" = yes; then
20664 CFLAGS="-O2"
20665 else
20666 CFLAGS=
20667 fi
20668 fi
20669 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20671 if test "${ac_cv_prog_cc_c89+set}" = set; then
20672 $as_echo_n "(cached) " >&6
20673 else
20674 ac_cv_prog_cc_c89=no
20675 ac_save_CC=$CC
20676 cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h. */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682 #include <stdarg.h>
20683 #include <stdio.h>
20684 #include <sys/types.h>
20685 #include <sys/stat.h>
20686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20687 struct buf { int x; };
20688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20689 static char *e (p, i)
20690 char **p;
20691 int i;
20692 {
20693 return p[i];
20694 }
20695 static char *f (char * (*g) (char **, int), char **p, ...)
20696 {
20697 char *s;
20698 va_list v;
20699 va_start (v,p);
20700 s = g (p, va_arg (v,int));
20701 va_end (v);
20702 return s;
20703 }
20704
20705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20706 function prototypes and stuff, but not '\xHH' hex character constants.
20707 These don't provoke an error unfortunately, instead are silently treated
20708 as 'x'. The following induces an error, until -std is added to get
20709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20710 array size at least. It's necessary to write '\x00'==0 to get something
20711 that's true only with -std. */
20712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20713
20714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20715 inside strings and character constants. */
20716 #define FOO(x) 'x'
20717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20718
20719 int test (int i, double x);
20720 struct s1 {int (*f) (int a);};
20721 struct s2 {int (*f) (double a);};
20722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20723 int argc;
20724 char **argv;
20725 int
20726 main ()
20727 {
20728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20729 ;
20730 return 0;
20731 }
20732 _ACEOF
20733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20735 do
20736 CC="$ac_save_CC $ac_arg"
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20744 $as_echo "$ac_try_echo") >&5
20745 (eval "$ac_compile") 2>conftest.er1
20746 ac_status=$?
20747 grep -v '^ *+' conftest.er1 >conftest.err
20748 rm -f conftest.er1
20749 cat conftest.err >&5
20750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); } && {
20752 test -z "$ac_c_werror_flag" ||
20753 test ! -s conftest.err
20754 } && test -s conftest.$ac_objext; then
20755 ac_cv_prog_cc_c89=$ac_arg
20756 else
20757 $as_echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760
20761 fi
20762
20763 rm -f core conftest.err conftest.$ac_objext
20764 test "x$ac_cv_prog_cc_c89" != "xno" && break
20765 done
20766 rm -f conftest.$ac_ext
20767 CC=$ac_save_CC
20768
20769 fi
20770 # AC_CACHE_VAL
20771 case "x$ac_cv_prog_cc_c89" in
20772 x)
20773 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20774 $as_echo "none needed" >&6; } ;;
20775 xno)
20776 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20777 $as_echo "unsupported" >&6; } ;;
20778 *)
20779 CC="$CC $ac_cv_prog_cc_c89"
20780 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20782 esac
20783
20784
20785 ac_ext=c
20786 ac_cpp='$CPP $CPPFLAGS'
20787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20790
20791 depcc="$CC" am_compiler_list=
20792
20793 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20794 $as_echo_n "checking dependency style of $depcc... " >&6; }
20795 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20796 $as_echo_n "(cached) " >&6
20797 else
20798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20799 # We make a subdir and do the tests there. Otherwise we can end up
20800 # making bogus files that we don't know about and never remove. For
20801 # instance it was reported that on HP-UX the gcc test will end up
20802 # making a dummy file named `D' -- because `-MD' means `put the output
20803 # in D'.
20804 mkdir conftest.dir
20805 # Copy depcomp to subdir because otherwise we won't find it if we're
20806 # using a relative directory.
20807 cp "$am_depcomp" conftest.dir
20808 cd conftest.dir
20809 # We will build objects and dependencies in a subdirectory because
20810 # it helps to detect inapplicable dependency modes. For instance
20811 # both Tru64's cc and ICC support -MD to output dependencies as a
20812 # side effect of compilation, but ICC will put the dependencies in
20813 # the current directory while Tru64 will put them in the object
20814 # directory.
20815 mkdir sub
20816
20817 am_cv_CC_dependencies_compiler_type=none
20818 if test "$am_compiler_list" = ""; then
20819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20820 fi
20821 am__universal=false
20822 case " $depcc " in #(
20823 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20824 esac
20825
20826 for depmode in $am_compiler_list; do
20827 # Setup a source with many dependencies, because some compilers
20828 # like to wrap large dependency lists on column 80 (with \), and
20829 # we should not choose a depcomp mode which is confused by this.
20830 #
20831 # We need to recreate these files for each test, as the compiler may
20832 # overwrite some of them when testing with obscure command lines.
20833 # This happens at least with the AIX C compiler.
20834 : > sub/conftest.c
20835 for i in 1 2 3 4 5 6; do
20836 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20837 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20838 # Solaris 8's {/usr,}/bin/sh.
20839 touch sub/conftst$i.h
20840 done
20841 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20842
20843 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20844 # mode. It turns out that the SunPro C++ compiler does not properly
20845 # handle `-M -o', and we need to detect this. Also, some Intel
20846 # versions had trouble with output in subdirs
20847 am__obj=sub/conftest.${OBJEXT-o}
20848 am__minus_obj="-o $am__obj"
20849 case $depmode in
20850 gcc)
20851 # This depmode causes a compiler race in universal mode.
20852 test "$am__universal" = false || continue
20853 ;;
20854 nosideeffect)
20855 # after this tag, mechanisms are not by side-effect, so they'll
20856 # only be used when explicitly requested
20857 if test "x$enable_dependency_tracking" = xyes; then
20858 continue
20859 else
20860 break
20861 fi
20862 ;;
20863 msvisualcpp | msvcmsys)
20864 # This compiler won't grok `-c -o', but also, the minuso test has
20865 # not run yet. These depmodes are late enough in the game, and
20866 # so weak that their functioning should not be impacted.
20867 am__obj=conftest.${OBJEXT-o}
20868 am__minus_obj=
20869 ;;
20870 none) break ;;
20871 esac
20872 if depmode=$depmode \
20873 source=sub/conftest.c object=$am__obj \
20874 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20875 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20876 >/dev/null 2>conftest.err &&
20877 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20878 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20879 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20880 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20881 # icc doesn't choke on unknown options, it will just issue warnings
20882 # or remarks (even with -Werror). So we grep stderr for any message
20883 # that says an option was ignored or not supported.
20884 # When given -MP, icc 7.0 and 7.1 complain thusly:
20885 # icc: Command line warning: ignoring option '-M'; no argument required
20886 # The diagnosis changed in icc 8.0:
20887 # icc: Command line remark: option '-MP' not supported
20888 if (grep 'ignoring option' conftest.err ||
20889 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20890 am_cv_CC_dependencies_compiler_type=$depmode
20891 break
20892 fi
20893 fi
20894 done
20895
20896 cd ..
20897 rm -rf conftest.dir
20898 else
20899 am_cv_CC_dependencies_compiler_type=none
20900 fi
20901
20902 fi
20903 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20904 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20906
20907 if
20908 test "x$enable_dependency_tracking" != xno \
20909 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20910 am__fastdepCC_TRUE=
20911 am__fastdepCC_FALSE='#'
20912 else
20913 am__fastdepCC_TRUE='#'
20914 am__fastdepCC_FALSE=
20915 fi
20916
20917
20918
20919
20920 if test "x$GCC" = xyes ; then
20921 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20922 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20923 -Wbad-function-cast"
20924 case `gcc -dumpversion` in
20925 3.4.* | 4.*)
20926 CWARNFLAGS+=" -Wold-style-definition -Wdeclaration-after-statement"
20927 ;;
20928 esac
20929 else
20930 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20931 $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
20932 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20933 $as_echo_n "(cached) " >&6
20934 else
20935 cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h. */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 $ac_includes_default
20942 int
20943 main ()
20944 {
20945 #ifndef __SUNPRO_C
20946 (void) __SUNPRO_C;
20947 #endif
20948
20949 ;
20950 return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext
20954 if { (ac_try="$ac_compile"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20960 $as_echo "$ac_try_echo") >&5
20961 (eval "$ac_compile") 2>conftest.er1
20962 ac_status=$?
20963 grep -v '^ *+' conftest.er1 >conftest.err
20964 rm -f conftest.er1
20965 cat conftest.err >&5
20966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); } && {
20968 test -z "$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20970 } && test -s conftest.$ac_objext; then
20971 ac_cv_have_decl___SUNPRO_C=yes
20972 else
20973 $as_echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ac_cv_have_decl___SUNPRO_C=no
20977 fi
20978
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980 fi
20981 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20982 $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
20983 if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
20984 SUNCC="yes"
20985 else
20986 SUNCC="no"
20987 fi
20988
20989 if test "x$SUNCC" = "xyes"; then
20990 CWARNFLAGS="-v"
20991 fi
20992 fi
20993
20994
20995
20996
20997
20998
20999
21000 # Check whether --with-xorg-module-dir was given.
21001 if test "${with_xorg_module_dir+set}" = set; then
21002 withval=$with_xorg_module_dir; moduledir="$withval"
21003 else
21004 moduledir="$libdir/xorg/modules"
21005 fi
21006
21007
21008 # Check whether --enable-dri was given.
21009 if test "${enable_dri+set}" = set; then
21010 enableval=$enable_dri; DRI="$enableval"
21011 else
21012 DRI=auto
21013 fi
21014
21015
21016 # Check whether --enable-exa was given.
21017 if test "${enable_exa+set}" = set; then
21018 enableval=$enable_exa; EXA="$enableval"
21019 else
21020 EXA=yes
21021 fi
21022
21023
21024 # Checks for extensions
21025
21026 SAVE_CFLAGS="$CFLAGS"
21027 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034
21035 #include "xorg-server.h"
21036 #if !defined XINERAMA
21037 #error XINERAMA not defined
21038 #endif
21039
21040 int
21041 main ()
21042 {
21043
21044 ;
21045 return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21053 esac
21054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21055 $as_echo "$ac_try_echo") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21057 ac_status=$?
21058 grep -v '^ *+' conftest.er1 >conftest.err
21059 rm -f conftest.er1
21060 cat conftest.err >&5
21061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 _EXT_CHECK=yes
21067 else
21068 $as_echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 _EXT_CHECK=no
21072 fi
21073
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 CFLAGS="$SAVE_CFLAGS"
21076 { $as_echo "$as_me:$LINENO: checking if XINERAMA is defined" >&5
21077 $as_echo_n "checking if XINERAMA is defined... " >&6; }
21078 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21079 $as_echo "$_EXT_CHECK" >&6; }
21080 if test "$_EXT_CHECK" != no; then
21081 REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
21082 fi
21083
21084
21085 SAVE_CFLAGS="$CFLAGS"
21086 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093
21094 #include "xorg-server.h"
21095 #if !defined RANDR
21096 #error RANDR not defined
21097 #endif
21098
21099 int
21100 main ()
21101 {
21102
21103 ;
21104 return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111 *) ac_try_echo=$ac_try;;
21112 esac
21113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21114 $as_echo "$ac_try_echo") >&5
21115 (eval "$ac_compile") 2>conftest.er1
21116 ac_status=$?
21117 grep -v '^ *+' conftest.er1 >conftest.err
21118 rm -f conftest.er1
21119 cat conftest.err >&5
21120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } && {
21122 test -z "$ac_c_werror_flag" ||
21123 test ! -s conftest.err
21124 } && test -s conftest.$ac_objext; then
21125 _EXT_CHECK=yes
21126 else
21127 $as_echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130 _EXT_CHECK=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 CFLAGS="$SAVE_CFLAGS"
21135 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
21136 $as_echo_n "checking if RANDR is defined... " >&6; }
21137 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21138 $as_echo "$_EXT_CHECK" >&6; }
21139 if test "$_EXT_CHECK" != no; then
21140 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
21141 fi
21142
21143
21144 SAVE_CFLAGS="$CFLAGS"
21145 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21146 cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h. */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h. */
21152
21153 #include "xorg-server.h"
21154 #if !defined RENDER
21155 #error RENDER not defined
21156 #endif
21157
21158 int
21159 main ()
21160 {
21161
21162 ;
21163 return 0;
21164 }
21165 _ACEOF
21166 rm -f conftest.$ac_objext
21167 if { (ac_try="$ac_compile"
21168 case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21171 esac
21172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21173 $as_echo "$ac_try_echo") >&5
21174 (eval "$ac_compile") 2>conftest.er1
21175 ac_status=$?
21176 grep -v '^ *+' conftest.er1 >conftest.err
21177 rm -f conftest.er1
21178 cat conftest.err >&5
21179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); } && {
21181 test -z "$ac_c_werror_flag" ||
21182 test ! -s conftest.err
21183 } && test -s conftest.$ac_objext; then
21184 _EXT_CHECK=yes
21185 else
21186 $as_echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 _EXT_CHECK=no
21190 fi
21191
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 CFLAGS="$SAVE_CFLAGS"
21194 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
21195 $as_echo_n "checking if RENDER is defined... " >&6; }
21196 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21197 $as_echo "$_EXT_CHECK" >&6; }
21198 if test "$_EXT_CHECK" != no; then
21199 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
21200 fi
21201
21202
21203 SAVE_CFLAGS="$CFLAGS"
21204 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21205 cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h. */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h. */
21211
21212 #include "xorg-server.h"
21213 #if !defined XV
21214 #error XV not defined
21215 #endif
21216
21217 int
21218 main ()
21219 {
21220
21221 ;
21222 return 0;
21223 }
21224 _ACEOF
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21230 esac
21231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21232 $as_echo "$ac_try_echo") >&5
21233 (eval "$ac_compile") 2>conftest.er1
21234 ac_status=$?
21235 grep -v '^ *+' conftest.er1 >conftest.err
21236 rm -f conftest.er1
21237 cat conftest.err >&5
21238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); } && {
21240 test -z "$ac_c_werror_flag" ||
21241 test ! -s conftest.err
21242 } && test -s conftest.$ac_objext; then
21243 _EXT_CHECK=yes
21244 else
21245 $as_echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21247
21248 _EXT_CHECK=no
21249 fi
21250
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 CFLAGS="$SAVE_CFLAGS"
21253 { $as_echo "$as_me:$LINENO: checking if XV is defined" >&5
21254 $as_echo_n "checking if XV is defined... " >&6; }
21255 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21256 $as_echo "$_EXT_CHECK" >&6; }
21257 if test "$_EXT_CHECK" != no; then
21258 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
21259 fi
21260
21261
21262 SAVE_CFLAGS="$CFLAGS"
21263 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21264 cat >conftest.$ac_ext <<_ACEOF
21265 /* confdefs.h. */
21266 _ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270
21271 #include "xorg-server.h"
21272 #if !defined XF86MISC
21273 #error XF86MISC not defined
21274 #endif
21275
21276 int
21277 main ()
21278 {
21279
21280 ;
21281 return 0;
21282 }
21283 _ACEOF
21284 rm -f conftest.$ac_objext
21285 if { (ac_try="$ac_compile"
21286 case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21289 esac
21290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21291 $as_echo "$ac_try_echo") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21293 ac_status=$?
21294 grep -v '^ *+' conftest.er1 >conftest.err
21295 rm -f conftest.er1
21296 cat conftest.err >&5
21297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 _EXT_CHECK=yes
21303 else
21304 $as_echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21306
21307 _EXT_CHECK=no
21308 fi
21309
21310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 CFLAGS="$SAVE_CFLAGS"
21312 { $as_echo "$as_me:$LINENO: checking if XF86MISC is defined" >&5
21313 $as_echo_n "checking if XF86MISC is defined... " >&6; }
21314 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21315 $as_echo "$_EXT_CHECK" >&6; }
21316 if test "$_EXT_CHECK" != no; then
21317 REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
21318 fi
21319
21320
21321 SAVE_CFLAGS="$CFLAGS"
21322 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
21323 cat >conftest.$ac_ext <<_ACEOF
21324 /* confdefs.h. */
21325 _ACEOF
21326 cat confdefs.h >>conftest.$ac_ext
21327 cat >>conftest.$ac_ext <<_ACEOF
21328 /* end confdefs.h. */
21329
21330 #include "xorg-server.h"
21331 #if !defined DPMSExtension
21332 #error DPMSExtension not defined
21333 #endif
21334
21335 int
21336 main ()
21337 {
21338
21339 ;
21340 return 0;
21341 }
21342 _ACEOF
21343 rm -f conftest.$ac_objext
21344 if { (ac_try="$ac_compile"
21345 case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21348 esac
21349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21350 $as_echo "$ac_try_echo") >&5
21351 (eval "$ac_compile") 2>conftest.er1
21352 ac_status=$?
21353 grep -v '^ *+' conftest.er1 >conftest.err
21354 rm -f conftest.er1
21355 cat conftest.err >&5
21356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } && {
21358 test -z "$ac_c_werror_flag" ||
21359 test ! -s conftest.err
21360 } && test -s conftest.$ac_objext; then
21361 _EXT_CHECK=yes
21362 else
21363 $as_echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21365
21366 _EXT_CHECK=no
21367 fi
21368
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370 CFLAGS="$SAVE_CFLAGS"
21371 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21372 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
21373 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21374 $as_echo "$_EXT_CHECK" >&6; }
21375 if test "$_EXT_CHECK" != no; then
21376 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21377 fi
21378
21379
21380 # Checks for pkg-config packages
21381
21382
21383 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21384 if test -n "$ac_tool_prefix"; then
21385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21386 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21388 $as_echo_n "checking for $ac_word... " >&6; }
21389 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21390 $as_echo_n "(cached) " >&6
21391 else
21392 case $PKG_CONFIG in
21393 [\\/]* | ?:[\\/]*)
21394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21395 ;;
21396 *)
21397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21398 for as_dir in $PATH
21399 do
21400 IFS=$as_save_IFS
21401 test -z "$as_dir" && as_dir=.
21402 for ac_exec_ext in '' $ac_executable_extensions; do
21403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21406 break 2
21407 fi
21408 done
21409 done
21410 IFS=$as_save_IFS
21411
21412 ;;
21413 esac
21414 fi
21415 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21416 if test -n "$PKG_CONFIG"; then
21417 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21418 $as_echo "$PKG_CONFIG" >&6; }
21419 else
21420 { $as_echo "$as_me:$LINENO: result: no" >&5
21421 $as_echo "no" >&6; }
21422 fi
21423
21424
21425 fi
21426 if test -z "$ac_cv_path_PKG_CONFIG"; then
21427 ac_pt_PKG_CONFIG=$PKG_CONFIG
21428 # Extract the first word of "pkg-config", so it can be a program name with args.
21429 set dummy pkg-config; ac_word=$2
21430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21431 $as_echo_n "checking for $ac_word... " >&6; }
21432 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21433 $as_echo_n "(cached) " >&6
21434 else
21435 case $ac_pt_PKG_CONFIG in
21436 [\\/]* | ?:[\\/]*)
21437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21438 ;;
21439 *)
21440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21441 for as_dir in $PATH
21442 do
21443 IFS=$as_save_IFS
21444 test -z "$as_dir" && as_dir=.
21445 for ac_exec_ext in '' $ac_executable_extensions; do
21446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21449 break 2
21450 fi
21451 done
21452 done
21453 IFS=$as_save_IFS
21454
21455 ;;
21456 esac
21457 fi
21458 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21459 if test -n "$ac_pt_PKG_CONFIG"; then
21460 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21461 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21462 else
21463 { $as_echo "$as_me:$LINENO: result: no" >&5
21464 $as_echo "no" >&6; }
21465 fi
21466
21467 if test "x$ac_pt_PKG_CONFIG" = x; then
21468 PKG_CONFIG=""
21469 else
21470 case $cross_compiling:$ac_tool_warned in
21471 yes:)
21472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21474 ac_tool_warned=yes ;;
21475 esac
21476 PKG_CONFIG=$ac_pt_PKG_CONFIG
21477 fi
21478 else
21479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21480 fi
21481
21482 fi
21483 if test -n "$PKG_CONFIG"; then
21484 _pkg_min_version=0.9.0
21485 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21486 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21488 { $as_echo "$as_me:$LINENO: result: yes" >&5
21489 $as_echo "yes" >&6; }
21490 else
21491 { $as_echo "$as_me:$LINENO: result: no" >&5
21492 $as_echo "no" >&6; }
21493 PKG_CONFIG=""
21494 fi
21495
21496 fi
21497
21498 pkg_failed=no
21499 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21500 $as_echo_n "checking for XORG... " >&6; }
21501
21502 if test -n "$XORG_CFLAGS"; then
21503 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21504 elif test -n "$PKG_CONFIG"; then
21505 if test -n "$PKG_CONFIG" && \
21506 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21507 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
21508 ac_status=$?
21509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; then
21511 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21512 else
21513 pkg_failed=yes
21514 fi
21515 else
21516 pkg_failed=untried
21517 fi
21518 if test -n "$XORG_LIBS"; then
21519 pkg_cv_XORG_LIBS="$XORG_LIBS"
21520 elif test -n "$PKG_CONFIG"; then
21521 if test -n "$PKG_CONFIG" && \
21522 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21523 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES") 2>&5
21524 ac_status=$?
21525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; then
21527 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21528 else
21529 pkg_failed=yes
21530 fi
21531 else
21532 pkg_failed=untried
21533 fi
21534
21535
21536
21537 if test $pkg_failed = yes; then
21538
21539 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21540 _pkg_short_errors_supported=yes
21541 else
21542 _pkg_short_errors_supported=no
21543 fi
21544 if test $_pkg_short_errors_supported = yes; then
21545 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21546 else
21547 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21548 fi
21549 # Put the nasty error message in config.log where it belongs
21550 echo "$XORG_PKG_ERRORS" >&5
21551
21552 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
21553
21554 $XORG_PKG_ERRORS
21555
21556 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21557 installed software in a non-standard prefix.
21558
21559 Alternatively, you may set the environment variables XORG_CFLAGS
21560 and XORG_LIBS to avoid the need to call pkg-config.
21561 See the pkg-config man page for more details.
21562 " >&5
21563 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.2 xproto fontsproto $REQUIRED_MODULES) were not met:
21564
21565 $XORG_PKG_ERRORS
21566
21567 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21568 installed software in a non-standard prefix.
21569
21570 Alternatively, you may set the environment variables XORG_CFLAGS
21571 and XORG_LIBS to avoid the need to call pkg-config.
21572 See the pkg-config man page for more details.
21573 " >&2;}
21574 { (exit 1); exit 1; }; }
21575 elif test $pkg_failed = untried; then
21576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21578 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21579 is in your PATH or set the PKG_CONFIG environment variable to the full
21580 path to pkg-config.
21581
21582 Alternatively, you may set the environment variables XORG_CFLAGS
21583 and XORG_LIBS to avoid the need to call pkg-config.
21584 See the pkg-config man page for more details.
21585
21586 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21587 See \`config.log' for more details." >&5
21588 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21589 is in your PATH or set the PKG_CONFIG environment variable to the full
21590 path to pkg-config.
21591
21592 Alternatively, you may set the environment variables XORG_CFLAGS
21593 and XORG_LIBS to avoid the need to call pkg-config.
21594 See the pkg-config man page for more details.
21595
21596 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21597 See \`config.log' for more details." >&2;}
21598 { (exit 1); exit 1; }; }; }
21599 else
21600 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21601 XORG_LIBS=$pkg_cv_XORG_LIBS
21602 { $as_echo "$as_me:$LINENO: result: yes" >&5
21603 $as_echo "yes" >&6; }
21604 :
21605 fi
21606
21607 pkg_failed=no
21608 { $as_echo "$as_me:$LINENO: checking for XEXT" >&5
21609 $as_echo_n "checking for XEXT... " >&6; }
21610
21611 if test -n "$XEXT_CFLAGS"; then
21612 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
21613 elif test -n "$PKG_CONFIG"; then
21614 if test -n "$PKG_CONFIG" && \
21615 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21616 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21617 ac_status=$?
21618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); }; then
21620 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
21621 else
21622 pkg_failed=yes
21623 fi
21624 else
21625 pkg_failed=untried
21626 fi
21627 if test -n "$XEXT_LIBS"; then
21628 pkg_cv_XEXT_LIBS="$XEXT_LIBS"
21629 elif test -n "$PKG_CONFIG"; then
21630 if test -n "$PKG_CONFIG" && \
21631 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\"") >&5
21632 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
21633 ac_status=$?
21634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); }; then
21636 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
21637 else
21638 pkg_failed=yes
21639 fi
21640 else
21641 pkg_failed=untried
21642 fi
21643
21644
21645
21646 if test $pkg_failed = yes; then
21647
21648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21649 _pkg_short_errors_supported=yes
21650 else
21651 _pkg_short_errors_supported=no
21652 fi
21653 if test $_pkg_short_errors_supported = yes; then
21654 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
21655 else
21656 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
21657 fi
21658 # Put the nasty error message in config.log where it belongs
21659 echo "$XEXT_PKG_ERRORS" >&5
21660
21661 { $as_echo "$as_me:$LINENO: result: no" >&5
21662 $as_echo "no" >&6; }
21663 HAVE_XEXTPROTO_71="no"
21664 elif test $pkg_failed = untried; then
21665 HAVE_XEXTPROTO_71="no"
21666 else
21667 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
21668 XEXT_LIBS=$pkg_cv_XEXT_LIBS
21669 { $as_echo "$as_me:$LINENO: result: yes" >&5
21670 $as_echo "yes" >&6; }
21671 HAVE_XEXTPROTO_71="yes";
21672 cat >>confdefs.h <<\_ACEOF
21673 #define HAVE_XEXTPROTO_71 1
21674 _ACEOF
21675
21676 fi
21677 if test "$HAVE_XEXTPROTO_71" = "yes" ; then
21678 HAVE_XEXTPROTO_71_TRUE=
21679 HAVE_XEXTPROTO_71_FALSE='#'
21680 else
21681 HAVE_XEXTPROTO_71_TRUE='#'
21682 HAVE_XEXTPROTO_71_FALSE=
21683 fi
21684
21685 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21686
21687 # Checks for libraries.
21688
21689 # Checks for header files.
21690 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21691 $as_echo_n "checking for ANSI C header files... " >&6; }
21692 if test "${ac_cv_header_stdc+set}" = set; then
21693 $as_echo_n "(cached) " >&6
21694 else
21695 cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h. */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h. */
21701 #include <stdlib.h>
21702 #include <stdarg.h>
21703 #include <string.h>
21704 #include <float.h>
21705
21706 int
21707 main ()
21708 {
21709
21710 ;
21711 return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext
21715 if { (ac_try="$ac_compile"
21716 case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21719 esac
21720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21721 $as_echo "$ac_try_echo") >&5
21722 (eval "$ac_compile") 2>conftest.er1
21723 ac_status=$?
21724 grep -v '^ *+' conftest.er1 >conftest.err
21725 rm -f conftest.er1
21726 cat conftest.err >&5
21727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && {
21729 test -z "$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 } && test -s conftest.$ac_objext; then
21732 ac_cv_header_stdc=yes
21733 else
21734 $as_echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21736
21737 ac_cv_header_stdc=no
21738 fi
21739
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21741
21742 if test $ac_cv_header_stdc = yes; then
21743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21744 cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h. */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 #include <string.h>
21751
21752 _ACEOF
21753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21754 $EGREP "memchr" >/dev/null 2>&1; then
21755 :
21756 else
21757 ac_cv_header_stdc=no
21758 fi
21759 rm -f conftest*
21760
21761 fi
21762
21763 if test $ac_cv_header_stdc = yes; then
21764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h. */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <stdlib.h>
21772
21773 _ACEOF
21774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21775 $EGREP "free" >/dev/null 2>&1; then
21776 :
21777 else
21778 ac_cv_header_stdc=no
21779 fi
21780 rm -f conftest*
21781
21782 fi
21783
21784 if test $ac_cv_header_stdc = yes; then
21785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21786 if test "$cross_compiling" = yes; then
21787 :
21788 else
21789 cat >conftest.$ac_ext <<_ACEOF
21790 /* confdefs.h. */
21791 _ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 #include <ctype.h>
21796 #include <stdlib.h>
21797 #if ((' ' & 0x0FF) == 0x020)
21798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21800 #else
21801 # define ISLOWER(c) \
21802 (('a' <= (c) && (c) <= 'i') \
21803 || ('j' <= (c) && (c) <= 'r') \
21804 || ('s' <= (c) && (c) <= 'z'))
21805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21806 #endif
21807
21808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21809 int
21810 main ()
21811 {
21812 int i;
21813 for (i = 0; i < 256; i++)
21814 if (XOR (islower (i), ISLOWER (i))
21815 || toupper (i) != TOUPPER (i))
21816 return 2;
21817 return 0;
21818 }
21819 _ACEOF
21820 rm -f conftest$ac_exeext
21821 if { (ac_try="$ac_link"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21825 esac
21826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21827 $as_echo "$ac_try_echo") >&5
21828 (eval "$ac_link") 2>&5
21829 ac_status=$?
21830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21832 { (case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21837 $as_echo "$ac_try_echo") >&5
21838 (eval "$ac_try") 2>&5
21839 ac_status=$?
21840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21842 :
21843 else
21844 $as_echo "$as_me: program exited with status $ac_status" >&5
21845 $as_echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21847
21848 ( exit $ac_status )
21849 ac_cv_header_stdc=no
21850 fi
21851 rm -rf conftest.dSYM
21852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21853 fi
21854
21855
21856 fi
21857 fi
21858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21859 $as_echo "$ac_cv_header_stdc" >&6; }
21860 if test $ac_cv_header_stdc = yes; then
21861
21862 cat >>confdefs.h <<\_ACEOF
21863 #define STDC_HEADERS 1
21864 _ACEOF
21865
21866 fi
21867
21868
21869 if test "$DRI" != no; then
21870 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
21871 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dri.h" >&5
21872 $as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
21873 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21874 $as_echo_n "(cached) " >&6
21875 else
21876 test "$cross_compiling" = yes &&
21877 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21878 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21879 { (exit 1); exit 1; }; }
21880 if test -r "${sdkdir}/dri.h"; then
21881 eval "$as_ac_File=yes"
21882 else
21883 eval "$as_ac_File=no"
21884 fi
21885 fi
21886 ac_res=`eval 'as_val=${'$as_ac_File'}
21887 $as_echo "$as_val"'`
21888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21889 $as_echo "$ac_res" >&6; }
21890 as_val=`eval 'as_val=${'$as_ac_File'}
21891 $as_echo "$as_val"'`
21892 if test "x$as_val" = x""yes; then
21893 have_dri_h="yes"
21894 else
21895 have_dri_h="no"
21896 fi
21897
21898 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
21899 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/sarea.h" >&5
21900 $as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
21901 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21902 $as_echo_n "(cached) " >&6
21903 else
21904 test "$cross_compiling" = yes &&
21905 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21906 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21907 { (exit 1); exit 1; }; }
21908 if test -r "${sdkdir}/sarea.h"; then
21909 eval "$as_ac_File=yes"
21910 else
21911 eval "$as_ac_File=no"
21912 fi
21913 fi
21914 ac_res=`eval 'as_val=${'$as_ac_File'}
21915 $as_echo "$as_val"'`
21916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21917 $as_echo "$ac_res" >&6; }
21918 as_val=`eval 'as_val=${'$as_ac_File'}
21919 $as_echo "$as_val"'`
21920 if test "x$as_val" = x""yes; then
21921 have_sarea_h="yes"
21922 else
21923 have_sarea_h="no"
21924 fi
21925
21926 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
21927 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/dristruct.h" >&5
21928 $as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
21929 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21930 $as_echo_n "(cached) " >&6
21931 else
21932 test "$cross_compiling" = yes &&
21933 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21934 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21935 { (exit 1); exit 1; }; }
21936 if test -r "${sdkdir}/dristruct.h"; then
21937 eval "$as_ac_File=yes"
21938 else
21939 eval "$as_ac_File=no"
21940 fi
21941 fi
21942 ac_res=`eval 'as_val=${'$as_ac_File'}
21943 $as_echo "$as_val"'`
21944 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21945 $as_echo "$ac_res" >&6; }
21946 as_val=`eval 'as_val=${'$as_ac_File'}
21947 $as_echo "$as_val"'`
21948 if test "x$as_val" = x""yes; then
21949 have_dristruct_h="yes"
21950 else
21951 have_dristruct_h="no"
21952 fi
21953
21954 as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
21955 { $as_echo "$as_me:$LINENO: checking for ${sdkdir}/damage.h" >&5
21956 $as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
21957 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
21958 $as_echo_n "(cached) " >&6
21959 else
21960 test "$cross_compiling" = yes &&
21961 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21962 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21963 { (exit 1); exit 1; }; }
21964 if test -r "${sdkdir}/damage.h"; then
21965 eval "$as_ac_File=yes"
21966 else
21967 eval "$as_ac_File=no"
21968 fi
21969 fi
21970 ac_res=`eval 'as_val=${'$as_ac_File'}
21971 $as_echo "$as_val"'`
21972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21973 $as_echo "$ac_res" >&6; }
21974 as_val=`eval 'as_val=${'$as_ac_File'}
21975 $as_echo "$as_val"'`
21976 if test "x$as_val" = x""yes; then
21977 have_damage_h="yes"
21978 else
21979 have_damage_h="no"
21980 fi
21981
21982 fi
21983
21984 { $as_echo "$as_me:$LINENO: checking whether to include DRI support" >&5
21985 $as_echo_n "checking whether to include DRI support... " >&6; }
21986 if test x$DRI = xauto; then
21987 if test "$have_dri_h" = yes -a \
21988 "$have_sarea_h" = yes -a \
21989 "$have_dristruct_h" = yes; then
21990 DRI="yes"
21991 else
21992 DRI="no"
21993 fi
21994 fi
21995 { $as_echo "$as_me:$LINENO: result: $DRI" >&5
21996 $as_echo "$DRI" >&6; }
21997
21998 if test x$DRI = xyes; then
21999 DRI_TRUE=
22000 DRI_FALSE='#'
22001 else
22002 DRI_TRUE='#'
22003 DRI_FALSE=
22004 fi
22005
22006 if test "$DRI" = yes; then
22007
22008 pkg_failed=no
22009 { $as_echo "$as_me:$LINENO: checking for DRI" >&5
22010 $as_echo_n "checking for DRI... " >&6; }
22011
22012 if test -n "$DRI_CFLAGS"; then
22013 pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
22014 elif test -n "$PKG_CONFIG"; then
22015 if test -n "$PKG_CONFIG" && \
22016 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
22017 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
22018 ac_status=$?
22019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; then
22021 pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
22022 else
22023 pkg_failed=yes
22024 fi
22025 else
22026 pkg_failed=untried
22027 fi
22028 if test -n "$DRI_LIBS"; then
22029 pkg_cv_DRI_LIBS="$DRI_LIBS"
22030 elif test -n "$PKG_CONFIG"; then
22031 if test -n "$PKG_CONFIG" && \
22032 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\"") >&5
22033 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
22034 ac_status=$?
22035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; then
22037 pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
22038 else
22039 pkg_failed=yes
22040 fi
22041 else
22042 pkg_failed=untried
22043 fi
22044
22045
22046
22047 if test $pkg_failed = yes; then
22048
22049 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22050 _pkg_short_errors_supported=yes
22051 else
22052 _pkg_short_errors_supported=no
22053 fi
22054 if test $_pkg_short_errors_supported = yes; then
22055 DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
22056 else
22057 DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.2 xf86driproto" 2>&1`
22058 fi
22059 # Put the nasty error message in config.log where it belongs
22060 echo "$DRI_PKG_ERRORS" >&5
22061
22062 { { $as_echo "$as_me:$LINENO: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
22063
22064 $DRI_PKG_ERRORS
22065
22066 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22067 installed software in a non-standard prefix.
22068
22069 Alternatively, you may set the environment variables DRI_CFLAGS
22070 and DRI_LIBS to avoid the need to call pkg-config.
22071 See the pkg-config man page for more details.
22072 " >&5
22073 $as_echo "$as_me: error: Package requirements (libdrm >= 2.2 xf86driproto) were not met:
22074
22075 $DRI_PKG_ERRORS
22076
22077 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22078 installed software in a non-standard prefix.
22079
22080 Alternatively, you may set the environment variables DRI_CFLAGS
22081 and DRI_LIBS to avoid the need to call pkg-config.
22082 See the pkg-config man page for more details.
22083 " >&2;}
22084 { (exit 1); exit 1; }; }
22085 elif test $pkg_failed = untried; then
22086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22088 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22089 is in your PATH or set the PKG_CONFIG environment variable to the full
22090 path to pkg-config.
22091
22092 Alternatively, you may set the environment variables DRI_CFLAGS
22093 and DRI_LIBS to avoid the need to call pkg-config.
22094 See the pkg-config man page for more details.
22095
22096 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22097 See \`config.log' for more details." >&5
22098 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22099 is in your PATH or set the PKG_CONFIG environment variable to the full
22100 path to pkg-config.
22101
22102 Alternatively, you may set the environment variables DRI_CFLAGS
22103 and DRI_LIBS to avoid the need to call pkg-config.
22104 See the pkg-config man page for more details.
22105
22106 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22107 See \`config.log' for more details." >&2;}
22108 { (exit 1); exit 1; }; }; }
22109 else
22110 DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
22111 DRI_LIBS=$pkg_cv_DRI_LIBS
22112 { $as_echo "$as_me:$LINENO: result: yes" >&5
22113 $as_echo "yes" >&6; }
22114 :
22115 fi
22116
22117 cat >>confdefs.h <<\_ACEOF
22118 #define XF86DRI 1
22119 _ACEOF
22120
22121
22122 cat >>confdefs.h <<\_ACEOF
22123 #define XF86DRI_DEVEL 1
22124 _ACEOF
22125
22126 fi
22127
22128 # Note that this is sort of inverted from drivers/ati/Imakefile in
22129 # the monolith. We test for foo, not for !foo (i.e. ATMISC_CPIO, not
22130 # ATIMISC_AVOID_CPIO), but the defines are negative. So beware. Oh yeah,
22131 # TV_OUT is the special case where it's a positive define, not AVOID_TV_OUT.
22132
22133 # AVOID_CPIO: Only x86, amd64, and alpha are cool with CPIO. It needs a
22134 # little-endian, undirected PIO space of at least 64kB.
22135 # AVOID_DGA: ???
22136 # ATI_TV_OUT: This only works on x86.
22137
22138 ATIMISC_CPIO=no
22139 ATIMISC_DGA=yes
22140 ATIMISC_TV_OUT=no
22141
22142 case $host_cpu in
22143 i*86)
22144 ATIMISC_TV_OUT=yes
22145 ATIMISC_CPIO=yes
22146 ;;
22147 x86_64|amd64|alpha|ia64)
22148 ATIMISC_CPIO=yes
22149 ;;
22150 sparc)
22151 ATIMISC_DGA=no
22152 ;;
22153 *)
22154 ;;
22155 esac
22156
22157 { $as_echo "$as_me:$LINENO: checking whether to include PIO support" >&5
22158 $as_echo_n "checking whether to include PIO support... " >&6; }
22159 if test "x$ATIMISC_CPIO" = xyes; then
22160 ATIMISC_CPIO_TRUE=
22161 ATIMISC_CPIO_FALSE='#'
22162 else
22163 ATIMISC_CPIO_TRUE='#'
22164 ATIMISC_CPIO_FALSE=
22165 fi
22166
22167 if test "x$ATIMISC_CPIO" = xyes; then
22168 { $as_echo "$as_me:$LINENO: result: yes, PIO" >&5
22169 $as_echo "yes, PIO" >&6; }
22170 else
22171
22172 cat >>confdefs.h <<\_ACEOF
22173 #define AVOID_CPIO 1
22174 _ACEOF
22175
22176 { $as_echo "$as_me:$LINENO: result: no, MMIO" >&5
22177 $as_echo "no, MMIO" >&6; }
22178 fi
22179
22180 { $as_echo "$as_me:$LINENO: checking whether to include DGA support" >&5
22181 $as_echo_n "checking whether to include DGA support... " >&6; }
22182 { $as_echo "$as_me:$LINENO: result: $ATIMISC_DGA" >&5
22183 $as_echo "$ATIMISC_DGA" >&6; }
22184 if test "x$ATIMISC_DGA" = xyes; then
22185 ATIMISC_DGA_TRUE=
22186 ATIMISC_DGA_FALSE='#'
22187 else
22188 ATIMISC_DGA_TRUE='#'
22189 ATIMISC_DGA_FALSE=
22190 fi
22191
22192 if ! test "x$ATIMISC_DGA" = xyes; then
22193
22194 cat >>confdefs.h <<\_ACEOF
22195 #define AVOID_DGA 1
22196 _ACEOF
22197
22198 fi
22199
22200 { $as_echo "$as_me:$LINENO: checking whether to include TV Out support" >&5
22201 $as_echo_n "checking whether to include TV Out support... " >&6; }
22202 { $as_echo "$as_me:$LINENO: result: $ATIMISC_TV_OUT" >&5
22203 $as_echo "$ATIMISC_TV_OUT" >&6; }
22204 if test "x$ATIMISC_TV_OUT" = xyes; then
22205 ATIMISC_TV_OUT_TRUE=
22206 ATIMISC_TV_OUT_FALSE='#'
22207 else
22208 ATIMISC_TV_OUT_TRUE='#'
22209 ATIMISC_TV_OUT_FALSE=
22210 fi
22211
22212 if test "x$ATIMISC_TV_OUT" = xyes; then
22213
22214 cat >>confdefs.h <<\_ACEOF
22215 #define TV_OUT 1
22216 _ACEOF
22217
22218 fi
22219
22220
22221 cat >>confdefs.h <<\_ACEOF
22222 #define USE_XAA 1
22223 _ACEOF
22224
22225
22226 # Properly handle EXA.
22227 { $as_echo "$as_me:$LINENO: checking whether to enable EXA support" >&5
22228 $as_echo_n "checking whether to enable EXA support... " >&6; }
22229 if test "x$EXA" = xyes; then
22230 { $as_echo "$as_me:$LINENO: result: yes" >&5
22231 $as_echo "yes" >&6; }
22232
22233 SAVE_CPPFLAGS="$CPPFLAGS"
22234 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22235 if test "${ac_cv_header_exa_h+set}" = set; then
22236 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
22237 $as_echo_n "checking for exa.h... " >&6; }
22238 if test "${ac_cv_header_exa_h+set}" = set; then
22239 $as_echo_n "(cached) " >&6
22240 fi
22241 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
22242 $as_echo "$ac_cv_header_exa_h" >&6; }
22243 else
22244 # Is the header compilable?
22245 { $as_echo "$as_me:$LINENO: checking exa.h usability" >&5
22246 $as_echo_n "checking exa.h usability... " >&6; }
22247 cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */
22253 $ac_includes_default
22254 #include <exa.h>
22255 _ACEOF
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261 esac
22262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22263 $as_echo "$ac_try_echo") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest.$ac_objext; then
22274 ac_header_compiler=yes
22275 else
22276 $as_echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 ac_header_compiler=no
22280 fi
22281
22282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22284 $as_echo "$ac_header_compiler" >&6; }
22285
22286 # Is the header present?
22287 { $as_echo "$as_me:$LINENO: checking exa.h presence" >&5
22288 $as_echo_n "checking exa.h presence... " >&6; }
22289 cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h. */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 #include <exa.h>
22296 _ACEOF
22297 if { (ac_try="$ac_cpp conftest.$ac_ext"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22301 esac
22302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22303 $as_echo "$ac_try_echo") >&5
22304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22305 ac_status=$?
22306 grep -v '^ *+' conftest.er1 >conftest.err
22307 rm -f conftest.er1
22308 cat conftest.err >&5
22309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } >/dev/null && {
22311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 }; then
22314 ac_header_preproc=yes
22315 else
22316 $as_echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319 ac_header_preproc=no
22320 fi
22321
22322 rm -f conftest.err conftest.$ac_ext
22323 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22324 $as_echo "$ac_header_preproc" >&6; }
22325
22326 # So? What about this header?
22327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22328 yes:no: )
22329 { $as_echo "$as_me:$LINENO: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&5
22330 $as_echo "$as_me: WARNING: exa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22331 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the compiler's result" >&5
22332 $as_echo "$as_me: WARNING: exa.h: proceeding with the compiler's result" >&2;}
22333 ac_header_preproc=yes
22334 ;;
22335 no:yes:* )
22336 { $as_echo "$as_me:$LINENO: WARNING: exa.h: present but cannot be compiled" >&5
22337 $as_echo "$as_me: WARNING: exa.h: present but cannot be compiled" >&2;}
22338 { $as_echo "$as_me:$LINENO: WARNING: exa.h: check for missing prerequisite headers?" >&5
22339 $as_echo "$as_me: WARNING: exa.h: check for missing prerequisite headers?" >&2;}
22340 { $as_echo "$as_me:$LINENO: WARNING: exa.h: see the Autoconf documentation" >&5
22341 $as_echo "$as_me: WARNING: exa.h: see the Autoconf documentation" >&2;}
22342 { $as_echo "$as_me:$LINENO: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&5
22343 $as_echo "$as_me: WARNING: exa.h: section \"Present But Cannot Be Compiled\"" >&2;}
22344 { $as_echo "$as_me:$LINENO: WARNING: exa.h: proceeding with the preprocessor's result" >&5
22345 $as_echo "$as_me: WARNING: exa.h: proceeding with the preprocessor's result" >&2;}
22346 { $as_echo "$as_me:$LINENO: WARNING: exa.h: in the future, the compiler will take precedence" >&5
22347 $as_echo "$as_me: WARNING: exa.h: in the future, the compiler will take precedence" >&2;}
22348 ( cat <<\_ASBOX
22349 ## ---------------------------------------------------------------------- ##
22350 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
22351 ## ---------------------------------------------------------------------- ##
22352 _ASBOX
22353 ) | sed "s/^/$as_me: WARNING: /" >&2
22354 ;;
22355 esac
22356 { $as_echo "$as_me:$LINENO: checking for exa.h" >&5
22357 $as_echo_n "checking for exa.h... " >&6; }
22358 if test "${ac_cv_header_exa_h+set}" = set; then
22359 $as_echo_n "(cached) " >&6
22360 else
22361 ac_cv_header_exa_h=$ac_header_preproc
22362 fi
22363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_exa_h" >&5
22364 $as_echo "$ac_cv_header_exa_h" >&6; }
22365
22366 fi
22367 if test "x$ac_cv_header_exa_h" = x""yes; then
22368 have_exa_h="yes"
22369 else
22370 have_exa_h="no"
22371 fi
22372
22373
22374 CPPFLAGS="$SAVE_CPPFLAGS"
22375 else
22376 { $as_echo "$as_me:$LINENO: result: no" >&5
22377 $as_echo "no" >&6; }
22378 fi
22379
22380 SAVE_CPPFLAGS="$CPPFLAGS"
22381 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
22382 if test "x$have_exa_h" = xyes; then
22383 { $as_echo "$as_me:$LINENO: checking whether EXA version is at least 2.0.0" >&5
22384 $as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
22385 cat >conftest.$ac_ext <<_ACEOF
22386 /* confdefs.h. */
22387 _ACEOF
22388 cat confdefs.h >>conftest.$ac_ext
22389 cat >>conftest.$ac_ext <<_ACEOF
22390 /* end confdefs.h. */
22391
22392 #include "exa.h"
22393 #if EXA_VERSION_MAJOR < 2
22394 #error OLD EXA!
22395 #endif
22396
22397 int
22398 main ()
22399 {
22400
22401 ;
22402 return 0;
22403 }
22404 _ACEOF
22405 if { (ac_try="$ac_cpp conftest.$ac_ext"
22406 case "(($ac_try" in
22407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22408 *) ac_try_echo=$ac_try;;
22409 esac
22410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22411 $as_echo "$ac_try_echo") >&5
22412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22413 ac_status=$?
22414 grep -v '^ *+' conftest.er1 >conftest.err
22415 rm -f conftest.er1
22416 cat conftest.err >&5
22417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } >/dev/null && {
22419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22420 test ! -s conftest.err
22421 }; then
22422 USE_EXA=yes
22423 else
22424 $as_echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427 USE_EXA=no
22428 fi
22429
22430 rm -f conftest.err conftest.$ac_ext
22431 { $as_echo "$as_me:$LINENO: result: $USE_EXA" >&5
22432 $as_echo "$USE_EXA" >&6; }
22433
22434 if test "x$USE_EXA" = xyes; then
22435
22436 cat >>confdefs.h <<\_ACEOF
22437 #define USE_EXA 1
22438 _ACEOF
22439
22440 fi
22441 fi
22442
22443 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
22444 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
22445 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
22446 $as_echo_n "(cached) " >&6
22447 else
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h. */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22454 #include "xorg-server.h"
22455
22456 int
22457 main ()
22458 {
22459 #ifndef XSERVER_LIBPCIACCESS
22460 (void) XSERVER_LIBPCIACCESS;
22461 #endif
22462
22463 ;
22464 return 0;
22465 }
22466 _ACEOF
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22472 esac
22473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22474 $as_echo "$ac_try_echo") >&5
22475 (eval "$ac_compile") 2>conftest.er1
22476 ac_status=$?
22477 grep -v '^ *+' conftest.er1 >conftest.err
22478 rm -f conftest.er1
22479 cat conftest.err >&5
22480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest.$ac_objext; then
22485 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
22486 else
22487 $as_echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
22491 fi
22492
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 fi
22495 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
22496 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
22497 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
22498 XSERVER_LIBPCIACCESS=yes
22499 else
22500 XSERVER_LIBPCIACCESS=no
22501 fi
22502
22503
22504 CPPFLAGS="$SAVE_CPPFLAGS"
22505
22506 if test "x$USE_EXA" = xyes; then
22507 USE_EXA_TRUE=
22508 USE_EXA_FALSE='#'
22509 else
22510 USE_EXA_TRUE='#'
22511 USE_EXA_FALSE=
22512 fi
22513
22514
22515 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22516
22517 pkg_failed=no
22518 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
22519 $as_echo_n "checking for PCIACCESS... " >&6; }
22520
22521 if test -n "$PCIACCESS_CFLAGS"; then
22522 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
22523 elif test -n "$PKG_CONFIG"; then
22524 if test -n "$PKG_CONFIG" && \
22525 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22526 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22527 ac_status=$?
22528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; then
22530 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
22531 else
22532 pkg_failed=yes
22533 fi
22534 else
22535 pkg_failed=untried
22536 fi
22537 if test -n "$PCIACCESS_LIBS"; then
22538 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
22539 elif test -n "$PKG_CONFIG"; then
22540 if test -n "$PKG_CONFIG" && \
22541 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
22542 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
22543 ac_status=$?
22544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; then
22546 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
22547 else
22548 pkg_failed=yes
22549 fi
22550 else
22551 pkg_failed=untried
22552 fi
22553
22554
22555
22556 if test $pkg_failed = yes; then
22557
22558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22559 _pkg_short_errors_supported=yes
22560 else
22561 _pkg_short_errors_supported=no
22562 fi
22563 if test $_pkg_short_errors_supported = yes; then
22564 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
22565 else
22566 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
22567 fi
22568 # Put the nasty error message in config.log where it belongs
22569 echo "$PCIACCESS_PKG_ERRORS" >&5
22570
22571 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
22572
22573 $PCIACCESS_PKG_ERRORS
22574
22575 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22576 installed software in a non-standard prefix.
22577
22578 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22579 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22580 See the pkg-config man page for more details.
22581 " >&5
22582 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
22583
22584 $PCIACCESS_PKG_ERRORS
22585
22586 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22587 installed software in a non-standard prefix.
22588
22589 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22590 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22591 See the pkg-config man page for more details.
22592 " >&2;}
22593 { (exit 1); exit 1; }; }
22594 elif test $pkg_failed = untried; then
22595 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
22596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22597 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22598 is in your PATH or set the PKG_CONFIG environment variable to the full
22599 path to pkg-config.
22600
22601 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22602 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22603 See the pkg-config man page for more details.
22604
22605 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22606 See \`config.log' for more details." >&5
22607 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22608 is in your PATH or set the PKG_CONFIG environment variable to the full
22609 path to pkg-config.
22610
22611 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
22612 and PCIACCESS_LIBS to avoid the need to call pkg-config.
22613 See the pkg-config man page for more details.
22614
22615 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22616 See \`config.log' for more details." >&2;}
22617 { (exit 1); exit 1; }; }; }
22618 else
22619 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
22620 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
22621 { $as_echo "$as_me:$LINENO: result: yes" >&5
22622 $as_echo "yes" >&6; }
22623 :
22624 fi
22625 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
22626 fi
22627 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
22628 XSERVER_LIBPCIACCESS_TRUE=
22629 XSERVER_LIBPCIACCESS_FALSE='#'
22630 else
22631 XSERVER_LIBPCIACCESS_TRUE='#'
22632 XSERVER_LIBPCIACCESS_FALSE=
22633 fi
22634
22635
22636
22637
22638
22639
22640 DRIVER_NAME=mach64
22641
22642
22643
22644
22645
22646 if test x$APP_MAN_SUFFIX = x ; then
22647 APP_MAN_SUFFIX=1
22648 fi
22649 if test x$APP_MAN_DIR = x ; then
22650 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
22651 fi
22652
22653 if test x$LIB_MAN_SUFFIX = x ; then
22654 LIB_MAN_SUFFIX=3
22655 fi
22656 if test x$LIB_MAN_DIR = x ; then
22657 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
22658 fi
22659
22660 if test x$FILE_MAN_SUFFIX = x ; then
22661 case $host_os in
22662 solaris*) FILE_MAN_SUFFIX=4 ;;
22663 *) FILE_MAN_SUFFIX=5 ;;
22664 esac
22665 fi
22666 if test x$FILE_MAN_DIR = x ; then
22667 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
22668 fi
22669
22670 if test x$MISC_MAN_SUFFIX = x ; then
22671 case $host_os in
22672 solaris*) MISC_MAN_SUFFIX=5 ;;
22673 *) MISC_MAN_SUFFIX=7 ;;
22674 esac
22675 fi
22676 if test x$MISC_MAN_DIR = x ; then
22677 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
22678 fi
22679
22680 if test x$DRIVER_MAN_SUFFIX = x ; then
22681 case $host_os in
22682 solaris*) DRIVER_MAN_SUFFIX=7 ;;
22683 *) DRIVER_MAN_SUFFIX=4 ;;
22684 esac
22685 fi
22686 if test x$DRIVER_MAN_DIR = x ; then
22687 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
22688 fi
22689
22690 if test x$ADMIN_MAN_SUFFIX = x ; then
22691 case $host_os in
22692 solaris*) ADMIN_MAN_SUFFIX=1m ;;
22693 *) ADMIN_MAN_SUFFIX=8 ;;
22694 esac
22695 fi
22696 if test x$ADMIN_MAN_DIR = x ; then
22697 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
22698 fi
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716 # Check whether --with-release-version was given.
22717 if test "${with_release_version+set}" = set; then
22718 withval=$with_release_version; RELEASE_VERSION="$withval"
22719 else
22720 RELEASE_VERSION=""
22721 fi
22722
22723 if test "x$RELEASE_VERSION" != "x"; then
22724 PACKAGE="$PACKAGE-$RELEASE_VERSION"
22725 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
22726 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
22727 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
22728 fi
22729
22730 cat >>confdefs.h <<_ACEOF
22731 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
22732 _ACEOF
22733
22734 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
22735 if test "x$PVM" = "x"; then
22736 PVM="0"
22737 fi
22738
22739 cat >>confdefs.h <<_ACEOF
22740 #define PACKAGE_VERSION_MINOR $PVM
22741 _ACEOF
22742
22743 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
22744 if test "x$PVP" = "x"; then
22745 PVP="0"
22746 fi
22747
22748 cat >>confdefs.h <<_ACEOF
22749 #define PACKAGE_VERSION_PATCHLEVEL $PVP
22750 _ACEOF
22751
22752
22753
22754 if test x$XORG_SGML_PATH = x ; then
22755 XORG_SGML_PATH=$prefix/share/sgml
22756 fi
22757 HAVE_DEFS_ENT=
22758
22759 if test x"$cross_compiling" = x"yes" ; then
22760 HAVE_DEFS_ENT=no
22761 else
22762 as_ac_File=`$as_echo "ac_cv_file_$XORG_SGML_PATH/X11/defs.ent" | $as_tr_sh`
22763 { $as_echo "$as_me:$LINENO: checking for $XORG_SGML_PATH/X11/defs.ent" >&5
22764 $as_echo_n "checking for $XORG_SGML_PATH/X11/defs.ent... " >&6; }
22765 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
22766 $as_echo_n "(cached) " >&6
22767 else
22768 test "$cross_compiling" = yes &&
22769 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
22770 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
22771 { (exit 1); exit 1; }; }
22772 if test -r "$XORG_SGML_PATH/X11/defs.ent"; then
22773 eval "$as_ac_File=yes"
22774 else
22775 eval "$as_ac_File=no"
22776 fi
22777 fi
22778 ac_res=`eval 'as_val=${'$as_ac_File'}
22779 $as_echo "$as_val"'`
22780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22781 $as_echo "$ac_res" >&6; }
22782 as_val=`eval 'as_val=${'$as_ac_File'}
22783 $as_echo "$as_val"'`
22784 if test "x$as_val" = x""yes; then
22785 HAVE_DEFS_ENT=yes
22786 fi
22787
22788 fi
22789
22790 # Extract the first word of "linuxdoc", so it can be a program name with args.
22791 set dummy linuxdoc; ac_word=$2
22792 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22793 $as_echo_n "checking for $ac_word... " >&6; }
22794 if test "${ac_cv_path_LINUXDOC+set}" = set; then
22795 $as_echo_n "(cached) " >&6
22796 else
22797 case $LINUXDOC in
22798 [\\/]* | ?:[\\/]*)
22799 ac_cv_path_LINUXDOC="$LINUXDOC" # Let the user override the test with a path.
22800 ;;
22801 *)
22802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22803 for as_dir in $PATH
22804 do
22805 IFS=$as_save_IFS
22806 test -z "$as_dir" && as_dir=.
22807 for ac_exec_ext in '' $ac_executable_extensions; do
22808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22809 ac_cv_path_LINUXDOC="$as_dir/$ac_word$ac_exec_ext"
22810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22811 break 2
22812 fi
22813 done
22814 done
22815 IFS=$as_save_IFS
22816
22817 ;;
22818 esac
22819 fi
22820 LINUXDOC=$ac_cv_path_LINUXDOC
22821 if test -n "$LINUXDOC"; then
22822 { $as_echo "$as_me:$LINENO: result: $LINUXDOC" >&5
22823 $as_echo "$LINUXDOC" >&6; }
22824 else
22825 { $as_echo "$as_me:$LINENO: result: no" >&5
22826 $as_echo "no" >&6; }
22827 fi
22828
22829
22830 # Extract the first word of "ps2pdf", so it can be a program name with args.
22831 set dummy ps2pdf; ac_word=$2
22832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22833 $as_echo_n "checking for $ac_word... " >&6; }
22834 if test "${ac_cv_path_PS2PDF+set}" = set; then
22835 $as_echo_n "(cached) " >&6
22836 else
22837 case $PS2PDF in
22838 [\\/]* | ?:[\\/]*)
22839 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
22840 ;;
22841 *)
22842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22843 for as_dir in $PATH
22844 do
22845 IFS=$as_save_IFS
22846 test -z "$as_dir" && as_dir=.
22847 for ac_exec_ext in '' $ac_executable_extensions; do
22848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22849 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
22850 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22851 break 2
22852 fi
22853 done
22854 done
22855 IFS=$as_save_IFS
22856
22857 ;;
22858 esac
22859 fi
22860 PS2PDF=$ac_cv_path_PS2PDF
22861 if test -n "$PS2PDF"; then
22862 { $as_echo "$as_me:$LINENO: result: $PS2PDF" >&5
22863 $as_echo "$PS2PDF" >&6; }
22864 else
22865 { $as_echo "$as_me:$LINENO: result: no" >&5
22866 $as_echo "no" >&6; }
22867 fi
22868
22869
22870
22871 { $as_echo "$as_me:$LINENO: checking Whether to build documentation" >&5
22872 $as_echo_n "checking Whether to build documentation... " >&6; }
22873
22874 if test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then
22875 BUILDDOC=yes
22876 else
22877 BUILDDOC=no
22878 fi
22879
22880 if test x$BUILDDOC = xyes; then
22881 BUILD_LINUXDOC_TRUE=
22882 BUILD_LINUXDOC_FALSE='#'
22883 else
22884 BUILD_LINUXDOC_TRUE='#'
22885 BUILD_LINUXDOC_FALSE=
22886 fi
22887
22888
22889 { $as_echo "$as_me:$LINENO: result: $BUILDDOC" >&5
22890 $as_echo "$BUILDDOC" >&6; }
22891
22892 { $as_echo "$as_me:$LINENO: checking Whether to build pdf documentation" >&5
22893 $as_echo_n "checking Whether to build pdf documentation... " >&6; }
22894
22895 if test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then
22896 BUILDPDFDOC=yes
22897 else
22898 BUILDPDFDOC=no
22899 fi
22900
22901 if test x$BUILDPDFDOC = xyes; then
22902 BUILD_PDFDOC_TRUE=
22903 BUILD_PDFDOC_FALSE='#'
22904 else
22905 BUILD_PDFDOC_TRUE='#'
22906 BUILD_PDFDOC_FALSE=
22907 fi
22908
22909
22910 { $as_echo "$as_me:$LINENO: result: $BUILDPDFDOC" >&5
22911 $as_echo "$BUILDPDFDOC" >&6; }
22912
22913 MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt"
22914 MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
22915 MAKE_PDF="$PS2PDF"
22916 MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
22917
22918
22919
22920
22921
22922
22923
22924 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
22925 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
22926 echo 'git directory not found: installing possibly empty changelog.' >&2)"
22927
22928 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
22929
22930
22931
22932 { $as_echo "$as_me:$LINENO: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
22933 or install the ati wrapper as well:
22934 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
22935 " >&5
22936 $as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"mach64\"
22937 or install the ati wrapper as well:
22938 git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
22939 " >&6;}
22940
22941 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
22942
22943 cat >confcache <<\_ACEOF
22944 # This file is a shell script that caches the results of configure
22945 # tests run on this system so they can be shared between configure
22946 # scripts and configure runs, see configure's option --config-cache.
22947 # It is not useful on other systems. If it contains results you don't
22948 # want to keep, you may remove or edit it.
22949 #
22950 # config.status only pays attention to the cache file if you give it
22951 # the --recheck option to rerun configure.
22952 #
22953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22955 # following values.
22956
22957 _ACEOF
22958
22959 # The following way of writing the cache mishandles newlines in values,
22960 # but we know of no workaround that is simple, portable, and efficient.
22961 # So, we kill variables containing newlines.
22962 # Ultrix sh set writes to stderr and can't be redirected directly,
22963 # and sets the high bit in the cache file unless we assign to the vars.
22964 (
22965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22966 eval ac_val=\$$ac_var
22967 case $ac_val in #(
22968 *${as_nl}*)
22969 case $ac_var in #(
22970 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22972 esac
22973 case $ac_var in #(
22974 _ | IFS | as_nl) ;; #(
22975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22976 *) $as_unset $ac_var ;;
22977 esac ;;
22978 esac
22979 done
22980
22981 (set) 2>&1 |
22982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22983 *${as_nl}ac_space=\ *)
22984 # `set' does not quote correctly, so add quotes (double-quote
22985 # substitution turns \\\\ into \\, and sed turns \\ into \).
22986 sed -n \
22987 "s/'/'\\\\''/g;
22988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22989 ;; #(
22990 *)
22991 # `set' quotes correctly as required by POSIX, so do not add quotes.
22992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22993 ;;
22994 esac |
22995 sort
22996 ) |
22997 sed '
22998 /^ac_cv_env_/b end
22999 t clear
23000 :clear
23001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23002 t end
23003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23004 :end' >>confcache
23005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23006 if test -w "$cache_file"; then
23007 test "x$cache_file" != "x/dev/null" &&
23008 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
23009 $as_echo "$as_me: updating cache $cache_file" >&6;}
23010 cat confcache >$cache_file
23011 else
23012 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23014 fi
23015 fi
23016 rm -f confcache
23017
23018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23019 # Let make expand exec_prefix.
23020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23021
23022 DEFS=-DHAVE_CONFIG_H
23023
23024 ac_libobjs=
23025 ac_ltlibobjs=
23026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23027 # 1. Remove the extension, and $U if already installed.
23028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23029 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23031 # will be set to the directory where LIBOBJS objects are built.
23032 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23033 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23034 done
23035 LIBOBJS=$ac_libobjs
23036
23037 LTLIBOBJS=$ac_ltlibobjs
23038
23039
23040 if test -n "$EXEEXT"; then
23041 am__EXEEXT_TRUE=
23042 am__EXEEXT_FALSE='#'
23043 else
23044 am__EXEEXT_TRUE='#'
23045 am__EXEEXT_FALSE=
23046 fi
23047
23048 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23049 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23050 Usually this means the macro was only invoked conditionally." >&5
23051 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23052 Usually this means the macro was only invoked conditionally." >&2;}
23053 { (exit 1); exit 1; }; }
23054 fi
23055 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23056 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23057 Usually this means the macro was only invoked conditionally." >&5
23058 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
23059 Usually this means the macro was only invoked conditionally." >&2;}
23060 { (exit 1); exit 1; }; }
23061 fi
23062 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23063 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23064 Usually this means the macro was only invoked conditionally." >&5
23065 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23066 Usually this means the macro was only invoked conditionally." >&2;}
23067 { (exit 1); exit 1; }; }
23068 fi
23069 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23070 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23071 Usually this means the macro was only invoked conditionally." >&5
23072 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23073 Usually this means the macro was only invoked conditionally." >&2;}
23074 { (exit 1); exit 1; }; }
23075 fi
23076 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23077 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23078 Usually this means the macro was only invoked conditionally." >&5
23079 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23080 Usually this means the macro was only invoked conditionally." >&2;}
23081 { (exit 1); exit 1; }; }
23082 fi
23083 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
23084 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
23085 Usually this means the macro was only invoked conditionally." >&5
23086 $as_echo "$as_me: error: conditional \"HAVE_XEXTPROTO_71\" was never defined.
23087 Usually this means the macro was only invoked conditionally." >&2;}
23088 { (exit 1); exit 1; }; }
23089 fi
23090 if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
23091 { { $as_echo "$as_me:$LINENO: error: conditional \"DRI\" was never defined.
23092 Usually this means the macro was only invoked conditionally." >&5
23093 $as_echo "$as_me: error: conditional \"DRI\" was never defined.
23094 Usually this means the macro was only invoked conditionally." >&2;}
23095 { (exit 1); exit 1; }; }
23096 fi
23097 if test -z "${ATIMISC_CPIO_TRUE}" && test -z "${ATIMISC_CPIO_FALSE}"; then
23098 { { $as_echo "$as_me:$LINENO: error: conditional \"ATIMISC_CPIO\" was never defined.
23099 Usually this means the macro was only invoked conditionally." >&5
23100 $as_echo "$as_me: error: conditional \"ATIMISC_CPIO\" was never defined.
23101 Usually this means the macro was only invoked conditionally." >&2;}
23102 { (exit 1); exit 1; }; }
23103 fi
23104 if test -z "${ATIMISC_DGA_TRUE}" && test -z "${ATIMISC_DGA_FALSE}"; then
23105 { { $as_echo "$as_me:$LINENO: error: conditional \"ATIMISC_DGA\" was never defined.
23106 Usually this means the macro was only invoked conditionally." >&5
23107 $as_echo "$as_me: error: conditional \"ATIMISC_DGA\" was never defined.
23108 Usually this means the macro was only invoked conditionally." >&2;}
23109 { (exit 1); exit 1; }; }
23110 fi
23111 if test -z "${ATIMISC_TV_OUT_TRUE}" && test -z "${ATIMISC_TV_OUT_FALSE}"; then
23112 { { $as_echo "$as_me:$LINENO: error: conditional \"ATIMISC_TV_OUT\" was never defined.
23113 Usually this means the macro was only invoked conditionally." >&5
23114 $as_echo "$as_me: error: conditional \"ATIMISC_TV_OUT\" was never defined.
23115 Usually this means the macro was only invoked conditionally." >&2;}
23116 { (exit 1); exit 1; }; }
23117 fi
23118 if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
23119 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_EXA\" was never defined.
23120 Usually this means the macro was only invoked conditionally." >&5
23121 $as_echo "$as_me: error: conditional \"USE_EXA\" was never defined.
23122 Usually this means the macro was only invoked conditionally." >&2;}
23123 { (exit 1); exit 1; }; }
23124 fi
23125 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
23126 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23127 Usually this means the macro was only invoked conditionally." >&5
23128 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
23129 Usually this means the macro was only invoked conditionally." >&2;}
23130 { (exit 1); exit 1; }; }
23131 fi
23132 if test -z "${BUILD_LINUXDOC_TRUE}" && test -z "${BUILD_LINUXDOC_FALSE}"; then
23133 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LINUXDOC\" was never defined.
23134 Usually this means the macro was only invoked conditionally." >&5
23135 $as_echo "$as_me: error: conditional \"BUILD_LINUXDOC\" was never defined.
23136 Usually this means the macro was only invoked conditionally." >&2;}
23137 { (exit 1); exit 1; }; }
23138 fi
23139 if test -z "${BUILD_PDFDOC_TRUE}" && test -z "${BUILD_PDFDOC_FALSE}"; then
23140 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PDFDOC\" was never defined.
23141 Usually this means the macro was only invoked conditionally." >&5
23142 $as_echo "$as_me: error: conditional \"BUILD_PDFDOC\" was never defined.
23143 Usually this means the macro was only invoked conditionally." >&2;}
23144 { (exit 1); exit 1; }; }
23145 fi
23146
23147 : ${CONFIG_STATUS=./config.status}
23148 ac_write_fail=0
23149 ac_clean_files_save=$ac_clean_files
23150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23151 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23153 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23154 #! $SHELL
23155 # Generated by $as_me.
23156 # Run this file to recreate the current configuration.
23157 # Compiler output produced by configure, useful for debugging
23158 # configure, is in config.log if it exists.
23159
23160 debug=false
23161 ac_cs_recheck=false
23162 ac_cs_silent=false
23163 SHELL=\${CONFIG_SHELL-$SHELL}
23164 _ACEOF
23165
23166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23167 ## --------------------- ##
23168 ## M4sh Initialization. ##
23169 ## --------------------- ##
23170
23171 # Be more Bourne compatible
23172 DUALCASE=1; export DUALCASE # for MKS sh
23173 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23174 emulate sh
23175 NULLCMD=:
23176 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23177 # is contrary to our usage. Disable this feature.
23178 alias -g '${1+"$@"}'='"$@"'
23179 setopt NO_GLOB_SUBST
23180 else
23181 case `(set -o) 2>/dev/null` in
23182 *posix*) set -o posix ;;
23183 esac
23184
23185 fi
23186
23187
23188
23189
23190 # PATH needs CR
23191 # Avoid depending upon Character Ranges.
23192 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23193 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23194 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23195 as_cr_digits='0123456789'
23196 as_cr_alnum=$as_cr_Letters$as_cr_digits
23197
23198 as_nl='
23199 '
23200 export as_nl
23201 # Printing a long string crashes Solaris 7 /usr/bin/printf.
23202 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23203 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23204 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23205 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23206 as_echo='printf %s\n'
23207 as_echo_n='printf %s'
23208 else
23209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23211 as_echo_n='/usr/ucb/echo -n'
23212 else
23213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23214 as_echo_n_body='eval
23215 arg=$1;
23216 case $arg in
23217 *"$as_nl"*)
23218 expr "X$arg" : "X\\(.*\\)$as_nl";
23219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23220 esac;
23221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23222 '
23223 export as_echo_n_body
23224 as_echo_n='sh -c $as_echo_n_body as_echo'
23225 fi
23226 export as_echo_body
23227 as_echo='sh -c $as_echo_body as_echo'
23228 fi
23229
23230 # The user is always right.
23231 if test "${PATH_SEPARATOR+set}" != set; then
23232 PATH_SEPARATOR=:
23233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23235 PATH_SEPARATOR=';'
23236 }
23237 fi
23238
23239 # Support unset when possible.
23240 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23241 as_unset=unset
23242 else
23243 as_unset=false
23244 fi
23245
23246
23247 # IFS
23248 # We need space, tab and new line, in precisely that order. Quoting is
23249 # there to prevent editors from complaining about space-tab.
23250 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23251 # splitting by setting IFS to empty value.)
23252 IFS=" "" $as_nl"
23253
23254 # Find who we are. Look in the path if we contain no directory separator.
23255 case $0 in
23256 *[\\/]* ) as_myself=$0 ;;
23257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23258 for as_dir in $PATH
23259 do
23260 IFS=$as_save_IFS
23261 test -z "$as_dir" && as_dir=.
23262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23263 done
23264 IFS=$as_save_IFS
23265
23266 ;;
23267 esac
23268 # We did not find ourselves, most probably we were run as `sh COMMAND'
23269 # in which case we are not to be found in the path.
23270 if test "x$as_myself" = x; then
23271 as_myself=$0
23272 fi
23273 if test ! -f "$as_myself"; then
23274 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23275 { (exit 1); exit 1; }
23276 fi
23277
23278 # Work around bugs in pre-3.0 UWIN ksh.
23279 for as_var in ENV MAIL MAILPATH
23280 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23281 done
23282 PS1='$ '
23283 PS2='> '
23284 PS4='+ '
23285
23286 # NLS nuisances.
23287 LC_ALL=C
23288 export LC_ALL
23289 LANGUAGE=C
23290 export LANGUAGE
23291
23292 # Required to use basename.
23293 if expr a : '\(a\)' >/dev/null 2>&1 &&
23294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23295 as_expr=expr
23296 else
23297 as_expr=false
23298 fi
23299
23300 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23301 as_basename=basename
23302 else
23303 as_basename=false
23304 fi
23305
23306
23307 # Name of the executable.
23308 as_me=`$as_basename -- "$0" ||
23309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23310 X"$0" : 'X\(//\)$' \| \
23311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23312 $as_echo X/"$0" |
23313 sed '/^.*\/\([^/][^/]*\)\/*$/{
23314 s//\1/
23315 q
23316 }
23317 /^X\/\(\/\/\)$/{
23318 s//\1/
23319 q
23320 }
23321 /^X\/\(\/\).*/{
23322 s//\1/
23323 q
23324 }
23325 s/.*/./; q'`
23326
23327 # CDPATH.
23328 $as_unset CDPATH
23329
23330
23331
23332 as_lineno_1=$LINENO
23333 as_lineno_2=$LINENO
23334 test "x$as_lineno_1" != "x$as_lineno_2" &&
23335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23336
23337 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23338 # uniformly replaced by the line number. The first 'sed' inserts a
23339 # line-number line after each line using $LINENO; the second 'sed'
23340 # does the real work. The second script uses 'N' to pair each
23341 # line-number line with the line containing $LINENO, and appends
23342 # trailing '-' during substitution so that $LINENO is not a special
23343 # case at line end.
23344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23345 # scripts with optimization help from Paolo Bonzini. Blame Lee
23346 # E. McMahon (1931-1989) for sed's syntax. :-)
23347 sed -n '
23348 p
23349 /[$]LINENO/=
23350 ' <$as_myself |
23351 sed '
23352 s/[$]LINENO.*/&-/
23353 t lineno
23354 b
23355 :lineno
23356 N
23357 :loop
23358 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23359 t loop
23360 s/-\n.*//
23361 ' >$as_me.lineno &&
23362 chmod +x "$as_me.lineno" ||
23363 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23364 { (exit 1); exit 1; }; }
23365
23366 # Don't try to exec as it changes $[0], causing all sort of problems
23367 # (the dirname of $[0] is not the place where we might find the
23368 # original and so on. Autoconf is especially sensitive to this).
23369 . "./$as_me.lineno"
23370 # Exit status is that of the last command.
23371 exit
23372 }
23373
23374
23375 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23376 as_dirname=dirname
23377 else
23378 as_dirname=false
23379 fi
23380
23381 ECHO_C= ECHO_N= ECHO_T=
23382 case `echo -n x` in
23383 -n*)
23384 case `echo 'x\c'` in
23385 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23386 *) ECHO_C='\c';;
23387 esac;;
23388 *)
23389 ECHO_N='-n';;
23390 esac
23391 if expr a : '\(a\)' >/dev/null 2>&1 &&
23392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23393 as_expr=expr
23394 else
23395 as_expr=false
23396 fi
23397
23398 rm -f conf$$ conf$$.exe conf$$.file
23399 if test -d conf$$.dir; then
23400 rm -f conf$$.dir/conf$$.file
23401 else
23402 rm -f conf$$.dir
23403 mkdir conf$$.dir 2>/dev/null
23404 fi
23405 if (echo >conf$$.file) 2>/dev/null; then
23406 if ln -s conf$$.file conf$$ 2>/dev/null; then
23407 as_ln_s='ln -s'
23408 # ... but there are two gotchas:
23409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23411 # In both cases, we have to default to `cp -p'.
23412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23413 as_ln_s='cp -p'
23414 elif ln conf$$.file conf$$ 2>/dev/null; then
23415 as_ln_s=ln
23416 else
23417 as_ln_s='cp -p'
23418 fi
23419 else
23420 as_ln_s='cp -p'
23421 fi
23422 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23423 rmdir conf$$.dir 2>/dev/null
23424
23425 if mkdir -p . 2>/dev/null; then
23426 as_mkdir_p=:
23427 else
23428 test -d ./-p && rmdir ./-p
23429 as_mkdir_p=false
23430 fi
23431
23432 if test -x / >/dev/null 2>&1; then
23433 as_test_x='test -x'
23434 else
23435 if ls -dL / >/dev/null 2>&1; then
23436 as_ls_L_option=L
23437 else
23438 as_ls_L_option=
23439 fi
23440 as_test_x='
23441 eval sh -c '\''
23442 if test -d "$1"; then
23443 test -d "$1/.";
23444 else
23445 case $1 in
23446 -*)set "./$1";;
23447 esac;
23448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23449 ???[sx]*):;;*)false;;esac;fi
23450 '\'' sh
23451 '
23452 fi
23453 as_executable_p=$as_test_x
23454
23455 # Sed expression to map a string onto a valid CPP name.
23456 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23457
23458 # Sed expression to map a string onto a valid variable name.
23459 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23460
23461
23462 exec 6>&1
23463
23464 # Save the log message, to keep $[0] and so on meaningful, and to
23465 # report actual input values of CONFIG_FILES etc. instead of their
23466 # values after options handling.
23467 ac_log="
23468 This file was extended by xf86-video-mach64 $as_me 6.8.2, which was
23469 generated by GNU Autoconf 2.63. Invocation command line was
23470
23471 CONFIG_FILES = $CONFIG_FILES
23472 CONFIG_HEADERS = $CONFIG_HEADERS
23473 CONFIG_LINKS = $CONFIG_LINKS
23474 CONFIG_COMMANDS = $CONFIG_COMMANDS
23475 $ $0 $@
23476
23477 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23478 "
23479
23480 _ACEOF
23481
23482 case $ac_config_files in *"
23483 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23484 esac
23485
23486 case $ac_config_headers in *"
23487 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23488 esac
23489
23490
23491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23492 # Files that config.status was made for.
23493 config_files="$ac_config_files"
23494 config_headers="$ac_config_headers"
23495 config_commands="$ac_config_commands"
23496
23497 _ACEOF
23498
23499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23500 ac_cs_usage="\
23501 \`$as_me' instantiates files from templates according to the
23502 current configuration.
23503
23504 Usage: $0 [OPTION]... [FILE]...
23505
23506 -h, --help print this help, then exit
23507 -V, --version print version number and configuration settings, then exit
23508 -q, --quiet, --silent
23509 do not print progress messages
23510 -d, --debug don't remove temporary files
23511 --recheck update $as_me by reconfiguring in the same conditions
23512 --file=FILE[:TEMPLATE]
23513 instantiate the configuration file FILE
23514 --header=FILE[:TEMPLATE]
23515 instantiate the configuration header FILE
23516
23517 Configuration files:
23518 $config_files
23519
23520 Configuration headers:
23521 $config_headers
23522
23523 Configuration commands:
23524 $config_commands
23525
23526 Report bugs to <bug-autoconf (at] gnu.org>."
23527
23528 _ACEOF
23529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23530 ac_cs_version="\\
23531 xf86-video-mach64 config.status 6.8.2
23532 configured by $0, generated by GNU Autoconf 2.63,
23533 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23534
23535 Copyright (C) 2008 Free Software Foundation, Inc.
23536 This config.status script is free software; the Free Software Foundation
23537 gives unlimited permission to copy, distribute and modify it."
23538
23539 ac_pwd='$ac_pwd'
23540 srcdir='$srcdir'
23541 INSTALL='$INSTALL'
23542 MKDIR_P='$MKDIR_P'
23543 AWK='$AWK'
23544 test -n "\$AWK" || AWK=awk
23545 _ACEOF
23546
23547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23548 # The default lists apply if the user does not specify any file.
23549 ac_need_defaults=:
23550 while test $# != 0
23551 do
23552 case $1 in
23553 --*=*)
23554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23556 ac_shift=:
23557 ;;
23558 *)
23559 ac_option=$1
23560 ac_optarg=$2
23561 ac_shift=shift
23562 ;;
23563 esac
23564
23565 case $ac_option in
23566 # Handling of the options.
23567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23568 ac_cs_recheck=: ;;
23569 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23570 $as_echo "$ac_cs_version"; exit ;;
23571 --debug | --debu | --deb | --de | --d | -d )
23572 debug=: ;;
23573 --file | --fil | --fi | --f )
23574 $ac_shift
23575 case $ac_optarg in
23576 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23577 esac
23578 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
23579 ac_need_defaults=false;;
23580 --header | --heade | --head | --hea )
23581 $ac_shift
23582 case $ac_optarg in
23583 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23584 esac
23585 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
23586 ac_need_defaults=false;;
23587 --he | --h)
23588 # Conflict between --help and --header
23589 { $as_echo "$as_me: error: ambiguous option: $1
23590 Try \`$0 --help' for more information." >&2
23591 { (exit 1); exit 1; }; };;
23592 --help | --hel | -h )
23593 $as_echo "$ac_cs_usage"; exit ;;
23594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23596 ac_cs_silent=: ;;
23597
23598 # This is an error.
23599 -*) { $as_echo "$as_me: error: unrecognized option: $1
23600 Try \`$0 --help' for more information." >&2
23601 { (exit 1); exit 1; }; } ;;
23602
23603 *) ac_config_targets="$ac_config_targets $1"
23604 ac_need_defaults=false ;;
23605
23606 esac
23607 shift
23608 done
23609
23610 ac_configure_extra_args=
23611
23612 if $ac_cs_silent; then
23613 exec 6>/dev/null
23614 ac_configure_extra_args="$ac_configure_extra_args --silent"
23615 fi
23616
23617 _ACEOF
23618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23619 if \$ac_cs_recheck; then
23620 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23621 shift
23622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23623 CONFIG_SHELL='$SHELL'
23624 export CONFIG_SHELL
23625 exec "\$@"
23626 fi
23627
23628 _ACEOF
23629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23630 exec 5>>config.log
23631 {
23632 echo
23633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23634 ## Running $as_me. ##
23635 _ASBOX
23636 $as_echo "$ac_log"
23637 } >&5
23638
23639 _ACEOF
23640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23641 #
23642 # INIT-COMMANDS
23643 #
23644 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23645
23646 _ACEOF
23647
23648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23649
23650 # Handling of arguments.
23651 for ac_config_target in $ac_config_targets
23652 do
23653 case $ac_config_target in
23654 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23655 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23656 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23657 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23658 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23659
23660 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23661 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23662 { (exit 1); exit 1; }; };;
23663 esac
23664 done
23665
23666
23667 # If the user did not use the arguments to specify the items to instantiate,
23668 # then the envvar interface is used. Set only those that are not.
23669 # We use the long form for the default assignment because of an extremely
23670 # bizarre bug on SunOS 4.1.3.
23671 if $ac_need_defaults; then
23672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23675 fi
23676
23677 # Have a temporary directory for convenience. Make it in the build tree
23678 # simply because there is no reason against having it here, and in addition,
23679 # creating and moving files from /tmp can sometimes cause problems.
23680 # Hook for its removal unless debugging.
23681 # Note that there is a small window in which the directory will not be cleaned:
23682 # after its creation but before its name has been assigned to `$tmp'.
23683 $debug ||
23684 {
23685 tmp=
23686 trap 'exit_status=$?
23687 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23688 ' 0
23689 trap '{ (exit 1); exit 1; }' 1 2 13 15
23690 }
23691 # Create a (secure) tmp directory for tmp files.
23692
23693 {
23694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23695 test -n "$tmp" && test -d "$tmp"
23696 } ||
23697 {
23698 tmp=./conf$$-$RANDOM
23699 (umask 077 && mkdir "$tmp")
23700 } ||
23701 {
23702 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23703 { (exit 1); exit 1; }
23704 }
23705
23706 # Set up the scripts for CONFIG_FILES section.
23707 # No need to generate them if there are no CONFIG_FILES.
23708 # This happens for instance with `./config.status config.h'.
23709 if test -n "$CONFIG_FILES"; then
23710
23711
23712 ac_cr='
'
23714 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23715 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23716 ac_cs_awk_cr='\\r'
23717 else
23718 ac_cs_awk_cr=$ac_cr
23719 fi
23720
23721 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23722 _ACEOF
23723
23724
23725 {
23726 echo "cat >conf$$subs.awk <<_ACEOF" &&
23727 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23728 echo "_ACEOF"
23729 } >conf$$subs.sh ||
23730 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23731 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23732 { (exit 1); exit 1; }; }
23733 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23734 ac_delim='%!_!# '
23735 for ac_last_try in false false false false false :; do
23736 . ./conf$$subs.sh ||
23737 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23738 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23739 { (exit 1); exit 1; }; }
23740
23741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23742 if test $ac_delim_n = $ac_delim_num; then
23743 break
23744 elif $ac_last_try; then
23745 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23746 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23747 { (exit 1); exit 1; }; }
23748 else
23749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23750 fi
23751 done
23752 rm -f conf$$subs.sh
23753
23754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23755 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23756 _ACEOF
23757 sed -n '
23758 h
23759 s/^/S["/; s/!.*/"]=/
23760 p
23761 g
23762 s/^[^!]*!//
23763 :repl
23764 t repl
23765 s/'"$ac_delim"'$//
23766 t delim
23767 :nl
23768 h
23769 s/\(.\{148\}\).*/\1/
23770 t more1
23771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23772 p
23773 n
23774 b repl
23775 :more1
23776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23777 p
23778 g
23779 s/.\{148\}//
23780 t nl
23781 :delim
23782 h
23783 s/\(.\{148\}\).*/\1/
23784 t more2
23785 s/["\\]/\\&/g; s/^/"/; s/$/"/
23786 p
23787 b
23788 :more2
23789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23790 p
23791 g
23792 s/.\{148\}//
23793 t delim
23794 ' <conf$$subs.awk | sed '
23795 /^[^""]/{
23796 N
23797 s/\n//
23798 }
23799 ' >>$CONFIG_STATUS || ac_write_fail=1
23800 rm -f conf$$subs.awk
23801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23802 _ACAWK
23803 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23804 for (key in S) S_is_set[key] = 1
23805 FS = ""
23806
23807 }
23808 {
23809 line = $ 0
23810 nfields = split(line, field, "@")
23811 substed = 0
23812 len = length(field[1])
23813 for (i = 2; i < nfields; i++) {
23814 key = field[i]
23815 keylen = length(key)
23816 if (S_is_set[key]) {
23817 value = S[key]
23818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23819 len += length(value) + length(field[++i])
23820 substed = 1
23821 } else
23822 len += 1 + keylen
23823 }
23824
23825 print line
23826 }
23827
23828 _ACAWK
23829 _ACEOF
23830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23833 else
23834 cat
23835 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23836 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23837 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23838 { (exit 1); exit 1; }; }
23839 _ACEOF
23840
23841 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23842 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23843 # trailing colons and then remove the whole line if VPATH becomes empty
23844 # (actually we leave an empty line to preserve line numbers).
23845 if test "x$srcdir" = x.; then
23846 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23847 s/:*\$(srcdir):*/:/
23848 s/:*\${srcdir}:*/:/
23849 s/:*@srcdir@:*/:/
23850 s/^\([^=]*=[ ]*\):*/\1/
23851 s/:*$//
23852 s/^[^=]*=[ ]*$//
23853 }'
23854 fi
23855
23856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23857 fi # test -n "$CONFIG_FILES"
23858
23859 # Set up the scripts for CONFIG_HEADERS section.
23860 # No need to generate them if there are no CONFIG_HEADERS.
23861 # This happens for instance with `./config.status Makefile'.
23862 if test -n "$CONFIG_HEADERS"; then
23863 cat >"$tmp/defines.awk" <<\_ACAWK ||
23864 BEGIN {
23865 _ACEOF
23866
23867 # Transform confdefs.h into an awk script `defines.awk', embedded as
23868 # here-document in config.status, that substitutes the proper values into
23869 # config.h.in to produce config.h.
23870
23871 # Create a delimiter string that does not exist in confdefs.h, to ease
23872 # handling of long lines.
23873 ac_delim='%!_!# '
23874 for ac_last_try in false false :; do
23875 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23876 if test -z "$ac_t"; then
23877 break
23878 elif $ac_last_try; then
23879 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23880 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23881 { (exit 1); exit 1; }; }
23882 else
23883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23884 fi
23885 done
23886
23887 # For the awk script, D is an array of macro values keyed by name,
23888 # likewise P contains macro parameters if any. Preserve backslash
23889 # newline sequences.
23890
23891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23892 sed -n '
23893 s/.\{148\}/&'"$ac_delim"'/g
23894 t rset
23895 :rset
23896 s/^[ ]*#[ ]*define[ ][ ]*/ /
23897 t def
23898 d
23899 :def
23900 s/\\$//
23901 t bsnl
23902 s/["\\]/\\&/g
23903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23904 D["\1"]=" \3"/p
23905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23906 d
23907 :bsnl
23908 s/["\\]/\\&/g
23909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23910 D["\1"]=" \3\\\\\\n"\\/p
23911 t cont
23912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23913 t cont
23914 d
23915 :cont
23916 n
23917 s/.\{148\}/&'"$ac_delim"'/g
23918 t clear
23919 :clear
23920 s/\\$//
23921 t bsnlc
23922 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23923 d
23924 :bsnlc
23925 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23926 b cont
23927 ' <confdefs.h | sed '
23928 s/'"$ac_delim"'/"\\\
23929 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23930
23931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23932 for (key in D) D_is_set[key] = 1
23933 FS = ""
23934 }
23935 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23936 line = \$ 0
23937 split(line, arg, " ")
23938 if (arg[1] == "#") {
23939 defundef = arg[2]
23940 mac1 = arg[3]
23941 } else {
23942 defundef = substr(arg[1], 2)
23943 mac1 = arg[2]
23944 }
23945 split(mac1, mac2, "(") #)
23946 macro = mac2[1]
23947 prefix = substr(line, 1, index(line, defundef) - 1)
23948 if (D_is_set[macro]) {
23949 # Preserve the white space surrounding the "#".
23950 print prefix "define", macro P[macro] D[macro]
23951 next
23952 } else {
23953 # Replace #undef with comments. This is necessary, for example,
23954 # in the case of _POSIX_SOURCE, which is predefined and required
23955 # on some systems where configure will not decide to define it.
23956 if (defundef == "undef") {
23957 print "/*", prefix defundef, macro, "*/"
23958 next
23959 }
23960 }
23961 }
23962 { print }
23963 _ACAWK
23964 _ACEOF
23965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23966 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23967 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23968 { (exit 1); exit 1; }; }
23969 fi # test -n "$CONFIG_HEADERS"
23970
23971
23972 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23973 shift
23974 for ac_tag
23975 do
23976 case $ac_tag in
23977 :[FHLC]) ac_mode=$ac_tag; continue;;
23978 esac
23979 case $ac_mode$ac_tag in
23980 :[FHL]*:*);;
23981 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23982 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23983 { (exit 1); exit 1; }; };;
23984 :[FH]-) ac_tag=-:-;;
23985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23986 esac
23987 ac_save_IFS=$IFS
23988 IFS=:
23989 set x $ac_tag
23990 IFS=$ac_save_IFS
23991 shift
23992 ac_file=$1
23993 shift
23994
23995 case $ac_mode in
23996 :L) ac_source=$1;;
23997 :[FH])
23998 ac_file_inputs=
23999 for ac_f
24000 do
24001 case $ac_f in
24002 -) ac_f="$tmp/stdin";;
24003 *) # Look for the file first in the build tree, then in the source tree
24004 # (if the path is not absolute). The absolute path cannot be DOS-style,
24005 # because $ac_f cannot contain `:'.
24006 test -f "$ac_f" ||
24007 case $ac_f in
24008 [\\/$]*) false;;
24009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24010 esac ||
24011 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24012 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24013 { (exit 1); exit 1; }; };;
24014 esac
24015 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24016 ac_file_inputs="$ac_file_inputs '$ac_f'"
24017 done
24018
24019 # Let's still pretend it is `configure' which instantiates (i.e., don't
24020 # use $as_me), people would be surprised to read:
24021 # /* config.h. Generated by config.status. */
24022 configure_input='Generated from '`
24023 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24024 `' by configure.'
24025 if test x"$ac_file" != x-; then
24026 configure_input="$ac_file. $configure_input"
24027 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
24028 $as_echo "$as_me: creating $ac_file" >&6;}
24029 fi
24030 # Neutralize special characters interpreted by sed in replacement strings.
24031 case $configure_input in #(
24032 *\&* | *\|* | *\\* )
24033 ac_sed_conf_input=`$as_echo "$configure_input" |
24034 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24035 *) ac_sed_conf_input=$configure_input;;
24036 esac
24037
24038 case $ac_tag in
24039 *:-:* | *:-) cat >"$tmp/stdin" \
24040 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24041 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24042 { (exit 1); exit 1; }; } ;;
24043 esac
24044 ;;
24045 esac
24046
24047 ac_dir=`$as_dirname -- "$ac_file" ||
24048 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24049 X"$ac_file" : 'X\(//\)[^/]' \| \
24050 X"$ac_file" : 'X\(//\)$' \| \
24051 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24052 $as_echo X"$ac_file" |
24053 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24054 s//\1/
24055 q
24056 }
24057 /^X\(\/\/\)[^/].*/{
24058 s//\1/
24059 q
24060 }
24061 /^X\(\/\/\)$/{
24062 s//\1/
24063 q
24064 }
24065 /^X\(\/\).*/{
24066 s//\1/
24067 q
24068 }
24069 s/.*/./; q'`
24070 { as_dir="$ac_dir"
24071 case $as_dir in #(
24072 -*) as_dir=./$as_dir;;
24073 esac
24074 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24075 as_dirs=
24076 while :; do
24077 case $as_dir in #(
24078 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24079 *) as_qdir=$as_dir;;
24080 esac
24081 as_dirs="'$as_qdir' $as_dirs"
24082 as_dir=`$as_dirname -- "$as_dir" ||
24083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24084 X"$as_dir" : 'X\(//\)[^/]' \| \
24085 X"$as_dir" : 'X\(//\)$' \| \
24086 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24087 $as_echo X"$as_dir" |
24088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24089 s//\1/
24090 q
24091 }
24092 /^X\(\/\/\)[^/].*/{
24093 s//\1/
24094 q
24095 }
24096 /^X\(\/\/\)$/{
24097 s//\1/
24098 q
24099 }
24100 /^X\(\/\).*/{
24101 s//\1/
24102 q
24103 }
24104 s/.*/./; q'`
24105 test -d "$as_dir" && break
24106 done
24107 test -z "$as_dirs" || eval "mkdir $as_dirs"
24108 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24109 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24110 { (exit 1); exit 1; }; }; }
24111 ac_builddir=.
24112
24113 case "$ac_dir" in
24114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24115 *)
24116 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24117 # A ".." for each directory in $ac_dir_suffix.
24118 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24119 case $ac_top_builddir_sub in
24120 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24121 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24122 esac ;;
24123 esac
24124 ac_abs_top_builddir=$ac_pwd
24125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24126 # for backward compatibility:
24127 ac_top_builddir=$ac_top_build_prefix
24128
24129 case $srcdir in
24130 .) # We are building in place.
24131 ac_srcdir=.
24132 ac_top_srcdir=$ac_top_builddir_sub
24133 ac_abs_top_srcdir=$ac_pwd ;;
24134 [\\/]* | ?:[\\/]* ) # Absolute name.
24135 ac_srcdir=$srcdir$ac_dir_suffix;
24136 ac_top_srcdir=$srcdir
24137 ac_abs_top_srcdir=$srcdir ;;
24138 *) # Relative name.
24139 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24140 ac_top_srcdir=$ac_top_build_prefix$srcdir
24141 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24142 esac
24143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24144
24145
24146 case $ac_mode in
24147 :F)
24148 #
24149 # CONFIG_FILE
24150 #
24151
24152 case $INSTALL in
24153 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24154 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24155 esac
24156 ac_MKDIR_P=$MKDIR_P
24157 case $MKDIR_P in
24158 [\\/$]* | ?:[\\/]* ) ;;
24159 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24160 esac
24161 _ACEOF
24162
24163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24164 # If the template does not know about datarootdir, expand it.
24165 # FIXME: This hack should be removed a few years after 2.60.
24166 ac_datarootdir_hack=; ac_datarootdir_seen=
24167
24168 ac_sed_dataroot='
24169 /datarootdir/ {
24170 p
24171 q
24172 }
24173 /@datadir@/p
24174 /@docdir@/p
24175 /@infodir@/p
24176 /@localedir@/p
24177 /@mandir@/p
24178 '
24179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24180 *datarootdir*) ac_datarootdir_seen=yes;;
24181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24182 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24183 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24184 _ACEOF
24185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24186 ac_datarootdir_hack='
24187 s&@datadir@&$datadir&g
24188 s&@docdir@&$docdir&g
24189 s&@infodir@&$infodir&g
24190 s&@localedir@&$localedir&g
24191 s&@mandir@&$mandir&g
24192 s&\\\${datarootdir}&$datarootdir&g' ;;
24193 esac
24194 _ACEOF
24195
24196 # Neutralize VPATH when `$srcdir' = `.'.
24197 # Shell code in configure.ac might set extrasub.
24198 # FIXME: do we really want to maintain this feature?
24199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24200 ac_sed_extra="$ac_vpsub
24201 $extrasub
24202 _ACEOF
24203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24204 :t
24205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24206 s|@configure_input@|$ac_sed_conf_input|;t t
24207 s&@top_builddir@&$ac_top_builddir_sub&;t t
24208 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24209 s&@srcdir@&$ac_srcdir&;t t
24210 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24211 s&@top_srcdir@&$ac_top_srcdir&;t t
24212 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24213 s&@builddir@&$ac_builddir&;t t
24214 s&@abs_builddir@&$ac_abs_builddir&;t t
24215 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24216 s&@INSTALL@&$ac_INSTALL&;t t
24217 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24218 $ac_datarootdir_hack
24219 "
24220 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
24221 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24222 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24223 { (exit 1); exit 1; }; }
24224
24225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24226 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24228 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24229 which seems to be undefined. Please make sure it is defined." >&5
24230 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24231 which seems to be undefined. Please make sure it is defined." >&2;}
24232
24233 rm -f "$tmp/stdin"
24234 case $ac_file in
24235 -) cat "$tmp/out" && rm -f "$tmp/out";;
24236 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
24237 esac \
24238 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24239 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24240 { (exit 1); exit 1; }; }
24241 ;;
24242 :H)
24243 #
24244 # CONFIG_HEADER
24245 #
24246 if test x"$ac_file" != x-; then
24247 {
24248 $as_echo "/* $configure_input */" \
24249 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
24250 } >"$tmp/config.h" \
24251 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24252 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24253 { (exit 1); exit 1; }; }
24254 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
24255 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24256 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24257 else
24258 rm -f "$ac_file"
24259 mv "$tmp/config.h" "$ac_file" \
24260 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
24261 $as_echo "$as_me: error: could not create $ac_file" >&2;}
24262 { (exit 1); exit 1; }; }
24263 fi
24264 else
24265 $as_echo "/* $configure_input */" \
24266 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
24267 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
24268 $as_echo "$as_me: error: could not create -" >&2;}
24269 { (exit 1); exit 1; }; }
24270 fi
24271 # Compute "$ac_file"'s index in $config_headers.
24272 _am_arg="$ac_file"
24273 _am_stamp_count=1
24274 for _am_header in $config_headers :; do
24275 case $_am_header in
24276 $_am_arg | $_am_arg:* )
24277 break ;;
24278 * )
24279 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24280 esac
24281 done
24282 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24283 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24284 X"$_am_arg" : 'X\(//\)[^/]' \| \
24285 X"$_am_arg" : 'X\(//\)$' \| \
24286 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24287 $as_echo X"$_am_arg" |
24288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24289 s//\1/
24290 q
24291 }
24292 /^X\(\/\/\)[^/].*/{
24293 s//\1/
24294 q
24295 }
24296 /^X\(\/\/\)$/{
24297 s//\1/
24298 q
24299 }
24300 /^X\(\/\).*/{
24301 s//\1/
24302 q
24303 }
24304 s/.*/./; q'`/stamp-h$_am_stamp_count
24305 ;;
24306
24307 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
24308 $as_echo "$as_me: executing $ac_file commands" >&6;}
24309 ;;
24310 esac
24311
24312
24313 case $ac_file$ac_mode in
24314 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24315 # Autoconf 2.62 quotes --file arguments for eval, but not when files
24316 # are listed without --file. Let's play safe and only enable the eval
24317 # if we detect the quoting.
24318 case $CONFIG_FILES in
24319 *\'*) eval set x "$CONFIG_FILES" ;;
24320 *) set x $CONFIG_FILES ;;
24321 esac
24322 shift
24323 for mf
24324 do
24325 # Strip MF so we end up with the name of the file.
24326 mf=`echo "$mf" | sed -e 's/:.*$//'`
24327 # Check whether this is an Automake generated Makefile or not.
24328 # We used to match only the files named `Makefile.in', but
24329 # some people rename them; so instead we look at the file content.
24330 # Grep'ing the first line is not enough: some people post-process
24331 # each Makefile.in and add a new line on top of each file to say so.
24332 # Grep'ing the whole file is not good either: AIX grep has a line
24333 # limit of 2048, but all sed's we know have understand at least 4000.
24334 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24335 dirpart=`$as_dirname -- "$mf" ||
24336 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24337 X"$mf" : 'X\(//\)[^/]' \| \
24338 X"$mf" : 'X\(//\)$' \| \
24339 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24340 $as_echo X"$mf" |
24341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24342 s//\1/
24343 q
24344 }
24345 /^X\(\/\/\)[^/].*/{
24346 s//\1/
24347 q
24348 }
24349 /^X\(\/\/\)$/{
24350 s//\1/
24351 q
24352 }
24353 /^X\(\/\).*/{
24354 s//\1/
24355 q
24356 }
24357 s/.*/./; q'`
24358 else
24359 continue
24360 fi
24361 # Extract the definition of DEPDIR, am__include, and am__quote
24362 # from the Makefile without running `make'.
24363 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24364 test -z "$DEPDIR" && continue
24365 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24366 test -z "am__include" && continue
24367 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24368 # When using ansi2knr, U may be empty or an underscore; expand it
24369 U=`sed -n 's/^U = //p' < "$mf"`
24370 # Find all dependency output files, they are included files with
24371 # $(DEPDIR) in their names. We invoke sed twice because it is the
24372 # simplest approach to changing $(DEPDIR) to its actual value in the
24373 # expansion.
24374 for file in `sed -n "
24375 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24376 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24377 # Make sure the directory exists.
24378 test -f "$dirpart/$file" && continue
24379 fdir=`$as_dirname -- "$file" ||
24380 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24381 X"$file" : 'X\(//\)[^/]' \| \
24382 X"$file" : 'X\(//\)$' \| \
24383 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24384 $as_echo X"$file" |
24385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24386 s//\1/
24387 q
24388 }
24389 /^X\(\/\/\)[^/].*/{
24390 s//\1/
24391 q
24392 }
24393 /^X\(\/\/\)$/{
24394 s//\1/
24395 q
24396 }
24397 /^X\(\/\).*/{
24398 s//\1/
24399 q
24400 }
24401 s/.*/./; q'`
24402 { as_dir=$dirpart/$fdir
24403 case $as_dir in #(
24404 -*) as_dir=./$as_dir;;
24405 esac
24406 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24407 as_dirs=
24408 while :; do
24409 case $as_dir in #(
24410 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24411 *) as_qdir=$as_dir;;
24412 esac
24413 as_dirs="'$as_qdir' $as_dirs"
24414 as_dir=`$as_dirname -- "$as_dir" ||
24415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24416 X"$as_dir" : 'X\(//\)[^/]' \| \
24417 X"$as_dir" : 'X\(//\)$' \| \
24418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24419 $as_echo X"$as_dir" |
24420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24421 s//\1/
24422 q
24423 }
24424 /^X\(\/\/\)[^/].*/{
24425 s//\1/
24426 q
24427 }
24428 /^X\(\/\/\)$/{
24429 s//\1/
24430 q
24431 }
24432 /^X\(\/\).*/{
24433 s//\1/
24434 q
24435 }
24436 s/.*/./; q'`
24437 test -d "$as_dir" && break
24438 done
24439 test -z "$as_dirs" || eval "mkdir $as_dirs"
24440 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24441 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24442 { (exit 1); exit 1; }; }; }
24443 # echo "creating $dirpart/$file"
24444 echo '# dummy' > "$dirpart/$file"
24445 done
24446 done
24447 }
24448 ;;
24449
24450 esac
24451 done # for ac_tag
24452
24453
24454 { (exit 0); exit 0; }
24455 _ACEOF
24456 chmod +x $CONFIG_STATUS
24457 ac_clean_files=$ac_clean_files_save
24458
24459 test $ac_write_fail = 0 ||
24460 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24461 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24462 { (exit 1); exit 1; }; }
24463
24464
24465 # configure is writing to config.log, and then calls config.status.
24466 # config.status does its own redirection, appending to config.log.
24467 # Unfortunately, on DOS this fails, as config.log is still kept open
24468 # by configure, so config.status won't be able to write to it; its
24469 # output is simply discarded. So we exec the FD to /dev/null,
24470 # effectively closing config.log, so it can be properly (re)opened and
24471 # appended to by config.status. When coming back to configure, we
24472 # need to make the FD available again.
24473 if test "$no_create" != yes; then
24474 ac_cs_success=:
24475 ac_config_status_args=
24476 test "$silent" = yes &&
24477 ac_config_status_args="$ac_config_status_args --quiet"
24478 exec 5>/dev/null
24479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24480 exec 5>>config.log
24481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24482 # would make configure fail if this is the last instruction.
24483 $ac_cs_success || { (exit 1); exit 1; }
24484 fi
24485 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24486 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24487 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24488 fi
24489
24490