configure revision 1.1.1.3 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for xf86-video-ark 0.7.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-ark'
752 PACKAGE_TARNAME='xf86-video-ark'
753 PACKAGE_VERSION='0.7.2'
754 PACKAGE_STRING='xf86-video-ark 0.7.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 ADMIN_MAN_DIR
799 DRIVER_MAN_DIR
800 MISC_MAN_DIR
801 FILE_MAN_DIR
802 LIB_MAN_DIR
803 APP_MAN_DIR
804 ADMIN_MAN_SUFFIX
805 DRIVER_MAN_SUFFIX
806 MISC_MAN_SUFFIX
807 FILE_MAN_SUFFIX
808 LIB_MAN_SUFFIX
809 APP_MAN_SUFFIX
810 DRIVER_NAME
811 XSERVER_LIBPCIACCESS_FALSE
812 XSERVER_LIBPCIACCESS_TRUE
813 PCIACCESS_LIBS
814 PCIACCESS_CFLAGS
815 INCLUDES
816 XORG_LIBS
817 XORG_CFLAGS
818 PKG_CONFIG
819 moduledir
820 LIBTOOL
821 ac_ct_F77
822 FFLAGS
823 F77
824 CXXCPP
825 am__fastdepCXX_FALSE
826 am__fastdepCXX_TRUE
827 CXXDEPMODE
828 ac_ct_CXX
829 CXXFLAGS
830 CXX
831 CPP
832 NMEDIT
833 DSYMUTIL
834 RANLIB
835 AR
836 ECHO
837 LN_S
838 EGREP
839 GREP
840 SED
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 AMDEPBACKSLASH
845 AMDEP_FALSE
846 AMDEP_TRUE
847 am__quote
848 am__include
849 DEPDIR
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 host_os
858 host_vendor
859 host_cpu
860 host
861 build_os
862 build_vendor
863 build_cpu
864 build
865 MAINT
866 MAINTAINER_MODE_FALSE
867 MAINTAINER_MODE_TRUE
868 am__untar
869 am__tar
870 AMTAR
871 am__leading_dot
872 SET_MAKE
873 AWK
874 mkdir_p
875 MKDIR_P
876 INSTALL_STRIP_PROGRAM
877 STRIP
878 install_sh
879 MAKEINFO
880 AUTOHEADER
881 AUTOMAKE
882 AUTOCONF
883 ACLOCAL
884 VERSION
885 PACKAGE
886 CYGPATH_W
887 am__isrc
888 INSTALL_DATA
889 INSTALL_SCRIPT
890 INSTALL_PROGRAM
891 target_alias
892 host_alias
893 build_alias
894 LIBS
895 ECHO_T
896 ECHO_N
897 ECHO_C
898 DEFS
899 mandir
900 localedir
901 libdir
902 psdir
903 pdfdir
904 dvidir
905 htmldir
906 infodir
907 docdir
908 oldincludedir
909 includedir
910 localstatedir
911 sharedstatedir
912 sysconfdir
913 datadir
914 datarootdir
915 libexecdir
916 sbindir
917 bindir
918 program_transform_name
919 prefix
920 exec_prefix
921 PACKAGE_BUGREPORT
922 PACKAGE_STRING
923 PACKAGE_VERSION
924 PACKAGE_TARNAME
925 PACKAGE_NAME
926 PATH_SEPARATOR
927 SHELL'
928 ac_subst_files=''
929 ac_user_opts='
930 enable_option_checking
931 enable_maintainer_mode
932 enable_static
933 enable_shared
934 enable_fast_install
935 enable_dependency_tracking
936 with_gnu_ld
937 enable_libtool_lock
938 with_pic
939 with_tags
940 with_xorg_module_dir
941 with_release_version
942 '
943 ac_precious_vars='build_alias
944 host_alias
945 target_alias
946 CC
947 CFLAGS
948 LDFLAGS
949 LIBS
950 CPPFLAGS
951 CPP
952 CXX
953 CXXFLAGS
954 CCC
955 CXXCPP
956 F77
957 FFLAGS
958 PKG_CONFIG
959 XORG_CFLAGS
960 XORG_LIBS
961 PCIACCESS_CFLAGS
962 PCIACCESS_LIBS'
963
964
965 # Initialize some variables set by options.
966 ac_init_help=
967 ac_init_version=false
968 ac_unrecognized_opts=
969 ac_unrecognized_sep=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
972 cache_file=/dev/null
973 exec_prefix=NONE
974 no_create=
975 no_recursion=
976 prefix=NONE
977 program_prefix=NONE
978 program_suffix=NONE
979 program_transform_name=s,x,x,
980 silent=
981 site=
982 srcdir=
983 verbose=
984 x_includes=NONE
985 x_libraries=NONE
986
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir='${exec_prefix}/bin'
994 sbindir='${exec_prefix}/sbin'
995 libexecdir='${exec_prefix}/libexec'
996 datarootdir='${prefix}/share'
997 datadir='${datarootdir}'
998 sysconfdir='${prefix}/etc'
999 sharedstatedir='${prefix}/com'
1000 localstatedir='${prefix}/var'
1001 includedir='${prefix}/include'
1002 oldincludedir='/usr/include'
1003 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004 infodir='${datarootdir}/info'
1005 htmldir='${docdir}'
1006 dvidir='${docdir}'
1007 pdfdir='${docdir}'
1008 psdir='${docdir}'
1009 libdir='${exec_prefix}/lib'
1010 localedir='${datarootdir}/locale'
1011 mandir='${datarootdir}/man'
1012
1013 ac_prev=
1014 ac_dashdash=
1015 for ac_option
1016 do
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\$ac_option
1020 ac_prev=
1021 continue
1022 fi
1023
1024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
1028
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031 case $ac_dashdash$ac_option in
1032 --)
1033 ac_dashdash=yes ;;
1034
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1039
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1044
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1051
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1054
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1059
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1066
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1076 *"
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=no ;;
1083
1084 -docdir | --docdir | --docdi | --doc | --do)
1085 ac_prev=docdir ;;
1086 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1087 docdir=$ac_optarg ;;
1088
1089 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1090 ac_prev=dvidir ;;
1091 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1092 dvidir=$ac_optarg ;;
1093
1094 -enable-* | --enable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "enable_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
1110
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
1118 exec_prefix=$ac_optarg ;;
1119
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1123
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
1130
1131 -host | --host | --hos | --ho)
1132 ac_prev=host_alias ;;
1133 -host=* | --host=* | --hos=* | --ho=*)
1134 host_alias=$ac_optarg ;;
1135
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1141
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
1147 includedir=$ac_optarg ;;
1148
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1152 infodir=$ac_optarg ;;
1153
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1157 libdir=$ac_optarg ;;
1158
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
1164 libexecdir=$ac_optarg ;;
1165
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1170
1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
1172 | --localstate | --localstat | --localsta | --localst | --locals)
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1176 localstatedir=$ac_optarg ;;
1177
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1181 mandir=$ac_optarg ;;
1182
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1186
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1188 | --no-cr | --no-c | -n)
1189 no_create=yes ;;
1190
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1194
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1202 oldincludedir=$ac_optarg ;;
1203
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1207 prefix=$ac_optarg ;;
1208
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1214 program_prefix=$ac_optarg ;;
1215
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1221 program_suffix=$ac_optarg ;;
1222
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
1238 program_transform_name=$ac_optarg ;;
1239
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1244
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1249
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1253
1254 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 ac_prev=sbindir ;;
1256 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 | --sbi=* | --sb=*)
1258 sbindir=$ac_optarg ;;
1259
1260 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1261 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1262 | --sharedst | --shareds | --shared | --share | --shar \
1263 | --sha | --sh)
1264 ac_prev=sharedstatedir ;;
1265 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1266 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1267 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 | --sha=* | --sh=*)
1269 sharedstatedir=$ac_optarg ;;
1270
1271 -site | --site | --sit)
1272 ac_prev=site ;;
1273 -site=* | --site=* | --sit=*)
1274 site=$ac_optarg ;;
1275
1276 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 ac_prev=srcdir ;;
1278 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1279 srcdir=$ac_optarg ;;
1280
1281 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1282 | --syscon | --sysco | --sysc | --sys | --sy)
1283 ac_prev=sysconfdir ;;
1284 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1285 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1286 sysconfdir=$ac_optarg ;;
1287
1288 -target | --target | --targe | --targ | --tar | --ta | --t)
1289 ac_prev=target_alias ;;
1290 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1291 target_alias=$ac_optarg ;;
1292
1293 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1294 verbose=yes ;;
1295
1296 -version | --version | --versio | --versi | --vers | -V)
1297 ac_init_version=: ;;
1298
1299 -with-* | --with-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1304 { (exit 1); exit 1; }; }
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1308 *"
1309 "with_$ac_useropt"
1310 "*) ;;
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1313 esac
1314 eval with_$ac_useropt=\$ac_optarg ;;
1315
1316 -without-* | --without-*)
1317 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1321 { (exit 1); exit 1; }; }
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1325 *"
1326 "with_$ac_useropt"
1327 "*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval with_$ac_useropt=no ;;
1332
1333 --x)
1334 # Obsolete; use --with-x.
1335 with_x=yes ;;
1336
1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338 | --x-incl | --x-inc | --x-in | --x-i)
1339 ac_prev=x_includes ;;
1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342 x_includes=$ac_optarg ;;
1343
1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346 ac_prev=x_libraries ;;
1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349 x_libraries=$ac_optarg ;;
1350
1351 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1352 Try \`$0 --help' for more information." >&2
1353 { (exit 1); exit 1; }; }
1354 ;;
1355
1356 *=*)
1357 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361 { (exit 1); exit 1; }; }
1362 eval $ac_envvar=\$ac_optarg
1363 export $ac_envvar ;;
1364
1365 *)
1366 # FIXME: should be removed in autoconf 3.0.
1367 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371 ;;
1372
1373 esac
1374 done
1375
1376 if test -n "$ac_prev"; then
1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1379 { (exit 1); exit 1; }; }
1380 fi
1381
1382 if test -n "$ac_unrecognized_opts"; then
1383 case $enable_option_checking in
1384 no) ;;
1385 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1386 { (exit 1); exit 1; }; } ;;
1387 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 esac
1389 fi
1390
1391 # Check all directory arguments for consistency.
1392 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1393 datadir sysconfdir sharedstatedir localstatedir includedir \
1394 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1395 libdir localedir mandir
1396 do
1397 eval ac_val=\$$ac_var
1398 # Remove trailing slashes.
1399 case $ac_val in
1400 */ )
1401 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1402 eval $ac_var=\$ac_val;;
1403 esac
1404 # Be sure to have absolute directory names.
1405 case $ac_val in
1406 [\\/$]* | ?:[\\/]* ) continue;;
1407 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1408 esac
1409 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1410 { (exit 1); exit 1; }; }
1411 done
1412
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1416 build=$build_alias
1417 host=$host_alias
1418 target=$target_alias
1419
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422 if test "x$build_alias" = x; then
1423 cross_compiling=maybe
1424 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1425 If a cross compiler is detected then cross compile mode will be used." >&2
1426 elif test "x$build_alias" != "x$host_alias"; then
1427 cross_compiling=yes
1428 fi
1429 fi
1430
1431 ac_tool_prefix=
1432 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433
1434 test "$silent" = yes && exec 6>/dev/null
1435
1436
1437 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438 ac_ls_di=`ls -di .` &&
1439 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1441 { (exit 1); exit 1; }; }
1442 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1443 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1444 { (exit 1); exit 1; }; }
1445
1446
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
1474 srcdir=$ac_confdir
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1476 srcdir=..
1477 fi
1478 else
1479 ac_srcdir_defaulted=no
1480 fi
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1483 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1484 { (exit 1); exit 1; }; }
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1489 { (exit 1); exit 1; }; }
1490 pwd)`
1491 # When building in place, set srcdir=.
1492 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 srcdir=.
1494 fi
1495 # Remove unnecessary trailing slashes from srcdir.
1496 # Double slashes in file names in object file debugging info
1497 # mess up M-x gdb in Emacs.
1498 case $srcdir in
1499 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 esac
1501 for ac_var in $ac_precious_vars; do
1502 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_env_${ac_var}_value=\$${ac_var}
1504 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1505 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 done
1507
1508 #
1509 # Report the --help message.
1510 #
1511 if test "$ac_init_help" = "long"; then
1512 # Omit some internal or obsolete options to make the list less imposing.
1513 # This message is too long to be a string in the A/UX 3.1 sh.
1514 cat <<_ACEOF
1515 \`configure' configures xf86-video-ark 0.7.2 to adapt to many kinds of systems.
1516
1517 Usage: $0 [OPTION]... [VAR=VALUE]...
1518
1519 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1520 VAR=VALUE. See below for descriptions of some of the useful variables.
1521
1522 Defaults for the options are specified in brackets.
1523
1524 Configuration:
1525 -h, --help display this help and exit
1526 --help=short display options specific to this package
1527 --help=recursive display the short help of all the included packages
1528 -V, --version display version information and exit
1529 -q, --quiet, --silent do not print \`checking...' messages
1530 --cache-file=FILE cache test results in FILE [disabled]
1531 -C, --config-cache alias for \`--cache-file=config.cache'
1532 -n, --no-create do not create output files
1533 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534
1535 Installation directories:
1536 --prefix=PREFIX install architecture-independent files in PREFIX
1537 [$ac_default_prefix]
1538 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 [PREFIX]
1540
1541 By default, \`make install' will install all the files in
1542 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1543 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1544 for instance \`--prefix=\$HOME'.
1545
1546 For better control, use the options below.
1547
1548 Fine tuning of the installation directories:
1549 --bindir=DIR user executables [EPREFIX/bin]
1550 --sbindir=DIR system admin executables [EPREFIX/sbin]
1551 --libexecdir=DIR program executables [EPREFIX/libexec]
1552 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1553 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1554 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-ark]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1569
1570 cat <<\_ACEOF
1571
1572 Program names:
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1576
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive ) echo "Configuration of xf86-video-ark 0.7.2:";;
1586 esac
1587 cat <<\_ACEOF
1588
1589 Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --enable-maintainer-mode enable make rules and dependencies not useful
1594 (and sometimes confusing) to the casual installer
1595 --enable-static[=PKGS] build static libraries [default=no]
1596 --enable-shared[=PKGS] build shared libraries [default=yes]
1597 --enable-fast-install[=PKGS]
1598 optimize for fast installation [default=yes]
1599 --disable-dependency-tracking speeds up one-time build
1600 --enable-dependency-tracking do not reject slow dependency extractors
1601 --disable-libtool-lock avoid locking (might break parallel builds)
1602
1603 Optional Packages:
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1607 --with-pic try to use only PIC/non-PIC objects [default=use
1608 both]
1609 --with-tags[=TAGS] include additional configurations [automatic]
1610 --with-xorg-module-dir=DIR
1611 --with-release-version=STRING
1612 Use release version string in package name
1613
1614 Some influential environment variables:
1615 CC C compiler command
1616 CFLAGS C compiler flags
1617 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1618 nonstandard directory <lib dir>
1619 LIBS libraries to pass to the linker, e.g. -l<library>
1620 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1621 you have headers in a nonstandard directory <include dir>
1622 CPP C preprocessor
1623 CXX C++ compiler command
1624 CXXFLAGS C++ compiler flags
1625 CXXCPP C++ preprocessor
1626 F77 Fortran 77 compiler command
1627 FFLAGS Fortran 77 compiler flags
1628 PKG_CONFIG path to pkg-config utility
1629 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1630 XORG_LIBS linker flags for XORG, overriding pkg-config
1631 PCIACCESS_CFLAGS
1632 C compiler flags for PCIACCESS, overriding pkg-config
1633 PCIACCESS_LIBS
1634 linker flags for PCIACCESS, overriding pkg-config
1635
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1638
1639 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1640 _ACEOF
1641 ac_status=$?
1642 fi
1643
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1650 ac_builddir=.
1651
1652 case "$ac_dir" in
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662 esac
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1667
1668 case $srcdir in
1669 .) # We are building in place.
1670 ac_srcdir=.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1681 esac
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1692 else
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1696 done
1697 fi
1698
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1701 cat <<\_ACEOF
1702 xf86-video-ark configure 0.7.2
1703 generated by GNU Autoconf 2.63
1704
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1709 _ACEOF
1710 exit
1711 fi
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1715
1716 It was created by xf86-video-ark $as_me 0.7.2, which was
1717 generated by GNU Autoconf 2.63. Invocation command line was
1718
1719 $ $0 $@
1720
1721 _ACEOF
1722 exec 5>>config.log
1723 {
1724 cat <<_ASUNAME
1725 ## --------- ##
1726 ## Platform. ##
1727 ## --------- ##
1728
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1734
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1737
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1745
1746 _ASUNAME
1747
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1754 done
1755 IFS=$as_save_IFS
1756
1757 } >&5
1758
1759 cat >&5 <<_ACEOF
1760
1761
1762 ## ----------- ##
1763 ## Core tests. ##
1764 ## ----------- ##
1765
1766 _ACEOF
1767
1768
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1774 ac_configure_args=
1775 ac_configure_args0=
1776 ac_configure_args1=
1777 ac_must_keep_next=false
1778 for ac_pass in 1 2
1779 do
1780 for ac_arg
1781 do
1782 case $ac_arg in
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1786 continue ;;
1787 *\'*)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 esac
1790 case $ac_pass in
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1792 2)
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1796 else
1797 case $ac_arg in
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1804 esac
1805 ;;
1806 -* ) ac_must_keep_next=true ;;
1807 esac
1808 fi
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1810 ;;
1811 esac
1812 done
1813 done
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1816
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1824 {
1825 echo
1826
1827 cat <<\_ASBOX
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1831 _ASBOX
1832 echo
1833 # The following way of writing the cache mishandles newlines in values,
1834 (
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1837 case $ac_val in #(
1838 *${as_nl}*)
1839 case $ac_var in #(
1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1842 esac
1843 case $ac_var in #(
1844 _ | IFS | as_nl) ;; #(
1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846 *) $as_unset $ac_var ;;
1847 esac ;;
1848 esac
1849 done
1850 (set) 2>&1 |
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1853 sed -n \
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1856 ;; #(
1857 *)
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1859 ;;
1860 esac |
1861 sort
1862 )
1863 echo
1864
1865 cat <<\_ASBOX
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1869 _ASBOX
1870 echo
1871 for ac_var in $ac_subst_vars
1872 do
1873 eval ac_val=\$$ac_var
1874 case $ac_val in
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 esac
1877 $as_echo "$ac_var='\''$ac_val'\''"
1878 done | sort
1879 echo
1880
1881 if test -n "$ac_subst_files"; then
1882 cat <<\_ASBOX
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1886 _ASBOX
1887 echo
1888 for ac_var in $ac_subst_files
1889 do
1890 eval ac_val=\$$ac_var
1891 case $ac_val in
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 esac
1894 $as_echo "$ac_var='\''$ac_val'\''"
1895 done | sort
1896 echo
1897 fi
1898
1899 if test -s confdefs.h; then
1900 cat <<\_ASBOX
1901 ## ----------- ##
1902 ## confdefs.h. ##
1903 ## ----------- ##
1904 _ASBOX
1905 echo
1906 cat confdefs.h
1907 echo
1908 fi
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1916 ' 0
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1919 done
1920 ac_signal=0
1921
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1924
1925 # Predefined preprocessor variables.
1926
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 _ACEOF
1930
1931
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1934 _ACEOF
1935
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1949 _ACEOF
1950
1951
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1954 ac_site_file1=NONE
1955 ac_site_file2=NONE
1956 if test -n "$CONFIG_SITE"; then
1957 ac_site_file1=$CONFIG_SITE
1958 elif test "x$prefix" != xNONE; then
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
1961 else
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
1964 fi
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1966 do
1967 test "x$ac_site_file" = xNONE && continue
1968 if test -r "$ac_site_file"; then
1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1972 . "$ac_site_file"
1973 fi
1974 done
1975
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 $as_echo "$as_me: loading cache $cache_file" >&6;}
1982 case $cache_file in
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1985 esac
1986 fi
1987 else
1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990 >$cache_file
1991 fi
1992
1993 # Check that the precious variables saved in the cache have kept the same
1994 # value.
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2002 set,)
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2006 ,set)
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2010 ,);;
2011 *)
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 # differences in whitespace do not lead to failure.
2014 ac_old_val_w=`echo x $ac_old_val`
2015 ac_new_val_w=`echo x $ac_new_val`
2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019 ac_cache_corrupted=:
2020 else
2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023 eval $ac_var=\$ac_old_val
2024 fi
2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2029 fi;;
2030 esac
2031 # Pass precious variables to config.status.
2032 if test "$ac_new_set" = set; then
2033 case $ac_new_val in
2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 *) ac_arg=$ac_var=$ac_new_val ;;
2036 esac
2037 case " $ac_configure_args " in
2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2040 esac
2041 fi
2042 done
2043 if $ac_cache_corrupted; then
2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050 { (exit 1); exit 1; }; }
2051 fi
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077 ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082
2083
2084
2085
2086 ac_config_headers="$ac_config_headers config.h"
2087
2088 ac_aux_dir=
2089 for ac_dir in . "$srcdir"/.; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2106 $as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119
2120 am__api_version='1.11'
2121
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2128 # AIX /bin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 # Reject install programs that cannot install multiple files.
2136 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2137 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2138 if test -z "$INSTALL"; then
2139 if test "${ac_cv_path_install+set}" = set; then
2140 $as_echo_n "(cached) " >&6
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 # Account for people who put trailing slashes in PATH elements.
2148 case $as_dir/ in
2149 ./ | .// | /cC/* | \
2150 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2151 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2152 /usr/ucb/* ) ;;
2153 *)
2154 # OSF1 and SCO ODT 3.0 have their own names for install.
2155 # Don't use installbsd from OSF since it installs stuff as root
2156 # by default.
2157 for ac_prog in ginstall scoinst install; do
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2160 if test $ac_prog = install &&
2161 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2162 # AIX install. It has an incompatible calling convention.
2163 :
2164 elif test $ac_prog = install &&
2165 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2166 # program-specific install script used by HP pwplus--don't use.
2167 :
2168 else
2169 rm -rf conftest.one conftest.two conftest.dir
2170 echo one > conftest.one
2171 echo two > conftest.two
2172 mkdir conftest.dir
2173 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2174 test -s conftest.one && test -s conftest.two &&
2175 test -s conftest.dir/conftest.one &&
2176 test -s conftest.dir/conftest.two
2177 then
2178 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179 break 3
2180 fi
2181 fi
2182 fi
2183 done
2184 done
2185 ;;
2186 esac
2187
2188 done
2189 IFS=$as_save_IFS
2190
2191 rm -rf conftest.one conftest.two conftest.dir
2192
2193 fi
2194 if test "${ac_cv_path_install+set}" = set; then
2195 INSTALL=$ac_cv_path_install
2196 else
2197 # As a last resort, use the slow shell script. Don't cache a
2198 # value for INSTALL within a source directory, because that will
2199 # break other packages using the cache if that directory is
2200 # removed, or if the value is a relative name.
2201 INSTALL=$ac_install_sh
2202 fi
2203 fi
2204 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2205 $as_echo "$INSTALL" >&6; }
2206
2207 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2208 # It thinks the first close brace ends the variable substitution.
2209 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2210
2211 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2212
2213 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2214
2215 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2216 $as_echo_n "checking whether build environment is sane... " >&6; }
2217 # Just in case
2218 sleep 1
2219 echo timestamp > conftest.file
2220 # Reject unsafe characters in $srcdir or the absolute working directory
2221 # name. Accept space and tab only in the latter.
2222 am_lf='
2223 '
2224 case `pwd` in
2225 *[\\\"\#\$\&\'\`$am_lf]*)
2226 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2227 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2228 { (exit 1); exit 1; }; };;
2229 esac
2230 case $srcdir in
2231 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2232 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2233 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2234 { (exit 1); exit 1; }; };;
2235 esac
2236
2237 # Do `set' in a subshell so we don't clobber the current shell's
2238 # arguments. Must try -L first in case configure is actually a
2239 # symlink; some systems play weird games with the mod time of symlinks
2240 # (eg FreeBSD returns the mod time of the symlink's containing
2241 # directory).
2242 if (
2243 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2244 if test "$*" = "X"; then
2245 # -L didn't work.
2246 set X `ls -t "$srcdir/configure" conftest.file`
2247 fi
2248 rm -f conftest.file
2249 if test "$*" != "X $srcdir/configure conftest.file" \
2250 && test "$*" != "X conftest.file $srcdir/configure"; then
2251
2252 # If neither matched, then we have a broken ls. This can happen
2253 # if, for instance, CONFIG_SHELL is bash and it inherits a
2254 # broken ls alias from the environment. This has actually
2255 # happened. Such a system could not be considered "sane".
2256 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2257 alias in your environment" >&5
2258 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2259 alias in your environment" >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262
2263 test "$2" = conftest.file
2264 )
2265 then
2266 # Ok.
2267 :
2268 else
2269 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2270 Check your system clock" >&5
2271 $as_echo "$as_me: error: newly created file is older than distributed files!
2272 Check your system clock" >&2;}
2273 { (exit 1); exit 1; }; }
2274 fi
2275 { $as_echo "$as_me:$LINENO: result: yes" >&5
2276 $as_echo "yes" >&6; }
2277 test "$program_prefix" != NONE &&
2278 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2279 # Use a double $ so make ignores it.
2280 test "$program_suffix" != NONE &&
2281 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2282 # Double any \ or $.
2283 # By default was `s,x,x', remove it if useless.
2284 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2285 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2286
2287 # expand $ac_aux_dir to an absolute path
2288 am_aux_dir=`cd $ac_aux_dir && pwd`
2289
2290 if test x"${MISSING+set}" != xset; then
2291 case $am_aux_dir in
2292 *\ * | *\ *)
2293 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2294 *)
2295 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2296 esac
2297 fi
2298 # Use eval to expand $SHELL
2299 if eval "$MISSING --run true"; then
2300 am_missing_run="$MISSING --run "
2301 else
2302 am_missing_run=
2303 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2304 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2305 fi
2306
2307 if test x"${install_sh}" != xset; then
2308 case $am_aux_dir in
2309 *\ * | *\ *)
2310 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2311 *)
2312 install_sh="\${SHELL} $am_aux_dir/install-sh"
2313 esac
2314 fi
2315
2316 # Installed binaries are usually stripped using `strip' when the user
2317 # run `make install-strip'. However `strip' might not be the right
2318 # tool to use in cross-compilation environments, therefore Automake
2319 # will honor the `STRIP' environment variable to overrule this program.
2320 if test "$cross_compiling" != no; then
2321 if test -n "$ac_tool_prefix"; then
2322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2323 set dummy ${ac_tool_prefix}strip; ac_word=$2
2324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if test "${ac_cv_prog_STRIP+set}" = set; then
2327 $as_echo_n "(cached) " >&6
2328 else
2329 if test -n "$STRIP"; then
2330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 STRIP=$ac_cv_prog_STRIP
2350 if test -n "$STRIP"; then
2351 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2352 $as_echo "$STRIP" >&6; }
2353 else
2354 { $as_echo "$as_me:$LINENO: result: no" >&5
2355 $as_echo "no" >&6; }
2356 fi
2357
2358
2359 fi
2360 if test -z "$ac_cv_prog_STRIP"; then
2361 ac_ct_STRIP=$STRIP
2362 # Extract the first word of "strip", so it can be a program name with args.
2363 set dummy strip; ac_word=$2
2364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2367 $as_echo_n "(cached) " >&6
2368 else
2369 if test -n "$ac_ct_STRIP"; then
2370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2371 else
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 for as_dir in $PATH
2374 do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_ac_ct_STRIP="strip"
2380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383 done
2384 done
2385 IFS=$as_save_IFS
2386
2387 fi
2388 fi
2389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2390 if test -n "$ac_ct_STRIP"; then
2391 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2392 $as_echo "$ac_ct_STRIP" >&6; }
2393 else
2394 { $as_echo "$as_me:$LINENO: result: no" >&5
2395 $as_echo "no" >&6; }
2396 fi
2397
2398 if test "x$ac_ct_STRIP" = x; then
2399 STRIP=":"
2400 else
2401 case $cross_compiling:$ac_tool_warned in
2402 yes:)
2403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2405 ac_tool_warned=yes ;;
2406 esac
2407 STRIP=$ac_ct_STRIP
2408 fi
2409 else
2410 STRIP="$ac_cv_prog_STRIP"
2411 fi
2412
2413 fi
2414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2415
2416 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2417 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2418 if test -z "$MKDIR_P"; then
2419 if test "${ac_cv_path_mkdir+set}" = set; then
2420 $as_echo_n "(cached) " >&6
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_prog in mkdir gmkdir; do
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2430 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2431 'mkdir (GNU coreutils) '* | \
2432 'mkdir (coreutils) '* | \
2433 'mkdir (fileutils) '4.1*)
2434 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2435 break 3;;
2436 esac
2437 done
2438 done
2439 done
2440 IFS=$as_save_IFS
2441
2442 fi
2443
2444 if test "${ac_cv_path_mkdir+set}" = set; then
2445 MKDIR_P="$ac_cv_path_mkdir -p"
2446 else
2447 # As a last resort, use the slow shell script. Don't cache a
2448 # value for MKDIR_P within a source directory, because that will
2449 # break other packages using the cache if that directory is
2450 # removed, or if the value is a relative name.
2451 test -d ./--version && rmdir ./--version
2452 MKDIR_P="$ac_install_sh -d"
2453 fi
2454 fi
2455 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2456 $as_echo "$MKDIR_P" >&6; }
2457
2458 mkdir_p="$MKDIR_P"
2459 case $mkdir_p in
2460 [\\/$]* | ?:[\\/]*) ;;
2461 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2462 esac
2463
2464 for ac_prog in gawk mawk nawk awk
2465 do
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_AWK+set}" = set; then
2471 $as_echo_n "(cached) " >&6
2472 else
2473 if test -n "$AWK"; then
2474 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2478 do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_AWK="$ac_prog"
2484 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487 done
2488 done
2489 IFS=$as_save_IFS
2490
2491 fi
2492 fi
2493 AWK=$ac_cv_prog_AWK
2494 if test -n "$AWK"; then
2495 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2496 $as_echo "$AWK" >&6; }
2497 else
2498 { $as_echo "$as_me:$LINENO: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 test -n "$AWK" && break
2504 done
2505
2506 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2507 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2508 set x ${MAKE-make}
2509 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2510 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2511 $as_echo_n "(cached) " >&6
2512 else
2513 cat >conftest.make <<\_ACEOF
2514 SHELL = /bin/sh
2515 all:
2516 @echo '@@@%%%=$(MAKE)=@@@%%%'
2517 _ACEOF
2518 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2519 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2520 *@@@%%%=?*=@@@%%%*)
2521 eval ac_cv_prog_make_${ac_make}_set=yes;;
2522 *)
2523 eval ac_cv_prog_make_${ac_make}_set=no;;
2524 esac
2525 rm -f conftest.make
2526 fi
2527 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2528 { $as_echo "$as_me:$LINENO: result: yes" >&5
2529 $as_echo "yes" >&6; }
2530 SET_MAKE=
2531 else
2532 { $as_echo "$as_me:$LINENO: result: no" >&5
2533 $as_echo "no" >&6; }
2534 SET_MAKE="MAKE=${MAKE-make}"
2535 fi
2536
2537 rm -rf .tst 2>/dev/null
2538 mkdir .tst 2>/dev/null
2539 if test -d .tst; then
2540 am__leading_dot=.
2541 else
2542 am__leading_dot=_
2543 fi
2544 rmdir .tst 2>/dev/null
2545
2546 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2547 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2548 # is not polluted with repeated "-I."
2549 am__isrc=' -I$(srcdir)'
2550 # test to see if srcdir already configured
2551 if test -f $srcdir/config.status; then
2552 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2553 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2554 { (exit 1); exit 1; }; }
2555 fi
2556 fi
2557
2558 # test whether we have cygpath
2559 if test -z "$CYGPATH_W"; then
2560 if (cygpath --version) >/dev/null 2>/dev/null; then
2561 CYGPATH_W='cygpath -w'
2562 else
2563 CYGPATH_W=echo
2564 fi
2565 fi
2566
2567
2568 # Define the identity of the package.
2569 PACKAGE='xf86-video-ark'
2570 VERSION='0.7.2'
2571
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE "$PACKAGE"
2575 _ACEOF
2576
2577
2578 cat >>confdefs.h <<_ACEOF
2579 #define VERSION "$VERSION"
2580 _ACEOF
2581
2582 # Some tools Automake needs.
2583
2584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2585
2586
2587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2588
2589
2590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2591
2592
2593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2594
2595
2596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2597
2598 # We need awk for the "check" target. The system "awk" is bad on
2599 # some platforms.
2600 # Always define AMTAR for backward compatibility.
2601
2602 AMTAR=${AMTAR-"${am_missing_run}tar"}
2603
2604 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2605
2606
2607
2608
2609
2610
2611
2612 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2613 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2614 # Check whether --enable-maintainer-mode was given.
2615 if test "${enable_maintainer_mode+set}" = set; then
2616 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2617 else
2618 USE_MAINTAINER_MODE=no
2619 fi
2620
2621 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2622 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2623 if test $USE_MAINTAINER_MODE = yes; then
2624 MAINTAINER_MODE_TRUE=
2625 MAINTAINER_MODE_FALSE='#'
2626 else
2627 MAINTAINER_MODE_TRUE='#'
2628 MAINTAINER_MODE_FALSE=
2629 fi
2630
2631 MAINT=$MAINTAINER_MODE_TRUE
2632
2633
2634
2635 # Checks for programs.
2636 # Check whether --enable-static was given.
2637 if test "${enable_static+set}" = set; then
2638 enableval=$enable_static; p=${PACKAGE-default}
2639 case $enableval in
2640 yes) enable_static=yes ;;
2641 no) enable_static=no ;;
2642 *)
2643 enable_static=no
2644 # Look at the argument we got. We use all the common list separators.
2645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2646 for pkg in $enableval; do
2647 IFS="$lt_save_ifs"
2648 if test "X$pkg" = "X$p"; then
2649 enable_static=yes
2650 fi
2651 done
2652 IFS="$lt_save_ifs"
2653 ;;
2654 esac
2655 else
2656 enable_static=no
2657 fi
2658
2659
2660
2661 # Check whether --enable-shared was given.
2662 if test "${enable_shared+set}" = set; then
2663 enableval=$enable_shared; p=${PACKAGE-default}
2664 case $enableval in
2665 yes) enable_shared=yes ;;
2666 no) enable_shared=no ;;
2667 *)
2668 enable_shared=no
2669 # Look at the argument we got. We use all the common list separators.
2670 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2671 for pkg in $enableval; do
2672 IFS="$lt_save_ifs"
2673 if test "X$pkg" = "X$p"; then
2674 enable_shared=yes
2675 fi
2676 done
2677 IFS="$lt_save_ifs"
2678 ;;
2679 esac
2680 else
2681 enable_shared=yes
2682 fi
2683
2684
2685 # Check whether --enable-fast-install was given.
2686 if test "${enable_fast_install+set}" = set; then
2687 enableval=$enable_fast_install; p=${PACKAGE-default}
2688 case $enableval in
2689 yes) enable_fast_install=yes ;;
2690 no) enable_fast_install=no ;;
2691 *)
2692 enable_fast_install=no
2693 # Look at the argument we got. We use all the common list separators.
2694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2695 for pkg in $enableval; do
2696 IFS="$lt_save_ifs"
2697 if test "X$pkg" = "X$p"; then
2698 enable_fast_install=yes
2699 fi
2700 done
2701 IFS="$lt_save_ifs"
2702 ;;
2703 esac
2704 else
2705 enable_fast_install=yes
2706 fi
2707
2708
2709 # Make sure we can run config.sub.
2710 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2711 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2712 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2713 { (exit 1); exit 1; }; }
2714
2715 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2716 $as_echo_n "checking build system type... " >&6; }
2717 if test "${ac_cv_build+set}" = set; then
2718 $as_echo_n "(cached) " >&6
2719 else
2720 ac_build_alias=$build_alias
2721 test "x$ac_build_alias" = x &&
2722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2723 test "x$ac_build_alias" = x &&
2724 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2725 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2726 { (exit 1); exit 1; }; }
2727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2728 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2729 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2730 { (exit 1); exit 1; }; }
2731
2732 fi
2733 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2738 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2739 { (exit 1); exit 1; }; };;
2740 esac
2741 build=$ac_cv_build
2742 ac_save_IFS=$IFS; IFS='-'
2743 set x $ac_cv_build
2744 shift
2745 build_cpu=$1
2746 build_vendor=$2
2747 shift; shift
2748 # Remember, the first character of IFS is used to create $*,
2749 # except with old shells:
2750 build_os=$*
2751 IFS=$ac_save_IFS
2752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2753
2754
2755 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2756 $as_echo_n "checking host system type... " >&6; }
2757 if test "${ac_cv_host+set}" = set; then
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test "x$host_alias" = x; then
2761 ac_cv_host=$ac_cv_build
2762 else
2763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2764 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2765 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2766 { (exit 1); exit 1; }; }
2767 fi
2768
2769 fi
2770 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2771 $as_echo "$ac_cv_host" >&6; }
2772 case $ac_cv_host in
2773 *-*-*) ;;
2774 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2775 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2776 { (exit 1); exit 1; }; };;
2777 esac
2778 host=$ac_cv_host
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_host
2781 shift
2782 host_cpu=$1
2783 host_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 host_os=$*
2788 IFS=$ac_save_IFS
2789 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 DEPDIR="${am__leading_dot}deps"
2793
2794 ac_config_commands="$ac_config_commands depfiles"
2795
2796
2797 am_make=${MAKE-make}
2798 cat > confinc << 'END'
2799 am__doit:
2800 @echo this is the am__doit target
2801 .PHONY: am__doit
2802 END
2803 # If we don't find an include directive, just comment out the code.
2804 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2805 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2806 am__include="#"
2807 am__quote=
2808 _am_result=none
2809 # First try GNU make style include.
2810 echo "include confinc" > confmf
2811 # Ignore all kinds of additional output from `make'.
2812 case `$am_make -s -f confmf 2> /dev/null` in #(
2813 *the\ am__doit\ target*)
2814 am__include=include
2815 am__quote=
2816 _am_result=GNU
2817 ;;
2818 esac
2819 # Now try BSD make style include.
2820 if test "$am__include" = "#"; then
2821 echo '.include "confinc"' > confmf
2822 case `$am_make -s -f confmf 2> /dev/null` in #(
2823 *the\ am__doit\ target*)
2824 am__include=.include
2825 am__quote="\""
2826 _am_result=BSD
2827 ;;
2828 esac
2829 fi
2830
2831
2832 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2833 $as_echo "$_am_result" >&6; }
2834 rm -f confinc confmf
2835
2836 # Check whether --enable-dependency-tracking was given.
2837 if test "${enable_dependency_tracking+set}" = set; then
2838 enableval=$enable_dependency_tracking;
2839 fi
2840
2841 if test "x$enable_dependency_tracking" != xno; then
2842 am_depcomp="$ac_aux_dir/depcomp"
2843 AMDEPBACKSLASH='\'
2844 fi
2845 if test "x$enable_dependency_tracking" != xno; then
2846 AMDEP_TRUE=
2847 AMDEP_FALSE='#'
2848 else
2849 AMDEP_TRUE='#'
2850 AMDEP_FALSE=
2851 fi
2852
2853
2854 ac_ext=c
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC="$CC" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2880 fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 CC=$ac_cv_prog_CC
2888 if test -n "$CC"; then
2889 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2890 $as_echo "$CC" >&6; }
2891 else
2892 { $as_echo "$as_me:$LINENO: result: no" >&5
2893 $as_echo "no" >&6; }
2894 fi
2895
2896
2897 fi
2898 if test -z "$ac_cv_prog_CC"; then
2899 ac_ct_CC=$CC
2900 # Extract the first word of "gcc", so it can be a program name with args.
2901 set dummy gcc; ac_word=$2
2902 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_CC"; then
2908 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2912 do
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_CC="gcc"
2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2920 fi
2921 done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926 fi
2927 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2928 if test -n "$ac_ct_CC"; then
2929 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2930 $as_echo "$ac_ct_CC" >&6; }
2931 else
2932 { $as_echo "$as_me:$LINENO: result: no" >&5
2933 $as_echo "no" >&6; }
2934 fi
2935
2936 if test "x$ac_ct_CC" = x; then
2937 CC=""
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 CC=$ac_ct_CC
2946 fi
2947 else
2948 CC="$ac_cv_prog_CC"
2949 fi
2950
2951 if test -z "$CC"; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2954 set dummy ${ac_tool_prefix}cc; ac_word=$2
2955 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if test "${ac_cv_prog_CC+set}" = set; then
2958 $as_echo_n "(cached) " >&6
2959 else
2960 if test -n "$CC"; then
2961 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_CC="${ac_tool_prefix}cc"
2971 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 break 2
2973 fi
2974 done
2975 done
2976 IFS=$as_save_IFS
2977
2978 fi
2979 fi
2980 CC=$ac_cv_prog_CC
2981 if test -n "$CC"; then
2982 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
2984 else
2985 { $as_echo "$as_me:$LINENO: result: no" >&5
2986 $as_echo "no" >&6; }
2987 fi
2988
2989
2990 fi
2991 fi
2992 if test -z "$CC"; then
2993 # Extract the first word of "cc", so it can be a program name with args.
2994 set dummy cc; ac_word=$2
2995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 ac_prog_rejected=no
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3012 ac_prog_rejected=yes
3013 continue
3014 fi
3015 ac_cv_prog_CC="cc"
3016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 if test $ac_prog_rejected = yes; then
3024 # We found a bogon in the path, so make sure we never use it.
3025 set dummy $ac_cv_prog_CC
3026 shift
3027 if test $# != 0; then
3028 # We chose a different compiler from the bogus one.
3029 # However, it has the same basename, so the bogon will be chosen
3030 # first if we set CC to just the basename; use the full file name.
3031 shift
3032 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033 fi
3034 fi
3035 fi
3036 fi
3037 CC=$ac_cv_prog_CC
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3041 else
3042 { $as_echo "$as_me:$LINENO: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 fi
3048 if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 for ac_prog in cl.exe
3051 do
3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 CC=$ac_cv_prog_CC
3080 if test -n "$CC"; then
3081 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3082 $as_echo "$CC" >&6; }
3083 else
3084 { $as_echo "$as_me:$LINENO: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 test -n "$CC" && break
3090 done
3091 fi
3092 if test -z "$CC"; then
3093 ac_ct_CC=$CC
3094 for ac_prog in cl.exe
3095 do
3096 # Extract the first word of "$ac_prog", so it can be a program name with args.
3097 set dummy $ac_prog; ac_word=$2
3098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 $as_echo_n "checking for $ac_word... " >&6; }
3100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3101 $as_echo_n "(cached) " >&6
3102 else
3103 if test -n "$ac_ct_CC"; then
3104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3105 else
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_ac_ct_CC="$ac_prog"
3114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122 fi
3123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3124 if test -n "$ac_ct_CC"; then
3125 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3126 $as_echo "$ac_ct_CC" >&6; }
3127 else
3128 { $as_echo "$as_me:$LINENO: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133 test -n "$ac_ct_CC" && break
3134 done
3135
3136 if test "x$ac_ct_CC" = x; then
3137 CC=""
3138 else
3139 case $cross_compiling:$ac_tool_warned in
3140 yes:)
3141 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3143 ac_tool_warned=yes ;;
3144 esac
3145 CC=$ac_ct_CC
3146 fi
3147 fi
3148
3149 fi
3150
3151
3152 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3155 See \`config.log' for more details." >&5
3156 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3157 See \`config.log' for more details." >&2;}
3158 { (exit 1); exit 1; }; }; }
3159
3160 # Provide some information about the compiler.
3161 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3162 set X $ac_compile
3163 ac_compiler=$2
3164 { (ac_try="$ac_compiler --version >&5"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compiler --version >&5") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }
3175 { (ac_try="$ac_compiler -v >&5"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181 $as_echo "$ac_try_echo") >&5
3182 (eval "$ac_compiler -v >&5") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 { (ac_try="$ac_compiler -V >&5"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3192 $as_echo "$ac_try_echo") >&5
3193 (eval "$ac_compiler -V >&5") 2>&5
3194 ac_status=$?
3195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196 (exit $ac_status); }
3197
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204
3205 int
3206 main ()
3207 {
3208
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3217 # of exeext.
3218 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3219 $as_echo_n "checking for C compiler default output file name... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3224
3225 ac_rmfiles=
3226 for ac_file in $ac_files
3227 do
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231 esac
3232 done
3233 rm -f $ac_rmfiles
3234
3235 if { (ac_try="$ac_link_default"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241 $as_echo "$ac_try_echo") >&5
3242 (eval "$ac_link_default") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; then
3246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3250 # Autoconf.
3251 for ac_file in $ac_files ''
3252 do
3253 test -f "$ac_file" || continue
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3256 ;;
3257 [ab].out )
3258 # We found the default executable, but exeext='' is most
3259 # certainly right.
3260 break;;
3261 *.* )
3262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263 then :; else
3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265 fi
3266 # We set ac_cv_exeext here because the later test for it is not
3267 # safe: cross compilers may not add the suffix if given an `-o'
3268 # argument, so we may need to know it at that point already.
3269 # Even if this section looks crufty: it has the advantage of
3270 # actually working.
3271 break;;
3272 * )
3273 break;;
3274 esac
3275 done
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277
3278 else
3279 ac_file=''
3280 fi
3281
3282 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3283 $as_echo "$ac_file" >&6; }
3284 if test -z "$ac_file"; then
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3287
3288 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3291 See \`config.log' for more details." >&5
3292 $as_echo "$as_me: error: C compiler cannot create executables
3293 See \`config.log' for more details." >&2;}
3294 { (exit 77); exit 77; }; }; }
3295 fi
3296
3297 ac_exeext=$ac_cv_exeext
3298
3299 # Check that the compiler produces executables we can run. If not, either
3300 # the compiler is broken, or we cross compile.
3301 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3302 $as_echo_n "checking whether the C compiler works... " >&6; }
3303 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3304 # If not cross compiling, check that we can run a simple program.
3305 if test "$cross_compiling" != yes; then
3306 if { ac_try='./$ac_file'
3307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313 (eval "$ac_try") 2>&5
3314 ac_status=$?
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3317 cross_compiling=no
3318 else
3319 if test "$cross_compiling" = maybe; then
3320 cross_compiling=yes
3321 else
3322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3325 If you meant to cross compile, use \`--host'.
3326 See \`config.log' for more details." >&5
3327 $as_echo "$as_me: error: cannot run C compiled programs.
3328 If you meant to cross compile, use \`--host'.
3329 See \`config.log' for more details." >&2;}
3330 { (exit 1); exit 1; }; }; }
3331 fi
3332 fi
3333 fi
3334 { $as_echo "$as_me:$LINENO: result: yes" >&5
3335 $as_echo "yes" >&6; }
3336
3337 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3338 ac_clean_files=$ac_clean_files_save
3339 # Check that the compiler produces executables we can run. If not, either
3340 # the compiler is broken, or we cross compile.
3341 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3342 $as_echo_n "checking whether we are cross compiling... " >&6; }
3343 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3344 $as_echo "$cross_compiling" >&6; }
3345
3346 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3347 $as_echo_n "checking for suffix of executables... " >&6; }
3348 if { (ac_try="$ac_link"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3354 $as_echo "$ac_try_echo") >&5
3355 (eval "$ac_link") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; then
3359 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3361 # work properly (i.e., refer to `conftest.exe'), while it won't with
3362 # `rm'.
3363 for ac_file in conftest.exe conftest conftest.*; do
3364 test -f "$ac_file" || continue
3365 case $ac_file in
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3368 break;;
3369 * ) break;;
3370 esac
3371 done
3372 else
3373 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3376 See \`config.log' for more details." >&5
3377 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details." >&2;}
3379 { (exit 1); exit 1; }; }; }
3380 fi
3381
3382 rm -f conftest$ac_cv_exeext
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3384 $as_echo "$ac_cv_exeext" >&6; }
3385
3386 rm -f conftest.$ac_ext
3387 EXEEXT=$ac_cv_exeext
3388 ac_exeext=$EXEEXT
3389 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3390 $as_echo_n "checking for suffix of object files... " >&6; }
3391 if test "${ac_cv_objext+set}" = set; then
3392 $as_echo_n "(cached) " >&6
3393 else
3394 cat >conftest.$ac_ext <<_ACEOF
3395 /* confdefs.h. */
3396 _ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3400
3401 int
3402 main ()
3403 {
3404
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 rm -f conftest.o conftest.obj
3410 if { (ac_try="$ac_compile"
3411 case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414 esac
3415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3416 $as_echo "$ac_try_echo") >&5
3417 (eval "$ac_compile") 2>&5
3418 ac_status=$?
3419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; then
3421 for ac_file in conftest.o conftest.obj conftest.*; do
3422 test -f "$ac_file" || continue;
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426 break;;
3427 esac
3428 done
3429 else
3430 $as_echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3436 See \`config.log' for more details." >&5
3437 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3438 See \`config.log' for more details." >&2;}
3439 { (exit 1); exit 1; }; }; }
3440 fi
3441
3442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3443 fi
3444 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3445 $as_echo "$ac_cv_objext" >&6; }
3446 OBJEXT=$ac_cv_objext
3447 ac_objext=$OBJEXT
3448 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3451 $as_echo_n "(cached) " >&6
3452 else
3453 cat >conftest.$ac_ext <<_ACEOF
3454 /* confdefs.h. */
3455 _ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463 #ifndef __GNUC__
3464 choke me
3465 #endif
3466
3467 ;
3468 return 0;
3469 }
3470 _ACEOF
3471 rm -f conftest.$ac_objext
3472 if { (ac_try="$ac_compile"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478 $as_echo "$ac_try_echo") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3489 ac_compiler_gnu=yes
3490 else
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_compiler_gnu=no
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500 fi
3501 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3502 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3503 if test $ac_compiler_gnu = yes; then
3504 GCC=yes
3505 else
3506 GCC=
3507 fi
3508 ac_test_CFLAGS=${CFLAGS+set}
3509 ac_save_CFLAGS=$CFLAGS
3510 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3511 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3512 if test "${ac_cv_prog_cc_g+set}" = set; then
3513 $as_echo_n "(cached) " >&6
3514 else
3515 ac_save_c_werror_flag=$ac_c_werror_flag
3516 ac_c_werror_flag=yes
3517 ac_cv_prog_cc_g=no
3518 CFLAGS="-g"
3519 cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h. */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3525
3526 int
3527 main ()
3528 {
3529
3530 ;
3531 return 0;
3532 }
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3539 esac
3540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3541 $as_echo "$ac_try_echo") >&5
3542 (eval "$ac_compile") 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } && {
3549 test -z "$ac_c_werror_flag" ||
3550 test ! -s conftest.err
3551 } && test -s conftest.$ac_objext; then
3552 ac_cv_prog_cc_g=yes
3553 else
3554 $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 CFLAGS=""
3558 cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h. */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564
3565 int
3566 main ()
3567 {
3568
3569 ;
3570 return 0;
3571 }
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3591 :
3592 else
3593 $as_echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 CFLAGS="-g"
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3615 case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3631 ac_cv_prog_cc_g=yes
3632 else
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636
3637 fi
3638
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 fi
3641
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 fi
3644
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 ac_c_werror_flag=$ac_save_c_werror_flag
3647 fi
3648 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3649 $as_echo "$ac_cv_prog_cc_g" >&6; }
3650 if test "$ac_test_CFLAGS" = set; then
3651 CFLAGS=$ac_save_CFLAGS
3652 elif test $ac_cv_prog_cc_g = yes; then
3653 if test "$GCC" = yes; then
3654 CFLAGS="-g -O2"
3655 else
3656 CFLAGS="-g"
3657 fi
3658 else
3659 if test "$GCC" = yes; then
3660 CFLAGS="-O2"
3661 else
3662 CFLAGS=
3663 fi
3664 fi
3665 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3666 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3667 if test "${ac_cv_prog_cc_c89+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3669 else
3670 ac_cv_prog_cc_c89=no
3671 ac_save_CC=$CC
3672 cat >conftest.$ac_ext <<_ACEOF
3673 /* confdefs.h. */
3674 _ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3678 #include <stdarg.h>
3679 #include <stdio.h>
3680 #include <sys/types.h>
3681 #include <sys/stat.h>
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3686 char **p;
3687 int i;
3688 {
3689 return p[i];
3690 }
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3692 {
3693 char *s;
3694 va_list v;
3695 va_start (v,p);
3696 s = g (p, va_arg (v,int));
3697 va_end (v);
3698 return s;
3699 }
3700
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3709
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3712 #define FOO(x) 'x'
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3714
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3719 int argc;
3720 char **argv;
3721 int
3722 main ()
3723 {
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3731 do
3732 CC="$ac_save_CC $ac_arg"
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3735 case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740 $as_echo "$ac_try_echo") >&5
3741 (eval "$ac_compile") 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } && {
3748 test -z "$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3750 } && test -s conftest.$ac_objext; then
3751 ac_cv_prog_cc_c89=$ac_arg
3752 else
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756
3757 fi
3758
3759 rm -f core conftest.err conftest.$ac_objext
3760 test "x$ac_cv_prog_cc_c89" != "xno" && break
3761 done
3762 rm -f conftest.$ac_ext
3763 CC=$ac_save_CC
3764
3765 fi
3766 # AC_CACHE_VAL
3767 case "x$ac_cv_prog_cc_c89" in
3768 x)
3769 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3770 $as_echo "none needed" >&6; } ;;
3771 xno)
3772 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3773 $as_echo "unsupported" >&6; } ;;
3774 *)
3775 CC="$CC $ac_cv_prog_cc_c89"
3776 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3777 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3778 esac
3779
3780
3781 ac_ext=c
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786
3787 depcc="$CC" am_compiler_list=
3788
3789 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3790 $as_echo_n "checking dependency style of $depcc... " >&6; }
3791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3795 # We make a subdir and do the tests there. Otherwise we can end up
3796 # making bogus files that we don't know about and never remove. For
3797 # instance it was reported that on HP-UX the gcc test will end up
3798 # making a dummy file named `D' -- because `-MD' means `put the output
3799 # in D'.
3800 mkdir conftest.dir
3801 # Copy depcomp to subdir because otherwise we won't find it if we're
3802 # using a relative directory.
3803 cp "$am_depcomp" conftest.dir
3804 cd conftest.dir
3805 # We will build objects and dependencies in a subdirectory because
3806 # it helps to detect inapplicable dependency modes. For instance
3807 # both Tru64's cc and ICC support -MD to output dependencies as a
3808 # side effect of compilation, but ICC will put the dependencies in
3809 # the current directory while Tru64 will put them in the object
3810 # directory.
3811 mkdir sub
3812
3813 am_cv_CC_dependencies_compiler_type=none
3814 if test "$am_compiler_list" = ""; then
3815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3816 fi
3817 am__universal=false
3818 case " $depcc " in #(
3819 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3820 esac
3821
3822 for depmode in $am_compiler_list; do
3823 # Setup a source with many dependencies, because some compilers
3824 # like to wrap large dependency lists on column 80 (with \), and
3825 # we should not choose a depcomp mode which is confused by this.
3826 #
3827 # We need to recreate these files for each test, as the compiler may
3828 # overwrite some of them when testing with obscure command lines.
3829 # This happens at least with the AIX C compiler.
3830 : > sub/conftest.c
3831 for i in 1 2 3 4 5 6; do
3832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834 # Solaris 8's {/usr,}/bin/sh.
3835 touch sub/conftst$i.h
3836 done
3837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838
3839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840 # mode. It turns out that the SunPro C++ compiler does not properly
3841 # handle `-M -o', and we need to detect this. Also, some Intel
3842 # versions had trouble with output in subdirs
3843 am__obj=sub/conftest.${OBJEXT-o}
3844 am__minus_obj="-o $am__obj"
3845 case $depmode in
3846 gcc)
3847 # This depmode causes a compiler race in universal mode.
3848 test "$am__universal" = false || continue
3849 ;;
3850 nosideeffect)
3851 # after this tag, mechanisms are not by side-effect, so they'll
3852 # only be used when explicitly requested
3853 if test "x$enable_dependency_tracking" = xyes; then
3854 continue
3855 else
3856 break
3857 fi
3858 ;;
3859 msvisualcpp | msvcmsys)
3860 # This compiler won't grok `-c -o', but also, the minuso test has
3861 # not run yet. These depmodes are late enough in the game, and
3862 # so weak that their functioning should not be impacted.
3863 am__obj=conftest.${OBJEXT-o}
3864 am__minus_obj=
3865 ;;
3866 none) break ;;
3867 esac
3868 if depmode=$depmode \
3869 source=sub/conftest.c object=$am__obj \
3870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3871 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3872 >/dev/null 2>conftest.err &&
3873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3875 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3877 # icc doesn't choke on unknown options, it will just issue warnings
3878 # or remarks (even with -Werror). So we grep stderr for any message
3879 # that says an option was ignored or not supported.
3880 # When given -MP, icc 7.0 and 7.1 complain thusly:
3881 # icc: Command line warning: ignoring option '-M'; no argument required
3882 # The diagnosis changed in icc 8.0:
3883 # icc: Command line remark: option '-MP' not supported
3884 if (grep 'ignoring option' conftest.err ||
3885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3886 am_cv_CC_dependencies_compiler_type=$depmode
3887 break
3888 fi
3889 fi
3890 done
3891
3892 cd ..
3893 rm -rf conftest.dir
3894 else
3895 am_cv_CC_dependencies_compiler_type=none
3896 fi
3897
3898 fi
3899 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3900 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3901 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3902
3903 if
3904 test "x$enable_dependency_tracking" != xno \
3905 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3906 am__fastdepCC_TRUE=
3907 am__fastdepCC_FALSE='#'
3908 else
3909 am__fastdepCC_TRUE='#'
3910 am__fastdepCC_FALSE=
3911 fi
3912
3913
3914 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3915 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3916 if test "${lt_cv_path_SED+set}" = set; then
3917 $as_echo_n "(cached) " >&6
3918 else
3919 # Loop through the user's path and test for sed and gsed.
3920 # Then use that list of sed's as ones to test for truncation.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924 IFS=$as_save_IFS
3925 test -z "$as_dir" && as_dir=.
3926 for lt_ac_prog in sed gsed; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3929 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3930 fi
3931 done
3932 done
3933 done
3934 IFS=$as_save_IFS
3935 lt_ac_max=0
3936 lt_ac_count=0
3937 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3938 # along with /bin/sed that truncates output.
3939 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3940 test ! -f $lt_ac_sed && continue
3941 cat /dev/null > conftest.in
3942 lt_ac_count=0
3943 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3944 # Check for GNU sed and select it if it is found.
3945 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3946 lt_cv_path_SED=$lt_ac_sed
3947 break
3948 fi
3949 while true; do
3950 cat conftest.in conftest.in >conftest.tmp
3951 mv conftest.tmp conftest.in
3952 cp conftest.in conftest.nl
3953 echo >>conftest.nl
3954 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3955 cmp -s conftest.out conftest.nl || break
3956 # 10000 chars as input seems more than enough
3957 test $lt_ac_count -gt 10 && break
3958 lt_ac_count=`expr $lt_ac_count + 1`
3959 if test $lt_ac_count -gt $lt_ac_max; then
3960 lt_ac_max=$lt_ac_count
3961 lt_cv_path_SED=$lt_ac_sed
3962 fi
3963 done
3964 done
3965
3966 fi
3967
3968 SED=$lt_cv_path_SED
3969
3970 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3971 $as_echo "$SED" >&6; }
3972
3973 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3974 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3975 if test "${ac_cv_path_GREP+set}" = set; then
3976 $as_echo_n "(cached) " >&6
3977 else
3978 if test -z "$GREP"; then
3979 ac_path_GREP_found=false
3980 # Loop through the user's path and test for each of PROGNAME-LIST
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983 do
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_prog in grep ggrep; do
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3989 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3990 # Check for GNU ac_path_GREP and select it if it is found.
3991 # Check for GNU $ac_path_GREP
3992 case `"$ac_path_GREP" --version 2>&1` in
3993 *GNU*)
3994 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3995 *)
3996 ac_count=0
3997 $as_echo_n 0123456789 >"conftest.in"
3998 while :
3999 do
4000 cat "conftest.in" "conftest.in" >"conftest.tmp"
4001 mv "conftest.tmp" "conftest.in"
4002 cp "conftest.in" "conftest.nl"
4003 $as_echo 'GREP' >> "conftest.nl"
4004 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4006 ac_count=`expr $ac_count + 1`
4007 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4008 # Best one so far, save it but keep looking for a better one
4009 ac_cv_path_GREP="$ac_path_GREP"
4010 ac_path_GREP_max=$ac_count
4011 fi
4012 # 10*(2^10) chars as input seems more than enough
4013 test $ac_count -gt 10 && break
4014 done
4015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 esac
4017
4018 $ac_path_GREP_found && break 3
4019 done
4020 done
4021 done
4022 IFS=$as_save_IFS
4023 if test -z "$ac_cv_path_GREP"; then
4024 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4025 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4026 { (exit 1); exit 1; }; }
4027 fi
4028 else
4029 ac_cv_path_GREP=$GREP
4030 fi
4031
4032 fi
4033 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034 $as_echo "$ac_cv_path_GREP" >&6; }
4035 GREP="$ac_cv_path_GREP"
4036
4037
4038 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4039 $as_echo_n "checking for egrep... " >&6; }
4040 if test "${ac_cv_path_EGREP+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044 then ac_cv_path_EGREP="$GREP -E"
4045 else
4046 if test -z "$EGREP"; then
4047 ac_path_EGREP_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 egrep; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4057 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4058 # Check for GNU ac_path_EGREP and select it if it is found.
4059 # Check for GNU $ac_path_EGREP
4060 case `"$ac_path_EGREP" --version 2>&1` in
4061 *GNU*)
4062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "conftest.nl"
4072 "$ac_path_EGREP" 'EGREP$' < "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_EGREP_max-0}; then
4076 # Best one so far, save it but keep looking for a better one
4077 ac_cv_path_EGREP="$ac_path_EGREP"
4078 ac_path_EGREP_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_EGREP_found && break 3
4087 done
4088 done
4089 done
4090 IFS=$as_save_IFS
4091 if test -z "$ac_cv_path_EGREP"; then
4092 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4093 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4094 { (exit 1); exit 1; }; }
4095 fi
4096 else
4097 ac_cv_path_EGREP=$EGREP
4098 fi
4099
4100 fi
4101 fi
4102 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4103 $as_echo "$ac_cv_path_EGREP" >&6; }
4104 EGREP="$ac_cv_path_EGREP"
4105
4106
4107
4108 # Check whether --with-gnu-ld was given.
4109 if test "${with_gnu_ld+set}" = set; then
4110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4111 else
4112 with_gnu_ld=no
4113 fi
4114
4115 ac_prog=ld
4116 if test "$GCC" = yes; then
4117 # Check if gcc -print-prog-name=ld gives a path.
4118 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4119 $as_echo_n "checking for ld used by $CC... " >&6; }
4120 case $host in
4121 *-*-mingw*)
4122 # gcc leaves a trailing carriage return which upsets mingw
4123 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4124 *)
4125 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4126 esac
4127 case $ac_prog in
4128 # Accept absolute paths.
4129 [\\/]* | ?:[\\/]*)
4130 re_direlt='/[^/][^/]*/\.\./'
4131 # Canonicalize the pathname of ld
4132 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4133 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4134 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4135 done
4136 test -z "$LD" && LD="$ac_prog"
4137 ;;
4138 "")
4139 # If it fails, then pretend we aren't using GCC.
4140 ac_prog=ld
4141 ;;
4142 *)
4143 # If it is relative, then search for the first ld in PATH.
4144 with_gnu_ld=unknown
4145 ;;
4146 esac
4147 elif test "$with_gnu_ld" = yes; then
4148 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4149 $as_echo_n "checking for GNU ld... " >&6; }
4150 else
4151 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4152 $as_echo_n "checking for non-GNU ld... " >&6; }
4153 fi
4154 if test "${lt_cv_path_LD+set}" = set; then
4155 $as_echo_n "(cached) " >&6
4156 else
4157 if test -z "$LD"; then
4158 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4159 for ac_dir in $PATH; do
4160 IFS="$lt_save_ifs"
4161 test -z "$ac_dir" && ac_dir=.
4162 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4163 lt_cv_path_LD="$ac_dir/$ac_prog"
4164 # Check to see if the program is GNU ld. I'd rather use --version,
4165 # but apparently some variants of GNU ld only accept -v.
4166 # Break only if it was the GNU/non-GNU ld that we prefer.
4167 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4168 *GNU* | *'with BFD'*)
4169 test "$with_gnu_ld" != no && break
4170 ;;
4171 *)
4172 test "$with_gnu_ld" != yes && break
4173 ;;
4174 esac
4175 fi
4176 done
4177 IFS="$lt_save_ifs"
4178 else
4179 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4180 fi
4181 fi
4182
4183 LD="$lt_cv_path_LD"
4184 if test -n "$LD"; then
4185 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4186 $as_echo "$LD" >&6; }
4187 else
4188 { $as_echo "$as_me:$LINENO: result: no" >&5
4189 $as_echo "no" >&6; }
4190 fi
4191 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4192 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4193 { (exit 1); exit 1; }; }
4194 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4195 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4196 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4197 $as_echo_n "(cached) " >&6
4198 else
4199 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4200 case `$LD -v 2>&1 </dev/null` in
4201 *GNU* | *'with BFD'*)
4202 lt_cv_prog_gnu_ld=yes
4203 ;;
4204 *)
4205 lt_cv_prog_gnu_ld=no
4206 ;;
4207 esac
4208 fi
4209 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4210 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4211 with_gnu_ld=$lt_cv_prog_gnu_ld
4212
4213
4214 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4215 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4216 if test "${lt_cv_ld_reload_flag+set}" = set; then
4217 $as_echo_n "(cached) " >&6
4218 else
4219 lt_cv_ld_reload_flag='-r'
4220 fi
4221 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4222 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4223 reload_flag=$lt_cv_ld_reload_flag
4224 case $reload_flag in
4225 "" | " "*) ;;
4226 *) reload_flag=" $reload_flag" ;;
4227 esac
4228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4229 case $host_os in
4230 darwin*)
4231 if test "$GCC" = yes; then
4232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4233 else
4234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4235 fi
4236 ;;
4237 esac
4238
4239 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4240 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4241 if test "${lt_cv_path_NM+set}" = set; then
4242 $as_echo_n "(cached) " >&6
4243 else
4244 if test -n "$NM"; then
4245 # Let the user override the test.
4246 lt_cv_path_NM="$NM"
4247 else
4248 lt_nm_to_check="${ac_tool_prefix}nm"
4249 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4250 lt_nm_to_check="$lt_nm_to_check nm"
4251 fi
4252 for lt_tmp_nm in $lt_nm_to_check; do
4253 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4254 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4255 IFS="$lt_save_ifs"
4256 test -z "$ac_dir" && ac_dir=.
4257 tmp_nm="$ac_dir/$lt_tmp_nm"
4258 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4259 # Check to see if the nm accepts a BSD-compat flag.
4260 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4261 # nm: unknown option "B" ignored
4262 # Tru64's nm complains that /dev/null is an invalid object file
4263 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4264 */dev/null* | *'Invalid file or object type'*)
4265 lt_cv_path_NM="$tmp_nm -B"
4266 break
4267 ;;
4268 *)
4269 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4270 */dev/null*)
4271 lt_cv_path_NM="$tmp_nm -p"
4272 break
4273 ;;
4274 *)
4275 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4276 continue # so that we can try to find one that supports BSD flags
4277 ;;
4278 esac
4279 ;;
4280 esac
4281 fi
4282 done
4283 IFS="$lt_save_ifs"
4284 done
4285 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4286 fi
4287 fi
4288 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4289 $as_echo "$lt_cv_path_NM" >&6; }
4290 NM="$lt_cv_path_NM"
4291
4292 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4293 $as_echo_n "checking whether ln -s works... " >&6; }
4294 LN_S=$as_ln_s
4295 if test "$LN_S" = "ln -s"; then
4296 { $as_echo "$as_me:$LINENO: result: yes" >&5
4297 $as_echo "yes" >&6; }
4298 else
4299 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4300 $as_echo "no, using $LN_S" >&6; }
4301 fi
4302
4303 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4304 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4305 if test "${lt_cv_deplibs_check_method+set}" = set; then
4306 $as_echo_n "(cached) " >&6
4307 else
4308 lt_cv_file_magic_cmd='$MAGIC_CMD'
4309 lt_cv_file_magic_test_file=
4310 lt_cv_deplibs_check_method='unknown'
4311 # Need to set the preceding variable on all platforms that support
4312 # interlibrary dependencies.
4313 # 'none' -- dependencies not supported.
4314 # `unknown' -- same as none, but documents that we really don't know.
4315 # 'pass_all' -- all dependencies passed with no checks.
4316 # 'test_compile' -- check by making test program.
4317 # 'file_magic [[regex]]' -- check by looking for files in library path
4318 # which responds to the $file_magic_cmd with a given extended regex.
4319 # If you have `file' or equivalent on your system and you're not sure
4320 # whether `pass_all' will *always* work, you probably want this one.
4321
4322 case $host_os in
4323 aix[4-9]*)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326
4327 beos*)
4328 lt_cv_deplibs_check_method=pass_all
4329 ;;
4330
4331 bsdi[45]*)
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4333 lt_cv_file_magic_cmd='/usr/bin/file -L'
4334 lt_cv_file_magic_test_file=/shlib/libc.so
4335 ;;
4336
4337 cygwin*)
4338 # func_win32_libid is a shell function defined in ltmain.sh
4339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4340 lt_cv_file_magic_cmd='func_win32_libid'
4341 ;;
4342
4343 mingw* | pw32*)
4344 # Base MSYS/MinGW do not provide the 'file' command needed by
4345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4346 # unless we find 'file', for example because we are cross-compiling.
4347 if ( file / ) >/dev/null 2>&1; then
4348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4349 lt_cv_file_magic_cmd='func_win32_libid'
4350 else
4351 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4352 lt_cv_file_magic_cmd='$OBJDUMP -f'
4353 fi
4354 ;;
4355
4356 darwin* | rhapsody*)
4357 lt_cv_deplibs_check_method=pass_all
4358 ;;
4359
4360 freebsd* | dragonfly*)
4361 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4362 case $host_cpu in
4363 i*86 )
4364 # Not sure whether the presence of OpenBSD here was a mistake.
4365 # Let's accept both of them until this is cleared up.
4366 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4367 lt_cv_file_magic_cmd=/usr/bin/file
4368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4369 ;;
4370 esac
4371 else
4372 lt_cv_deplibs_check_method=pass_all
4373 fi
4374 ;;
4375
4376 gnu*)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379
4380 hpux10.20* | hpux11*)
4381 lt_cv_file_magic_cmd=/usr/bin/file
4382 case $host_cpu in
4383 ia64*)
4384 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4385 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4386 ;;
4387 hppa*64*)
4388 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]'
4389 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4390 ;;
4391 *)
4392 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4393 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4394 ;;
4395 esac
4396 ;;
4397
4398 interix[3-9]*)
4399 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4401 ;;
4402
4403 irix5* | irix6* | nonstopux*)
4404 case $LD in
4405 *-32|*"-32 ") libmagic=32-bit;;
4406 *-n32|*"-n32 ") libmagic=N32;;
4407 *-64|*"-64 ") libmagic=64-bit;;
4408 *) libmagic=never-match;;
4409 esac
4410 lt_cv_deplibs_check_method=pass_all
4411 ;;
4412
4413 # This must be Linux ELF.
4414 linux* | k*bsd*-gnu)
4415 lt_cv_deplibs_check_method=pass_all
4416 ;;
4417
4418 netbsd*)
4419 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4421 else
4422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4423 fi
4424 ;;
4425
4426 newos6*)
4427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4428 lt_cv_file_magic_cmd=/usr/bin/file
4429 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4430 ;;
4431
4432 nto-qnx*)
4433 lt_cv_deplibs_check_method=unknown
4434 ;;
4435
4436 openbsd*)
4437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4438 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4439 else
4440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4441 fi
4442 ;;
4443
4444 osf3* | osf4* | osf5*)
4445 lt_cv_deplibs_check_method=pass_all
4446 ;;
4447
4448 rdos*)
4449 lt_cv_deplibs_check_method=pass_all
4450 ;;
4451
4452 solaris*)
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455
4456 sysv4 | sysv4.3*)
4457 case $host_vendor in
4458 motorola)
4459 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]'
4460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4461 ;;
4462 ncr)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
4465 sequent)
4466 lt_cv_file_magic_cmd='/bin/file'
4467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4468 ;;
4469 sni)
4470 lt_cv_file_magic_cmd='/bin/file'
4471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4472 lt_cv_file_magic_test_file=/lib/libc.so
4473 ;;
4474 siemens)
4475 lt_cv_deplibs_check_method=pass_all
4476 ;;
4477 pc)
4478 lt_cv_deplibs_check_method=pass_all
4479 ;;
4480 esac
4481 ;;
4482
4483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4484 lt_cv_deplibs_check_method=pass_all
4485 ;;
4486 esac
4487
4488 fi
4489 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4490 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4491 file_magic_cmd=$lt_cv_file_magic_cmd
4492 deplibs_check_method=$lt_cv_deplibs_check_method
4493 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4494
4495
4496
4497
4498 # If no C compiler was specified, use CC.
4499 LTCC=${LTCC-"$CC"}
4500
4501 # If no C compiler flags were specified, use CFLAGS.
4502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4503
4504 # Allow CC to be a program name with arguments.
4505 compiler=$CC
4506
4507
4508 # Check whether --enable-libtool-lock was given.
4509 if test "${enable_libtool_lock+set}" = set; then
4510 enableval=$enable_libtool_lock;
4511 fi
4512
4513 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4514
4515 # Some flags need to be propagated to the compiler or linker for good
4516 # libtool support.
4517 case $host in
4518 ia64-*-hpux*)
4519 # Find out which ABI we are using.
4520 echo 'int i;' > conftest.$ac_ext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); }; then
4526 case `/usr/bin/file conftest.$ac_objext` in
4527 *ELF-32*)
4528 HPUX_IA64_MODE="32"
4529 ;;
4530 *ELF-64*)
4531 HPUX_IA64_MODE="64"
4532 ;;
4533 esac
4534 fi
4535 rm -rf conftest*
4536 ;;
4537 *-*-irix6*)
4538 # Find out which ABI we are using.
4539 echo '#line 4539 "configure"' > conftest.$ac_ext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541 (eval $ac_compile) 2>&5
4542 ac_status=$?
4543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 if test "$lt_cv_prog_gnu_ld" = yes; then
4546 case `/usr/bin/file conftest.$ac_objext` in
4547 *32-bit*)
4548 LD="${LD-ld} -melf32bsmip"
4549 ;;
4550 *N32*)
4551 LD="${LD-ld} -melf32bmipn32"
4552 ;;
4553 *64-bit*)
4554 LD="${LD-ld} -melf64bmip"
4555 ;;
4556 esac
4557 else
4558 case `/usr/bin/file conftest.$ac_objext` in
4559 *32-bit*)
4560 LD="${LD-ld} -32"
4561 ;;
4562 *N32*)
4563 LD="${LD-ld} -n32"
4564 ;;
4565 *64-bit*)
4566 LD="${LD-ld} -64"
4567 ;;
4568 esac
4569 fi
4570 fi
4571 rm -rf conftest*
4572 ;;
4573
4574 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4575 s390*-*linux*|sparc*-*linux*)
4576 # Find out which ABI we are using.
4577 echo 'int i;' > conftest.$ac_ext
4578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579 (eval $ac_compile) 2>&5
4580 ac_status=$?
4581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; then
4583 case `/usr/bin/file conftest.o` in
4584 *32-bit*)
4585 case $host in
4586 x86_64-*kfreebsd*-gnu)
4587 LD="${LD-ld} -m elf_i386_fbsd"
4588 ;;
4589 x86_64-*linux*)
4590 LD="${LD-ld} -m elf_i386"
4591 ;;
4592 ppc64-*linux*|powerpc64-*linux*)
4593 LD="${LD-ld} -m elf32ppclinux"
4594 ;;
4595 s390x-*linux*)
4596 LD="${LD-ld} -m elf_s390"
4597 ;;
4598 sparc64-*linux*)
4599 LD="${LD-ld} -m elf32_sparc"
4600 ;;
4601 esac
4602 ;;
4603 *64-bit*)
4604 libsuff=64
4605 case $host in
4606 x86_64-*kfreebsd*-gnu)
4607 LD="${LD-ld} -m elf_x86_64_fbsd"
4608 ;;
4609 x86_64-*linux*)
4610 LD="${LD-ld} -m elf_x86_64"
4611 ;;
4612 ppc*-*linux*|powerpc*-*linux*)
4613 LD="${LD-ld} -m elf64ppc"
4614 ;;
4615 s390*-*linux*)
4616 LD="${LD-ld} -m elf64_s390"
4617 ;;
4618 sparc*-*linux*)
4619 LD="${LD-ld} -m elf64_sparc"
4620 ;;
4621 esac
4622 ;;
4623 esac
4624 fi
4625 rm -rf conftest*
4626 ;;
4627
4628 *-*-sco3.2v5*)
4629 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4630 SAVE_CFLAGS="$CFLAGS"
4631 CFLAGS="$CFLAGS -belf"
4632 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4633 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4634 if test "${lt_cv_cc_needs_belf+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_ext=c
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649
4650 int
4651 main ()
4652 {
4653
4654 ;
4655 return 0;
4656 }
4657 _ACEOF
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (ac_try="$ac_link"
4660 case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_link") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && {
4673 test -z "$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 } && test -s conftest$ac_exeext && {
4676 test "$cross_compiling" = yes ||
4677 $as_test_x conftest$ac_exeext
4678 }; then
4679 lt_cv_cc_needs_belf=yes
4680 else
4681 $as_echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684 lt_cv_cc_needs_belf=no
4685 fi
4686
4687 rm -rf conftest.dSYM
4688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4689 conftest$ac_exeext conftest.$ac_ext
4690 ac_ext=c
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695
4696 fi
4697 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4698 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4699 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4701 CFLAGS="$SAVE_CFLAGS"
4702 fi
4703 ;;
4704 sparc*-*solaris*)
4705 # Find out which ABI we are using.
4706 echo 'int i;' > conftest.$ac_ext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>&5
4709 ac_status=$?
4710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; then
4712 case `/usr/bin/file conftest.o` in
4713 *64-bit*)
4714 case $lt_cv_prog_gnu_ld in
4715 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4716 *)
4717 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4718 LD="${LD-ld} -64"
4719 fi
4720 ;;
4721 esac
4722 ;;
4723 esac
4724 fi
4725 rm -rf conftest*
4726 ;;
4727
4728
4729 esac
4730
4731 need_locks="$enable_libtool_lock"
4732
4733
4734 ac_ext=c
4735 ac_cpp='$CPP $CPPFLAGS'
4736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4740 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4741 # On Suns, sometimes $CPP names a directory.
4742 if test -n "$CPP" && test -d "$CPP"; then
4743 CPP=
4744 fi
4745 if test -z "$CPP"; then
4746 if test "${ac_cv_prog_CPP+set}" = set; then
4747 $as_echo_n "(cached) " >&6
4748 else
4749 # Double quotes because CPP needs to be expanded
4750 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4751 do
4752 ac_preproc_ok=false
4753 for ac_c_preproc_warn_flag in '' yes
4754 do
4755 # Use a header file that comes with gcc, so configuring glibc
4756 # with a fresh cross-compiler works.
4757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4758 # <limits.h> exists even on freestanding compilers.
4759 # On the NeXT, cc -E runs the code through the compiler's parser,
4760 # not just through cpp. "Syntax error" is here to catch this case.
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #ifdef __STDC__
4768 # include <limits.h>
4769 #else
4770 # include <assert.h>
4771 #endif
4772 Syntax error
4773 _ACEOF
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4780 $as_echo "$ac_try_echo") >&5
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null && {
4788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4789 test ! -s conftest.err
4790 }; then
4791 :
4792 else
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 # Broken: fails on valid input.
4797 continue
4798 fi
4799
4800 rm -f conftest.err conftest.$ac_ext
4801
4802 # OK, works on sane cases. Now check whether nonexistent headers
4803 # can be detected and how.
4804 cat >conftest.$ac_ext <<_ACEOF
4805 /* confdefs.h. */
4806 _ACEOF
4807 cat confdefs.h >>conftest.$ac_ext
4808 cat >>conftest.$ac_ext <<_ACEOF
4809 /* end confdefs.h. */
4810 #include <ac_nonexistent.h>
4811 _ACEOF
4812 if { (ac_try="$ac_cpp conftest.$ac_ext"
4813 case "(($ac_try" in
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4816 esac
4817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4818 $as_echo "$ac_try_echo") >&5
4819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4820 ac_status=$?
4821 grep -v '^ *+' conftest.er1 >conftest.err
4822 rm -f conftest.er1
4823 cat conftest.err >&5
4824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } >/dev/null && {
4826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4827 test ! -s conftest.err
4828 }; then
4829 # Broken: success on invalid input.
4830 continue
4831 else
4832 $as_echo "$as_me: failed program was:" >&5
4833 sed 's/^/| /' conftest.$ac_ext >&5
4834
4835 # Passes both tests.
4836 ac_preproc_ok=:
4837 break
4838 fi
4839
4840 rm -f conftest.err conftest.$ac_ext
4841
4842 done
4843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4844 rm -f conftest.err conftest.$ac_ext
4845 if $ac_preproc_ok; then
4846 break
4847 fi
4848
4849 done
4850 ac_cv_prog_CPP=$CPP
4851
4852 fi
4853 CPP=$ac_cv_prog_CPP
4854 else
4855 ac_cv_prog_CPP=$CPP
4856 fi
4857 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4858 $as_echo "$CPP" >&6; }
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #ifdef __STDC__
4875 # include <limits.h>
4876 #else
4877 # include <assert.h>
4878 #endif
4879 Syntax error
4880 _ACEOF
4881 if { (ac_try="$ac_cpp conftest.$ac_ext"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 }; then
4898 :
4899 else
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 # Broken: fails on valid input.
4904 continue
4905 fi
4906
4907 rm -f conftest.err conftest.$ac_ext
4908
4909 # OK, works on sane cases. Now check whether nonexistent headers
4910 # can be detected and how.
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4917 #include <ac_nonexistent.h>
4918 _ACEOF
4919 if { (ac_try="$ac_cpp conftest.$ac_ext"
4920 case "(($ac_try" in
4921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922 *) ac_try_echo=$ac_try;;
4923 esac
4924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4925 $as_echo "$ac_try_echo") >&5
4926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4927 ac_status=$?
4928 grep -v '^ *+' conftest.er1 >conftest.err
4929 rm -f conftest.er1
4930 cat conftest.err >&5
4931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); } >/dev/null && {
4933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4934 test ! -s conftest.err
4935 }; then
4936 # Broken: success on invalid input.
4937 continue
4938 else
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4941
4942 # Passes both tests.
4943 ac_preproc_ok=:
4944 break
4945 fi
4946
4947 rm -f conftest.err conftest.$ac_ext
4948
4949 done
4950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4951 rm -f conftest.err conftest.$ac_ext
4952 if $ac_preproc_ok; then
4953 :
4954 else
4955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4957 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4958 See \`config.log' for more details." >&5
4959 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4960 See \`config.log' for more details." >&2;}
4961 { (exit 1); exit 1; }; }; }
4962 fi
4963
4964 ac_ext=c
4965 ac_cpp='$CPP $CPPFLAGS'
4966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4969
4970
4971 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4972 $as_echo_n "checking for ANSI C header files... " >&6; }
4973 if test "${ac_cv_header_stdc+set}" = set; then
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 #include <stdlib.h>
4983 #include <stdarg.h>
4984 #include <string.h>
4985 #include <float.h>
4986
4987 int
4988 main ()
4989 {
4990
4991 ;
4992 return 0;
4993 }
4994 _ACEOF
4995 rm -f conftest.$ac_objext
4996 if { (ac_try="$ac_compile"
4997 case "(($ac_try" in
4998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4999 *) ac_try_echo=$ac_try;;
5000 esac
5001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5002 $as_echo "$ac_try_echo") >&5
5003 (eval "$ac_compile") 2>conftest.er1
5004 ac_status=$?
5005 grep -v '^ *+' conftest.er1 >conftest.err
5006 rm -f conftest.er1
5007 cat conftest.err >&5
5008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); } && {
5010 test -z "$ac_c_werror_flag" ||
5011 test ! -s conftest.err
5012 } && test -s conftest.$ac_objext; then
5013 ac_cv_header_stdc=yes
5014 else
5015 $as_echo "$as_me: failed program was:" >&5
5016 sed 's/^/| /' conftest.$ac_ext >&5
5017
5018 ac_cv_header_stdc=no
5019 fi
5020
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022
5023 if test $ac_cv_header_stdc = yes; then
5024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5025 cat >conftest.$ac_ext <<_ACEOF
5026 /* confdefs.h. */
5027 _ACEOF
5028 cat confdefs.h >>conftest.$ac_ext
5029 cat >>conftest.$ac_ext <<_ACEOF
5030 /* end confdefs.h. */
5031 #include <string.h>
5032
5033 _ACEOF
5034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5035 $EGREP "memchr" >/dev/null 2>&1; then
5036 :
5037 else
5038 ac_cv_header_stdc=no
5039 fi
5040 rm -f conftest*
5041
5042 fi
5043
5044 if test $ac_cv_header_stdc = yes; then
5045 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5046 cat >conftest.$ac_ext <<_ACEOF
5047 /* confdefs.h. */
5048 _ACEOF
5049 cat confdefs.h >>conftest.$ac_ext
5050 cat >>conftest.$ac_ext <<_ACEOF
5051 /* end confdefs.h. */
5052 #include <stdlib.h>
5053
5054 _ACEOF
5055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5056 $EGREP "free" >/dev/null 2>&1; then
5057 :
5058 else
5059 ac_cv_header_stdc=no
5060 fi
5061 rm -f conftest*
5062
5063 fi
5064
5065 if test $ac_cv_header_stdc = yes; then
5066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5067 if test "$cross_compiling" = yes; then
5068 :
5069 else
5070 cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h. */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <ctype.h>
5077 #include <stdlib.h>
5078 #if ((' ' & 0x0FF) == 0x020)
5079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5081 #else
5082 # define ISLOWER(c) \
5083 (('a' <= (c) && (c) <= 'i') \
5084 || ('j' <= (c) && (c) <= 'r') \
5085 || ('s' <= (c) && (c) <= 'z'))
5086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5087 #endif
5088
5089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5090 int
5091 main ()
5092 {
5093 int i;
5094 for (i = 0; i < 256; i++)
5095 if (XOR (islower (i), ISLOWER (i))
5096 || toupper (i) != TOUPPER (i))
5097 return 2;
5098 return 0;
5099 }
5100 _ACEOF
5101 rm -f conftest$ac_exeext
5102 if { (ac_try="$ac_link"
5103 case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5108 $as_echo "$ac_try_echo") >&5
5109 (eval "$ac_link") 2>&5
5110 ac_status=$?
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5113 { (case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116 esac
5117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118 $as_echo "$ac_try_echo") >&5
5119 (eval "$ac_try") 2>&5
5120 ac_status=$?
5121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 :
5124 else
5125 $as_echo "$as_me: program exited with status $ac_status" >&5
5126 $as_echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ( exit $ac_status )
5130 ac_cv_header_stdc=no
5131 fi
5132 rm -rf conftest.dSYM
5133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5134 fi
5135
5136
5137 fi
5138 fi
5139 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5140 $as_echo "$ac_cv_header_stdc" >&6; }
5141 if test $ac_cv_header_stdc = yes; then
5142
5143 cat >>confdefs.h <<\_ACEOF
5144 #define STDC_HEADERS 1
5145 _ACEOF
5146
5147 fi
5148
5149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5160 inttypes.h stdint.h unistd.h
5161 do
5162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5163 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5164 $as_echo_n "checking for $ac_header... " >&6; }
5165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166 $as_echo_n "(cached) " >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175
5176 #include <$ac_header>
5177 _ACEOF
5178 rm -f conftest.$ac_objext
5179 if { (ac_try="$ac_compile"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185 $as_echo "$ac_try_echo") >&5
5186 (eval "$ac_compile") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest.$ac_objext; then
5196 eval "$as_ac_Header=yes"
5197 else
5198 $as_echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 eval "$as_ac_Header=no"
5202 fi
5203
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 fi
5206 ac_res=`eval 'as_val=${'$as_ac_Header'}
5207 $as_echo "$as_val"'`
5208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5209 $as_echo "$ac_res" >&6; }
5210 as_val=`eval 'as_val=${'$as_ac_Header'}
5211 $as_echo "$as_val"'`
5212 if test "x$as_val" = x""yes; then
5213 cat >>confdefs.h <<_ACEOF
5214 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 _ACEOF
5216
5217 fi
5218
5219 done
5220
5221
5222
5223 for ac_header in dlfcn.h
5224 do
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5228 $as_echo_n "checking for $ac_header... " >&6; }
5229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5230 $as_echo_n "(cached) " >&6
5231 fi
5232 ac_res=`eval 'as_val=${'$as_ac_Header'}
5233 $as_echo "$as_val"'`
5234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5235 $as_echo "$ac_res" >&6; }
5236 else
5237 # Is the header compilable?
5238 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5239 $as_echo_n "checking $ac_header usability... " >&6; }
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246 $ac_includes_default
5247 #include <$ac_header>
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (ac_try="$ac_compile"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5256 $as_echo "$ac_try_echo") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5267 ac_header_compiler=yes
5268 else
5269 $as_echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_header_compiler=no
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5277 $as_echo "$ac_header_compiler" >&6; }
5278
5279 # Is the header present?
5280 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5281 $as_echo_n "checking $ac_header presence... " >&6; }
5282 cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h. */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5288 #include <$ac_header>
5289 _ACEOF
5290 if { (ac_try="$ac_cpp conftest.$ac_ext"
5291 case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294 esac
5295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296 $as_echo "$ac_try_echo") >&5
5297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } >/dev/null && {
5304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 }; then
5307 ac_header_preproc=yes
5308 else
5309 $as_echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 ac_header_preproc=no
5313 fi
5314
5315 rm -f conftest.err conftest.$ac_ext
5316 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5317 $as_echo "$ac_header_preproc" >&6; }
5318
5319 # So? What about this header?
5320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5321 yes:no: )
5322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5323 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5326 ac_header_preproc=yes
5327 ;;
5328 no:yes:* )
5329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5330 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5332 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5334 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5336 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5338 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5340 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5341 ( cat <<\_ASBOX
5342 ## ---------------------------------------------------------------------- ##
5343 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5344 ## ---------------------------------------------------------------------- ##
5345 _ASBOX
5346 ) | sed "s/^/$as_me: WARNING: /" >&2
5347 ;;
5348 esac
5349 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5350 $as_echo_n "checking for $ac_header... " >&6; }
5351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5352 $as_echo_n "(cached) " >&6
5353 else
5354 eval "$as_ac_Header=\$ac_header_preproc"
5355 fi
5356 ac_res=`eval 'as_val=${'$as_ac_Header'}
5357 $as_echo "$as_val"'`
5358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5359 $as_echo "$ac_res" >&6; }
5360
5361 fi
5362 as_val=`eval 'as_val=${'$as_ac_Header'}
5363 $as_echo "$as_val"'`
5364 if test "x$as_val" = x""yes; then
5365 cat >>confdefs.h <<_ACEOF
5366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5367 _ACEOF
5368
5369 fi
5370
5371 done
5372
5373 ac_ext=cpp
5374 ac_cpp='$CXXCPP $CPPFLAGS'
5375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5378 if test -z "$CXX"; then
5379 if test -n "$CCC"; then
5380 CXX=$CCC
5381 else
5382 if test -n "$ac_tool_prefix"; then
5383 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5384 do
5385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_CXX+set}" = set; then
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$CXX"; then
5393 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 CXX=$ac_cv_prog_CXX
5413 if test -n "$CXX"; then
5414 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5415 $as_echo "$CXX" >&6; }
5416 else
5417 { $as_echo "$as_me:$LINENO: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421
5422 test -n "$CXX" && break
5423 done
5424 fi
5425 if test -z "$CXX"; then
5426 ac_ct_CXX=$CXX
5427 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5428 do
5429 # Extract the first word of "$ac_prog", so it can be a program name with args.
5430 set dummy $ac_prog; ac_word=$2
5431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$ac_ct_CXX"; then
5437 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5441 do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_ac_ct_CXX="$ac_prog"
5447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5449 fi
5450 done
5451 done
5452 IFS=$as_save_IFS
5453
5454 fi
5455 fi
5456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5457 if test -n "$ac_ct_CXX"; then
5458 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5459 $as_echo "$ac_ct_CXX" >&6; }
5460 else
5461 { $as_echo "$as_me:$LINENO: result: no" >&5
5462 $as_echo "no" >&6; }
5463 fi
5464
5465
5466 test -n "$ac_ct_CXX" && break
5467 done
5468
5469 if test "x$ac_ct_CXX" = x; then
5470 CXX="g++"
5471 else
5472 case $cross_compiling:$ac_tool_warned in
5473 yes:)
5474 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476 ac_tool_warned=yes ;;
5477 esac
5478 CXX=$ac_ct_CXX
5479 fi
5480 fi
5481
5482 fi
5483 fi
5484 # Provide some information about the compiler.
5485 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5486 set X $ac_compile
5487 ac_compiler=$2
5488 { (ac_try="$ac_compiler --version >&5"
5489 case "(($ac_try" in
5490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491 *) ac_try_echo=$ac_try;;
5492 esac
5493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5494 $as_echo "$ac_try_echo") >&5
5495 (eval "$ac_compiler --version >&5") 2>&5
5496 ac_status=$?
5497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }
5499 { (ac_try="$ac_compiler -v >&5"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5505 $as_echo "$ac_try_echo") >&5
5506 (eval "$ac_compiler -v >&5") 2>&5
5507 ac_status=$?
5508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); }
5510 { (ac_try="$ac_compiler -V >&5"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5516 $as_echo "$ac_try_echo") >&5
5517 (eval "$ac_compiler -V >&5") 2>&5
5518 ac_status=$?
5519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }
5521
5522 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5525 $as_echo_n "(cached) " >&6
5526 else
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533
5534 int
5535 main ()
5536 {
5537 #ifndef __GNUC__
5538 choke me
5539 #endif
5540
5541 ;
5542 return 0;
5543 }
5544 _ACEOF
5545 rm -f conftest.$ac_objext
5546 if { (ac_try="$ac_compile"
5547 case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550 esac
5551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5552 $as_echo "$ac_try_echo") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } && {
5560 test -z "$ac_cxx_werror_flag" ||
5561 test ! -s conftest.err
5562 } && test -s conftest.$ac_objext; then
5563 ac_compiler_gnu=yes
5564 else
5565 $as_echo "$as_me: failed program was:" >&5
5566 sed 's/^/| /' conftest.$ac_ext >&5
5567
5568 ac_compiler_gnu=no
5569 fi
5570
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5573
5574 fi
5575 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5576 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5577 if test $ac_compiler_gnu = yes; then
5578 GXX=yes
5579 else
5580 GXX=
5581 fi
5582 ac_test_CXXFLAGS=${CXXFLAGS+set}
5583 ac_save_CXXFLAGS=$CXXFLAGS
5584 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5585 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5586 if test "${ac_cv_prog_cxx_g+set}" = set; then
5587 $as_echo_n "(cached) " >&6
5588 else
5589 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5590 ac_cxx_werror_flag=yes
5591 ac_cv_prog_cxx_g=no
5592 CXXFLAGS="-g"
5593 cat >conftest.$ac_ext <<_ACEOF
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599
5600 int
5601 main ()
5602 {
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 rm -f conftest.$ac_objext
5609 if { (ac_try="$ac_compile"
5610 case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616 (eval "$ac_compile") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && {
5623 test -z "$ac_cxx_werror_flag" ||
5624 test ! -s conftest.err
5625 } && test -s conftest.$ac_objext; then
5626 ac_cv_prog_cxx_g=yes
5627 else
5628 $as_echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 CXXFLAGS=""
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638
5639 int
5640 main ()
5641 {
5642
5643 ;
5644 return 0;
5645 }
5646 _ACEOF
5647 rm -f conftest.$ac_objext
5648 if { (ac_try="$ac_compile"
5649 case "(($ac_try" in
5650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5652 esac
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_cxx_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 :
5666 else
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5669
5670 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5671 CXXFLAGS="-g"
5672 cat >conftest.$ac_ext <<_ACEOF
5673 /* confdefs.h. */
5674 _ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678
5679 int
5680 main ()
5681 {
5682
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext
5688 if { (ac_try="$ac_compile"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5694 $as_echo "$ac_try_echo") >&5
5695 (eval "$ac_compile") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_cxx_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest.$ac_objext; then
5705 ac_cv_prog_cxx_g=yes
5706 else
5707 $as_echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710
5711 fi
5712
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 fi
5715
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 fi
5718
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5721 fi
5722 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5723 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5724 if test "$ac_test_CXXFLAGS" = set; then
5725 CXXFLAGS=$ac_save_CXXFLAGS
5726 elif test $ac_cv_prog_cxx_g = yes; then
5727 if test "$GXX" = yes; then
5728 CXXFLAGS="-g -O2"
5729 else
5730 CXXFLAGS="-g"
5731 fi
5732 else
5733 if test "$GXX" = yes; then
5734 CXXFLAGS="-O2"
5735 else
5736 CXXFLAGS=
5737 fi
5738 fi
5739 ac_ext=cpp
5740 ac_cpp='$CXXCPP $CPPFLAGS'
5741 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5742 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5743 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5744
5745 depcc="$CXX" am_compiler_list=
5746
5747 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5748 $as_echo_n "checking dependency style of $depcc... " >&6; }
5749 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5753 # We make a subdir and do the tests there. Otherwise we can end up
5754 # making bogus files that we don't know about and never remove. For
5755 # instance it was reported that on HP-UX the gcc test will end up
5756 # making a dummy file named `D' -- because `-MD' means `put the output
5757 # in D'.
5758 mkdir conftest.dir
5759 # Copy depcomp to subdir because otherwise we won't find it if we're
5760 # using a relative directory.
5761 cp "$am_depcomp" conftest.dir
5762 cd conftest.dir
5763 # We will build objects and dependencies in a subdirectory because
5764 # it helps to detect inapplicable dependency modes. For instance
5765 # both Tru64's cc and ICC support -MD to output dependencies as a
5766 # side effect of compilation, but ICC will put the dependencies in
5767 # the current directory while Tru64 will put them in the object
5768 # directory.
5769 mkdir sub
5770
5771 am_cv_CXX_dependencies_compiler_type=none
5772 if test "$am_compiler_list" = ""; then
5773 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5774 fi
5775 am__universal=false
5776 case " $depcc " in #(
5777 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5778 esac
5779
5780 for depmode in $am_compiler_list; do
5781 # Setup a source with many dependencies, because some compilers
5782 # like to wrap large dependency lists on column 80 (with \), and
5783 # we should not choose a depcomp mode which is confused by this.
5784 #
5785 # We need to recreate these files for each test, as the compiler may
5786 # overwrite some of them when testing with obscure command lines.
5787 # This happens at least with the AIX C compiler.
5788 : > sub/conftest.c
5789 for i in 1 2 3 4 5 6; do
5790 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5791 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5792 # Solaris 8's {/usr,}/bin/sh.
5793 touch sub/conftst$i.h
5794 done
5795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5796
5797 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5798 # mode. It turns out that the SunPro C++ compiler does not properly
5799 # handle `-M -o', and we need to detect this. Also, some Intel
5800 # versions had trouble with output in subdirs
5801 am__obj=sub/conftest.${OBJEXT-o}
5802 am__minus_obj="-o $am__obj"
5803 case $depmode in
5804 gcc)
5805 # This depmode causes a compiler race in universal mode.
5806 test "$am__universal" = false || continue
5807 ;;
5808 nosideeffect)
5809 # after this tag, mechanisms are not by side-effect, so they'll
5810 # only be used when explicitly requested
5811 if test "x$enable_dependency_tracking" = xyes; then
5812 continue
5813 else
5814 break
5815 fi
5816 ;;
5817 msvisualcpp | msvcmsys)
5818 # This compiler won't grok `-c -o', but also, the minuso test has
5819 # not run yet. These depmodes are late enough in the game, and
5820 # so weak that their functioning should not be impacted.
5821 am__obj=conftest.${OBJEXT-o}
5822 am__minus_obj=
5823 ;;
5824 none) break ;;
5825 esac
5826 if depmode=$depmode \
5827 source=sub/conftest.c object=$am__obj \
5828 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5829 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5830 >/dev/null 2>conftest.err &&
5831 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5832 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5833 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5834 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5835 # icc doesn't choke on unknown options, it will just issue warnings
5836 # or remarks (even with -Werror). So we grep stderr for any message
5837 # that says an option was ignored or not supported.
5838 # When given -MP, icc 7.0 and 7.1 complain thusly:
5839 # icc: Command line warning: ignoring option '-M'; no argument required
5840 # The diagnosis changed in icc 8.0:
5841 # icc: Command line remark: option '-MP' not supported
5842 if (grep 'ignoring option' conftest.err ||
5843 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5844 am_cv_CXX_dependencies_compiler_type=$depmode
5845 break
5846 fi
5847 fi
5848 done
5849
5850 cd ..
5851 rm -rf conftest.dir
5852 else
5853 am_cv_CXX_dependencies_compiler_type=none
5854 fi
5855
5856 fi
5857 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5858 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5859 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5860
5861 if
5862 test "x$enable_dependency_tracking" != xno \
5863 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5864 am__fastdepCXX_TRUE=
5865 am__fastdepCXX_FALSE='#'
5866 else
5867 am__fastdepCXX_TRUE='#'
5868 am__fastdepCXX_FALSE=
5869 fi
5870
5871
5872
5873
5874 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5875 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5876 (test "X$CXX" != "Xg++"))) ; then
5877 ac_ext=cpp
5878 ac_cpp='$CXXCPP $CPPFLAGS'
5879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5882 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5883 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5884 if test -z "$CXXCPP"; then
5885 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5886 $as_echo_n "(cached) " >&6
5887 else
5888 # Double quotes because CXXCPP needs to be expanded
5889 for CXXCPP in "$CXX -E" "/lib/cpp"
5890 do
5891 ac_preproc_ok=false
5892 for ac_cxx_preproc_warn_flag in '' yes
5893 do
5894 # Use a header file that comes with gcc, so configuring glibc
5895 # with a fresh cross-compiler works.
5896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5897 # <limits.h> exists even on freestanding compilers.
5898 # On the NeXT, cc -E runs the code through the compiler's parser,
5899 # not just through cpp. "Syntax error" is here to catch this case.
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906 #ifdef __STDC__
5907 # include <limits.h>
5908 #else
5909 # include <assert.h>
5910 #endif
5911 Syntax error
5912 _ACEOF
5913 if { (ac_try="$ac_cpp conftest.$ac_ext"
5914 case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5917 esac
5918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5919 $as_echo "$ac_try_echo") >&5
5920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } >/dev/null && {
5927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5928 test ! -s conftest.err
5929 }; then
5930 :
5931 else
5932 $as_echo "$as_me: failed program was:" >&5
5933 sed 's/^/| /' conftest.$ac_ext >&5
5934
5935 # Broken: fails on valid input.
5936 continue
5937 fi
5938
5939 rm -f conftest.err conftest.$ac_ext
5940
5941 # OK, works on sane cases. Now check whether nonexistent headers
5942 # can be detected and how.
5943 cat >conftest.$ac_ext <<_ACEOF
5944 /* confdefs.h. */
5945 _ACEOF
5946 cat confdefs.h >>conftest.$ac_ext
5947 cat >>conftest.$ac_ext <<_ACEOF
5948 /* end confdefs.h. */
5949 #include <ac_nonexistent.h>
5950 _ACEOF
5951 if { (ac_try="$ac_cpp conftest.$ac_ext"
5952 case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5955 esac
5956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5957 $as_echo "$ac_try_echo") >&5
5958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } >/dev/null && {
5965 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5966 test ! -s conftest.err
5967 }; then
5968 # Broken: success on invalid input.
5969 continue
5970 else
5971 $as_echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5973
5974 # Passes both tests.
5975 ac_preproc_ok=:
5976 break
5977 fi
5978
5979 rm -f conftest.err conftest.$ac_ext
5980
5981 done
5982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5983 rm -f conftest.err conftest.$ac_ext
5984 if $ac_preproc_ok; then
5985 break
5986 fi
5987
5988 done
5989 ac_cv_prog_CXXCPP=$CXXCPP
5990
5991 fi
5992 CXXCPP=$ac_cv_prog_CXXCPP
5993 else
5994 ac_cv_prog_CXXCPP=$CXXCPP
5995 fi
5996 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5997 $as_echo "$CXXCPP" >&6; }
5998 ac_preproc_ok=false
5999 for ac_cxx_preproc_warn_flag in '' yes
6000 do
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #ifdef __STDC__
6014 # include <limits.h>
6015 #else
6016 # include <assert.h>
6017 #endif
6018 Syntax error
6019 _ACEOF
6020 if { (ac_try="$ac_cpp conftest.$ac_ext"
6021 case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024 esac
6025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026 $as_echo "$ac_try_echo") >&5
6027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
6032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } >/dev/null && {
6034 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6035 test ! -s conftest.err
6036 }; then
6037 :
6038 else
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 # Broken: fails on valid input.
6043 continue
6044 fi
6045
6046 rm -f conftest.err conftest.$ac_ext
6047
6048 # OK, works on sane cases. Now check whether nonexistent headers
6049 # can be detected and how.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <ac_nonexistent.h>
6057 _ACEOF
6058 if { (ac_try="$ac_cpp conftest.$ac_ext"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } >/dev/null && {
6072 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6073 test ! -s conftest.err
6074 }; then
6075 # Broken: success on invalid input.
6076 continue
6077 else
6078 $as_echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081 # Passes both tests.
6082 ac_preproc_ok=:
6083 break
6084 fi
6085
6086 rm -f conftest.err conftest.$ac_ext
6087
6088 done
6089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6090 rm -f conftest.err conftest.$ac_ext
6091 if $ac_preproc_ok; then
6092 :
6093 else
6094 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6096 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6097 See \`config.log' for more details." >&5
6098 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6099 See \`config.log' for more details." >&2;}
6100 { (exit 1); exit 1; }; }; }
6101 fi
6102
6103 ac_ext=cpp
6104 ac_cpp='$CXXCPP $CPPFLAGS'
6105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6108
6109 fi
6110
6111
6112 ac_ext=f
6113 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6114 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6116 if test -n "$ac_tool_prefix"; then
6117 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
6118 do
6119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_F77+set}" = set; then
6124 $as_echo_n "(cached) " >&6
6125 else
6126 if test -n "$F77"; then
6127 ac_cv_prog_F77="$F77" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132 IFS=$as_save_IFS
6133 test -z "$as_dir" && as_dir=.
6134 for ac_exec_ext in '' $ac_executable_extensions; do
6135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6138 break 2
6139 fi
6140 done
6141 done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 F77=$ac_cv_prog_F77
6147 if test -n "$F77"; then
6148 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6149 $as_echo "$F77" >&6; }
6150 else
6151 { $as_echo "$as_me:$LINENO: result: no" >&5
6152 $as_echo "no" >&6; }
6153 fi
6154
6155
6156 test -n "$F77" && break
6157 done
6158 fi
6159 if test -z "$F77"; then
6160 ac_ct_F77=$F77
6161 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
6162 do
6163 # Extract the first word of "$ac_prog", so it can be a program name with args.
6164 set dummy $ac_prog; ac_word=$2
6165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$ac_ct_F77"; then
6171 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_prog_ac_ct_F77="$ac_prog"
6181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6191 if test -n "$ac_ct_F77"; then
6192 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6193 $as_echo "$ac_ct_F77" >&6; }
6194 else
6195 { $as_echo "$as_me:$LINENO: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200 test -n "$ac_ct_F77" && break
6201 done
6202
6203 if test "x$ac_ct_F77" = x; then
6204 F77=""
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 F77=$ac_ct_F77
6213 fi
6214 fi
6215
6216
6217 # Provide some information about the compiler.
6218 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6219 set X $ac_compile
6220 ac_compiler=$2
6221 { (ac_try="$ac_compiler --version >&5"
6222 case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225 esac
6226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227 $as_echo "$ac_try_echo") >&5
6228 (eval "$ac_compiler --version >&5") 2>&5
6229 ac_status=$?
6230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }
6232 { (ac_try="$ac_compiler -v >&5"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238 $as_echo "$ac_try_echo") >&5
6239 (eval "$ac_compiler -v >&5") 2>&5
6240 ac_status=$?
6241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }
6243 { (ac_try="$ac_compiler -V >&5"
6244 case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247 esac
6248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6249 $as_echo "$ac_try_echo") >&5
6250 (eval "$ac_compiler -V >&5") 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }
6254 rm -f a.out
6255
6256 # If we don't use `.F' as extension, the preprocessor is not run on the
6257 # input file. (Note that this only needs to work for GNU compilers.)
6258 ac_save_ext=$ac_ext
6259 ac_ext=F
6260 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6261 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6262 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6263 $as_echo_n "(cached) " >&6
6264 else
6265 cat >conftest.$ac_ext <<_ACEOF
6266 program main
6267 #ifndef __GNUC__
6268 choke me
6269 #endif
6270
6271 end
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6275 case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278 esac
6279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6280 $as_echo "$ac_try_echo") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_f77_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6291 ac_compiler_gnu=yes
6292 else
6293 $as_echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 ac_compiler_gnu=no
6297 fi
6298
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6301
6302 fi
6303 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6304 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6305 ac_ext=$ac_save_ext
6306 ac_test_FFLAGS=${FFLAGS+set}
6307 ac_save_FFLAGS=$FFLAGS
6308 FFLAGS=
6309 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6310 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6311 if test "${ac_cv_prog_f77_g+set}" = set; then
6312 $as_echo_n "(cached) " >&6
6313 else
6314 FFLAGS=-g
6315 cat >conftest.$ac_ext <<_ACEOF
6316 program main
6317
6318 end
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (ac_try="$ac_compile"
6322 case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325 esac
6326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6327 $as_echo "$ac_try_echo") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_f77_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest.$ac_objext; then
6338 ac_cv_prog_f77_g=yes
6339 else
6340 $as_echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6342
6343 ac_cv_prog_f77_g=no
6344 fi
6345
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347
6348 fi
6349 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6350 $as_echo "$ac_cv_prog_f77_g" >&6; }
6351 if test "$ac_test_FFLAGS" = set; then
6352 FFLAGS=$ac_save_FFLAGS
6353 elif test $ac_cv_prog_f77_g = yes; then
6354 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6355 FFLAGS="-g -O2"
6356 else
6357 FFLAGS="-g"
6358 fi
6359 else
6360 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6361 FFLAGS="-O2"
6362 else
6363 FFLAGS=
6364 fi
6365 fi
6366
6367 if test $ac_compiler_gnu = yes; then
6368 G77=yes
6369 else
6370 G77=
6371 fi
6372 ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378
6379
6380 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6381 # find the maximum length of command line arguments
6382 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6383 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6384 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6386 else
6387 i=0
6388 teststring="ABCD"
6389
6390 case $build_os in
6391 msdosdjgpp*)
6392 # On DJGPP, this test can blow up pretty badly due to problems in libc
6393 # (any single argument exceeding 2000 bytes causes a buffer overrun
6394 # during glob expansion). Even if it were fixed, the result of this
6395 # check would be larger than it should be.
6396 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6397 ;;
6398
6399 gnu*)
6400 # Under GNU Hurd, this test is not required because there is
6401 # no limit to the length of command line arguments.
6402 # Libtool will interpret -1 as no limit whatsoever
6403 lt_cv_sys_max_cmd_len=-1;
6404 ;;
6405
6406 cygwin* | mingw*)
6407 # On Win9x/ME, this test blows up -- it succeeds, but takes
6408 # about 5 minutes as the teststring grows exponentially.
6409 # Worse, since 9x/ME are not pre-emptively multitasking,
6410 # you end up with a "frozen" computer, even though with patience
6411 # the test eventually succeeds (with a max line length of 256k).
6412 # Instead, let's just punt: use the minimum linelength reported by
6413 # all of the supported platforms: 8192 (on NT/2K/XP).
6414 lt_cv_sys_max_cmd_len=8192;
6415 ;;
6416
6417 amigaos*)
6418 # On AmigaOS with pdksh, this test takes hours, literally.
6419 # So we just punt and use a minimum line length of 8192.
6420 lt_cv_sys_max_cmd_len=8192;
6421 ;;
6422
6423 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6424 # This has been around since 386BSD, at least. Likely further.
6425 if test -x /sbin/sysctl; then
6426 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6427 elif test -x /usr/sbin/sysctl; then
6428 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6429 else
6430 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6431 fi
6432 # And add a safety zone
6433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6435 ;;
6436
6437 interix*)
6438 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6439 lt_cv_sys_max_cmd_len=196608
6440 ;;
6441
6442 osf*)
6443 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6444 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6445 # nice to cause kernel panics so lets avoid the loop below.
6446 # First set a reasonable default.
6447 lt_cv_sys_max_cmd_len=16384
6448 #
6449 if test -x /sbin/sysconfig; then
6450 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6451 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6452 esac
6453 fi
6454 ;;
6455 sco3.2v5*)
6456 lt_cv_sys_max_cmd_len=102400
6457 ;;
6458 sysv5* | sco5v6* | sysv4.2uw2*)
6459 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6460 if test -n "$kargmax"; then
6461 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6462 else
6463 lt_cv_sys_max_cmd_len=32768
6464 fi
6465 ;;
6466 *)
6467 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6468 if test -n "$lt_cv_sys_max_cmd_len"; then
6469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6471 else
6472 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6473 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6474 = "XX$teststring") >/dev/null 2>&1 &&
6475 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6476 lt_cv_sys_max_cmd_len=$new_result &&
6477 test $i != 17 # 1/2 MB should be enough
6478 do
6479 i=`expr $i + 1`
6480 teststring=$teststring$teststring
6481 done
6482 teststring=
6483 # Add a significant safety factor because C++ compilers can tack on massive
6484 # amounts of additional arguments before passing them to the linker.
6485 # It appears as though 1/2 is a usable value.
6486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6487 fi
6488 ;;
6489 esac
6490
6491 fi
6492
6493 if test -n $lt_cv_sys_max_cmd_len ; then
6494 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6495 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6496 else
6497 { $as_echo "$as_me:$LINENO: result: none" >&5
6498 $as_echo "none" >&6; }
6499 fi
6500
6501
6502
6503
6504
6505 # Check for command to grab the raw symbol name followed by C symbol from nm.
6506 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6507 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6509 $as_echo_n "(cached) " >&6
6510 else
6511
6512 # These are sane defaults that work on at least a few old systems.
6513 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6514
6515 # Character class describing NM global symbol codes.
6516 symcode='[BCDEGRST]'
6517
6518 # Regexp to match symbols that can be accessed directly from C.
6519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6520
6521 # Transform an extracted symbol line into a proper C declaration
6522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6523
6524 # Transform an extracted symbol line into symbol name and symbol address
6525 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'"
6526
6527 # Define system-specific variables.
6528 case $host_os in
6529 aix*)
6530 symcode='[BCDT]'
6531 ;;
6532 cygwin* | mingw* | pw32*)
6533 symcode='[ABCDGISTW]'
6534 ;;
6535 hpux*) # Its linker distinguishes data from code symbols
6536 if test "$host_cpu" = ia64; then
6537 symcode='[ABCDEGRST]'
6538 fi
6539 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6540 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'"
6541 ;;
6542 linux* | k*bsd*-gnu)
6543 if test "$host_cpu" = ia64; then
6544 symcode='[ABCDGIRSTW]'
6545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6546 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'"
6547 fi
6548 ;;
6549 irix* | nonstopux*)
6550 symcode='[BCDEGRST]'
6551 ;;
6552 osf*)
6553 symcode='[BCDEGQRST]'
6554 ;;
6555 solaris*)
6556 symcode='[BDRT]'
6557 ;;
6558 sco3.2v5*)
6559 symcode='[DT]'
6560 ;;
6561 sysv4.2uw2*)
6562 symcode='[DT]'
6563 ;;
6564 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6565 symcode='[ABDT]'
6566 ;;
6567 sysv4)
6568 symcode='[DFNSTU]'
6569 ;;
6570 esac
6571
6572 # Handle CRLF in mingw tool chain
6573 opt_cr=
6574 case $build_os in
6575 mingw*)
6576 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6577 ;;
6578 esac
6579
6580 # If we're using GNU nm, then use its standard symbol codes.
6581 case `$NM -V 2>&1` in
6582 *GNU* | *'with BFD'*)
6583 symcode='[ABCDGIRSTW]' ;;
6584 esac
6585
6586 # Try without a prefix undercore, then with it.
6587 for ac_symprfx in "" "_"; do
6588
6589 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6590 symxfrm="\\1 $ac_symprfx\\2 \\2"
6591
6592 # Write the raw and C identifiers.
6593 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6594
6595 # Check to see that the pipe works correctly.
6596 pipe_works=no
6597
6598 rm -f conftest*
6599 cat > conftest.$ac_ext <<EOF
6600 #ifdef __cplusplus
6601 extern "C" {
6602 #endif
6603 char nm_test_var;
6604 void nm_test_func(){}
6605 #ifdef __cplusplus
6606 }
6607 #endif
6608 int main(){nm_test_var='a';nm_test_func();return(0);}
6609 EOF
6610
6611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6612 (eval $ac_compile) 2>&5
6613 ac_status=$?
6614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); }; then
6616 # Now try to grab the symbols.
6617 nlist=conftest.nm
6618 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6619 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6620 ac_status=$?
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && test -s "$nlist"; then
6623 # Try sorting and uniquifying the output.
6624 if sort "$nlist" | uniq > "$nlist"T; then
6625 mv -f "$nlist"T "$nlist"
6626 else
6627 rm -f "$nlist"T
6628 fi
6629
6630 # Make sure that we snagged all the symbols we need.
6631 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6632 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6633 cat <<EOF > conftest.$ac_ext
6634 #ifdef __cplusplus
6635 extern "C" {
6636 #endif
6637
6638 EOF
6639 # Now generate the symbol file.
6640 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6641
6642 cat <<EOF >> conftest.$ac_ext
6643 #if defined (__STDC__) && __STDC__
6644 # define lt_ptr_t void *
6645 #else
6646 # define lt_ptr_t char *
6647 # define const
6648 #endif
6649
6650 /* The mapping between symbol names and symbols. */
6651 const struct {
6652 const char *name;
6653 lt_ptr_t address;
6654 }
6655 lt_preloaded_symbols[] =
6656 {
6657 EOF
6658 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6659 cat <<\EOF >> conftest.$ac_ext
6660 {0, (lt_ptr_t) 0}
6661 };
6662
6663 #ifdef __cplusplus
6664 }
6665 #endif
6666 EOF
6667 # Now try linking the two files.
6668 mv conftest.$ac_objext conftstm.$ac_objext
6669 lt_save_LIBS="$LIBS"
6670 lt_save_CFLAGS="$CFLAGS"
6671 LIBS="conftstm.$ac_objext"
6672 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6674 (eval $ac_link) 2>&5
6675 ac_status=$?
6676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6678 pipe_works=yes
6679 fi
6680 LIBS="$lt_save_LIBS"
6681 CFLAGS="$lt_save_CFLAGS"
6682 else
6683 echo "cannot find nm_test_func in $nlist" >&5
6684 fi
6685 else
6686 echo "cannot find nm_test_var in $nlist" >&5
6687 fi
6688 else
6689 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6690 fi
6691 else
6692 echo "$progname: failed program was:" >&5
6693 cat conftest.$ac_ext >&5
6694 fi
6695 rm -rf conftest* conftst*
6696
6697 # Do not use the global_symbol_pipe unless it works.
6698 if test "$pipe_works" = yes; then
6699 break
6700 else
6701 lt_cv_sys_global_symbol_pipe=
6702 fi
6703 done
6704
6705 fi
6706
6707 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6708 lt_cv_sys_global_symbol_to_cdecl=
6709 fi
6710 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6711 { $as_echo "$as_me:$LINENO: result: failed" >&5
6712 $as_echo "failed" >&6; }
6713 else
6714 { $as_echo "$as_me:$LINENO: result: ok" >&5
6715 $as_echo "ok" >&6; }
6716 fi
6717
6718 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6719 $as_echo_n "checking for objdir... " >&6; }
6720 if test "${lt_cv_objdir+set}" = set; then
6721 $as_echo_n "(cached) " >&6
6722 else
6723 rm -f .libs 2>/dev/null
6724 mkdir .libs 2>/dev/null
6725 if test -d .libs; then
6726 lt_cv_objdir=.libs
6727 else
6728 # MS-DOS does not allow filenames that begin with a dot.
6729 lt_cv_objdir=_libs
6730 fi
6731 rmdir .libs 2>/dev/null
6732 fi
6733 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6734 $as_echo "$lt_cv_objdir" >&6; }
6735 objdir=$lt_cv_objdir
6736
6737
6738
6739
6740
6741 case $host_os in
6742 aix3*)
6743 # AIX sometimes has problems with the GCC collect2 program. For some
6744 # reason, if we set the COLLECT_NAMES environment variable, the problems
6745 # vanish in a puff of smoke.
6746 if test "X${COLLECT_NAMES+set}" != Xset; then
6747 COLLECT_NAMES=
6748 export COLLECT_NAMES
6749 fi
6750 ;;
6751 esac
6752
6753 # Sed substitution that helps us do robust quoting. It backslashifies
6754 # metacharacters that are still active within double-quoted strings.
6755 Xsed='sed -e 1s/^X//'
6756 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6757
6758 # Same as above, but do not quote variable references.
6759 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6760
6761 # Sed substitution to delay expansion of an escaped shell variable in a
6762 # double_quote_subst'ed string.
6763 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6764
6765 # Sed substitution to avoid accidental globbing in evaled expressions
6766 no_glob_subst='s/\*/\\\*/g'
6767
6768 # Constants:
6769 rm="rm -f"
6770
6771 # Global variables:
6772 default_ofile=libtool
6773 can_build_shared=yes
6774
6775 # All known linkers require a `.a' archive for static linking (except MSVC,
6776 # which needs '.lib').
6777 libext=a
6778 ltmain="$ac_aux_dir/ltmain.sh"
6779 ofile="$default_ofile"
6780 with_gnu_ld="$lt_cv_prog_gnu_ld"
6781
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}ar; ac_word=$2
6785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 $as_echo_n "checking for $ac_word... " >&6; }
6787 if test "${ac_cv_prog_AR+set}" = set; then
6788 $as_echo_n "(cached) " >&6
6789 else
6790 if test -n "$AR"; then
6791 ac_cv_prog_AR="$AR" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796 IFS=$as_save_IFS
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_AR="${ac_tool_prefix}ar"
6801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 break 2
6803 fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808 fi
6809 fi
6810 AR=$ac_cv_prog_AR
6811 if test -n "$AR"; then
6812 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6813 $as_echo "$AR" >&6; }
6814 else
6815 { $as_echo "$as_me:$LINENO: result: no" >&5
6816 $as_echo "no" >&6; }
6817 fi
6818
6819
6820 fi
6821 if test -z "$ac_cv_prog_AR"; then
6822 ac_ct_AR=$AR
6823 # Extract the first word of "ar", so it can be a program name with args.
6824 set dummy ar; ac_word=$2
6825 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6828 $as_echo_n "(cached) " >&6
6829 else
6830 if test -n "$ac_ct_AR"; then
6831 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6832 else
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH
6835 do
6836 IFS=$as_save_IFS
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_ac_ct_AR="ar"
6841 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 break 2
6843 fi
6844 done
6845 done
6846 IFS=$as_save_IFS
6847
6848 fi
6849 fi
6850 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6851 if test -n "$ac_ct_AR"; then
6852 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6853 $as_echo "$ac_ct_AR" >&6; }
6854 else
6855 { $as_echo "$as_me:$LINENO: result: no" >&5
6856 $as_echo "no" >&6; }
6857 fi
6858
6859 if test "x$ac_ct_AR" = x; then
6860 AR="false"
6861 else
6862 case $cross_compiling:$ac_tool_warned in
6863 yes:)
6864 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6867 esac
6868 AR=$ac_ct_AR
6869 fi
6870 else
6871 AR="$ac_cv_prog_AR"
6872 fi
6873
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_RANLIB+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$RANLIB"; then
6883 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898 IFS=$as_save_IFS
6899
6900 fi
6901 fi
6902 RANLIB=$ac_cv_prog_RANLIB
6903 if test -n "$RANLIB"; then
6904 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6905 $as_echo "$RANLIB" >&6; }
6906 else
6907 { $as_echo "$as_me:$LINENO: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910
6911
6912 fi
6913 if test -z "$ac_cv_prog_RANLIB"; then
6914 ac_ct_RANLIB=$RANLIB
6915 # Extract the first word of "ranlib", so it can be a program name with args.
6916 set dummy ranlib; ac_word=$2
6917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$ac_ct_RANLIB"; then
6923 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6927 do
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_ac_ct_RANLIB="ranlib"
6933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6935 fi
6936 done
6937 done
6938 IFS=$as_save_IFS
6939
6940 fi
6941 fi
6942 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6943 if test -n "$ac_ct_RANLIB"; then
6944 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6945 $as_echo "$ac_ct_RANLIB" >&6; }
6946 else
6947 { $as_echo "$as_me:$LINENO: result: no" >&5
6948 $as_echo "no" >&6; }
6949 fi
6950
6951 if test "x$ac_ct_RANLIB" = x; then
6952 RANLIB=":"
6953 else
6954 case $cross_compiling:$ac_tool_warned in
6955 yes:)
6956 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960 RANLIB=$ac_ct_RANLIB
6961 fi
6962 else
6963 RANLIB="$ac_cv_prog_RANLIB"
6964 fi
6965
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}strip; ac_word=$2
6969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if test "${ac_cv_prog_STRIP+set}" = set; then
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$STRIP"; then
6975 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6985 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 STRIP=$ac_cv_prog_STRIP
6995 if test -n "$STRIP"; then
6996 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6997 $as_echo "$STRIP" >&6; }
6998 else
6999 { $as_echo "$as_me:$LINENO: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_STRIP"; then
7006 ac_ct_STRIP=$STRIP
7007 # Extract the first word of "strip", so it can be a program name with args.
7008 set dummy strip; ac_word=$2
7009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_STRIP"; then
7015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_ac_ct_STRIP="strip"
7025 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7035 if test -n "$ac_ct_STRIP"; then
7036 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7037 $as_echo "$ac_ct_STRIP" >&6; }
7038 else
7039 { $as_echo "$as_me:$LINENO: result: no" >&5
7040 $as_echo "no" >&6; }
7041 fi
7042
7043 if test "x$ac_ct_STRIP" = x; then
7044 STRIP=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 STRIP=$ac_ct_STRIP
7053 fi
7054 else
7055 STRIP="$ac_cv_prog_STRIP"
7056 fi
7057
7058
7059 old_CC="$CC"
7060 old_CFLAGS="$CFLAGS"
7061
7062 # Set sane defaults for various variables
7063 test -z "$AR" && AR=ar
7064 test -z "$AR_FLAGS" && AR_FLAGS=cru
7065 test -z "$AS" && AS=as
7066 test -z "$CC" && CC=cc
7067 test -z "$LTCC" && LTCC=$CC
7068 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7069 test -z "$DLLTOOL" && DLLTOOL=dlltool
7070 test -z "$LD" && LD=ld
7071 test -z "$LN_S" && LN_S="ln -s"
7072 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7073 test -z "$NM" && NM=nm
7074 test -z "$SED" && SED=sed
7075 test -z "$OBJDUMP" && OBJDUMP=objdump
7076 test -z "$RANLIB" && RANLIB=:
7077 test -z "$STRIP" && STRIP=:
7078 test -z "$ac_objext" && ac_objext=o
7079
7080 # Determine commands to create old-style static archives.
7081 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7082 old_postinstall_cmds='chmod 644 $oldlib'
7083 old_postuninstall_cmds=
7084
7085 if test -n "$RANLIB"; then
7086 case $host_os in
7087 openbsd*)
7088 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7089 ;;
7090 *)
7091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7092 ;;
7093 esac
7094 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7095 fi
7096
7097 for cc_temp in $compiler""; do
7098 case $cc_temp in
7099 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7100 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7101 \-*) ;;
7102 *) break;;
7103 esac
7104 done
7105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7106
7107
7108 # Only perform the check for file, if the check method requires it
7109 case $deplibs_check_method in
7110 file_magic*)
7111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7112 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7113 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7114 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7116 else
7117 case $MAGIC_CMD in
7118 [\\/*] | ?:[\\/]*)
7119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7120 ;;
7121 *)
7122 lt_save_MAGIC_CMD="$MAGIC_CMD"
7123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7125 for ac_dir in $ac_dummy; do
7126 IFS="$lt_save_ifs"
7127 test -z "$ac_dir" && ac_dir=.
7128 if test -f $ac_dir/${ac_tool_prefix}file; then
7129 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7130 if test -n "$file_magic_test_file"; then
7131 case $deplibs_check_method in
7132 "file_magic "*)
7133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7136 $EGREP "$file_magic_regex" > /dev/null; then
7137 :
7138 else
7139 cat <<EOF 1>&2
7140
7141 *** Warning: the command libtool uses to detect shared libraries,
7142 *** $file_magic_cmd, produces output that libtool cannot recognize.
7143 *** The result is that libtool may fail to recognize shared libraries
7144 *** as such. This will affect the creation of libtool libraries that
7145 *** depend on shared libraries, but programs linked with such libtool
7146 *** libraries will work regardless of this problem. Nevertheless, you
7147 *** may want to report the problem to your system manager and/or to
7148 *** bug-libtool@gnu.org
7149
7150 EOF
7151 fi ;;
7152 esac
7153 fi
7154 break
7155 fi
7156 done
7157 IFS="$lt_save_ifs"
7158 MAGIC_CMD="$lt_save_MAGIC_CMD"
7159 ;;
7160 esac
7161 fi
7162
7163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7164 if test -n "$MAGIC_CMD"; then
7165 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7166 $as_echo "$MAGIC_CMD" >&6; }
7167 else
7168 { $as_echo "$as_me:$LINENO: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172 if test -z "$lt_cv_path_MAGIC_CMD"; then
7173 if test -n "$ac_tool_prefix"; then
7174 { $as_echo "$as_me:$LINENO: checking for file" >&5
7175 $as_echo_n "checking for file... " >&6; }
7176 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7177 $as_echo_n "(cached) " >&6
7178 else
7179 case $MAGIC_CMD in
7180 [\\/*] | ?:[\\/]*)
7181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7182 ;;
7183 *)
7184 lt_save_MAGIC_CMD="$MAGIC_CMD"
7185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7187 for ac_dir in $ac_dummy; do
7188 IFS="$lt_save_ifs"
7189 test -z "$ac_dir" && ac_dir=.
7190 if test -f $ac_dir/file; then
7191 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7192 if test -n "$file_magic_test_file"; then
7193 case $deplibs_check_method in
7194 "file_magic "*)
7195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7198 $EGREP "$file_magic_regex" > /dev/null; then
7199 :
7200 else
7201 cat <<EOF 1>&2
7202
7203 *** Warning: the command libtool uses to detect shared libraries,
7204 *** $file_magic_cmd, produces output that libtool cannot recognize.
7205 *** The result is that libtool may fail to recognize shared libraries
7206 *** as such. This will affect the creation of libtool libraries that
7207 *** depend on shared libraries, but programs linked with such libtool
7208 *** libraries will work regardless of this problem. Nevertheless, you
7209 *** may want to report the problem to your system manager and/or to
7210 *** bug-libtool@gnu.org
7211
7212 EOF
7213 fi ;;
7214 esac
7215 fi
7216 break
7217 fi
7218 done
7219 IFS="$lt_save_ifs"
7220 MAGIC_CMD="$lt_save_MAGIC_CMD"
7221 ;;
7222 esac
7223 fi
7224
7225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226 if test -n "$MAGIC_CMD"; then
7227 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7228 $as_echo "$MAGIC_CMD" >&6; }
7229 else
7230 { $as_echo "$as_me:$LINENO: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234 else
7235 MAGIC_CMD=:
7236 fi
7237 fi
7238
7239 fi
7240 ;;
7241 esac
7242
7243
7244 case $host_os in
7245 rhapsody* | darwin*)
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7252 $as_echo_n "(cached) " >&6
7253 else
7254 if test -n "$DSYMUTIL"; then
7255 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260 IFS=$as_save_IFS
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 break 2
7267 fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7275 if test -n "$DSYMUTIL"; then
7276 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7277 $as_echo "$DSYMUTIL" >&6; }
7278 else
7279 { $as_echo "$as_me:$LINENO: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_DSYMUTIL"; then
7286 ac_ct_DSYMUTIL=$DSYMUTIL
7287 # Extract the first word of "dsymutil", so it can be a program name with args.
7288 set dummy dsymutil; ac_word=$2
7289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -n "$ac_ct_DSYMUTIL"; then
7295 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300 IFS=$as_save_IFS
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7306 break 2
7307 fi
7308 done
7309 done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7315 if test -n "$ac_ct_DSYMUTIL"; then
7316 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7317 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7318 else
7319 { $as_echo "$as_me:$LINENO: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323 if test "x$ac_ct_DSYMUTIL" = x; then
7324 DSYMUTIL=":"
7325 else
7326 case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332 DSYMUTIL=$ac_ct_DSYMUTIL
7333 fi
7334 else
7335 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7336 fi
7337
7338 if test -n "$ac_tool_prefix"; then
7339 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7344 $as_echo_n "(cached) " >&6
7345 else
7346 if test -n "$NMEDIT"; then
7347 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 NMEDIT=$ac_cv_prog_NMEDIT
7367 if test -n "$NMEDIT"; then
7368 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7369 $as_echo "$NMEDIT" >&6; }
7370 else
7371 { $as_echo "$as_me:$LINENO: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376 fi
7377 if test -z "$ac_cv_prog_NMEDIT"; then
7378 ac_ct_NMEDIT=$NMEDIT
7379 # Extract the first word of "nmedit", so it can be a program name with args.
7380 set dummy nmedit; ac_word=$2
7381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7384 $as_echo_n "(cached) " >&6
7385 else
7386 if test -n "$ac_ct_NMEDIT"; then
7387 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7396 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 break 2
7399 fi
7400 done
7401 done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7407 if test -n "$ac_ct_NMEDIT"; then
7408 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7409 $as_echo "$ac_ct_NMEDIT" >&6; }
7410 else
7411 { $as_echo "$as_me:$LINENO: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415 if test "x$ac_ct_NMEDIT" = x; then
7416 NMEDIT=":"
7417 else
7418 case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424 NMEDIT=$ac_ct_NMEDIT
7425 fi
7426 else
7427 NMEDIT="$ac_cv_prog_NMEDIT"
7428 fi
7429
7430
7431 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7432 $as_echo_n "checking for -single_module linker flag... " >&6; }
7433 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7434 $as_echo_n "(cached) " >&6
7435 else
7436 lt_cv_apple_cc_single_mod=no
7437 if test -z "${LT_MULTI_MODULE}"; then
7438 # By default we will add the -single_module flag. You can override
7439 # by either setting the environment variable LT_MULTI_MODULE
7440 # non-empty at configure time, or by adding -multi_module to the
7441 # link flags.
7442 echo "int foo(void){return 1;}" > conftest.c
7443 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7444 -dynamiclib ${wl}-single_module conftest.c
7445 if test -f libconftest.dylib; then
7446 lt_cv_apple_cc_single_mod=yes
7447 rm -rf libconftest.dylib*
7448 fi
7449 rm conftest.c
7450 fi
7451 fi
7452 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7453 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7454 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7455 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7456 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7458 else
7459 lt_cv_ld_exported_symbols_list=no
7460 save_LDFLAGS=$LDFLAGS
7461 echo "_main" > conftest.sym
7462 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7463 cat >conftest.$ac_ext <<_ACEOF
7464 /* confdefs.h. */
7465 _ACEOF
7466 cat confdefs.h >>conftest.$ac_ext
7467 cat >>conftest.$ac_ext <<_ACEOF
7468 /* end confdefs.h. */
7469
7470 int
7471 main ()
7472 {
7473
7474 ;
7475 return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7480 case "(($ac_try" in
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483 esac
7484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7485 $as_echo "$ac_try_echo") >&5
7486 (eval "$ac_link") 2>conftest.er1
7487 ac_status=$?
7488 grep -v '^ *+' conftest.er1 >conftest.err
7489 rm -f conftest.er1
7490 cat conftest.err >&5
7491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); } && {
7493 test -z "$ac_c_werror_flag" ||
7494 test ! -s conftest.err
7495 } && test -s conftest$ac_exeext && {
7496 test "$cross_compiling" = yes ||
7497 $as_test_x conftest$ac_exeext
7498 }; then
7499 lt_cv_ld_exported_symbols_list=yes
7500 else
7501 $as_echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504 lt_cv_ld_exported_symbols_list=no
7505 fi
7506
7507 rm -rf conftest.dSYM
7508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7509 conftest$ac_exeext conftest.$ac_ext
7510 LDFLAGS="$save_LDFLAGS"
7511
7512 fi
7513 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7514 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7515 case $host_os in
7516 rhapsody* | darwin1.[0123])
7517 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7518 darwin1.*)
7519 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7520 darwin*)
7521 # if running on 10.5 or later, the deployment target defaults
7522 # to the OS version, if on x86, and 10.4, the deployment
7523 # target defaults to 10.4. Don't you love it?
7524 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7525 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7526 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7527 10.[012]*)
7528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7529 10.*)
7530 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7531 esac
7532 ;;
7533 esac
7534 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7535 _lt_dar_single_mod='$single_module'
7536 fi
7537 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7538 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7539 else
7540 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7541 fi
7542 if test "$DSYMUTIL" != ":"; then
7543 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7544 else
7545 _lt_dsymutil=
7546 fi
7547 ;;
7548 esac
7549
7550
7551 enable_dlopen=no
7552 enable_win32_dll=no
7553
7554 # Check whether --enable-libtool-lock was given.
7555 if test "${enable_libtool_lock+set}" = set; then
7556 enableval=$enable_libtool_lock;
7557 fi
7558
7559 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7560
7561
7562 # Check whether --with-pic was given.
7563 if test "${with_pic+set}" = set; then
7564 withval=$with_pic; pic_mode="$withval"
7565 else
7566 pic_mode=default
7567 fi
7568
7569 test -z "$pic_mode" && pic_mode=default
7570
7571 # Use C for the default configuration in the libtool script
7572 tagname=
7573 lt_save_CC="$CC"
7574 ac_ext=c
7575 ac_cpp='$CPP $CPPFLAGS'
7576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579
7580
7581 # Source file extension for C test sources.
7582 ac_ext=c
7583
7584 # Object file extension for compiled C test sources.
7585 objext=o
7586 objext=$objext
7587
7588 # Code to be used in simple compile tests
7589 lt_simple_compile_test_code="int some_variable = 0;"
7590
7591 # Code to be used in simple link tests
7592 lt_simple_link_test_code='int main(){return(0);}'
7593
7594
7595 # If no C compiler was specified, use CC.
7596 LTCC=${LTCC-"$CC"}
7597
7598 # If no C compiler flags were specified, use CFLAGS.
7599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7600
7601 # Allow CC to be a program name with arguments.
7602 compiler=$CC
7603
7604
7605 # save warnings/boilerplate of simple test code
7606 ac_outfile=conftest.$ac_objext
7607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7609 _lt_compiler_boilerplate=`cat conftest.err`
7610 $rm conftest*
7611
7612 ac_outfile=conftest.$ac_objext
7613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7615 _lt_linker_boilerplate=`cat conftest.err`
7616 $rm -r conftest*
7617
7618
7619
7620 lt_prog_compiler_no_builtin_flag=
7621
7622 if test "$GCC" = yes; then
7623 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7624
7625
7626 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7627 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7628 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7629 $as_echo_n "(cached) " >&6
7630 else
7631 lt_cv_prog_compiler_rtti_exceptions=no
7632 ac_outfile=conftest.$ac_objext
7633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7634 lt_compiler_flag="-fno-rtti -fno-exceptions"
7635 # Insert the option either (1) after the last *FLAGS variable, or
7636 # (2) before a word containing "conftest.", or (3) at the end.
7637 # Note that $ac_compile itself does not contain backslashes and begins
7638 # with a dollar sign (not a hyphen), so the echo should work correctly.
7639 # The option is referenced via a variable to avoid confusing sed.
7640 lt_compile=`echo "$ac_compile" | $SED \
7641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7643 -e 's:$: $lt_compiler_flag:'`
7644 (eval echo "\"\$as_me:7644: $lt_compile\"" >&5)
7645 (eval "$lt_compile" 2>conftest.err)
7646 ac_status=$?
7647 cat conftest.err >&5
7648 echo "$as_me:7648: \$? = $ac_status" >&5
7649 if (exit $ac_status) && test -s "$ac_outfile"; then
7650 # The compiler can only warn and ignore the option if not recognized
7651 # So say no if there are warnings other than the usual output.
7652 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7655 lt_cv_prog_compiler_rtti_exceptions=yes
7656 fi
7657 fi
7658 $rm conftest*
7659
7660 fi
7661 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7662 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7663
7664 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7666 else
7667 :
7668 fi
7669
7670 fi
7671
7672 lt_prog_compiler_wl=
7673 lt_prog_compiler_pic=
7674 lt_prog_compiler_static=
7675
7676 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7677 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7678
7679 if test "$GCC" = yes; then
7680 lt_prog_compiler_wl='-Wl,'
7681 lt_prog_compiler_static='-static'
7682
7683 case $host_os in
7684 aix*)
7685 # All AIX code is PIC.
7686 if test "$host_cpu" = ia64; then
7687 # AIX 5 now supports IA64 processor
7688 lt_prog_compiler_static='-Bstatic'
7689 fi
7690 ;;
7691
7692 amigaos*)
7693 # FIXME: we need at least 68020 code to build shared libraries, but
7694 # adding the `-m68020' flag to GCC prevents building anything better,
7695 # like `-m68040'.
7696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7697 ;;
7698
7699 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7700 # PIC is the default for these OSes.
7701 ;;
7702
7703 mingw* | cygwin* | pw32* | os2*)
7704 # This hack is so that the source file can tell whether it is being
7705 # built for inclusion in a dll (and should export symbols for example).
7706 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7707 # (--disable-auto-import) libraries
7708 lt_prog_compiler_pic='-DDLL_EXPORT'
7709 ;;
7710
7711 darwin* | rhapsody*)
7712 # PIC is the default on this platform
7713 # Common symbols not allowed in MH_DYLIB files
7714 lt_prog_compiler_pic='-fno-common'
7715 ;;
7716
7717 interix[3-9]*)
7718 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7719 # Instead, we relocate shared libraries at runtime.
7720 ;;
7721
7722 msdosdjgpp*)
7723 # Just because we use GCC doesn't mean we suddenly get shared libraries
7724 # on systems that don't support them.
7725 lt_prog_compiler_can_build_shared=no
7726 enable_shared=no
7727 ;;
7728
7729 sysv4*MP*)
7730 if test -d /usr/nec; then
7731 lt_prog_compiler_pic=-Kconform_pic
7732 fi
7733 ;;
7734
7735 hpux*)
7736 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7737 # not for PA HP-UX.
7738 case $host_cpu in
7739 hppa*64*|ia64*)
7740 # +Z the default
7741 ;;
7742 *)
7743 lt_prog_compiler_pic='-fPIC'
7744 ;;
7745 esac
7746 ;;
7747
7748 *)
7749 lt_prog_compiler_pic='-fPIC'
7750 ;;
7751 esac
7752 else
7753 # PORTME Check for flag to pass linker flags through the system compiler.
7754 case $host_os in
7755 aix*)
7756 lt_prog_compiler_wl='-Wl,'
7757 if test "$host_cpu" = ia64; then
7758 # AIX 5 now supports IA64 processor
7759 lt_prog_compiler_static='-Bstatic'
7760 else
7761 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7762 fi
7763 ;;
7764 darwin*)
7765 # PIC is the default on this platform
7766 # Common symbols not allowed in MH_DYLIB files
7767 case $cc_basename in
7768 xlc*)
7769 lt_prog_compiler_pic='-qnocommon'
7770 lt_prog_compiler_wl='-Wl,'
7771 ;;
7772 esac
7773 ;;
7774
7775 mingw* | cygwin* | pw32* | os2*)
7776 # This hack is so that the source file can tell whether it is being
7777 # built for inclusion in a dll (and should export symbols for example).
7778 lt_prog_compiler_pic='-DDLL_EXPORT'
7779 ;;
7780
7781 hpux9* | hpux10* | hpux11*)
7782 lt_prog_compiler_wl='-Wl,'
7783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7784 # not for PA HP-UX.
7785 case $host_cpu in
7786 hppa*64*|ia64*)
7787 # +Z the default
7788 ;;
7789 *)
7790 lt_prog_compiler_pic='+Z'
7791 ;;
7792 esac
7793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7794 lt_prog_compiler_static='${wl}-a ${wl}archive'
7795 ;;
7796
7797 irix5* | irix6* | nonstopux*)
7798 lt_prog_compiler_wl='-Wl,'
7799 # PIC (with -KPIC) is the default.
7800 lt_prog_compiler_static='-non_shared'
7801 ;;
7802
7803 newsos6)
7804 lt_prog_compiler_pic='-KPIC'
7805 lt_prog_compiler_static='-Bstatic'
7806 ;;
7807
7808 linux* | k*bsd*-gnu)
7809 case $cc_basename in
7810 icc* | ecc*)
7811 lt_prog_compiler_wl='-Wl,'
7812 lt_prog_compiler_pic='-KPIC'
7813 lt_prog_compiler_static='-static'
7814 ;;
7815 pgcc* | pgf77* | pgf90* | pgf95*)
7816 # Portland Group compilers (*not* the Pentium gcc compiler,
7817 # which looks to be a dead project)
7818 lt_prog_compiler_wl='-Wl,'
7819 lt_prog_compiler_pic='-fpic'
7820 lt_prog_compiler_static='-Bstatic'
7821 ;;
7822 ccc*)
7823 lt_prog_compiler_wl='-Wl,'
7824 # All Alpha code is PIC.
7825 lt_prog_compiler_static='-non_shared'
7826 ;;
7827 *)
7828 case `$CC -V 2>&1 | sed 5q` in
7829 *Sun\ C*)
7830 # Sun C 5.9
7831 lt_prog_compiler_pic='-KPIC'
7832 lt_prog_compiler_static='-Bstatic'
7833 lt_prog_compiler_wl='-Wl,'
7834 ;;
7835 *Sun\ F*)
7836 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7837 lt_prog_compiler_pic='-KPIC'
7838 lt_prog_compiler_static='-Bstatic'
7839 lt_prog_compiler_wl=''
7840 ;;
7841 esac
7842 ;;
7843 esac
7844 ;;
7845
7846 osf3* | osf4* | osf5*)
7847 lt_prog_compiler_wl='-Wl,'
7848 # All OSF/1 code is PIC.
7849 lt_prog_compiler_static='-non_shared'
7850 ;;
7851
7852 rdos*)
7853 lt_prog_compiler_static='-non_shared'
7854 ;;
7855
7856 solaris*)
7857 lt_prog_compiler_pic='-KPIC'
7858 lt_prog_compiler_static='-Bstatic'
7859 case $cc_basename in
7860 f77* | f90* | f95*)
7861 lt_prog_compiler_wl='-Qoption ld ';;
7862 *)
7863 lt_prog_compiler_wl='-Wl,';;
7864 esac
7865 ;;
7866
7867 sunos4*)
7868 lt_prog_compiler_wl='-Qoption ld '
7869 lt_prog_compiler_pic='-PIC'
7870 lt_prog_compiler_static='-Bstatic'
7871 ;;
7872
7873 sysv4 | sysv4.2uw2* | sysv4.3*)
7874 lt_prog_compiler_wl='-Wl,'
7875 lt_prog_compiler_pic='-KPIC'
7876 lt_prog_compiler_static='-Bstatic'
7877 ;;
7878
7879 sysv4*MP*)
7880 if test -d /usr/nec ;then
7881 lt_prog_compiler_pic='-Kconform_pic'
7882 lt_prog_compiler_static='-Bstatic'
7883 fi
7884 ;;
7885
7886 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7887 lt_prog_compiler_wl='-Wl,'
7888 lt_prog_compiler_pic='-KPIC'
7889 lt_prog_compiler_static='-Bstatic'
7890 ;;
7891
7892 unicos*)
7893 lt_prog_compiler_wl='-Wl,'
7894 lt_prog_compiler_can_build_shared=no
7895 ;;
7896
7897 uts4*)
7898 lt_prog_compiler_pic='-pic'
7899 lt_prog_compiler_static='-Bstatic'
7900 ;;
7901
7902 *)
7903 lt_prog_compiler_can_build_shared=no
7904 ;;
7905 esac
7906 fi
7907
7908 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7909 $as_echo "$lt_prog_compiler_pic" >&6; }
7910
7911 #
7912 # Check to make sure the PIC flag actually works.
7913 #
7914 if test -n "$lt_prog_compiler_pic"; then
7915
7916 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7917 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7918 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7919 $as_echo_n "(cached) " >&6
7920 else
7921 lt_cv_prog_compiler_pic_works=no
7922 ac_outfile=conftest.$ac_objext
7923 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7924 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7925 # Insert the option either (1) after the last *FLAGS variable, or
7926 # (2) before a word containing "conftest.", or (3) at the end.
7927 # Note that $ac_compile itself does not contain backslashes and begins
7928 # with a dollar sign (not a hyphen), so the echo should work correctly.
7929 # The option is referenced via a variable to avoid confusing sed.
7930 lt_compile=`echo "$ac_compile" | $SED \
7931 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933 -e 's:$: $lt_compiler_flag:'`
7934 (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935 (eval "$lt_compile" 2>conftest.err)
7936 ac_status=$?
7937 cat conftest.err >&5
7938 echo "$as_me:7938: \$? = $ac_status" >&5
7939 if (exit $ac_status) && test -s "$ac_outfile"; then
7940 # The compiler can only warn and ignore the option if not recognized
7941 # So say no if there are warnings other than the usual output.
7942 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7943 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7944 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7945 lt_cv_prog_compiler_pic_works=yes
7946 fi
7947 fi
7948 $rm conftest*
7949
7950 fi
7951 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7952 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7953
7954 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7955 case $lt_prog_compiler_pic in
7956 "" | " "*) ;;
7957 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7958 esac
7959 else
7960 lt_prog_compiler_pic=
7961 lt_prog_compiler_can_build_shared=no
7962 fi
7963
7964 fi
7965 case $host_os in
7966 # For platforms which do not support PIC, -DPIC is meaningless:
7967 *djgpp*)
7968 lt_prog_compiler_pic=
7969 ;;
7970 *)
7971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7972 ;;
7973 esac
7974
7975 #
7976 # Check to make sure the static flag actually works.
7977 #
7978 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7979 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7980 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7981 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7982 $as_echo_n "(cached) " >&6
7983 else
7984 lt_cv_prog_compiler_static_works=no
7985 save_LDFLAGS="$LDFLAGS"
7986 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7987 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7988 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7989 # The linker can only warn and ignore the option if not recognized
7990 # So say no if there are warnings
7991 if test -s conftest.err; then
7992 # Append any errors to the config.log.
7993 cat conftest.err 1>&5
7994 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7996 if diff conftest.exp conftest.er2 >/dev/null; then
7997 lt_cv_prog_compiler_static_works=yes
7998 fi
7999 else
8000 lt_cv_prog_compiler_static_works=yes
8001 fi
8002 fi
8003 $rm -r conftest*
8004 LDFLAGS="$save_LDFLAGS"
8005
8006 fi
8007 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8008 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8009
8010 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8011 :
8012 else
8013 lt_prog_compiler_static=
8014 fi
8015
8016
8017 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8019 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8020 $as_echo_n "(cached) " >&6
8021 else
8022 lt_cv_prog_compiler_c_o=no
8023 $rm -r conftest 2>/dev/null
8024 mkdir conftest
8025 cd conftest
8026 mkdir out
8027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8028
8029 lt_compiler_flag="-o out/conftest2.$ac_objext"
8030 # Insert the option either (1) after the last *FLAGS variable, or
8031 # (2) before a word containing "conftest.", or (3) at the end.
8032 # Note that $ac_compile itself does not contain backslashes and begins
8033 # with a dollar sign (not a hyphen), so the echo should work correctly.
8034 lt_compile=`echo "$ac_compile" | $SED \
8035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8037 -e 's:$: $lt_compiler_flag:'`
8038 (eval echo "\"\$as_me:8038: $lt_compile\"" >&5)
8039 (eval "$lt_compile" 2>out/conftest.err)
8040 ac_status=$?
8041 cat out/conftest.err >&5
8042 echo "$as_me:8042: \$? = $ac_status" >&5
8043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8044 then
8045 # The compiler can only warn and ignore the option if not recognized
8046 # So say no if there are warnings
8047 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8050 lt_cv_prog_compiler_c_o=yes
8051 fi
8052 fi
8053 chmod u+w . 2>&5
8054 $rm conftest*
8055 # SGI C++ compiler will create directory out/ii_files/ for
8056 # template instantiation
8057 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8058 $rm out/* && rmdir out
8059 cd ..
8060 rmdir conftest
8061 $rm conftest*
8062
8063 fi
8064 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8065 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8066
8067
8068 hard_links="nottested"
8069 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8070 # do not overwrite the value of need_locks provided by the user
8071 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8072 $as_echo_n "checking if we can lock with hard links... " >&6; }
8073 hard_links=yes
8074 $rm conftest*
8075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8076 touch conftest.a
8077 ln conftest.a conftest.b 2>&5 || hard_links=no
8078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8079 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8080 $as_echo "$hard_links" >&6; }
8081 if test "$hard_links" = no; then
8082 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8084 need_locks=warn
8085 fi
8086 else
8087 need_locks=no
8088 fi
8089
8090 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8092
8093 runpath_var=
8094 allow_undefined_flag=
8095 enable_shared_with_static_runtimes=no
8096 archive_cmds=
8097 archive_expsym_cmds=
8098 old_archive_From_new_cmds=
8099 old_archive_from_expsyms_cmds=
8100 export_dynamic_flag_spec=
8101 whole_archive_flag_spec=
8102 thread_safe_flag_spec=
8103 hardcode_libdir_flag_spec=
8104 hardcode_libdir_flag_spec_ld=
8105 hardcode_libdir_separator=
8106 hardcode_direct=no
8107 hardcode_minus_L=no
8108 hardcode_shlibpath_var=unsupported
8109 link_all_deplibs=unknown
8110 hardcode_automatic=no
8111 module_cmds=
8112 module_expsym_cmds=
8113 always_export_symbols=no
8114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8115 # include_expsyms should be a list of space-separated symbols to be *always*
8116 # included in the symbol list
8117 include_expsyms=
8118 # exclude_expsyms can be an extended regexp of symbols to exclude
8119 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8120 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8121 # as well as any symbol that contains `d'.
8122 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8123 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8124 # platforms (ab)use it in PIC code, but their linkers get confused if
8125 # the symbol is explicitly referenced. Since portable code cannot
8126 # rely on this symbol name, it's probably fine to never include it in
8127 # preloaded symbol tables.
8128 # Exclude shared library initialization/finalization symbols.
8129 extract_expsyms_cmds=
8130 # Just being paranoid about ensuring that cc_basename is set.
8131 for cc_temp in $compiler""; do
8132 case $cc_temp in
8133 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8134 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8135 \-*) ;;
8136 *) break;;
8137 esac
8138 done
8139 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8140
8141 case $host_os in
8142 cygwin* | mingw* | pw32*)
8143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8144 # When not using gcc, we currently assume that we are using
8145 # Microsoft Visual C++.
8146 if test "$GCC" != yes; then
8147 with_gnu_ld=no
8148 fi
8149 ;;
8150 interix*)
8151 # we just hope/assume this is gcc and not c89 (= MSVC++)
8152 with_gnu_ld=yes
8153 ;;
8154 openbsd*)
8155 with_gnu_ld=no
8156 ;;
8157 esac
8158
8159 ld_shlibs=yes
8160 if test "$with_gnu_ld" = yes; then
8161 # If archive_cmds runs LD, not CC, wlarc should be empty
8162 wlarc='${wl}'
8163
8164 # Set some defaults for GNU ld with shared library support. These
8165 # are reset later if shared libraries are not supported. Putting them
8166 # here allows them to be overridden if necessary.
8167 runpath_var=LD_RUN_PATH
8168 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8169 export_dynamic_flag_spec='${wl}--export-dynamic'
8170 # ancient GNU ld didn't support --whole-archive et. al.
8171 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8172 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8173 else
8174 whole_archive_flag_spec=
8175 fi
8176 supports_anon_versioning=no
8177 case `$LD -v 2>/dev/null` in
8178 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8179 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8180 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8181 *\ 2.11.*) ;; # other 2.11 versions
8182 *) supports_anon_versioning=yes ;;
8183 esac
8184
8185 # See if GNU ld supports shared libraries.
8186 case $host_os in
8187 aix[3-9]*)
8188 # On AIX/PPC, the GNU linker is very broken
8189 if test "$host_cpu" != ia64; then
8190 ld_shlibs=no
8191 cat <<EOF 1>&2
8192
8193 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8194 *** to be unable to reliably create shared libraries on AIX.
8195 *** Therefore, libtool is disabling shared libraries support. If you
8196 *** really care for shared libraries, you may want to modify your PATH
8197 *** so that a non-GNU linker is found, and then restart.
8198
8199 EOF
8200 fi
8201 ;;
8202
8203 amigaos*)
8204 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)'
8205 hardcode_libdir_flag_spec='-L$libdir'
8206 hardcode_minus_L=yes
8207
8208 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8209 # that the semantics of dynamic libraries on AmigaOS, at least up
8210 # to version 4, is to share data among multiple programs linked
8211 # with the same dynamic library. Since this doesn't match the
8212 # behavior of shared libraries on other platforms, we can't use
8213 # them.
8214 ld_shlibs=no
8215 ;;
8216
8217 beos*)
8218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8219 allow_undefined_flag=unsupported
8220 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8221 # support --undefined. This deserves some investigation. FIXME
8222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223 else
8224 ld_shlibs=no
8225 fi
8226 ;;
8227
8228 cygwin* | mingw* | pw32*)
8229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8230 # as there is no search path for DLLs.
8231 hardcode_libdir_flag_spec='-L$libdir'
8232 allow_undefined_flag=unsupported
8233 always_export_symbols=no
8234 enable_shared_with_static_runtimes=yes
8235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8236
8237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8239 # If the export-symbols file already is a .def file (1st line
8240 # is EXPORTS), use it as is; otherwise, prepend...
8241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8242 cp $export_symbols $output_objdir/$soname.def;
8243 else
8244 echo EXPORTS > $output_objdir/$soname.def;
8245 cat $export_symbols >> $output_objdir/$soname.def;
8246 fi~
8247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8248 else
8249 ld_shlibs=no
8250 fi
8251 ;;
8252
8253 interix[3-9]*)
8254 hardcode_direct=no
8255 hardcode_shlibpath_var=no
8256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8257 export_dynamic_flag_spec='${wl}-E'
8258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8259 # Instead, shared libraries are loaded at an image base (0x10000000 by
8260 # default) and relocated if they conflict, which is a slow very memory
8261 # consuming and fragmenting process. To avoid this, we pick a random,
8262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8263 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8265 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'
8266 ;;
8267
8268 gnu* | linux* | k*bsd*-gnu)
8269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8270 tmp_addflag=
8271 case $cc_basename,$host_cpu in
8272 pgcc*) # Portland Group C compiler
8273 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'
8274 tmp_addflag=' $pic_flag'
8275 ;;
8276 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8277 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'
8278 tmp_addflag=' $pic_flag -Mnomain' ;;
8279 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8280 tmp_addflag=' -i_dynamic' ;;
8281 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8282 tmp_addflag=' -i_dynamic -nofor_main' ;;
8283 ifc* | ifort*) # Intel Fortran compiler
8284 tmp_addflag=' -nofor_main' ;;
8285 esac
8286 case `$CC -V 2>&1 | sed 5q` in
8287 *Sun\ C*) # Sun C 5.9
8288 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'
8289 tmp_sharedflag='-G' ;;
8290 *Sun\ F*) # Sun Fortran 8.3
8291 tmp_sharedflag='-G' ;;
8292 *)
8293 tmp_sharedflag='-shared' ;;
8294 esac
8295 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8296
8297 if test $supports_anon_versioning = yes; then
8298 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8300 $echo "local: *; };" >> $output_objdir/$libname.ver~
8301 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8302 fi
8303 else
8304 ld_shlibs=no
8305 fi
8306 ;;
8307
8308 netbsd*)
8309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8310 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8311 wlarc=
8312 else
8313 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8315 fi
8316 ;;
8317
8318 solaris*)
8319 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8320 ld_shlibs=no
8321 cat <<EOF 1>&2
8322
8323 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8324 *** create shared libraries on Solaris systems. Therefore, libtool
8325 *** is disabling shared libraries support. We urge you to upgrade GNU
8326 *** binutils to release 2.9.1 or newer. Another option is to modify
8327 *** your PATH or compiler configuration so that the native linker is
8328 *** used, and then restart.
8329
8330 EOF
8331 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334 else
8335 ld_shlibs=no
8336 fi
8337 ;;
8338
8339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8340 case `$LD -v 2>&1` in
8341 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8342 ld_shlibs=no
8343 cat <<_LT_EOF 1>&2
8344
8345 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8346 *** reliably create shared libraries on SCO systems. Therefore, libtool
8347 *** is disabling shared libraries support. We urge you to upgrade GNU
8348 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8349 *** your PATH or compiler configuration so that the native linker is
8350 *** used, and then restart.
8351
8352 _LT_EOF
8353 ;;
8354 *)
8355 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8356 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8359 else
8360 ld_shlibs=no
8361 fi
8362 ;;
8363 esac
8364 ;;
8365
8366 sunos4*)
8367 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8368 wlarc=
8369 hardcode_direct=yes
8370 hardcode_shlibpath_var=no
8371 ;;
8372
8373 *)
8374 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377 else
8378 ld_shlibs=no
8379 fi
8380 ;;
8381 esac
8382
8383 if test "$ld_shlibs" = no; then
8384 runpath_var=
8385 hardcode_libdir_flag_spec=
8386 export_dynamic_flag_spec=
8387 whole_archive_flag_spec=
8388 fi
8389 else
8390 # PORTME fill in a description of your system's linker (not GNU ld)
8391 case $host_os in
8392 aix3*)
8393 allow_undefined_flag=unsupported
8394 always_export_symbols=yes
8395 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'
8396 # Note: this linker hardcodes the directories in LIBPATH if there
8397 # are no directories specified by -L.
8398 hardcode_minus_L=yes
8399 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8400 # Neither direct hardcoding nor static linking is supported with a
8401 # broken collect2.
8402 hardcode_direct=unsupported
8403 fi
8404 ;;
8405
8406 aix[4-9]*)
8407 if test "$host_cpu" = ia64; then
8408 # On IA64, the linker does run time linking by default, so we don't
8409 # have to do anything special.
8410 aix_use_runtimelinking=no
8411 exp_sym_flag='-Bexport'
8412 no_entry_flag=""
8413 else
8414 # If we're using GNU nm, then we don't want the "-C" option.
8415 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8416 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8417 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'
8418 else
8419 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'
8420 fi
8421 aix_use_runtimelinking=no
8422
8423 # Test if we are trying to use run time linking or normal
8424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8425 # need to do runtime linking.
8426 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8427 for ld_flag in $LDFLAGS; do
8428 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8429 aix_use_runtimelinking=yes
8430 break
8431 fi
8432 done
8433 ;;
8434 esac
8435
8436 exp_sym_flag='-bexport'
8437 no_entry_flag='-bnoentry'
8438 fi
8439
8440 # When large executables or shared objects are built, AIX ld can
8441 # have problems creating the table of contents. If linking a library
8442 # or program results in "error TOC overflow" add -mminimal-toc to
8443 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8444 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8445
8446 archive_cmds=''
8447 hardcode_direct=yes
8448 hardcode_libdir_separator=':'
8449 link_all_deplibs=yes
8450
8451 if test "$GCC" = yes; then
8452 case $host_os in aix4.[012]|aix4.[012].*)
8453 # We only want to do this on AIX 4.2 and lower, the check
8454 # below for broken collect2 doesn't work under 4.3+
8455 collect2name=`${CC} -print-prog-name=collect2`
8456 if test -f "$collect2name" && \
8457 strings "$collect2name" | grep resolve_lib_name >/dev/null
8458 then
8459 # We have reworked collect2
8460 :
8461 else
8462 # We have old collect2
8463 hardcode_direct=unsupported
8464 # It fails to find uninstalled libraries when the uninstalled
8465 # path is not listed in the libpath. Setting hardcode_minus_L
8466 # to unsupported forces relinking
8467 hardcode_minus_L=yes
8468 hardcode_libdir_flag_spec='-L$libdir'
8469 hardcode_libdir_separator=
8470 fi
8471 ;;
8472 esac
8473 shared_flag='-shared'
8474 if test "$aix_use_runtimelinking" = yes; then
8475 shared_flag="$shared_flag "'${wl}-G'
8476 fi
8477 else
8478 # not using gcc
8479 if test "$host_cpu" = ia64; then
8480 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8481 # chokes on -Wl,-G. The following line is correct:
8482 shared_flag='-G'
8483 else
8484 if test "$aix_use_runtimelinking" = yes; then
8485 shared_flag='${wl}-G'
8486 else
8487 shared_flag='${wl}-bM:SRE'
8488 fi
8489 fi
8490 fi
8491
8492 # It seems that -bexpall does not export symbols beginning with
8493 # underscore (_), so it is better to generate a list of symbols to export.
8494 always_export_symbols=yes
8495 if test "$aix_use_runtimelinking" = yes; then
8496 # Warning - without using the other runtime loading flags (-brtl),
8497 # -berok will link without error, but may produce a broken library.
8498 allow_undefined_flag='-berok'
8499 # Determine the default libpath from the value encoded in an empty executable.
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h. */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506
8507 int
8508 main ()
8509 {
8510
8511 ;
8512 return 0;
8513 }
8514 _ACEOF
8515 rm -f conftest.$ac_objext conftest$ac_exeext
8516 if { (ac_try="$ac_link"
8517 case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520 esac
8521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8522 $as_echo "$ac_try_echo") >&5
8523 (eval "$ac_link") 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest$ac_exeext && {
8533 test "$cross_compiling" = yes ||
8534 $as_test_x conftest$ac_exeext
8535 }; then
8536
8537 lt_aix_libpath_sed='
8538 /Import File Strings/,/^$/ {
8539 /^0/ {
8540 s/^0 *\(.*\)$/\1/
8541 p
8542 }
8543 }'
8544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 # Check for a 64-bit object if we didn't find anything.
8546 if test -z "$aix_libpath"; then
8547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8548 fi
8549 else
8550 $as_echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553
8554 fi
8555
8556 rm -rf conftest.dSYM
8557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8558 conftest$ac_exeext conftest.$ac_ext
8559 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8560
8561 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8562 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"
8563 else
8564 if test "$host_cpu" = ia64; then
8565 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8566 allow_undefined_flag="-z nodefs"
8567 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"
8568 else
8569 # Determine the default libpath from the value encoded in an empty executable.
8570 cat >conftest.$ac_ext <<_ACEOF
8571 /* confdefs.h. */
8572 _ACEOF
8573 cat confdefs.h >>conftest.$ac_ext
8574 cat >>conftest.$ac_ext <<_ACEOF
8575 /* end confdefs.h. */
8576
8577 int
8578 main ()
8579 {
8580
8581 ;
8582 return 0;
8583 }
8584 _ACEOF
8585 rm -f conftest.$ac_objext conftest$ac_exeext
8586 if { (ac_try="$ac_link"
8587 case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8590 esac
8591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8592 $as_echo "$ac_try_echo") >&5
8593 (eval "$ac_link") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest$ac_exeext && {
8603 test "$cross_compiling" = yes ||
8604 $as_test_x conftest$ac_exeext
8605 }; then
8606
8607 lt_aix_libpath_sed='
8608 /Import File Strings/,/^$/ {
8609 /^0/ {
8610 s/^0 *\(.*\)$/\1/
8611 p
8612 }
8613 }'
8614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8615 # Check for a 64-bit object if we didn't find anything.
8616 if test -z "$aix_libpath"; then
8617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8618 fi
8619 else
8620 $as_echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623
8624 fi
8625
8626 rm -rf conftest.dSYM
8627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8628 conftest$ac_exeext conftest.$ac_ext
8629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8630
8631 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8632 # Warning - without using the other run time loading flags,
8633 # -berok will link without error, but may produce a broken library.
8634 no_undefined_flag=' ${wl}-bernotok'
8635 allow_undefined_flag=' ${wl}-berok'
8636 # Exported symbols can be pulled into shared objects from archives
8637 whole_archive_flag_spec='$convenience'
8638 archive_cmds_need_lc=yes
8639 # This is similar to how AIX traditionally builds its shared libraries.
8640 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'
8641 fi
8642 fi
8643 ;;
8644
8645 amigaos*)
8646 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)'
8647 hardcode_libdir_flag_spec='-L$libdir'
8648 hardcode_minus_L=yes
8649 # see comment about different semantics on the GNU ld section
8650 ld_shlibs=no
8651 ;;
8652
8653 bsdi[45]*)
8654 export_dynamic_flag_spec=-rdynamic
8655 ;;
8656
8657 cygwin* | mingw* | pw32*)
8658 # When not using gcc, we currently assume that we are using
8659 # Microsoft Visual C++.
8660 # hardcode_libdir_flag_spec is actually meaningless, as there is
8661 # no search path for DLLs.
8662 hardcode_libdir_flag_spec=' '
8663 allow_undefined_flag=unsupported
8664 # Tell ltmain to make .lib files, not .a files.
8665 libext=lib
8666 # Tell ltmain to make .dll files, not .so files.
8667 shrext_cmds=".dll"
8668 # FIXME: Setting linknames here is a bad hack.
8669 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8670 # The linker will automatically build a .lib file if we build a DLL.
8671 old_archive_From_new_cmds='true'
8672 # FIXME: Should let the user specify the lib program.
8673 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8674 fix_srcfile_path='`cygpath -w "$srcfile"`'
8675 enable_shared_with_static_runtimes=yes
8676 ;;
8677
8678 darwin* | rhapsody*)
8679 case $host_os in
8680 rhapsody* | darwin1.[012])
8681 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8682 ;;
8683 *) # Darwin 1.3 on
8684 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8685 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8686 else
8687 case ${MACOSX_DEPLOYMENT_TARGET} in
8688 10.[012])
8689 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8690 ;;
8691 10.*)
8692 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8693 ;;
8694 esac
8695 fi
8696 ;;
8697 esac
8698 archive_cmds_need_lc=no
8699 hardcode_direct=no
8700 hardcode_automatic=yes
8701 hardcode_shlibpath_var=unsupported
8702 whole_archive_flag_spec=''
8703 link_all_deplibs=yes
8704 if test "$GCC" = yes ; then
8705 output_verbose_link_cmd='echo'
8706 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8707 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8708 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}"
8709 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}"
8710 else
8711 case $cc_basename in
8712 xlc*)
8713 output_verbose_link_cmd='echo'
8714 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8717 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}'
8718 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}'
8719 ;;
8720 *)
8721 ld_shlibs=no
8722 ;;
8723 esac
8724 fi
8725 ;;
8726
8727 dgux*)
8728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 hardcode_shlibpath_var=no
8731 ;;
8732
8733 freebsd1*)
8734 ld_shlibs=no
8735 ;;
8736
8737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8738 # support. Future versions do this automatically, but an explicit c++rt0.o
8739 # does not break anything, and helps significantly (at the cost of a little
8740 # extra space).
8741 freebsd2.2*)
8742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8743 hardcode_libdir_flag_spec='-R$libdir'
8744 hardcode_direct=yes
8745 hardcode_shlibpath_var=no
8746 ;;
8747
8748 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8749 freebsd2*)
8750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8751 hardcode_direct=yes
8752 hardcode_minus_L=yes
8753 hardcode_shlibpath_var=no
8754 ;;
8755
8756 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8757 freebsd* | dragonfly*)
8758 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8759 hardcode_libdir_flag_spec='-R$libdir'
8760 hardcode_direct=yes
8761 hardcode_shlibpath_var=no
8762 ;;
8763
8764 hpux9*)
8765 if test "$GCC" = yes; then
8766 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'
8767 else
8768 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'
8769 fi
8770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8771 hardcode_libdir_separator=:
8772 hardcode_direct=yes
8773
8774 # hardcode_minus_L: Not really in the search PATH,
8775 # but as the default location of the library.
8776 hardcode_minus_L=yes
8777 export_dynamic_flag_spec='${wl}-E'
8778 ;;
8779
8780 hpux10*)
8781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8783 else
8784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8785 fi
8786 if test "$with_gnu_ld" = no; then
8787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8788 hardcode_libdir_separator=:
8789
8790 hardcode_direct=yes
8791 export_dynamic_flag_spec='${wl}-E'
8792
8793 # hardcode_minus_L: Not really in the search PATH,
8794 # but as the default location of the library.
8795 hardcode_minus_L=yes
8796 fi
8797 ;;
8798
8799 hpux11*)
8800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8801 case $host_cpu in
8802 hppa*64*)
8803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8804 ;;
8805 ia64*)
8806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8807 ;;
8808 *)
8809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8810 ;;
8811 esac
8812 else
8813 case $host_cpu in
8814 hppa*64*)
8815 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8816 ;;
8817 ia64*)
8818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8819 ;;
8820 *)
8821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8822 ;;
8823 esac
8824 fi
8825 if test "$with_gnu_ld" = no; then
8826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8827 hardcode_libdir_separator=:
8828
8829 case $host_cpu in
8830 hppa*64*|ia64*)
8831 hardcode_libdir_flag_spec_ld='+b $libdir'
8832 hardcode_direct=no
8833 hardcode_shlibpath_var=no
8834 ;;
8835 *)
8836 hardcode_direct=yes
8837 export_dynamic_flag_spec='${wl}-E'
8838
8839 # hardcode_minus_L: Not really in the search PATH,
8840 # but as the default location of the library.
8841 hardcode_minus_L=yes
8842 ;;
8843 esac
8844 fi
8845 ;;
8846
8847 irix5* | irix6* | nonstopux*)
8848 if test "$GCC" = yes; then
8849 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'
8850 else
8851 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'
8852 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8853 fi
8854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8855 hardcode_libdir_separator=:
8856 link_all_deplibs=yes
8857 ;;
8858
8859 netbsd*)
8860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8862 else
8863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8864 fi
8865 hardcode_libdir_flag_spec='-R$libdir'
8866 hardcode_direct=yes
8867 hardcode_shlibpath_var=no
8868 ;;
8869
8870 newsos6)
8871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8872 hardcode_direct=yes
8873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8874 hardcode_libdir_separator=:
8875 hardcode_shlibpath_var=no
8876 ;;
8877
8878 openbsd*)
8879 if test -f /usr/libexec/ld.so; then
8880 hardcode_direct=yes
8881 hardcode_shlibpath_var=no
8882 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8883 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8884 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8885 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8886 export_dynamic_flag_spec='${wl}-E'
8887 else
8888 case $host_os in
8889 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8890 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_libdir_flag_spec='-R$libdir'
8892 ;;
8893 *)
8894 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8896 ;;
8897 esac
8898 fi
8899 else
8900 ld_shlibs=no
8901 fi
8902 ;;
8903
8904 os2*)
8905 hardcode_libdir_flag_spec='-L$libdir'
8906 hardcode_minus_L=yes
8907 allow_undefined_flag=unsupported
8908 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'
8909 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8910 ;;
8911
8912 osf3*)
8913 if test "$GCC" = yes; then
8914 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8915 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'
8916 else
8917 allow_undefined_flag=' -expect_unresolved \*'
8918 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'
8919 fi
8920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921 hardcode_libdir_separator=:
8922 ;;
8923
8924 osf4* | osf5*) # as osf3* with the addition of -msym flag
8925 if test "$GCC" = yes; then
8926 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8927 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'
8928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8929 else
8930 allow_undefined_flag=' -expect_unresolved \*'
8931 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'
8932 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8933 $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'
8934
8935 # Both c and cxx compiler support -rpath directly
8936 hardcode_libdir_flag_spec='-rpath $libdir'
8937 fi
8938 hardcode_libdir_separator=:
8939 ;;
8940
8941 solaris*)
8942 no_undefined_flag=' -z text'
8943 if test "$GCC" = yes; then
8944 wlarc='${wl}'
8945 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8946 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8947 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8948 else
8949 wlarc=''
8950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8951 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8953 fi
8954 hardcode_libdir_flag_spec='-R$libdir'
8955 hardcode_shlibpath_var=no
8956 case $host_os in
8957 solaris2.[0-5] | solaris2.[0-5].*) ;;
8958 *)
8959 # The compiler driver will combine and reorder linker options,
8960 # but understands `-z linker_flag'. GCC discards it without `$wl',
8961 # but is careful enough not to reorder.
8962 # Supported since Solaris 2.6 (maybe 2.5.1?)
8963 if test "$GCC" = yes; then
8964 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8965 else
8966 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8967 fi
8968 ;;
8969 esac
8970 link_all_deplibs=yes
8971 ;;
8972
8973 sunos4*)
8974 if test "x$host_vendor" = xsequent; then
8975 # Use $CC to link under sequent, because it throws in some extra .o
8976 # files that make .init and .fini sections work.
8977 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8978 else
8979 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8980 fi
8981 hardcode_libdir_flag_spec='-L$libdir'
8982 hardcode_direct=yes
8983 hardcode_minus_L=yes
8984 hardcode_shlibpath_var=no
8985 ;;
8986
8987 sysv4)
8988 case $host_vendor in
8989 sni)
8990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991 hardcode_direct=yes # is this really true???
8992 ;;
8993 siemens)
8994 ## LD is ld it makes a PLAMLIB
8995 ## CC just makes a GrossModule.
8996 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8997 reload_cmds='$CC -r -o $output$reload_objs'
8998 hardcode_direct=no
8999 ;;
9000 motorola)
9001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9003 ;;
9004 esac
9005 runpath_var='LD_RUN_PATH'
9006 hardcode_shlibpath_var=no
9007 ;;
9008
9009 sysv4.3*)
9010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011 hardcode_shlibpath_var=no
9012 export_dynamic_flag_spec='-Bexport'
9013 ;;
9014
9015 sysv4*MP*)
9016 if test -d /usr/nec; then
9017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018 hardcode_shlibpath_var=no
9019 runpath_var=LD_RUN_PATH
9020 hardcode_runpath_var=yes
9021 ld_shlibs=yes
9022 fi
9023 ;;
9024
9025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9026 no_undefined_flag='${wl}-z,text'
9027 archive_cmds_need_lc=no
9028 hardcode_shlibpath_var=no
9029 runpath_var='LD_RUN_PATH'
9030
9031 if test "$GCC" = yes; then
9032 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9034 else
9035 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9037 fi
9038 ;;
9039
9040 sysv5* | sco3.2v5* | sco5v6*)
9041 # Note: We can NOT use -z defs as we might desire, because we do not
9042 # link with -lc, and that would cause any symbols used from libc to
9043 # always be unresolved, which means just about no library would
9044 # ever link correctly. If we're not using GNU ld we use -z text
9045 # though, which does catch some bad symbols but isn't as heavy-handed
9046 # as -z defs.
9047 no_undefined_flag='${wl}-z,text'
9048 allow_undefined_flag='${wl}-z,nodefs'
9049 archive_cmds_need_lc=no
9050 hardcode_shlibpath_var=no
9051 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9052 hardcode_libdir_separator=':'
9053 link_all_deplibs=yes
9054 export_dynamic_flag_spec='${wl}-Bexport'
9055 runpath_var='LD_RUN_PATH'
9056
9057 if test "$GCC" = yes; then
9058 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060 else
9061 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9063 fi
9064 ;;
9065
9066 uts4*)
9067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-L$libdir'
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *)
9073 ld_shlibs=no
9074 ;;
9075 esac
9076 fi
9077
9078 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9079 $as_echo "$ld_shlibs" >&6; }
9080 test "$ld_shlibs" = no && can_build_shared=no
9081
9082 #
9083 # Do we need to explicitly link libc?
9084 #
9085 case "x$archive_cmds_need_lc" in
9086 x|xyes)
9087 # Assume -lc should be added
9088 archive_cmds_need_lc=yes
9089
9090 if test "$enable_shared" = yes && test "$GCC" = yes; then
9091 case $archive_cmds in
9092 *'~'*)
9093 # FIXME: we may have to deal with multi-command sequences.
9094 ;;
9095 '$CC '*)
9096 # Test whether the compiler implicitly links with -lc since on some
9097 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9098 # to ld, don't add -lc before -lgcc.
9099 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9100 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9101 $rm conftest*
9102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9103
9104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9105 (eval $ac_compile) 2>&5
9106 ac_status=$?
9107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } 2>conftest.err; then
9109 soname=conftest
9110 lib=conftest
9111 libobjs=conftest.$ac_objext
9112 deplibs=
9113 wl=$lt_prog_compiler_wl
9114 pic_flag=$lt_prog_compiler_pic
9115 compiler_flags=-v
9116 linker_flags=-v
9117 verstring=
9118 output_objdir=.
9119 libname=conftest
9120 lt_save_allow_undefined_flag=$allow_undefined_flag
9121 allow_undefined_flag=
9122 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9123 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9124 ac_status=$?
9125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }
9127 then
9128 archive_cmds_need_lc=no
9129 else
9130 archive_cmds_need_lc=yes
9131 fi
9132 allow_undefined_flag=$lt_save_allow_undefined_flag
9133 else
9134 cat conftest.err 1>&5
9135 fi
9136 $rm conftest*
9137 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9138 $as_echo "$archive_cmds_need_lc" >&6; }
9139 ;;
9140 esac
9141 fi
9142 ;;
9143 esac
9144
9145 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9146 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9147 library_names_spec=
9148 libname_spec='lib$name'
9149 soname_spec=
9150 shrext_cmds=".so"
9151 postinstall_cmds=
9152 postuninstall_cmds=
9153 finish_cmds=
9154 finish_eval=
9155 shlibpath_var=
9156 shlibpath_overrides_runpath=unknown
9157 version_type=none
9158 dynamic_linker="$host_os ld.so"
9159 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9160
9161 if test "$GCC" = yes; then
9162 case $host_os in
9163 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9164 *) lt_awk_arg="/^libraries:/" ;;
9165 esac
9166 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9167 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9168 # if the path contains ";" then we assume it to be the separator
9169 # otherwise default to the standard path separator (i.e. ":") - it is
9170 # assumed that no part of a normal pathname contains ";" but that should
9171 # okay in the real world where ";" in dirpaths is itself problematic.
9172 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9173 else
9174 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9175 fi
9176 # Ok, now we have the path, separated by spaces, we can step through it
9177 # and add multilib dir if necessary.
9178 lt_tmp_lt_search_path_spec=
9179 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9180 for lt_sys_path in $lt_search_path_spec; do
9181 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9182 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9183 else
9184 test -d "$lt_sys_path" && \
9185 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9186 fi
9187 done
9188 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9189 BEGIN {RS=" "; FS="/|\n";} {
9190 lt_foo="";
9191 lt_count=0;
9192 for (lt_i = NF; lt_i > 0; lt_i--) {
9193 if ($lt_i != "" && $lt_i != ".") {
9194 if ($lt_i == "..") {
9195 lt_count++;
9196 } else {
9197 if (lt_count == 0) {
9198 lt_foo="/" $lt_i lt_foo;
9199 } else {
9200 lt_count--;
9201 }
9202 }
9203 }
9204 }
9205 if (lt_foo != "") { lt_freq[lt_foo]++; }
9206 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9207 }'`
9208 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9209 else
9210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9211 fi
9212 need_lib_prefix=unknown
9213 hardcode_into_libs=no
9214
9215 # when you set need_version to no, make sure it does not cause -set_version
9216 # flags to be left without arguments
9217 need_version=unknown
9218
9219 case $host_os in
9220 aix3*)
9221 version_type=linux
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9223 shlibpath_var=LIBPATH
9224
9225 # AIX 3 has no versioning support, so we append a major version to the name.
9226 soname_spec='${libname}${release}${shared_ext}$major'
9227 ;;
9228
9229 aix[4-9]*)
9230 version_type=linux
9231 need_lib_prefix=no
9232 need_version=no
9233 hardcode_into_libs=yes
9234 if test "$host_cpu" = ia64; then
9235 # AIX 5 supports IA64
9236 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9237 shlibpath_var=LD_LIBRARY_PATH
9238 else
9239 # With GCC up to 2.95.x, collect2 would create an import file
9240 # for dependence libraries. The import file would start with
9241 # the line `#! .'. This would cause the generated library to
9242 # depend on `.', always an invalid library. This was fixed in
9243 # development snapshots of GCC prior to 3.0.
9244 case $host_os in
9245 aix4 | aix4.[01] | aix4.[01].*)
9246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9247 echo ' yes '
9248 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9249 :
9250 else
9251 can_build_shared=no
9252 fi
9253 ;;
9254 esac
9255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9256 # soname into executable. Probably we can add versioning support to
9257 # collect2, so additional links can be useful in future.
9258 if test "$aix_use_runtimelinking" = yes; then
9259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9260 # instead of lib<name>.a to let people know that these are not
9261 # typical AIX shared libraries.
9262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9263 else
9264 # We preserve .a as extension for shared libraries through AIX4.2
9265 # and later when we are not doing run time linking.
9266 library_names_spec='${libname}${release}.a $libname.a'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 fi
9269 shlibpath_var=LIBPATH
9270 fi
9271 ;;
9272
9273 amigaos*)
9274 library_names_spec='$libname.ixlibrary $libname.a'
9275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9276 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'
9277 ;;
9278
9279 beos*)
9280 library_names_spec='${libname}${shared_ext}'
9281 dynamic_linker="$host_os ld.so"
9282 shlibpath_var=LIBRARY_PATH
9283 ;;
9284
9285 bsdi[45]*)
9286 version_type=linux
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9294 # the default ld.so.conf also contains /usr/contrib/lib and
9295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9296 # libtool to hard-code these into programs
9297 ;;
9298
9299 cygwin* | mingw* | pw32*)
9300 version_type=windows
9301 shrext_cmds=".dll"
9302 need_version=no
9303 need_lib_prefix=no
9304
9305 case $GCC,$host_os in
9306 yes,cygwin* | yes,mingw* | yes,pw32*)
9307 library_names_spec='$libname.dll.a'
9308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9309 postinstall_cmds='base_file=`basename \${file}`~
9310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9311 dldir=$destdir/`dirname \$dlpath`~
9312 test -d \$dldir || mkdir -p \$dldir~
9313 $install_prog $dir/$dlname \$dldir/$dlname~
9314 chmod a+x \$dldir/$dlname'
9315 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9316 dlpath=$dir/\$dldll~
9317 $rm \$dlpath'
9318 shlibpath_overrides_runpath=yes
9319
9320 case $host_os in
9321 cygwin*)
9322 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9323 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9324 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9325 ;;
9326 mingw*)
9327 # MinGW DLLs use traditional 'lib' prefix
9328 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9329 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9330 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9331 # It is most probably a Windows format PATH printed by
9332 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9333 # path with ; separators, and with drive letters. We can handle the
9334 # drive letters (cygwin fileutils understands them), so leave them,
9335 # especially as we might pass files found there to a mingw objdump,
9336 # which wouldn't understand a cygwinified path. Ahh.
9337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9338 else
9339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9340 fi
9341 ;;
9342 pw32*)
9343 # pw32 DLLs use 'pw' prefix rather than 'lib'
9344 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9345 ;;
9346 esac
9347 ;;
9348
9349 *)
9350 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9351 ;;
9352 esac
9353 dynamic_linker='Win32 ld.exe'
9354 # FIXME: first we should search . and the directory the executable is in
9355 shlibpath_var=PATH
9356 ;;
9357
9358 darwin* | rhapsody*)
9359 dynamic_linker="$host_os dyld"
9360 version_type=darwin
9361 need_lib_prefix=no
9362 need_version=no
9363 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9364 soname_spec='${libname}${release}${major}$shared_ext'
9365 shlibpath_overrides_runpath=yes
9366 shlibpath_var=DYLD_LIBRARY_PATH
9367 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9368
9369 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9370 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9371 ;;
9372
9373 dgux*)
9374 version_type=linux
9375 need_lib_prefix=no
9376 need_version=no
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 ;;
9381
9382 freebsd1*)
9383 dynamic_linker=no
9384 ;;
9385
9386 freebsd* | dragonfly*)
9387 # DragonFly does not have aout. When/if they implement a new
9388 # versioning mechanism, adjust this.
9389 if test -x /usr/bin/objformat; then
9390 objformat=`/usr/bin/objformat`
9391 else
9392 case $host_os in
9393 freebsd[123]*) objformat=aout ;;
9394 *) objformat=elf ;;
9395 esac
9396 fi
9397 version_type=freebsd-$objformat
9398 case $version_type in
9399 freebsd-elf*)
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9401 need_version=no
9402 need_lib_prefix=no
9403 ;;
9404 freebsd-*)
9405 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9406 need_version=yes
9407 ;;
9408 esac
9409 shlibpath_var=LD_LIBRARY_PATH
9410 case $host_os in
9411 freebsd2*)
9412 shlibpath_overrides_runpath=yes
9413 ;;
9414 freebsd3.[01]* | freebsdelf3.[01]*)
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9417 ;;
9418 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9419 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9420 shlibpath_overrides_runpath=no
9421 hardcode_into_libs=yes
9422 ;;
9423 *) # from 4.6 on, and DragonFly
9424 shlibpath_overrides_runpath=yes
9425 hardcode_into_libs=yes
9426 ;;
9427 esac
9428 ;;
9429
9430 gnu*)
9431 version_type=linux
9432 need_lib_prefix=no
9433 need_version=no
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 shlibpath_var=LD_LIBRARY_PATH
9437 hardcode_into_libs=yes
9438 ;;
9439
9440 hpux9* | hpux10* | hpux11*)
9441 # Give a soname corresponding to the major version so that dld.sl refuses to
9442 # link against other versions.
9443 version_type=sunos
9444 need_lib_prefix=no
9445 need_version=no
9446 case $host_cpu in
9447 ia64*)
9448 shrext_cmds='.so'
9449 hardcode_into_libs=yes
9450 dynamic_linker="$host_os dld.so"
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec='${libname}${release}${shared_ext}$major'
9455 if test "X$HPUX_IA64_MODE" = X32; then
9456 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9457 else
9458 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9459 fi
9460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9461 ;;
9462 hppa*64*)
9463 shrext_cmds='.sl'
9464 hardcode_into_libs=yes
9465 dynamic_linker="$host_os dld.sl"
9466 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9467 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9469 soname_spec='${libname}${release}${shared_ext}$major'
9470 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9471 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9472 ;;
9473 *)
9474 shrext_cmds='.sl'
9475 dynamic_linker="$host_os dld.sl"
9476 shlibpath_var=SHLIB_PATH
9477 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 ;;
9481 esac
9482 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9483 postinstall_cmds='chmod 555 $lib'
9484 ;;
9485
9486 interix[3-9]*)
9487 version_type=linux
9488 need_lib_prefix=no
9489 need_version=no
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9492 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=no
9495 hardcode_into_libs=yes
9496 ;;
9497
9498 irix5* | irix6* | nonstopux*)
9499 case $host_os in
9500 nonstopux*) version_type=nonstopux ;;
9501 *)
9502 if test "$lt_cv_prog_gnu_ld" = yes; then
9503 version_type=linux
9504 else
9505 version_type=irix
9506 fi ;;
9507 esac
9508 need_lib_prefix=no
9509 need_version=no
9510 soname_spec='${libname}${release}${shared_ext}$major'
9511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9512 case $host_os in
9513 irix5* | nonstopux*)
9514 libsuff= shlibsuff=
9515 ;;
9516 *)
9517 case $LD in # libtool.m4 will add one of these switches to LD
9518 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9519 libsuff= shlibsuff= libmagic=32-bit;;
9520 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9521 libsuff=32 shlibsuff=N32 libmagic=N32;;
9522 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9523 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9524 *) libsuff= shlibsuff= libmagic=never-match;;
9525 esac
9526 ;;
9527 esac
9528 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9529 shlibpath_overrides_runpath=no
9530 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9531 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9532 hardcode_into_libs=yes
9533 ;;
9534
9535 # No shared lib support for Linux oldld, aout, or coff.
9536 linux*oldld* | linux*aout* | linux*coff*)
9537 dynamic_linker=no
9538 ;;
9539
9540 # This must be Linux ELF.
9541 linux* | k*bsd*-gnu)
9542 version_type=linux
9543 need_lib_prefix=no
9544 need_version=no
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 shlibpath_overrides_runpath=no
9550 # This implies no fast_install, which is unacceptable.
9551 # Some rework will be needed to allow for fast_install
9552 # before this can be enabled.
9553 hardcode_into_libs=yes
9554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9556
9557 # Append ld.so.conf contents to the search path
9558 if test -f /etc/ld.so.conf; then
9559 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' ' '`
9560 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9561 fi
9562
9563 # We used to test for /lib/ld.so.1 and disable shared libraries on
9564 # powerpc, because MkLinux only supported shared libraries with the
9565 # GNU dynamic linker. Since this was broken with cross compilers,
9566 # most powerpc-linux boxes support dynamic linking these days and
9567 # people can always --disable-shared, the test was removed, and we
9568 # assume the GNU/Linux dynamic linker is in use.
9569 dynamic_linker='GNU/Linux ld.so'
9570 ;;
9571
9572 netbsd*)
9573 version_type=sunos
9574 need_lib_prefix=no
9575 need_version=no
9576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9579 dynamic_linker='NetBSD (a.out) ld.so'
9580 else
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 dynamic_linker='NetBSD ld.elf_so'
9584 fi
9585 shlibpath_var=LD_LIBRARY_PATH
9586 shlibpath_overrides_runpath=yes
9587 hardcode_into_libs=yes
9588 ;;
9589
9590 newsos6)
9591 version_type=linux
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 shlibpath_overrides_runpath=yes
9595 ;;
9596
9597 nto-qnx*)
9598 version_type=linux
9599 need_lib_prefix=no
9600 need_version=no
9601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9602 soname_spec='${libname}${release}${shared_ext}$major'
9603 shlibpath_var=LD_LIBRARY_PATH
9604 shlibpath_overrides_runpath=yes
9605 ;;
9606
9607 openbsd*)
9608 version_type=sunos
9609 sys_lib_dlsearch_path_spec="/usr/lib"
9610 need_lib_prefix=no
9611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9612 case $host_os in
9613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9614 *) need_version=no ;;
9615 esac
9616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9618 shlibpath_var=LD_LIBRARY_PATH
9619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9620 case $host_os in
9621 openbsd2.[89] | openbsd2.[89].*)
9622 shlibpath_overrides_runpath=no
9623 ;;
9624 *)
9625 shlibpath_overrides_runpath=yes
9626 ;;
9627 esac
9628 else
9629 shlibpath_overrides_runpath=yes
9630 fi
9631 ;;
9632
9633 os2*)
9634 libname_spec='$name'
9635 shrext_cmds=".dll"
9636 need_lib_prefix=no
9637 library_names_spec='$libname${shared_ext} $libname.a'
9638 dynamic_linker='OS/2 ld.exe'
9639 shlibpath_var=LIBPATH
9640 ;;
9641
9642 osf3* | osf4* | osf5*)
9643 version_type=osf
9644 need_lib_prefix=no
9645 need_version=no
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9648 shlibpath_var=LD_LIBRARY_PATH
9649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9651 ;;
9652
9653 rdos*)
9654 dynamic_linker=no
9655 ;;
9656
9657 solaris*)
9658 version_type=linux
9659 need_lib_prefix=no
9660 need_version=no
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9663 shlibpath_var=LD_LIBRARY_PATH
9664 shlibpath_overrides_runpath=yes
9665 hardcode_into_libs=yes
9666 # ldd complains unless libraries are executable
9667 postinstall_cmds='chmod +x $lib'
9668 ;;
9669
9670 sunos4*)
9671 version_type=sunos
9672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9674 shlibpath_var=LD_LIBRARY_PATH
9675 shlibpath_overrides_runpath=yes
9676 if test "$with_gnu_ld" = yes; then
9677 need_lib_prefix=no
9678 fi
9679 need_version=yes
9680 ;;
9681
9682 sysv4 | sysv4.3*)
9683 version_type=linux
9684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9685 soname_spec='${libname}${release}${shared_ext}$major'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 case $host_vendor in
9688 sni)
9689 shlibpath_overrides_runpath=no
9690 need_lib_prefix=no
9691 export_dynamic_flag_spec='${wl}-Blargedynsym'
9692 runpath_var=LD_RUN_PATH
9693 ;;
9694 siemens)
9695 need_lib_prefix=no
9696 ;;
9697 motorola)
9698 need_lib_prefix=no
9699 need_version=no
9700 shlibpath_overrides_runpath=no
9701 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9702 ;;
9703 esac
9704 ;;
9705
9706 sysv4*MP*)
9707 if test -d /usr/nec ;then
9708 version_type=linux
9709 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9710 soname_spec='$libname${shared_ext}.$major'
9711 shlibpath_var=LD_LIBRARY_PATH
9712 fi
9713 ;;
9714
9715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9716 version_type=freebsd-elf
9717 need_lib_prefix=no
9718 need_version=no
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 hardcode_into_libs=yes
9723 if test "$with_gnu_ld" = yes; then
9724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9725 shlibpath_overrides_runpath=no
9726 else
9727 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9728 shlibpath_overrides_runpath=yes
9729 case $host_os in
9730 sco3.2v5*)
9731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9732 ;;
9733 esac
9734 fi
9735 sys_lib_dlsearch_path_spec='/usr/lib'
9736 ;;
9737
9738 uts4*)
9739 version_type=linux
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741 soname_spec='${libname}${release}${shared_ext}$major'
9742 shlibpath_var=LD_LIBRARY_PATH
9743 ;;
9744
9745 *)
9746 dynamic_linker=no
9747 ;;
9748 esac
9749 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9750 $as_echo "$dynamic_linker" >&6; }
9751 test "$dynamic_linker" = no && can_build_shared=no
9752
9753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9754 $as_echo_n "(cached) " >&6
9755 else
9756 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9757 fi
9758
9759 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9760 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9761 $as_echo_n "(cached) " >&6
9762 else
9763 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9764 fi
9765
9766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9767
9768 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9769 if test "$GCC" = yes; then
9770 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9771 fi
9772
9773 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9775 hardcode_action=
9776 if test -n "$hardcode_libdir_flag_spec" || \
9777 test -n "$runpath_var" || \
9778 test "X$hardcode_automatic" = "Xyes" ; then
9779
9780 # We can hardcode non-existant directories.
9781 if test "$hardcode_direct" != no &&
9782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9783 # have to relink, otherwise we might link with an installed library
9784 # when we should be linking with a yet-to-be-installed one
9785 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9786 test "$hardcode_minus_L" != no; then
9787 # Linking always hardcodes the temporary library directory.
9788 hardcode_action=relink
9789 else
9790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9791 hardcode_action=immediate
9792 fi
9793 else
9794 # We cannot hardcode anything, or else we can only hardcode existing
9795 # directories.
9796 hardcode_action=unsupported
9797 fi
9798 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9799 $as_echo "$hardcode_action" >&6; }
9800
9801 if test "$hardcode_action" = relink; then
9802 # Fast installation is not supported
9803 enable_fast_install=no
9804 elif test "$shlibpath_overrides_runpath" = yes ||
9805 test "$enable_shared" = no; then
9806 # Fast installation is not necessary
9807 enable_fast_install=needless
9808 fi
9809
9810 striplib=
9811 old_striplib=
9812 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9814 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9817 { $as_echo "$as_me:$LINENO: result: yes" >&5
9818 $as_echo "yes" >&6; }
9819 else
9820 # FIXME - insert some real tests, host_os isn't really good enough
9821 case $host_os in
9822 darwin*)
9823 if test -n "$STRIP" ; then
9824 striplib="$STRIP -x"
9825 old_striplib="$STRIP -S"
9826 { $as_echo "$as_me:$LINENO: result: yes" >&5
9827 $as_echo "yes" >&6; }
9828 else
9829 { $as_echo "$as_me:$LINENO: result: no" >&5
9830 $as_echo "no" >&6; }
9831 fi
9832 ;;
9833 *)
9834 { $as_echo "$as_me:$LINENO: result: no" >&5
9835 $as_echo "no" >&6; }
9836 ;;
9837 esac
9838 fi
9839
9840 if test "x$enable_dlopen" != xyes; then
9841 enable_dlopen=unknown
9842 enable_dlopen_self=unknown
9843 enable_dlopen_self_static=unknown
9844 else
9845 lt_cv_dlopen=no
9846 lt_cv_dlopen_libs=
9847
9848 case $host_os in
9849 beos*)
9850 lt_cv_dlopen="load_add_on"
9851 lt_cv_dlopen_libs=
9852 lt_cv_dlopen_self=yes
9853 ;;
9854
9855 mingw* | pw32*)
9856 lt_cv_dlopen="LoadLibrary"
9857 lt_cv_dlopen_libs=
9858 ;;
9859
9860 cygwin*)
9861 lt_cv_dlopen="dlopen"
9862 lt_cv_dlopen_libs=
9863 ;;
9864
9865 darwin*)
9866 # if libdl is installed we need to link against it
9867 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9870 $as_echo_n "(cached) " >&6
9871 else
9872 ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-ldl $LIBS"
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9884 #ifdef __cplusplus
9885 extern "C"
9886 #endif
9887 char dlopen ();
9888 int
9889 main ()
9890 {
9891 return dlopen ();
9892 ;
9893 return 0;
9894 }
9895 _ACEOF
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9898 case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9901 esac
9902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903 $as_echo "$ac_try_echo") >&5
9904 (eval "$ac_link") 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext && {
9914 test "$cross_compiling" = yes ||
9915 $as_test_x conftest$ac_exeext
9916 }; then
9917 ac_cv_lib_dl_dlopen=yes
9918 else
9919 $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922 ac_cv_lib_dl_dlopen=no
9923 fi
9924
9925 rm -rf conftest.dSYM
9926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LIBS=$ac_check_lib_save_LIBS
9929 fi
9930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9934 else
9935
9936 lt_cv_dlopen="dyld"
9937 lt_cv_dlopen_libs=
9938 lt_cv_dlopen_self=yes
9939
9940 fi
9941
9942 ;;
9943
9944 *)
9945 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9946 $as_echo_n "checking for shl_load... " >&6; }
9947 if test "${ac_cv_func_shl_load+set}" = set; then
9948 $as_echo_n "(cached) " >&6
9949 else
9950 cat >conftest.$ac_ext <<_ACEOF
9951 /* confdefs.h. */
9952 _ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958 #define shl_load innocuous_shl_load
9959
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char shl_load (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
9964
9965 #ifdef __STDC__
9966 # include <limits.h>
9967 #else
9968 # include <assert.h>
9969 #endif
9970
9971 #undef shl_load
9972
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9976 #ifdef __cplusplus
9977 extern "C"
9978 #endif
9979 char shl_load ();
9980 /* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983 #if defined __stub_shl_load || defined __stub___shl_load
9984 choke me
9985 #endif
9986
9987 int
9988 main ()
9989 {
9990 return shl_load ();
9991 ;
9992 return 0;
9993 }
9994 _ACEOF
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9997 case "(($ac_try" in
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10000 esac
10001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002 $as_echo "$ac_try_echo") >&5
10003 (eval "$ac_link") 2>conftest.er1
10004 ac_status=$?
10005 grep -v '^ *+' conftest.er1 >conftest.err
10006 rm -f conftest.er1
10007 cat conftest.err >&5
10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext && {
10013 test "$cross_compiling" = yes ||
10014 $as_test_x conftest$ac_exeext
10015 }; then
10016 ac_cv_func_shl_load=yes
10017 else
10018 $as_echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_cv_func_shl_load=no
10022 fi
10023
10024 rm -rf conftest.dSYM
10025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026 conftest$ac_exeext conftest.$ac_ext
10027 fi
10028 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10029 $as_echo "$ac_cv_func_shl_load" >&6; }
10030 if test "x$ac_cv_func_shl_load" = x""yes; then
10031 lt_cv_dlopen="shl_load"
10032 else
10033 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10036 $as_echo_n "(cached) " >&6
10037 else
10038 ac_check_lib_save_LIBS=$LIBS
10039 LIBS="-ldld $LIBS"
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h. */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10046
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char shl_load ();
10054 int
10055 main ()
10056 {
10057 return shl_load ();
10058 ;
10059 return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067 esac
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070 (eval "$ac_link") 2>conftest.er1
10071 ac_status=$?
10072 grep -v '^ *+' conftest.er1 >conftest.err
10073 rm -f conftest.er1
10074 cat conftest.err >&5
10075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest$ac_exeext && {
10080 test "$cross_compiling" = yes ||
10081 $as_test_x conftest$ac_exeext
10082 }; then
10083 ac_cv_lib_dld_shl_load=yes
10084 else
10085 $as_echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_lib_dld_shl_load=no
10089 fi
10090
10091 rm -rf conftest.dSYM
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10095 fi
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10097 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10098 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10099 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10100 else
10101 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10102 $as_echo_n "checking for dlopen... " >&6; }
10103 if test "${ac_cv_func_dlopen+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10105 else
10106 cat >conftest.$ac_ext <<_ACEOF
10107 /* confdefs.h. */
10108 _ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114 #define dlopen innocuous_dlopen
10115
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char dlopen (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10120
10121 #ifdef __STDC__
10122 # include <limits.h>
10123 #else
10124 # include <assert.h>
10125 #endif
10126
10127 #undef dlopen
10128
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10132 #ifdef __cplusplus
10133 extern "C"
10134 #endif
10135 char dlopen ();
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined __stub_dlopen || defined __stub___dlopen
10140 choke me
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146 return dlopen ();
10147 ;
10148 return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10156 esac
10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158 $as_echo "$ac_try_echo") >&5
10159 (eval "$ac_link") 2>conftest.er1
10160 ac_status=$?
10161 grep -v '^ *+' conftest.er1 >conftest.err
10162 rm -f conftest.er1
10163 cat conftest.err >&5
10164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest$ac_exeext && {
10169 test "$cross_compiling" = yes ||
10170 $as_test_x conftest$ac_exeext
10171 }; then
10172 ac_cv_func_dlopen=yes
10173 else
10174 $as_echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10176
10177 ac_cv_func_dlopen=no
10178 fi
10179
10180 rm -rf conftest.dSYM
10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182 conftest$ac_exeext conftest.$ac_ext
10183 fi
10184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10185 $as_echo "$ac_cv_func_dlopen" >&6; }
10186 if test "x$ac_cv_func_dlopen" = x""yes; then
10187 lt_cv_dlopen="dlopen"
10188 else
10189 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10192 $as_echo_n "(cached) " >&6
10193 else
10194 ac_check_lib_save_LIBS=$LIBS
10195 LIBS="-ldl $LIBS"
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10206 #ifdef __cplusplus
10207 extern "C"
10208 #endif
10209 char dlopen ();
10210 int
10211 main ()
10212 {
10213 return dlopen ();
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223 esac
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10238 }; then
10239 ac_cv_lib_dl_dlopen=yes
10240 else
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_cv_lib_dl_dlopen=no
10245 fi
10246
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10251 fi
10252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10256 else
10257 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10259 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lsvld $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_svld_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_svld_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_svld_dlopen" >&5
10321 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10322 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10324 else
10325 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10326 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10328 $as_echo_n "(cached) " >&6
10329 else
10330 ac_check_lib_save_LIBS=$LIBS
10331 LIBS="-ldld $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 dld_link ();
10346 int
10347 main ()
10348 {
10349 return dld_link ();
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_dld_dld_link=yes
10376 else
10377 $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
10389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10390 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10391 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10392 fi
10393
10394
10395 fi
10396
10397
10398 fi
10399
10400
10401 fi
10402
10403
10404 fi
10405
10406
10407 fi
10408
10409 ;;
10410 esac
10411
10412 if test "x$lt_cv_dlopen" != xno; then
10413 enable_dlopen=yes
10414 else
10415 enable_dlopen=no
10416 fi
10417
10418 case $lt_cv_dlopen in
10419 dlopen)
10420 save_CPPFLAGS="$CPPFLAGS"
10421 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10422
10423 save_LDFLAGS="$LDFLAGS"
10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10425
10426 save_LIBS="$LIBS"
10427 LIBS="$lt_cv_dlopen_libs $LIBS"
10428
10429 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10431 if test "${lt_cv_dlopen_self+set}" = set; then
10432 $as_echo_n "(cached) " >&6
10433 else
10434 if test "$cross_compiling" = yes; then :
10435 lt_cv_dlopen_self=cross
10436 else
10437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10438 lt_status=$lt_dlunknown
10439 cat > conftest.$ac_ext <<EOF
10440 #line 10440 "configure"
10441 #include "confdefs.h"
10442
10443 #if HAVE_DLFCN_H
10444 #include <dlfcn.h>
10445 #endif
10446
10447 #include <stdio.h>
10448
10449 #ifdef RTLD_GLOBAL
10450 # define LT_DLGLOBAL RTLD_GLOBAL
10451 #else
10452 # ifdef DL_GLOBAL
10453 # define LT_DLGLOBAL DL_GLOBAL
10454 # else
10455 # define LT_DLGLOBAL 0
10456 # endif
10457 #endif
10458
10459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10460 find out it does not work in some platform. */
10461 #ifndef LT_DLLAZY_OR_NOW
10462 # ifdef RTLD_LAZY
10463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10464 # else
10465 # ifdef DL_LAZY
10466 # define LT_DLLAZY_OR_NOW DL_LAZY
10467 # else
10468 # ifdef RTLD_NOW
10469 # define LT_DLLAZY_OR_NOW RTLD_NOW
10470 # else
10471 # ifdef DL_NOW
10472 # define LT_DLLAZY_OR_NOW DL_NOW
10473 # else
10474 # define LT_DLLAZY_OR_NOW 0
10475 # endif
10476 # endif
10477 # endif
10478 # endif
10479 #endif
10480
10481 #ifdef __cplusplus
10482 extern "C" void exit (int);
10483 #endif
10484
10485 void fnord() { int i=42;}
10486 int main ()
10487 {
10488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10489 int status = $lt_dlunknown;
10490
10491 if (self)
10492 {
10493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10494 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10495 /* dlclose (self); */
10496 }
10497 else
10498 puts (dlerror ());
10499
10500 exit (status);
10501 }
10502 EOF
10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504 (eval $ac_link) 2>&5
10505 ac_status=$?
10506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10508 (./conftest; exit; ) >&5 2>/dev/null
10509 lt_status=$?
10510 case x$lt_status in
10511 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10512 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10513 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10514 esac
10515 else :
10516 # compilation failed
10517 lt_cv_dlopen_self=no
10518 fi
10519 fi
10520 rm -fr conftest*
10521
10522
10523 fi
10524 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10525 $as_echo "$lt_cv_dlopen_self" >&6; }
10526
10527 if test "x$lt_cv_dlopen_self" = xyes; then
10528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10529 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10530 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10531 if test "${lt_cv_dlopen_self_static+set}" = set; then
10532 $as_echo_n "(cached) " >&6
10533 else
10534 if test "$cross_compiling" = yes; then :
10535 lt_cv_dlopen_self_static=cross
10536 else
10537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10538 lt_status=$lt_dlunknown
10539 cat > conftest.$ac_ext <<EOF
10540 #line 10540 "configure"
10541 #include "confdefs.h"
10542
10543 #if HAVE_DLFCN_H
10544 #include <dlfcn.h>
10545 #endif
10546
10547 #include <stdio.h>
10548
10549 #ifdef RTLD_GLOBAL
10550 # define LT_DLGLOBAL RTLD_GLOBAL
10551 #else
10552 # ifdef DL_GLOBAL
10553 # define LT_DLGLOBAL DL_GLOBAL
10554 # else
10555 # define LT_DLGLOBAL 0
10556 # endif
10557 #endif
10558
10559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10560 find out it does not work in some platform. */
10561 #ifndef LT_DLLAZY_OR_NOW
10562 # ifdef RTLD_LAZY
10563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10564 # else
10565 # ifdef DL_LAZY
10566 # define LT_DLLAZY_OR_NOW DL_LAZY
10567 # else
10568 # ifdef RTLD_NOW
10569 # define LT_DLLAZY_OR_NOW RTLD_NOW
10570 # else
10571 # ifdef DL_NOW
10572 # define LT_DLLAZY_OR_NOW DL_NOW
10573 # else
10574 # define LT_DLLAZY_OR_NOW 0
10575 # endif
10576 # endif
10577 # endif
10578 # endif
10579 #endif
10580
10581 #ifdef __cplusplus
10582 extern "C" void exit (int);
10583 #endif
10584
10585 void fnord() { int i=42;}
10586 int main ()
10587 {
10588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10589 int status = $lt_dlunknown;
10590
10591 if (self)
10592 {
10593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10595 /* dlclose (self); */
10596 }
10597 else
10598 puts (dlerror ());
10599
10600 exit (status);
10601 }
10602 EOF
10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10604 (eval $ac_link) 2>&5
10605 ac_status=$?
10606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10608 (./conftest; exit; ) >&5 2>/dev/null
10609 lt_status=$?
10610 case x$lt_status in
10611 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10612 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10613 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10614 esac
10615 else :
10616 # compilation failed
10617 lt_cv_dlopen_self_static=no
10618 fi
10619 fi
10620 rm -fr conftest*
10621
10622
10623 fi
10624 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10625 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10626 fi
10627
10628 CPPFLAGS="$save_CPPFLAGS"
10629 LDFLAGS="$save_LDFLAGS"
10630 LIBS="$save_LIBS"
10631 ;;
10632 esac
10633
10634 case $lt_cv_dlopen_self in
10635 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10636 *) enable_dlopen_self=unknown ;;
10637 esac
10638
10639 case $lt_cv_dlopen_self_static in
10640 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10641 *) enable_dlopen_self_static=unknown ;;
10642 esac
10643 fi
10644
10645
10646 # Report which library types will actually be built
10647 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10648 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10649 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10650 $as_echo "$can_build_shared" >&6; }
10651
10652 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10653 $as_echo_n "checking whether to build shared libraries... " >&6; }
10654 test "$can_build_shared" = "no" && enable_shared=no
10655
10656 # On AIX, shared libraries and static libraries use the same namespace, and
10657 # are all built from PIC.
10658 case $host_os in
10659 aix3*)
10660 test "$enable_shared" = yes && enable_static=no
10661 if test -n "$RANLIB"; then
10662 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10663 postinstall_cmds='$RANLIB $lib'
10664 fi
10665 ;;
10666
10667 aix[4-9]*)
10668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10669 test "$enable_shared" = yes && enable_static=no
10670 fi
10671 ;;
10672 esac
10673 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10674 $as_echo "$enable_shared" >&6; }
10675
10676 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10677 $as_echo_n "checking whether to build static libraries... " >&6; }
10678 # Make sure either enable_shared or enable_static is yes.
10679 test "$enable_shared" = yes || enable_static=yes
10680 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10681 $as_echo "$enable_static" >&6; }
10682
10683 # The else clause should only fire when bootstrapping the
10684 # libtool distribution, otherwise you forgot to ship ltmain.sh
10685 # with your package, and you will get complaints that there are
10686 # no rules to generate ltmain.sh.
10687 if test -f "$ltmain"; then
10688 # See if we are running on zsh, and set the options which allow our commands through
10689 # without removal of \ escapes.
10690 if test -n "${ZSH_VERSION+set}" ; then
10691 setopt NO_GLOB_SUBST
10692 fi
10693 # Now quote all the things that may contain metacharacters while being
10694 # careful not to overquote the AC_SUBSTed values. We take copies of the
10695 # variables and quote the copies for generation of the libtool script.
10696 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10697 SED SHELL STRIP \
10698 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10699 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10700 deplibs_check_method reload_flag reload_cmds need_locks \
10701 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10702 lt_cv_sys_global_symbol_to_c_name_address \
10703 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10704 old_postinstall_cmds old_postuninstall_cmds \
10705 compiler \
10706 CC \
10707 LD \
10708 lt_prog_compiler_wl \
10709 lt_prog_compiler_pic \
10710 lt_prog_compiler_static \
10711 lt_prog_compiler_no_builtin_flag \
10712 export_dynamic_flag_spec \
10713 thread_safe_flag_spec \
10714 whole_archive_flag_spec \
10715 enable_shared_with_static_runtimes \
10716 old_archive_cmds \
10717 old_archive_from_new_cmds \
10718 predep_objects \
10719 postdep_objects \
10720 predeps \
10721 postdeps \
10722 compiler_lib_search_path \
10723 compiler_lib_search_dirs \
10724 archive_cmds \
10725 archive_expsym_cmds \
10726 postinstall_cmds \
10727 postuninstall_cmds \
10728 old_archive_from_expsyms_cmds \
10729 allow_undefined_flag \
10730 no_undefined_flag \
10731 export_symbols_cmds \
10732 hardcode_libdir_flag_spec \
10733 hardcode_libdir_flag_spec_ld \
10734 hardcode_libdir_separator \
10735 hardcode_automatic \
10736 module_cmds \
10737 module_expsym_cmds \
10738 lt_cv_prog_compiler_c_o \
10739 fix_srcfile_path \
10740 exclude_expsyms \
10741 include_expsyms; do
10742
10743 case $var in
10744 old_archive_cmds | \
10745 old_archive_from_new_cmds | \
10746 archive_cmds | \
10747 archive_expsym_cmds | \
10748 module_cmds | \
10749 module_expsym_cmds | \
10750 old_archive_from_expsyms_cmds | \
10751 export_symbols_cmds | \
10752 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10753 postinstall_cmds | postuninstall_cmds | \
10754 old_postinstall_cmds | old_postuninstall_cmds | \
10755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10756 # Double-quote double-evaled strings.
10757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10758 ;;
10759 *)
10760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10761 ;;
10762 esac
10763 done
10764
10765 case $lt_echo in
10766 *'\$0 --fallback-echo"')
10767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10768 ;;
10769 esac
10770
10771 cfgfile="${ofile}T"
10772 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10773 $rm -f "$cfgfile"
10774 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10775 $as_echo "$as_me: creating $ofile" >&6;}
10776
10777 cat <<__EOF__ >> "$cfgfile"
10778 #! $SHELL
10779
10780 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10781 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10782 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10783 #
10784 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10785 # Free Software Foundation, Inc.
10786 #
10787 # This file is part of GNU Libtool:
10788 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10789 #
10790 # This program is free software; you can redistribute it and/or modify
10791 # it under the terms of the GNU General Public License as published by
10792 # the Free Software Foundation; either version 2 of the License, or
10793 # (at your option) any later version.
10794 #
10795 # This program is distributed in the hope that it will be useful, but
10796 # WITHOUT ANY WARRANTY; without even the implied warranty of
10797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10798 # General Public License for more details.
10799 #
10800 # You should have received a copy of the GNU General Public License
10801 # along with this program; if not, write to the Free Software
10802 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10803 #
10804 # As a special exception to the GNU General Public License, if you
10805 # distribute this file as part of a program that contains a
10806 # configuration script generated by Autoconf, you may include it under
10807 # the same distribution terms that you use for the rest of that program.
10808
10809 # A sed program that does not truncate output.
10810 SED=$lt_SED
10811
10812 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10813 Xsed="$SED -e 1s/^X//"
10814
10815 # The HP-UX ksh and POSIX shell print the target directory to stdout
10816 # if CDPATH is set.
10817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10818
10819 # The names of the tagged configurations supported by this script.
10820 available_tags=
10821
10822 # ### BEGIN LIBTOOL CONFIG
10823
10824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10825
10826 # Shell to use when invoking shell scripts.
10827 SHELL=$lt_SHELL
10828
10829 # Whether or not to build shared libraries.
10830 build_libtool_libs=$enable_shared
10831
10832 # Whether or not to build static libraries.
10833 build_old_libs=$enable_static
10834
10835 # Whether or not to add -lc for building shared libraries.
10836 build_libtool_need_lc=$archive_cmds_need_lc
10837
10838 # Whether or not to disallow shared libs when runtime libs are static
10839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10840
10841 # Whether or not to optimize for fast installation.
10842 fast_install=$enable_fast_install
10843
10844 # The host system.
10845 host_alias=$host_alias
10846 host=$host
10847 host_os=$host_os
10848
10849 # The build system.
10850 build_alias=$build_alias
10851 build=$build
10852 build_os=$build_os
10853
10854 # An echo program that does not interpret backslashes.
10855 echo=$lt_echo
10856
10857 # The archiver.
10858 AR=$lt_AR
10859 AR_FLAGS=$lt_AR_FLAGS
10860
10861 # A C compiler.
10862 LTCC=$lt_LTCC
10863
10864 # LTCC compiler flags.
10865 LTCFLAGS=$lt_LTCFLAGS
10866
10867 # A language-specific compiler.
10868 CC=$lt_compiler
10869
10870 # Is the compiler the GNU C compiler?
10871 with_gcc=$GCC
10872
10873 # An ERE matcher.
10874 EGREP=$lt_EGREP
10875
10876 # The linker used to build libraries.
10877 LD=$lt_LD
10878
10879 # Whether we need hard or soft links.
10880 LN_S=$lt_LN_S
10881
10882 # A BSD-compatible nm program.
10883 NM=$lt_NM
10884
10885 # A symbol stripping program
10886 STRIP=$lt_STRIP
10887
10888 # Used to examine libraries when file_magic_cmd begins "file"
10889 MAGIC_CMD=$MAGIC_CMD
10890
10891 # Used on cygwin: DLL creation program.
10892 DLLTOOL="$DLLTOOL"
10893
10894 # Used on cygwin: object dumper.
10895 OBJDUMP="$OBJDUMP"
10896
10897 # Used on cygwin: assembler.
10898 AS="$AS"
10899
10900 # The name of the directory that contains temporary libtool files.
10901 objdir=$objdir
10902
10903 # How to create reloadable object files.
10904 reload_flag=$lt_reload_flag
10905 reload_cmds=$lt_reload_cmds
10906
10907 # How to pass a linker flag through the compiler.
10908 wl=$lt_lt_prog_compiler_wl
10909
10910 # Object file suffix (normally "o").
10911 objext="$ac_objext"
10912
10913 # Old archive suffix (normally "a").
10914 libext="$libext"
10915
10916 # Shared library suffix (normally ".so").
10917 shrext_cmds='$shrext_cmds'
10918
10919 # Executable file suffix (normally "").
10920 exeext="$exeext"
10921
10922 # Additional compiler flags for building library objects.
10923 pic_flag=$lt_lt_prog_compiler_pic
10924 pic_mode=$pic_mode
10925
10926 # What is the maximum length of a command?
10927 max_cmd_len=$lt_cv_sys_max_cmd_len
10928
10929 # Does compiler simultaneously support -c and -o options?
10930 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10931
10932 # Must we lock files when doing compilation?
10933 need_locks=$lt_need_locks
10934
10935 # Do we need the lib prefix for modules?
10936 need_lib_prefix=$need_lib_prefix
10937
10938 # Do we need a version for libraries?
10939 need_version=$need_version
10940
10941 # Whether dlopen is supported.
10942 dlopen_support=$enable_dlopen
10943
10944 # Whether dlopen of programs is supported.
10945 dlopen_self=$enable_dlopen_self
10946
10947 # Whether dlopen of statically linked programs is supported.
10948 dlopen_self_static=$enable_dlopen_self_static
10949
10950 # Compiler flag to prevent dynamic linking.
10951 link_static_flag=$lt_lt_prog_compiler_static
10952
10953 # Compiler flag to turn off builtin functions.
10954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10955
10956 # Compiler flag to allow reflexive dlopens.
10957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10958
10959 # Compiler flag to generate shared objects directly from archives.
10960 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10961
10962 # Compiler flag to generate thread-safe objects.
10963 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10964
10965 # Library versioning type.
10966 version_type=$version_type
10967
10968 # Format of library name prefix.
10969 libname_spec=$lt_libname_spec
10970
10971 # List of archive names. First name is the real one, the rest are links.
10972 # The last name is the one that the linker finds with -lNAME.
10973 library_names_spec=$lt_library_names_spec
10974
10975 # The coded name of the library, if different from the real name.
10976 soname_spec=$lt_soname_spec
10977
10978 # Commands used to build and install an old-style archive.
10979 RANLIB=$lt_RANLIB
10980 old_archive_cmds=$lt_old_archive_cmds
10981 old_postinstall_cmds=$lt_old_postinstall_cmds
10982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10983
10984 # Create an old-style archive from a shared archive.
10985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10986
10987 # Create a temporary old-style archive to link instead of a shared archive.
10988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10989
10990 # Commands used to build and install a shared archive.
10991 archive_cmds=$lt_archive_cmds
10992 archive_expsym_cmds=$lt_archive_expsym_cmds
10993 postinstall_cmds=$lt_postinstall_cmds
10994 postuninstall_cmds=$lt_postuninstall_cmds
10995
10996 # Commands used to build a loadable module (assumed same as above if empty)
10997 module_cmds=$lt_module_cmds
10998 module_expsym_cmds=$lt_module_expsym_cmds
10999
11000 # Commands to strip libraries.
11001 old_striplib=$lt_old_striplib
11002 striplib=$lt_striplib
11003
11004 # Dependencies to place before the objects being linked to create a
11005 # shared library.
11006 predep_objects=$lt_predep_objects
11007
11008 # Dependencies to place after the objects being linked to create a
11009 # shared library.
11010 postdep_objects=$lt_postdep_objects
11011
11012 # Dependencies to place before the objects being linked to create a
11013 # shared library.
11014 predeps=$lt_predeps
11015
11016 # Dependencies to place after the objects being linked to create a
11017 # shared library.
11018 postdeps=$lt_postdeps
11019
11020 # The directories searched by this compiler when creating a shared
11021 # library
11022 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11023
11024 # The library search path used internally by the compiler when linking
11025 # a shared library.
11026 compiler_lib_search_path=$lt_compiler_lib_search_path
11027
11028 # Method to check whether dependent libraries are shared objects.
11029 deplibs_check_method=$lt_deplibs_check_method
11030
11031 # Command to use when deplibs_check_method == file_magic.
11032 file_magic_cmd=$lt_file_magic_cmd
11033
11034 # Flag that allows shared libraries with undefined symbols to be built.
11035 allow_undefined_flag=$lt_allow_undefined_flag
11036
11037 # Flag that forces no undefined symbols.
11038 no_undefined_flag=$lt_no_undefined_flag
11039
11040 # Commands used to finish a libtool library installation in a directory.
11041 finish_cmds=$lt_finish_cmds
11042
11043 # Same as above, but a single script fragment to be evaled but not shown.
11044 finish_eval=$lt_finish_eval
11045
11046 # Take the output of nm and produce a listing of raw symbols and C names.
11047 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11048
11049 # Transform the output of nm in a proper C declaration
11050 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11051
11052 # Transform the output of nm in a C name address pair
11053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11054
11055 # This is the shared library runtime path variable.
11056 runpath_var=$runpath_var
11057
11058 # This is the shared library path variable.
11059 shlibpath_var=$shlibpath_var
11060
11061 # Is shlibpath searched before the hard-coded library search path?
11062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11063
11064 # How to hardcode a shared library path into an executable.
11065 hardcode_action=$hardcode_action
11066
11067 # Whether we should hardcode library paths into libraries.
11068 hardcode_into_libs=$hardcode_into_libs
11069
11070 # Flag to hardcode \$libdir into a binary during linking.
11071 # This must work even if \$libdir does not exist.
11072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11073
11074 # If ld is used when linking, flag to hardcode \$libdir into
11075 # a binary during linking. This must work even if \$libdir does
11076 # not exist.
11077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11078
11079 # Whether we need a single -rpath flag with a separated argument.
11080 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11081
11082 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11083 # resulting binary.
11084 hardcode_direct=$hardcode_direct
11085
11086 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11087 # resulting binary.
11088 hardcode_minus_L=$hardcode_minus_L
11089
11090 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11091 # the resulting binary.
11092 hardcode_shlibpath_var=$hardcode_shlibpath_var
11093
11094 # Set to yes if building a shared library automatically hardcodes DIR into the library
11095 # and all subsequent libraries and executables linked against it.
11096 hardcode_automatic=$hardcode_automatic
11097
11098 # Variables whose values should be saved in libtool wrapper scripts and
11099 # restored at relink time.
11100 variables_saved_for_relink="$variables_saved_for_relink"
11101
11102 # Whether libtool must link a program against all its dependency libraries.
11103 link_all_deplibs=$link_all_deplibs
11104
11105 # Compile-time system search path for libraries
11106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11107
11108 # Run-time system search path for libraries
11109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11110
11111 # Fix the shell variable \$srcfile for the compiler.
11112 fix_srcfile_path=$lt_fix_srcfile_path
11113
11114 # Set to yes if exported symbols are required.
11115 always_export_symbols=$always_export_symbols
11116
11117 # The commands to list exported symbols.
11118 export_symbols_cmds=$lt_export_symbols_cmds
11119
11120 # The commands to extract the exported symbol list from a shared archive.
11121 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11122
11123 # Symbols that should not be listed in the preloaded symbols.
11124 exclude_expsyms=$lt_exclude_expsyms
11125
11126 # Symbols that must always be exported.
11127 include_expsyms=$lt_include_expsyms
11128
11129 # ### END LIBTOOL CONFIG
11130
11131 __EOF__
11132
11133
11134 case $host_os in
11135 aix3*)
11136 cat <<\EOF >> "$cfgfile"
11137
11138 # AIX sometimes has problems with the GCC collect2 program. For some
11139 # reason, if we set the COLLECT_NAMES environment variable, the problems
11140 # vanish in a puff of smoke.
11141 if test "X${COLLECT_NAMES+set}" != Xset; then
11142 COLLECT_NAMES=
11143 export COLLECT_NAMES
11144 fi
11145 EOF
11146 ;;
11147 esac
11148
11149 # We use sed instead of cat because bash on DJGPP gets confused if
11150 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11151 # text mode, it properly converts lines to CR/LF. This bash problem
11152 # is reportedly fixed, but why not run on old versions too?
11153 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11154
11155 mv -f "$cfgfile" "$ofile" || \
11156 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11157 chmod +x "$ofile"
11158
11159 else
11160 # If there is no Makefile yet, we rely on a make rule to execute
11161 # `config.status --recheck' to rerun these tests and create the
11162 # libtool script then.
11163 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11164 if test -f "$ltmain_in"; then
11165 test -f Makefile && make "$ltmain"
11166 fi
11167 fi
11168
11169
11170 ac_ext=c
11171 ac_cpp='$CPP $CPPFLAGS'
11172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11175
11176 CC="$lt_save_CC"
11177
11178
11179 # Check whether --with-tags was given.
11180 if test "${with_tags+set}" = set; then
11181 withval=$with_tags; tagnames="$withval"
11182 fi
11183
11184
11185 if test -f "$ltmain" && test -n "$tagnames"; then
11186 if test ! -f "${ofile}"; then
11187 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11188 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11189 fi
11190
11191 if test -z "$LTCC"; then
11192 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11193 if test -z "$LTCC"; then
11194 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11195 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11196 else
11197 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11198 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11199 fi
11200 fi
11201 if test -z "$LTCFLAGS"; then
11202 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11203 fi
11204
11205 # Extract list of available tagged configurations in $ofile.
11206 # Note that this assumes the entire list is on one line.
11207 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11208
11209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11210 for tagname in $tagnames; do
11211 IFS="$lt_save_ifs"
11212 # Check whether tagname contains only valid characters
11213 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11214 "") ;;
11215 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11216 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11217 { (exit 1); exit 1; }; }
11218 ;;
11219 esac
11220
11221 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11222 then
11223 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11224 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11225 { (exit 1); exit 1; }; }
11226 fi
11227
11228 # Update the list of available tags.
11229 if test -n "$tagname"; then
11230 echo appending configuration tag \"$tagname\" to $ofile
11231
11232 case $tagname in
11233 CXX)
11234 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11235 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11236 (test "X$CXX" != "Xg++"))) ; then
11237 ac_ext=cpp
11238 ac_cpp='$CXXCPP $CPPFLAGS'
11239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11242
11243
11244
11245
11246 archive_cmds_need_lc_CXX=no
11247 allow_undefined_flag_CXX=
11248 always_export_symbols_CXX=no
11249 archive_expsym_cmds_CXX=
11250 export_dynamic_flag_spec_CXX=
11251 hardcode_direct_CXX=no
11252 hardcode_libdir_flag_spec_CXX=
11253 hardcode_libdir_flag_spec_ld_CXX=
11254 hardcode_libdir_separator_CXX=
11255 hardcode_minus_L_CXX=no
11256 hardcode_shlibpath_var_CXX=unsupported
11257 hardcode_automatic_CXX=no
11258 module_cmds_CXX=
11259 module_expsym_cmds_CXX=
11260 link_all_deplibs_CXX=unknown
11261 old_archive_cmds_CXX=$old_archive_cmds
11262 no_undefined_flag_CXX=
11263 whole_archive_flag_spec_CXX=
11264 enable_shared_with_static_runtimes_CXX=no
11265
11266 # Dependencies to place before and after the object being linked:
11267 predep_objects_CXX=
11268 postdep_objects_CXX=
11269 predeps_CXX=
11270 postdeps_CXX=
11271 compiler_lib_search_path_CXX=
11272 compiler_lib_search_dirs_CXX=
11273
11274 # Source file extension for C++ test sources.
11275 ac_ext=cpp
11276
11277 # Object file extension for compiled C++ test sources.
11278 objext=o
11279 objext_CXX=$objext
11280
11281 # Code to be used in simple compile tests
11282 lt_simple_compile_test_code="int some_variable = 0;"
11283
11284 # Code to be used in simple link tests
11285 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11286
11287 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11288
11289 # If no C compiler was specified, use CC.
11290 LTCC=${LTCC-"$CC"}
11291
11292 # If no C compiler flags were specified, use CFLAGS.
11293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11294
11295 # Allow CC to be a program name with arguments.
11296 compiler=$CC
11297
11298
11299 # save warnings/boilerplate of simple test code
11300 ac_outfile=conftest.$ac_objext
11301 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11303 _lt_compiler_boilerplate=`cat conftest.err`
11304 $rm conftest*
11305
11306 ac_outfile=conftest.$ac_objext
11307 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11309 _lt_linker_boilerplate=`cat conftest.err`
11310 $rm -r conftest*
11311
11312
11313 # Allow CC to be a program name with arguments.
11314 lt_save_CC=$CC
11315 lt_save_LD=$LD
11316 lt_save_GCC=$GCC
11317 GCC=$GXX
11318 lt_save_with_gnu_ld=$with_gnu_ld
11319 lt_save_path_LD=$lt_cv_path_LD
11320 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11321 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11322 else
11323 $as_unset lt_cv_prog_gnu_ld
11324 fi
11325 if test -n "${lt_cv_path_LDCXX+set}"; then
11326 lt_cv_path_LD=$lt_cv_path_LDCXX
11327 else
11328 $as_unset lt_cv_path_LD
11329 fi
11330 test -z "${LDCXX+set}" || LD=$LDCXX
11331 CC=${CXX-"c++"}
11332 compiler=$CC
11333 compiler_CXX=$CC
11334 for cc_temp in $compiler""; do
11335 case $cc_temp in
11336 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11337 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11338 \-*) ;;
11339 *) break;;
11340 esac
11341 done
11342 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11343
11344
11345 # We don't want -fno-exception wen compiling C++ code, so set the
11346 # no_builtin_flag separately
11347 if test "$GXX" = yes; then
11348 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11349 else
11350 lt_prog_compiler_no_builtin_flag_CXX=
11351 fi
11352
11353 if test "$GXX" = yes; then
11354 # Set up default GNU C++ configuration
11355
11356
11357 # Check whether --with-gnu-ld was given.
11358 if test "${with_gnu_ld+set}" = set; then
11359 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11360 else
11361 with_gnu_ld=no
11362 fi
11363
11364 ac_prog=ld
11365 if test "$GCC" = yes; then
11366 # Check if gcc -print-prog-name=ld gives a path.
11367 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11368 $as_echo_n "checking for ld used by $CC... " >&6; }
11369 case $host in
11370 *-*-mingw*)
11371 # gcc leaves a trailing carriage return which upsets mingw
11372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11373 *)
11374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11375 esac
11376 case $ac_prog in
11377 # Accept absolute paths.
11378 [\\/]* | ?:[\\/]*)
11379 re_direlt='/[^/][^/]*/\.\./'
11380 # Canonicalize the pathname of ld
11381 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11382 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11383 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11384 done
11385 test -z "$LD" && LD="$ac_prog"
11386 ;;
11387 "")
11388 # If it fails, then pretend we aren't using GCC.
11389 ac_prog=ld
11390 ;;
11391 *)
11392 # If it is relative, then search for the first ld in PATH.
11393 with_gnu_ld=unknown
11394 ;;
11395 esac
11396 elif test "$with_gnu_ld" = yes; then
11397 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11398 $as_echo_n "checking for GNU ld... " >&6; }
11399 else
11400 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11401 $as_echo_n "checking for non-GNU ld... " >&6; }
11402 fi
11403 if test "${lt_cv_path_LD+set}" = set; then
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test -z "$LD"; then
11407 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11408 for ac_dir in $PATH; do
11409 IFS="$lt_save_ifs"
11410 test -z "$ac_dir" && ac_dir=.
11411 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11412 lt_cv_path_LD="$ac_dir/$ac_prog"
11413 # Check to see if the program is GNU ld. I'd rather use --version,
11414 # but apparently some variants of GNU ld only accept -v.
11415 # Break only if it was the GNU/non-GNU ld that we prefer.
11416 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11417 *GNU* | *'with BFD'*)
11418 test "$with_gnu_ld" != no && break
11419 ;;
11420 *)
11421 test "$with_gnu_ld" != yes && break
11422 ;;
11423 esac
11424 fi
11425 done
11426 IFS="$lt_save_ifs"
11427 else
11428 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11429 fi
11430 fi
11431
11432 LD="$lt_cv_path_LD"
11433 if test -n "$LD"; then
11434 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11435 $as_echo "$LD" >&6; }
11436 else
11437 { $as_echo "$as_me:$LINENO: result: no" >&5
11438 $as_echo "no" >&6; }
11439 fi
11440 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11441 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11442 { (exit 1); exit 1; }; }
11443 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11444 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11445 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11446 $as_echo_n "(cached) " >&6
11447 else
11448 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11449 case `$LD -v 2>&1 </dev/null` in
11450 *GNU* | *'with BFD'*)
11451 lt_cv_prog_gnu_ld=yes
11452 ;;
11453 *)
11454 lt_cv_prog_gnu_ld=no
11455 ;;
11456 esac
11457 fi
11458 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11459 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11460 with_gnu_ld=$lt_cv_prog_gnu_ld
11461
11462
11463
11464 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11465 # archiving commands below assume that GNU ld is being used.
11466 if test "$with_gnu_ld" = yes; then
11467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11468 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'
11469
11470 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11472
11473 # If archive_cmds runs LD, not CC, wlarc should be empty
11474 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11475 # investigate it a little bit more. (MM)
11476 wlarc='${wl}'
11477
11478 # ancient GNU ld didn't support --whole-archive et. al.
11479 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11480 grep 'no-whole-archive' > /dev/null; then
11481 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11482 else
11483 whole_archive_flag_spec_CXX=
11484 fi
11485 else
11486 with_gnu_ld=no
11487 wlarc=
11488
11489 # A generic and very simple default shared library creation
11490 # command for GNU C++ for the case where it uses the native
11491 # linker, instead of GNU ld. If possible, this setting should
11492 # overridden to take advantage of the native linker features on
11493 # the platform it is being used on.
11494 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11495 fi
11496
11497 # Commands to make compiler produce verbose output that lists
11498 # what "hidden" libraries, object files and flags are used when
11499 # linking a shared library.
11500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11501
11502 else
11503 GXX=no
11504 with_gnu_ld=no
11505 wlarc=
11506 fi
11507
11508 # PORTME: fill in a description of your system's C++ link characteristics
11509 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11510 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11511 ld_shlibs_CXX=yes
11512 case $host_os in
11513 aix3*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 ;;
11517 aix[4-9]*)
11518 if test "$host_cpu" = ia64; then
11519 # On IA64, the linker does run time linking by default, so we don't
11520 # have to do anything special.
11521 aix_use_runtimelinking=no
11522 exp_sym_flag='-Bexport'
11523 no_entry_flag=""
11524 else
11525 aix_use_runtimelinking=no
11526
11527 # Test if we are trying to use run time linking or normal
11528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11529 # need to do runtime linking.
11530 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11531 for ld_flag in $LDFLAGS; do
11532 case $ld_flag in
11533 *-brtl*)
11534 aix_use_runtimelinking=yes
11535 break
11536 ;;
11537 esac
11538 done
11539 ;;
11540 esac
11541
11542 exp_sym_flag='-bexport'
11543 no_entry_flag='-bnoentry'
11544 fi
11545
11546 # When large executables or shared objects are built, AIX ld can
11547 # have problems creating the table of contents. If linking a library
11548 # or program results in "error TOC overflow" add -mminimal-toc to
11549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11551
11552 archive_cmds_CXX=''
11553 hardcode_direct_CXX=yes
11554 hardcode_libdir_separator_CXX=':'
11555 link_all_deplibs_CXX=yes
11556
11557 if test "$GXX" = yes; then
11558 case $host_os in aix4.[012]|aix4.[012].*)
11559 # We only want to do this on AIX 4.2 and lower, the check
11560 # below for broken collect2 doesn't work under 4.3+
11561 collect2name=`${CC} -print-prog-name=collect2`
11562 if test -f "$collect2name" && \
11563 strings "$collect2name" | grep resolve_lib_name >/dev/null
11564 then
11565 # We have reworked collect2
11566 :
11567 else
11568 # We have old collect2
11569 hardcode_direct_CXX=unsupported
11570 # It fails to find uninstalled libraries when the uninstalled
11571 # path is not listed in the libpath. Setting hardcode_minus_L
11572 # to unsupported forces relinking
11573 hardcode_minus_L_CXX=yes
11574 hardcode_libdir_flag_spec_CXX='-L$libdir'
11575 hardcode_libdir_separator_CXX=
11576 fi
11577 ;;
11578 esac
11579 shared_flag='-shared'
11580 if test "$aix_use_runtimelinking" = yes; then
11581 shared_flag="$shared_flag "'${wl}-G'
11582 fi
11583 else
11584 # not using gcc
11585 if test "$host_cpu" = ia64; then
11586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11587 # chokes on -Wl,-G. The following line is correct:
11588 shared_flag='-G'
11589 else
11590 if test "$aix_use_runtimelinking" = yes; then
11591 shared_flag='${wl}-G'
11592 else
11593 shared_flag='${wl}-bM:SRE'
11594 fi
11595 fi
11596 fi
11597
11598 # It seems that -bexpall does not export symbols beginning with
11599 # underscore (_), so it is better to generate a list of symbols to export.
11600 always_export_symbols_CXX=yes
11601 if test "$aix_use_runtimelinking" = yes; then
11602 # Warning - without using the other runtime loading flags (-brtl),
11603 # -berok will link without error, but may produce a broken library.
11604 allow_undefined_flag_CXX='-berok'
11605 # Determine the default libpath from the value encoded in an empty executable.
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h. */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612
11613 int
11614 main ()
11615 {
11616
11617 ;
11618 return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11628 $as_echo "$ac_try_echo") >&5
11629 (eval "$ac_link") 2>conftest.er1
11630 ac_status=$?
11631 grep -v '^ *+' conftest.er1 >conftest.err
11632 rm -f conftest.er1
11633 cat conftest.err >&5
11634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_cxx_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest$ac_exeext && {
11639 test "$cross_compiling" = yes ||
11640 $as_test_x conftest$ac_exeext
11641 }; then
11642
11643 lt_aix_libpath_sed='
11644 /Import File Strings/,/^$/ {
11645 /^0/ {
11646 s/^0 *\(.*\)$/\1/
11647 p
11648 }
11649 }'
11650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11651 # Check for a 64-bit object if we didn't find anything.
11652 if test -z "$aix_libpath"; then
11653 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11654 fi
11655 else
11656 $as_echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659
11660 fi
11661
11662 rm -rf conftest.dSYM
11663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11664 conftest$ac_exeext conftest.$ac_ext
11665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11666
11667 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11668
11669 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"
11670 else
11671 if test "$host_cpu" = ia64; then
11672 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11673 allow_undefined_flag_CXX="-z nodefs"
11674 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"
11675 else
11676 # Determine the default libpath from the value encoded in an empty executable.
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h. */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683
11684 int
11685 main ()
11686 {
11687
11688 ;
11689 return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11697 esac
11698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11699 $as_echo "$ac_try_echo") >&5
11700 (eval "$ac_link") 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } && {
11707 test -z "$ac_cxx_werror_flag" ||
11708 test ! -s conftest.err
11709 } && test -s conftest$ac_exeext && {
11710 test "$cross_compiling" = yes ||
11711 $as_test_x conftest$ac_exeext
11712 }; then
11713
11714 lt_aix_libpath_sed='
11715 /Import File Strings/,/^$/ {
11716 /^0/ {
11717 s/^0 *\(.*\)$/\1/
11718 p
11719 }
11720 }'
11721 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11722 # Check for a 64-bit object if we didn't find anything.
11723 if test -z "$aix_libpath"; then
11724 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725 fi
11726 else
11727 $as_echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11729
11730
11731 fi
11732
11733 rm -rf conftest.dSYM
11734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11735 conftest$ac_exeext conftest.$ac_ext
11736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11737
11738 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11739 # Warning - without using the other run time loading flags,
11740 # -berok will link without error, but may produce a broken library.
11741 no_undefined_flag_CXX=' ${wl}-bernotok'
11742 allow_undefined_flag_CXX=' ${wl}-berok'
11743 # Exported symbols can be pulled into shared objects from archives
11744 whole_archive_flag_spec_CXX='$convenience'
11745 archive_cmds_need_lc_CXX=yes
11746 # This is similar to how AIX traditionally builds its shared libraries.
11747 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'
11748 fi
11749 fi
11750 ;;
11751
11752 beos*)
11753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11754 allow_undefined_flag_CXX=unsupported
11755 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11756 # support --undefined. This deserves some investigation. FIXME
11757 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11758 else
11759 ld_shlibs_CXX=no
11760 fi
11761 ;;
11762
11763 chorus*)
11764 case $cc_basename in
11765 *)
11766 # FIXME: insert proper C++ library support
11767 ld_shlibs_CXX=no
11768 ;;
11769 esac
11770 ;;
11771
11772 cygwin* | mingw* | pw32*)
11773 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11774 # as there is no search path for DLLs.
11775 hardcode_libdir_flag_spec_CXX='-L$libdir'
11776 allow_undefined_flag_CXX=unsupported
11777 always_export_symbols_CXX=no
11778 enable_shared_with_static_runtimes_CXX=yes
11779
11780 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11781 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'
11782 # If the export-symbols file already is a .def file (1st line
11783 # is EXPORTS), use it as is; otherwise, prepend...
11784 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11785 cp $export_symbols $output_objdir/$soname.def;
11786 else
11787 echo EXPORTS > $output_objdir/$soname.def;
11788 cat $export_symbols >> $output_objdir/$soname.def;
11789 fi~
11790 $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'
11791 else
11792 ld_shlibs_CXX=no
11793 fi
11794 ;;
11795 darwin* | rhapsody*)
11796 archive_cmds_need_lc_CXX=no
11797 hardcode_direct_CXX=no
11798 hardcode_automatic_CXX=yes
11799 hardcode_shlibpath_var_CXX=unsupported
11800 whole_archive_flag_spec_CXX=''
11801 link_all_deplibs_CXX=yes
11802 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11803 if test "$GXX" = yes ; then
11804 output_verbose_link_cmd='echo'
11805 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}"
11806 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11807 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}"
11808 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}"
11809 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11810 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}"
11811 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}"
11812 fi
11813 else
11814 case $cc_basename in
11815 xlc*)
11816 output_verbose_link_cmd='echo'
11817 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'
11818 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11819 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11820 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}'
11821 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}'
11822 ;;
11823 *)
11824 ld_shlibs_CXX=no
11825 ;;
11826 esac
11827 fi
11828 ;;
11829
11830 dgux*)
11831 case $cc_basename in
11832 ec++*)
11833 # FIXME: insert proper C++ library support
11834 ld_shlibs_CXX=no
11835 ;;
11836 ghcx*)
11837 # Green Hills C++ Compiler
11838 # FIXME: insert proper C++ library support
11839 ld_shlibs_CXX=no
11840 ;;
11841 *)
11842 # FIXME: insert proper C++ library support
11843 ld_shlibs_CXX=no
11844 ;;
11845 esac
11846 ;;
11847 freebsd[12]*)
11848 # C++ shared libraries reported to be fairly broken before switch to ELF
11849 ld_shlibs_CXX=no
11850 ;;
11851 freebsd-elf*)
11852 archive_cmds_need_lc_CXX=no
11853 ;;
11854 freebsd* | dragonfly*)
11855 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11856 # conventions
11857 ld_shlibs_CXX=yes
11858 ;;
11859 gnu*)
11860 ;;
11861 hpux9*)
11862 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11863 hardcode_libdir_separator_CXX=:
11864 export_dynamic_flag_spec_CXX='${wl}-E'
11865 hardcode_direct_CXX=yes
11866 hardcode_minus_L_CXX=yes # Not in the search PATH,
11867 # but as the default
11868 # location of the library.
11869
11870 case $cc_basename in
11871 CC*)
11872 # FIXME: insert proper C++ library support
11873 ld_shlibs_CXX=no
11874 ;;
11875 aCC*)
11876 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'
11877 # Commands to make compiler produce verbose output that lists
11878 # what "hidden" libraries, object files and flags are used when
11879 # linking a shared library.
11880 #
11881 # There doesn't appear to be a way to prevent this compiler from
11882 # explicitly linking system object files so we need to strip them
11883 # from the output so that they don't get included in the library
11884 # dependencies.
11885 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'
11886 ;;
11887 *)
11888 if test "$GXX" = yes; then
11889 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'
11890 else
11891 # FIXME: insert proper C++ library support
11892 ld_shlibs_CXX=no
11893 fi
11894 ;;
11895 esac
11896 ;;
11897 hpux10*|hpux11*)
11898 if test $with_gnu_ld = no; then
11899 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11900 hardcode_libdir_separator_CXX=:
11901
11902 case $host_cpu in
11903 hppa*64*|ia64*) ;;
11904 *)
11905 export_dynamic_flag_spec_CXX='${wl}-E'
11906 ;;
11907 esac
11908 fi
11909 case $host_cpu in
11910 hppa*64*|ia64*)
11911 hardcode_direct_CXX=no
11912 hardcode_shlibpath_var_CXX=no
11913 ;;
11914 *)
11915 hardcode_direct_CXX=yes
11916 hardcode_minus_L_CXX=yes # Not in the search PATH,
11917 # but as the default
11918 # location of the library.
11919 ;;
11920 esac
11921
11922 case $cc_basename in
11923 CC*)
11924 # FIXME: insert proper C++ library support
11925 ld_shlibs_CXX=no
11926 ;;
11927 aCC*)
11928 case $host_cpu in
11929 hppa*64*)
11930 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11931 ;;
11932 ia64*)
11933 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11934 ;;
11935 *)
11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937 ;;
11938 esac
11939 # Commands to make compiler produce verbose output that lists
11940 # what "hidden" libraries, object files and flags are used when
11941 # linking a shared library.
11942 #
11943 # There doesn't appear to be a way to prevent this compiler from
11944 # explicitly linking system object files so we need to strip them
11945 # from the output so that they don't get included in the library
11946 # dependencies.
11947 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'
11948 ;;
11949 *)
11950 if test "$GXX" = yes; then
11951 if test $with_gnu_ld = no; then
11952 case $host_cpu in
11953 hppa*64*)
11954 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955 ;;
11956 ia64*)
11957 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958 ;;
11959 *)
11960 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'
11961 ;;
11962 esac
11963 fi
11964 else
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 fi
11968 ;;
11969 esac
11970 ;;
11971 interix[3-9]*)
11972 hardcode_direct_CXX=no
11973 hardcode_shlibpath_var_CXX=no
11974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11975 export_dynamic_flag_spec_CXX='${wl}-E'
11976 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11977 # Instead, shared libraries are loaded at an image base (0x10000000 by
11978 # default) and relocated if they conflict, which is a slow very memory
11979 # consuming and fragmenting process. To avoid this, we pick a random,
11980 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11981 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11982 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'
11983 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'
11984 ;;
11985 irix5* | irix6*)
11986 case $cc_basename in
11987 CC*)
11988 # SGI C++
11989 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'
11990
11991 # Archives containing C++ object files must be created using
11992 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11993 # necessary to make sure instantiated templates are included
11994 # in the archive.
11995 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11996 ;;
11997 *)
11998 if test "$GXX" = yes; then
11999 if test "$with_gnu_ld" = no; then
12000 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'
12001 else
12002 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'
12003 fi
12004 fi
12005 link_all_deplibs_CXX=yes
12006 ;;
12007 esac
12008 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009 hardcode_libdir_separator_CXX=:
12010 ;;
12011 linux* | k*bsd*-gnu)
12012 case $cc_basename in
12013 KCC*)
12014 # Kuck and Associates, Inc. (KAI) C++ Compiler
12015
12016 # KCC will only create a shared library if the output file
12017 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018 # to its proper name (with version) after linking.
12019 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'
12020 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'
12021 # Commands to make compiler produce verbose output that lists
12022 # what "hidden" libraries, object files and flags are used when
12023 # linking a shared library.
12024 #
12025 # There doesn't appear to be a way to prevent this compiler from
12026 # explicitly linking system object files so we need to strip them
12027 # from the output so that they don't get included in the library
12028 # dependencies.
12029 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'
12030
12031 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033
12034 # Archives containing C++ object files must be created using
12035 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12037 ;;
12038 icpc*)
12039 # Intel C++
12040 with_gnu_ld=yes
12041 # version 8.0 and above of icpc choke on multiply defined symbols
12042 # if we add $predep_objects and $postdep_objects, however 7.1 and
12043 # earlier do not add the objects themselves.
12044 case `$CC -V 2>&1` in
12045 *"Version 7."*)
12046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047 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'
12048 ;;
12049 *) # Version 8.0 or newer
12050 tmp_idyn=
12051 case $host_cpu in
12052 ia64*) tmp_idyn=' -i_dynamic';;
12053 esac
12054 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055 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'
12056 ;;
12057 esac
12058 archive_cmds_need_lc_CXX=no
12059 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12062 ;;
12063 pgCC* | pgcpp*)
12064 # Portland Group C++ compiler
12065 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12066 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'
12067
12068 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070 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'
12071 ;;
12072 cxx*)
12073 # Compaq C++
12074 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075 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'
12076
12077 runpath_var=LD_RUN_PATH
12078 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12079 hardcode_libdir_separator_CXX=:
12080
12081 # Commands to make compiler produce verbose output that lists
12082 # what "hidden" libraries, object files and flags are used when
12083 # linking a shared library.
12084 #
12085 # There doesn't appear to be a way to prevent this compiler from
12086 # explicitly linking system object files so we need to strip them
12087 # from the output so that they don't get included in the library
12088 # dependencies.
12089 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'
12090 ;;
12091 *)
12092 case `$CC -V 2>&1 | sed 5q` in
12093 *Sun\ C*)
12094 # Sun C++ 5.9
12095 no_undefined_flag_CXX=' -zdefs'
12096 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12097 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'
12098 hardcode_libdir_flag_spec_CXX='-R$libdir'
12099 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'
12100
12101 # Not sure whether something based on
12102 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12103 # would be better.
12104 output_verbose_link_cmd='echo'
12105
12106 # Archives containing C++ object files must be created using
12107 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12108 # necessary to make sure instantiated templates are included
12109 # in the archive.
12110 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12111 ;;
12112 esac
12113 ;;
12114 esac
12115 ;;
12116 lynxos*)
12117 # FIXME: insert proper C++ library support
12118 ld_shlibs_CXX=no
12119 ;;
12120 m88k*)
12121 # FIXME: insert proper C++ library support
12122 ld_shlibs_CXX=no
12123 ;;
12124 mvs*)
12125 case $cc_basename in
12126 cxx*)
12127 # FIXME: insert proper C++ library support
12128 ld_shlibs_CXX=no
12129 ;;
12130 *)
12131 # FIXME: insert proper C++ library support
12132 ld_shlibs_CXX=no
12133 ;;
12134 esac
12135 ;;
12136 netbsd*)
12137 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12138 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12139 wlarc=
12140 hardcode_libdir_flag_spec_CXX='-R$libdir'
12141 hardcode_direct_CXX=yes
12142 hardcode_shlibpath_var_CXX=no
12143 fi
12144 # Workaround some broken pre-1.5 toolchains
12145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12146 ;;
12147 openbsd2*)
12148 # C++ shared libraries are fairly broken
12149 ld_shlibs_CXX=no
12150 ;;
12151 openbsd*)
12152 if test -f /usr/libexec/ld.so; then
12153 hardcode_direct_CXX=yes
12154 hardcode_shlibpath_var_CXX=no
12155 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12156 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12158 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12159 export_dynamic_flag_spec_CXX='${wl}-E'
12160 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12161 fi
12162 output_verbose_link_cmd='echo'
12163 else
12164 ld_shlibs_CXX=no
12165 fi
12166 ;;
12167 osf3*)
12168 case $cc_basename in
12169 KCC*)
12170 # Kuck and Associates, Inc. (KAI) C++ Compiler
12171
12172 # KCC will only create a shared library if the output file
12173 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12174 # to its proper name (with version) after linking.
12175 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'
12176
12177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12178 hardcode_libdir_separator_CXX=:
12179
12180 # Archives containing C++ object files must be created using
12181 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12182 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12183
12184 ;;
12185 RCC*)
12186 # Rational C++ 2.4.1
12187 # FIXME: insert proper C++ library support
12188 ld_shlibs_CXX=no
12189 ;;
12190 cxx*)
12191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12192 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'
12193
12194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12195 hardcode_libdir_separator_CXX=:
12196
12197 # Commands to make compiler produce verbose output that lists
12198 # what "hidden" libraries, object files and flags are used when
12199 # linking a shared library.
12200 #
12201 # There doesn't appear to be a way to prevent this compiler from
12202 # explicitly linking system object files so we need to strip them
12203 # from the output so that they don't get included in the library
12204 # dependencies.
12205 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'
12206 ;;
12207 *)
12208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12209 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12210 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'
12211
12212 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12213 hardcode_libdir_separator_CXX=:
12214
12215 # Commands to make compiler produce verbose output that lists
12216 # what "hidden" libraries, object files and flags are used when
12217 # linking a shared library.
12218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12219
12220 else
12221 # FIXME: insert proper C++ library support
12222 ld_shlibs_CXX=no
12223 fi
12224 ;;
12225 esac
12226 ;;
12227 osf4* | osf5*)
12228 case $cc_basename in
12229 KCC*)
12230 # Kuck and Associates, Inc. (KAI) C++ Compiler
12231
12232 # KCC will only create a shared library if the output file
12233 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12234 # to its proper name (with version) after linking.
12235 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'
12236
12237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12238 hardcode_libdir_separator_CXX=:
12239
12240 # Archives containing C++ object files must be created using
12241 # the KAI C++ compiler.
12242 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12243 ;;
12244 RCC*)
12245 # Rational C++ 2.4.1
12246 # FIXME: insert proper C++ library support
12247 ld_shlibs_CXX=no
12248 ;;
12249 cxx*)
12250 allow_undefined_flag_CXX=' -expect_unresolved \*'
12251 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'
12252 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12253 echo "-hidden">> $lib.exp~
12254 $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~
12255 $rm $lib.exp'
12256
12257 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12258 hardcode_libdir_separator_CXX=:
12259
12260 # Commands to make compiler produce verbose output that lists
12261 # what "hidden" libraries, object files and flags are used when
12262 # linking a shared library.
12263 #
12264 # There doesn't appear to be a way to prevent this compiler from
12265 # explicitly linking system object files so we need to strip them
12266 # from the output so that they don't get included in the library
12267 # dependencies.
12268 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'
12269 ;;
12270 *)
12271 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12272 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12273 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'
12274
12275 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12276 hardcode_libdir_separator_CXX=:
12277
12278 # Commands to make compiler produce verbose output that lists
12279 # what "hidden" libraries, object files and flags are used when
12280 # linking a shared library.
12281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12282
12283 else
12284 # FIXME: insert proper C++ library support
12285 ld_shlibs_CXX=no
12286 fi
12287 ;;
12288 esac
12289 ;;
12290 psos*)
12291 # FIXME: insert proper C++ library support
12292 ld_shlibs_CXX=no
12293 ;;
12294 sunos4*)
12295 case $cc_basename in
12296 CC*)
12297 # Sun C++ 4.x
12298 # FIXME: insert proper C++ library support
12299 ld_shlibs_CXX=no
12300 ;;
12301 lcc*)
12302 # Lucid
12303 # FIXME: insert proper C++ library support
12304 ld_shlibs_CXX=no
12305 ;;
12306 *)
12307 # FIXME: insert proper C++ library support
12308 ld_shlibs_CXX=no
12309 ;;
12310 esac
12311 ;;
12312 solaris*)
12313 case $cc_basename in
12314 CC*)
12315 # Sun C++ 4.2, 5.x and Centerline C++
12316 archive_cmds_need_lc_CXX=yes
12317 no_undefined_flag_CXX=' -zdefs'
12318 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12319 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12320 $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'
12321
12322 hardcode_libdir_flag_spec_CXX='-R$libdir'
12323 hardcode_shlibpath_var_CXX=no
12324 case $host_os in
12325 solaris2.[0-5] | solaris2.[0-5].*) ;;
12326 *)
12327 # The compiler driver will combine and reorder linker options,
12328 # but understands `-z linker_flag'.
12329 # Supported since Solaris 2.6 (maybe 2.5.1?)
12330 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12331 ;;
12332 esac
12333 link_all_deplibs_CXX=yes
12334
12335 output_verbose_link_cmd='echo'
12336
12337 # Archives containing C++ object files must be created using
12338 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12339 # necessary to make sure instantiated templates are included
12340 # in the archive.
12341 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12342 ;;
12343 gcx*)
12344 # Green Hills C++ Compiler
12345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12346
12347 # The C++ compiler must be used to create the archive.
12348 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12349 ;;
12350 *)
12351 # GNU C++ compiler with Solaris linker
12352 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12353 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12354 if $CC --version | grep -v '^2\.7' > /dev/null; then
12355 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12356 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12357 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12358
12359 # Commands to make compiler produce verbose output that lists
12360 # what "hidden" libraries, object files and flags are used when
12361 # linking a shared library.
12362 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12363 else
12364 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12365 # platform.
12366 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12368 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12369
12370 # Commands to make compiler produce verbose output that lists
12371 # what "hidden" libraries, object files and flags are used when
12372 # linking a shared library.
12373 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12374 fi
12375
12376 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12377 case $host_os in
12378 solaris2.[0-5] | solaris2.[0-5].*) ;;
12379 *)
12380 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12381 ;;
12382 esac
12383 fi
12384 ;;
12385 esac
12386 ;;
12387 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12388 no_undefined_flag_CXX='${wl}-z,text'
12389 archive_cmds_need_lc_CXX=no
12390 hardcode_shlibpath_var_CXX=no
12391 runpath_var='LD_RUN_PATH'
12392
12393 case $cc_basename in
12394 CC*)
12395 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12396 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12397 ;;
12398 *)
12399 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12400 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12401 ;;
12402 esac
12403 ;;
12404 sysv5* | sco3.2v5* | sco5v6*)
12405 # Note: We can NOT use -z defs as we might desire, because we do not
12406 # link with -lc, and that would cause any symbols used from libc to
12407 # always be unresolved, which means just about no library would
12408 # ever link correctly. If we're not using GNU ld we use -z text
12409 # though, which does catch some bad symbols but isn't as heavy-handed
12410 # as -z defs.
12411 # For security reasons, it is highly recommended that you always
12412 # use absolute paths for naming shared libraries, and exclude the
12413 # DT_RUNPATH tag from executables and libraries. But doing so
12414 # requires that you compile everything twice, which is a pain.
12415 # So that behaviour is only enabled if SCOABSPATH is set to a
12416 # non-empty value in the environment. Most likely only useful for
12417 # creating official distributions of packages.
12418 # This is a hack until libtool officially supports absolute path
12419 # names for shared libraries.
12420 no_undefined_flag_CXX='${wl}-z,text'
12421 allow_undefined_flag_CXX='${wl}-z,nodefs'
12422 archive_cmds_need_lc_CXX=no
12423 hardcode_shlibpath_var_CXX=no
12424 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12425 hardcode_libdir_separator_CXX=':'
12426 link_all_deplibs_CXX=yes
12427 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12428 runpath_var='LD_RUN_PATH'
12429
12430 case $cc_basename in
12431 CC*)
12432 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12433 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12434 ;;
12435 *)
12436 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12437 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12438 ;;
12439 esac
12440 ;;
12441 tandem*)
12442 case $cc_basename in
12443 NCC*)
12444 # NonStop-UX NCC 3.20
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12447 ;;
12448 *)
12449 # FIXME: insert proper C++ library support
12450 ld_shlibs_CXX=no
12451 ;;
12452 esac
12453 ;;
12454 vxworks*)
12455 # FIXME: insert proper C++ library support
12456 ld_shlibs_CXX=no
12457 ;;
12458 *)
12459 # FIXME: insert proper C++ library support
12460 ld_shlibs_CXX=no
12461 ;;
12462 esac
12463 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12464 $as_echo "$ld_shlibs_CXX" >&6; }
12465 test "$ld_shlibs_CXX" = no && can_build_shared=no
12466
12467 GCC_CXX="$GXX"
12468 LD_CXX="$LD"
12469
12470 cat > conftest.$ac_ext <<EOF
12471 class Foo
12472 {
12473 public:
12474 Foo (void) { a = 0; }
12475 private:
12476 int a;
12477 };
12478 EOF
12479
12480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12481 (eval $ac_compile) 2>&5
12482 ac_status=$?
12483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; then
12485 # Parse the compiler output and extract the necessary
12486 # objects, libraries and library flags.
12487
12488 # Sentinel used to keep track of whether or not we are before
12489 # the conftest object file.
12490 pre_test_object_deps_done=no
12491
12492 # The `*' in the case matches for architectures that use `case' in
12493 # $output_verbose_cmd can trigger glob expansion during the loop
12494 # eval without this substitution.
12495 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12496
12497 for p in `eval $output_verbose_link_cmd`; do
12498 case $p in
12499
12500 -L* | -R* | -l*)
12501 # Some compilers place space between "-{L,R}" and the path.
12502 # Remove the space.
12503 if test $p = "-L" \
12504 || test $p = "-R"; then
12505 prev=$p
12506 continue
12507 else
12508 prev=
12509 fi
12510
12511 if test "$pre_test_object_deps_done" = no; then
12512 case $p in
12513 -L* | -R*)
12514 # Internal compiler library paths should come after those
12515 # provided the user. The postdeps already come after the
12516 # user supplied libs so there is no need to process them.
12517 if test -z "$compiler_lib_search_path_CXX"; then
12518 compiler_lib_search_path_CXX="${prev}${p}"
12519 else
12520 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12521 fi
12522 ;;
12523 # The "-l" case would never come before the object being
12524 # linked, so don't bother handling this case.
12525 esac
12526 else
12527 if test -z "$postdeps_CXX"; then
12528 postdeps_CXX="${prev}${p}"
12529 else
12530 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12531 fi
12532 fi
12533 ;;
12534
12535 *.$objext)
12536 # This assumes that the test object file only shows up
12537 # once in the compiler output.
12538 if test "$p" = "conftest.$objext"; then
12539 pre_test_object_deps_done=yes
12540 continue
12541 fi
12542
12543 if test "$pre_test_object_deps_done" = no; then
12544 if test -z "$predep_objects_CXX"; then
12545 predep_objects_CXX="$p"
12546 else
12547 predep_objects_CXX="$predep_objects_CXX $p"
12548 fi
12549 else
12550 if test -z "$postdep_objects_CXX"; then
12551 postdep_objects_CXX="$p"
12552 else
12553 postdep_objects_CXX="$postdep_objects_CXX $p"
12554 fi
12555 fi
12556 ;;
12557
12558 *) ;; # Ignore the rest.
12559
12560 esac
12561 done
12562
12563 # Clean up.
12564 rm -f a.out a.exe
12565 else
12566 echo "libtool.m4: error: problem compiling CXX test program"
12567 fi
12568
12569 $rm -f confest.$objext
12570
12571 compiler_lib_search_dirs_CXX=
12572 if test -n "$compiler_lib_search_path_CXX"; then
12573 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12574 fi
12575
12576 # PORTME: override above test on systems where it is broken
12577 case $host_os in
12578 interix[3-9]*)
12579 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12580 # hack all around it, let's just trust "g++" to DTRT.
12581 predep_objects_CXX=
12582 postdep_objects_CXX=
12583 postdeps_CXX=
12584 ;;
12585
12586 linux*)
12587 case `$CC -V 2>&1 | sed 5q` in
12588 *Sun\ C*)
12589 # Sun C++ 5.9
12590 #
12591 # The more standards-conforming stlport4 library is
12592 # incompatible with the Cstd library. Avoid specifying
12593 # it if it's in CXXFLAGS. Ignore libCrun as
12594 # -library=stlport4 depends on it.
12595 case " $CXX $CXXFLAGS " in
12596 *" -library=stlport4 "*)
12597 solaris_use_stlport4=yes
12598 ;;
12599 esac
12600 if test "$solaris_use_stlport4" != yes; then
12601 postdeps_CXX='-library=Cstd -library=Crun'
12602 fi
12603 ;;
12604 esac
12605 ;;
12606
12607 solaris*)
12608 case $cc_basename in
12609 CC*)
12610 # The more standards-conforming stlport4 library is
12611 # incompatible with the Cstd library. Avoid specifying
12612 # it if it's in CXXFLAGS. Ignore libCrun as
12613 # -library=stlport4 depends on it.
12614 case " $CXX $CXXFLAGS " in
12615 *" -library=stlport4 "*)
12616 solaris_use_stlport4=yes
12617 ;;
12618 esac
12619
12620 # Adding this requires a known-good setup of shared libraries for
12621 # Sun compiler versions before 5.6, else PIC objects from an old
12622 # archive will be linked into the output, leading to subtle bugs.
12623 if test "$solaris_use_stlport4" != yes; then
12624 postdeps_CXX='-library=Cstd -library=Crun'
12625 fi
12626 ;;
12627 esac
12628 ;;
12629 esac
12630
12631 case " $postdeps_CXX " in
12632 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12633 esac
12634
12635 lt_prog_compiler_wl_CXX=
12636 lt_prog_compiler_pic_CXX=
12637 lt_prog_compiler_static_CXX=
12638
12639 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12640 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12641
12642 # C++ specific cases for pic, static, wl, etc.
12643 if test "$GXX" = yes; then
12644 lt_prog_compiler_wl_CXX='-Wl,'
12645 lt_prog_compiler_static_CXX='-static'
12646
12647 case $host_os in
12648 aix*)
12649 # All AIX code is PIC.
12650 if test "$host_cpu" = ia64; then
12651 # AIX 5 now supports IA64 processor
12652 lt_prog_compiler_static_CXX='-Bstatic'
12653 fi
12654 ;;
12655 amigaos*)
12656 # FIXME: we need at least 68020 code to build shared libraries, but
12657 # adding the `-m68020' flag to GCC prevents building anything better,
12658 # like `-m68040'.
12659 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12660 ;;
12661 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12662 # PIC is the default for these OSes.
12663 ;;
12664 mingw* | cygwin* | os2* | pw32*)
12665 # This hack is so that the source file can tell whether it is being
12666 # built for inclusion in a dll (and should export symbols for example).
12667 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12668 # (--disable-auto-import) libraries
12669 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12670 ;;
12671 darwin* | rhapsody*)
12672 # PIC is the default on this platform
12673 # Common symbols not allowed in MH_DYLIB files
12674 lt_prog_compiler_pic_CXX='-fno-common'
12675 ;;
12676 *djgpp*)
12677 # DJGPP does not support shared libraries at all
12678 lt_prog_compiler_pic_CXX=
12679 ;;
12680 interix[3-9]*)
12681 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12682 # Instead, we relocate shared libraries at runtime.
12683 ;;
12684 sysv4*MP*)
12685 if test -d /usr/nec; then
12686 lt_prog_compiler_pic_CXX=-Kconform_pic
12687 fi
12688 ;;
12689 hpux*)
12690 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12691 # not for PA HP-UX.
12692 case $host_cpu in
12693 hppa*64*|ia64*)
12694 ;;
12695 *)
12696 lt_prog_compiler_pic_CXX='-fPIC'
12697 ;;
12698 esac
12699 ;;
12700 *)
12701 lt_prog_compiler_pic_CXX='-fPIC'
12702 ;;
12703 esac
12704 else
12705 case $host_os in
12706 aix[4-9]*)
12707 # All AIX code is PIC.
12708 if test "$host_cpu" = ia64; then
12709 # AIX 5 now supports IA64 processor
12710 lt_prog_compiler_static_CXX='-Bstatic'
12711 else
12712 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12713 fi
12714 ;;
12715 chorus*)
12716 case $cc_basename in
12717 cxch68*)
12718 # Green Hills C++ Compiler
12719 # _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"
12720 ;;
12721 esac
12722 ;;
12723 darwin*)
12724 # PIC is the default on this platform
12725 # Common symbols not allowed in MH_DYLIB files
12726 case $cc_basename in
12727 xlc*)
12728 lt_prog_compiler_pic_CXX='-qnocommon'
12729 lt_prog_compiler_wl_CXX='-Wl,'
12730 ;;
12731 esac
12732 ;;
12733 dgux*)
12734 case $cc_basename in
12735 ec++*)
12736 lt_prog_compiler_pic_CXX='-KPIC'
12737 ;;
12738 ghcx*)
12739 # Green Hills C++ Compiler
12740 lt_prog_compiler_pic_CXX='-pic'
12741 ;;
12742 *)
12743 ;;
12744 esac
12745 ;;
12746 freebsd* | dragonfly*)
12747 # FreeBSD uses GNU C++
12748 ;;
12749 hpux9* | hpux10* | hpux11*)
12750 case $cc_basename in
12751 CC*)
12752 lt_prog_compiler_wl_CXX='-Wl,'
12753 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12754 if test "$host_cpu" != ia64; then
12755 lt_prog_compiler_pic_CXX='+Z'
12756 fi
12757 ;;
12758 aCC*)
12759 lt_prog_compiler_wl_CXX='-Wl,'
12760 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12761 case $host_cpu in
12762 hppa*64*|ia64*)
12763 # +Z the default
12764 ;;
12765 *)
12766 lt_prog_compiler_pic_CXX='+Z'
12767 ;;
12768 esac
12769 ;;
12770 *)
12771 ;;
12772 esac
12773 ;;
12774 interix*)
12775 # This is c89, which is MS Visual C++ (no shared libs)
12776 # Anyone wants to do a port?
12777 ;;
12778 irix5* | irix6* | nonstopux*)
12779 case $cc_basename in
12780 CC*)
12781 lt_prog_compiler_wl_CXX='-Wl,'
12782 lt_prog_compiler_static_CXX='-non_shared'
12783 # CC pic flag -KPIC is the default.
12784 ;;
12785 *)
12786 ;;
12787 esac
12788 ;;
12789 linux* | k*bsd*-gnu)
12790 case $cc_basename in
12791 KCC*)
12792 # KAI C++ Compiler
12793 lt_prog_compiler_wl_CXX='--backend -Wl,'
12794 lt_prog_compiler_pic_CXX='-fPIC'
12795 ;;
12796 icpc* | ecpc*)
12797 # Intel C++
12798 lt_prog_compiler_wl_CXX='-Wl,'
12799 lt_prog_compiler_pic_CXX='-KPIC'
12800 lt_prog_compiler_static_CXX='-static'
12801 ;;
12802 pgCC* | pgcpp*)
12803 # Portland Group C++ compiler.
12804 lt_prog_compiler_wl_CXX='-Wl,'
12805 lt_prog_compiler_pic_CXX='-fpic'
12806 lt_prog_compiler_static_CXX='-Bstatic'
12807 ;;
12808 cxx*)
12809 # Compaq C++
12810 # Make sure the PIC flag is empty. It appears that all Alpha
12811 # Linux and Compaq Tru64 Unix objects are PIC.
12812 lt_prog_compiler_pic_CXX=
12813 lt_prog_compiler_static_CXX='-non_shared'
12814 ;;
12815 *)
12816 case `$CC -V 2>&1 | sed 5q` in
12817 *Sun\ C*)
12818 # Sun C++ 5.9
12819 lt_prog_compiler_pic_CXX='-KPIC'
12820 lt_prog_compiler_static_CXX='-Bstatic'
12821 lt_prog_compiler_wl_CXX='-Qoption ld '
12822 ;;
12823 esac
12824 ;;
12825 esac
12826 ;;
12827 lynxos*)
12828 ;;
12829 m88k*)
12830 ;;
12831 mvs*)
12832 case $cc_basename in
12833 cxx*)
12834 lt_prog_compiler_pic_CXX='-W c,exportall'
12835 ;;
12836 *)
12837 ;;
12838 esac
12839 ;;
12840 netbsd*)
12841 ;;
12842 osf3* | osf4* | osf5*)
12843 case $cc_basename in
12844 KCC*)
12845 lt_prog_compiler_wl_CXX='--backend -Wl,'
12846 ;;
12847 RCC*)
12848 # Rational C++ 2.4.1
12849 lt_prog_compiler_pic_CXX='-pic'
12850 ;;
12851 cxx*)
12852 # Digital/Compaq C++
12853 lt_prog_compiler_wl_CXX='-Wl,'
12854 # Make sure the PIC flag is empty. It appears that all Alpha
12855 # Linux and Compaq Tru64 Unix objects are PIC.
12856 lt_prog_compiler_pic_CXX=
12857 lt_prog_compiler_static_CXX='-non_shared'
12858 ;;
12859 *)
12860 ;;
12861 esac
12862 ;;
12863 psos*)
12864 ;;
12865 solaris*)
12866 case $cc_basename in
12867 CC*)
12868 # Sun C++ 4.2, 5.x and Centerline C++
12869 lt_prog_compiler_pic_CXX='-KPIC'
12870 lt_prog_compiler_static_CXX='-Bstatic'
12871 lt_prog_compiler_wl_CXX='-Qoption ld '
12872 ;;
12873 gcx*)
12874 # Green Hills C++ Compiler
12875 lt_prog_compiler_pic_CXX='-PIC'
12876 ;;
12877 *)
12878 ;;
12879 esac
12880 ;;
12881 sunos4*)
12882 case $cc_basename in
12883 CC*)
12884 # Sun C++ 4.x
12885 lt_prog_compiler_pic_CXX='-pic'
12886 lt_prog_compiler_static_CXX='-Bstatic'
12887 ;;
12888 lcc*)
12889 # Lucid
12890 lt_prog_compiler_pic_CXX='-pic'
12891 ;;
12892 *)
12893 ;;
12894 esac
12895 ;;
12896 tandem*)
12897 case $cc_basename in
12898 NCC*)
12899 # NonStop-UX NCC 3.20
12900 lt_prog_compiler_pic_CXX='-KPIC'
12901 ;;
12902 *)
12903 ;;
12904 esac
12905 ;;
12906 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12907 case $cc_basename in
12908 CC*)
12909 lt_prog_compiler_wl_CXX='-Wl,'
12910 lt_prog_compiler_pic_CXX='-KPIC'
12911 lt_prog_compiler_static_CXX='-Bstatic'
12912 ;;
12913 esac
12914 ;;
12915 vxworks*)
12916 ;;
12917 *)
12918 lt_prog_compiler_can_build_shared_CXX=no
12919 ;;
12920 esac
12921 fi
12922
12923 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12924 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12925
12926 #
12927 # Check to make sure the PIC flag actually works.
12928 #
12929 if test -n "$lt_prog_compiler_pic_CXX"; then
12930
12931 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12932 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12933 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12934 $as_echo_n "(cached) " >&6
12935 else
12936 lt_cv_prog_compiler_pic_works_CXX=no
12937 ac_outfile=conftest.$ac_objext
12938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12939 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12940 # Insert the option either (1) after the last *FLAGS variable, or
12941 # (2) before a word containing "conftest.", or (3) at the end.
12942 # Note that $ac_compile itself does not contain backslashes and begins
12943 # with a dollar sign (not a hyphen), so the echo should work correctly.
12944 # The option is referenced via a variable to avoid confusing sed.
12945 lt_compile=`echo "$ac_compile" | $SED \
12946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12948 -e 's:$: $lt_compiler_flag:'`
12949 (eval echo "\"\$as_me:12949: $lt_compile\"" >&5)
12950 (eval "$lt_compile" 2>conftest.err)
12951 ac_status=$?
12952 cat conftest.err >&5
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 if (exit $ac_status) && test -s "$ac_outfile"; then
12955 # The compiler can only warn and ignore the option if not recognized
12956 # So say no if there are warnings other than the usual output.
12957 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12959 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12960 lt_cv_prog_compiler_pic_works_CXX=yes
12961 fi
12962 fi
12963 $rm conftest*
12964
12965 fi
12966 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12967 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12968
12969 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12970 case $lt_prog_compiler_pic_CXX in
12971 "" | " "*) ;;
12972 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12973 esac
12974 else
12975 lt_prog_compiler_pic_CXX=
12976 lt_prog_compiler_can_build_shared_CXX=no
12977 fi
12978
12979 fi
12980 case $host_os in
12981 # For platforms which do not support PIC, -DPIC is meaningless:
12982 *djgpp*)
12983 lt_prog_compiler_pic_CXX=
12984 ;;
12985 *)
12986 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12987 ;;
12988 esac
12989
12990 #
12991 # Check to make sure the static flag actually works.
12992 #
12993 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12994 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12995 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12996 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12997 $as_echo_n "(cached) " >&6
12998 else
12999 lt_cv_prog_compiler_static_works_CXX=no
13000 save_LDFLAGS="$LDFLAGS"
13001 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13002 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13003 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13004 # The linker can only warn and ignore the option if not recognized
13005 # So say no if there are warnings
13006 if test -s conftest.err; then
13007 # Append any errors to the config.log.
13008 cat conftest.err 1>&5
13009 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13011 if diff conftest.exp conftest.er2 >/dev/null; then
13012 lt_cv_prog_compiler_static_works_CXX=yes
13013 fi
13014 else
13015 lt_cv_prog_compiler_static_works_CXX=yes
13016 fi
13017 fi
13018 $rm -r conftest*
13019 LDFLAGS="$save_LDFLAGS"
13020
13021 fi
13022 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13023 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13024
13025 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13026 :
13027 else
13028 lt_prog_compiler_static_CXX=
13029 fi
13030
13031
13032 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13034 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13035 $as_echo_n "(cached) " >&6
13036 else
13037 lt_cv_prog_compiler_c_o_CXX=no
13038 $rm -r conftest 2>/dev/null
13039 mkdir conftest
13040 cd conftest
13041 mkdir out
13042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13043
13044 lt_compiler_flag="-o out/conftest2.$ac_objext"
13045 # Insert the option either (1) after the last *FLAGS variable, or
13046 # (2) before a word containing "conftest.", or (3) at the end.
13047 # Note that $ac_compile itself does not contain backslashes and begins
13048 # with a dollar sign (not a hyphen), so the echo should work correctly.
13049 lt_compile=`echo "$ac_compile" | $SED \
13050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13052 -e 's:$: $lt_compiler_flag:'`
13053 (eval echo "\"\$as_me:13053: $lt_compile\"" >&5)
13054 (eval "$lt_compile" 2>out/conftest.err)
13055 ac_status=$?
13056 cat out/conftest.err >&5
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13059 then
13060 # The compiler can only warn and ignore the option if not recognized
13061 # So say no if there are warnings
13062 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13065 lt_cv_prog_compiler_c_o_CXX=yes
13066 fi
13067 fi
13068 chmod u+w . 2>&5
13069 $rm conftest*
13070 # SGI C++ compiler will create directory out/ii_files/ for
13071 # template instantiation
13072 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13073 $rm out/* && rmdir out
13074 cd ..
13075 rmdir conftest
13076 $rm conftest*
13077
13078 fi
13079 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13080 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13081
13082
13083 hard_links="nottested"
13084 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13085 # do not overwrite the value of need_locks provided by the user
13086 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13087 $as_echo_n "checking if we can lock with hard links... " >&6; }
13088 hard_links=yes
13089 $rm conftest*
13090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13091 touch conftest.a
13092 ln conftest.a conftest.b 2>&5 || hard_links=no
13093 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13094 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13095 $as_echo "$hard_links" >&6; }
13096 if test "$hard_links" = no; then
13097 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13098 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13099 need_locks=warn
13100 fi
13101 else
13102 need_locks=no
13103 fi
13104
13105 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13106 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13107
13108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13109 case $host_os in
13110 aix[4-9]*)
13111 # If we're using GNU nm, then we don't want the "-C" option.
13112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13113 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13114 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'
13115 else
13116 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'
13117 fi
13118 ;;
13119 pw32*)
13120 export_symbols_cmds_CXX="$ltdll_cmds"
13121 ;;
13122 cygwin* | mingw*)
13123 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'
13124 ;;
13125 *)
13126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13127 ;;
13128 esac
13129 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13130
13131 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13132 $as_echo "$ld_shlibs_CXX" >&6; }
13133 test "$ld_shlibs_CXX" = no && can_build_shared=no
13134
13135 #
13136 # Do we need to explicitly link libc?
13137 #
13138 case "x$archive_cmds_need_lc_CXX" in
13139 x|xyes)
13140 # Assume -lc should be added
13141 archive_cmds_need_lc_CXX=yes
13142
13143 if test "$enable_shared" = yes && test "$GCC" = yes; then
13144 case $archive_cmds_CXX in
13145 *'~'*)
13146 # FIXME: we may have to deal with multi-command sequences.
13147 ;;
13148 '$CC '*)
13149 # Test whether the compiler implicitly links with -lc since on some
13150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13151 # to ld, don't add -lc before -lgcc.
13152 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13153 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13154 $rm conftest*
13155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13156
13157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13158 (eval $ac_compile) 2>&5
13159 ac_status=$?
13160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } 2>conftest.err; then
13162 soname=conftest
13163 lib=conftest
13164 libobjs=conftest.$ac_objext
13165 deplibs=
13166 wl=$lt_prog_compiler_wl_CXX
13167 pic_flag=$lt_prog_compiler_pic_CXX
13168 compiler_flags=-v
13169 linker_flags=-v
13170 verstring=
13171 output_objdir=.
13172 libname=conftest
13173 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13174 allow_undefined_flag_CXX=
13175 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13176 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13177 ac_status=$?
13178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }
13180 then
13181 archive_cmds_need_lc_CXX=no
13182 else
13183 archive_cmds_need_lc_CXX=yes
13184 fi
13185 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13186 else
13187 cat conftest.err 1>&5
13188 fi
13189 $rm conftest*
13190 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13191 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13192 ;;
13193 esac
13194 fi
13195 ;;
13196 esac
13197
13198 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13199 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13200 library_names_spec=
13201 libname_spec='lib$name'
13202 soname_spec=
13203 shrext_cmds=".so"
13204 postinstall_cmds=
13205 postuninstall_cmds=
13206 finish_cmds=
13207 finish_eval=
13208 shlibpath_var=
13209 shlibpath_overrides_runpath=unknown
13210 version_type=none
13211 dynamic_linker="$host_os ld.so"
13212 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13213
13214 need_lib_prefix=unknown
13215 hardcode_into_libs=no
13216
13217 # when you set need_version to no, make sure it does not cause -set_version
13218 # flags to be left without arguments
13219 need_version=unknown
13220
13221 case $host_os in
13222 aix3*)
13223 version_type=linux
13224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13225 shlibpath_var=LIBPATH
13226
13227 # AIX 3 has no versioning support, so we append a major version to the name.
13228 soname_spec='${libname}${release}${shared_ext}$major'
13229 ;;
13230
13231 aix[4-9]*)
13232 version_type=linux
13233 need_lib_prefix=no
13234 need_version=no
13235 hardcode_into_libs=yes
13236 if test "$host_cpu" = ia64; then
13237 # AIX 5 supports IA64
13238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 else
13241 # With GCC up to 2.95.x, collect2 would create an import file
13242 # for dependence libraries. The import file would start with
13243 # the line `#! .'. This would cause the generated library to
13244 # depend on `.', always an invalid library. This was fixed in
13245 # development snapshots of GCC prior to 3.0.
13246 case $host_os in
13247 aix4 | aix4.[01] | aix4.[01].*)
13248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13249 echo ' yes '
13250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13251 :
13252 else
13253 can_build_shared=no
13254 fi
13255 ;;
13256 esac
13257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13258 # soname into executable. Probably we can add versioning support to
13259 # collect2, so additional links can be useful in future.
13260 if test "$aix_use_runtimelinking" = yes; then
13261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13262 # instead of lib<name>.a to let people know that these are not
13263 # typical AIX shared libraries.
13264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13265 else
13266 # We preserve .a as extension for shared libraries through AIX4.2
13267 # and later when we are not doing run time linking.
13268 library_names_spec='${libname}${release}.a $libname.a'
13269 soname_spec='${libname}${release}${shared_ext}$major'
13270 fi
13271 shlibpath_var=LIBPATH
13272 fi
13273 ;;
13274
13275 amigaos*)
13276 library_names_spec='$libname.ixlibrary $libname.a'
13277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13278 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'
13279 ;;
13280
13281 beos*)
13282 library_names_spec='${libname}${shared_ext}'
13283 dynamic_linker="$host_os ld.so"
13284 shlibpath_var=LIBRARY_PATH
13285 ;;
13286
13287 bsdi[45]*)
13288 version_type=linux
13289 need_version=no
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13293 shlibpath_var=LD_LIBRARY_PATH
13294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13296 # the default ld.so.conf also contains /usr/contrib/lib and
13297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13298 # libtool to hard-code these into programs
13299 ;;
13300
13301 cygwin* | mingw* | pw32*)
13302 version_type=windows
13303 shrext_cmds=".dll"
13304 need_version=no
13305 need_lib_prefix=no
13306
13307 case $GCC,$host_os in
13308 yes,cygwin* | yes,mingw* | yes,pw32*)
13309 library_names_spec='$libname.dll.a'
13310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13311 postinstall_cmds='base_file=`basename \${file}`~
13312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13313 dldir=$destdir/`dirname \$dlpath`~
13314 test -d \$dldir || mkdir -p \$dldir~
13315 $install_prog $dir/$dlname \$dldir/$dlname~
13316 chmod a+x \$dldir/$dlname'
13317 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13318 dlpath=$dir/\$dldll~
13319 $rm \$dlpath'
13320 shlibpath_overrides_runpath=yes
13321
13322 case $host_os in
13323 cygwin*)
13324 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13325 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13326 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13327 ;;
13328 mingw*)
13329 # MinGW DLLs use traditional 'lib' prefix
13330 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13332 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13333 # It is most probably a Windows format PATH printed by
13334 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13335 # path with ; separators, and with drive letters. We can handle the
13336 # drive letters (cygwin fileutils understands them), so leave them,
13337 # especially as we might pass files found there to a mingw objdump,
13338 # which wouldn't understand a cygwinified path. Ahh.
13339 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13340 else
13341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13342 fi
13343 ;;
13344 pw32*)
13345 # pw32 DLLs use 'pw' prefix rather than 'lib'
13346 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13347 ;;
13348 esac
13349 ;;
13350
13351 *)
13352 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13353 ;;
13354 esac
13355 dynamic_linker='Win32 ld.exe'
13356 # FIXME: first we should search . and the directory the executable is in
13357 shlibpath_var=PATH
13358 ;;
13359
13360 darwin* | rhapsody*)
13361 dynamic_linker="$host_os dyld"
13362 version_type=darwin
13363 need_lib_prefix=no
13364 need_version=no
13365 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13366 soname_spec='${libname}${release}${major}$shared_ext'
13367 shlibpath_overrides_runpath=yes
13368 shlibpath_var=DYLD_LIBRARY_PATH
13369 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13370
13371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13372 ;;
13373
13374 dgux*)
13375 version_type=linux
13376 need_lib_prefix=no
13377 need_version=no
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13379 soname_spec='${libname}${release}${shared_ext}$major'
13380 shlibpath_var=LD_LIBRARY_PATH
13381 ;;
13382
13383 freebsd1*)
13384 dynamic_linker=no
13385 ;;
13386
13387 freebsd* | dragonfly*)
13388 # DragonFly does not have aout. When/if they implement a new
13389 # versioning mechanism, adjust this.
13390 if test -x /usr/bin/objformat; then
13391 objformat=`/usr/bin/objformat`
13392 else
13393 case $host_os in
13394 freebsd[123]*) objformat=aout ;;
13395 *) objformat=elf ;;
13396 esac
13397 fi
13398 version_type=freebsd-$objformat
13399 case $version_type in
13400 freebsd-elf*)
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13402 need_version=no
13403 need_lib_prefix=no
13404 ;;
13405 freebsd-*)
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13407 need_version=yes
13408 ;;
13409 esac
13410 shlibpath_var=LD_LIBRARY_PATH
13411 case $host_os in
13412 freebsd2*)
13413 shlibpath_overrides_runpath=yes
13414 ;;
13415 freebsd3.[01]* | freebsdelf3.[01]*)
13416 shlibpath_overrides_runpath=yes
13417 hardcode_into_libs=yes
13418 ;;
13419 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13420 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13421 shlibpath_overrides_runpath=no
13422 hardcode_into_libs=yes
13423 ;;
13424 *) # from 4.6 on, and DragonFly
13425 shlibpath_overrides_runpath=yes
13426 hardcode_into_libs=yes
13427 ;;
13428 esac
13429 ;;
13430
13431 gnu*)
13432 version_type=linux
13433 need_lib_prefix=no
13434 need_version=no
13435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13436 soname_spec='${libname}${release}${shared_ext}$major'
13437 shlibpath_var=LD_LIBRARY_PATH
13438 hardcode_into_libs=yes
13439 ;;
13440
13441 hpux9* | hpux10* | hpux11*)
13442 # Give a soname corresponding to the major version so that dld.sl refuses to
13443 # link against other versions.
13444 version_type=sunos
13445 need_lib_prefix=no
13446 need_version=no
13447 case $host_cpu in
13448 ia64*)
13449 shrext_cmds='.so'
13450 hardcode_into_libs=yes
13451 dynamic_linker="$host_os dld.so"
13452 shlibpath_var=LD_LIBRARY_PATH
13453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455 soname_spec='${libname}${release}${shared_ext}$major'
13456 if test "X$HPUX_IA64_MODE" = X32; then
13457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13458 else
13459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13460 fi
13461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13462 ;;
13463 hppa*64*)
13464 shrext_cmds='.sl'
13465 hardcode_into_libs=yes
13466 dynamic_linker="$host_os dld.sl"
13467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13470 soname_spec='${libname}${release}${shared_ext}$major'
13471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13473 ;;
13474 *)
13475 shrext_cmds='.sl'
13476 dynamic_linker="$host_os dld.sl"
13477 shlibpath_var=SHLIB_PATH
13478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 ;;
13482 esac
13483 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13484 postinstall_cmds='chmod 555 $lib'
13485 ;;
13486
13487 interix[3-9]*)
13488 version_type=linux
13489 need_lib_prefix=no
13490 need_version=no
13491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13492 soname_spec='${libname}${release}${shared_ext}$major'
13493 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13494 shlibpath_var=LD_LIBRARY_PATH
13495 shlibpath_overrides_runpath=no
13496 hardcode_into_libs=yes
13497 ;;
13498
13499 irix5* | irix6* | nonstopux*)
13500 case $host_os in
13501 nonstopux*) version_type=nonstopux ;;
13502 *)
13503 if test "$lt_cv_prog_gnu_ld" = yes; then
13504 version_type=linux
13505 else
13506 version_type=irix
13507 fi ;;
13508 esac
13509 need_lib_prefix=no
13510 need_version=no
13511 soname_spec='${libname}${release}${shared_ext}$major'
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13513 case $host_os in
13514 irix5* | nonstopux*)
13515 libsuff= shlibsuff=
13516 ;;
13517 *)
13518 case $LD in # libtool.m4 will add one of these switches to LD
13519 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13520 libsuff= shlibsuff= libmagic=32-bit;;
13521 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13522 libsuff=32 shlibsuff=N32 libmagic=N32;;
13523 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13524 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13525 *) libsuff= shlibsuff= libmagic=never-match;;
13526 esac
13527 ;;
13528 esac
13529 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13530 shlibpath_overrides_runpath=no
13531 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13532 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13533 hardcode_into_libs=yes
13534 ;;
13535
13536 # No shared lib support for Linux oldld, aout, or coff.
13537 linux*oldld* | linux*aout* | linux*coff*)
13538 dynamic_linker=no
13539 ;;
13540
13541 # This must be Linux ELF.
13542 linux* | k*bsd*-gnu)
13543 version_type=linux
13544 need_lib_prefix=no
13545 need_version=no
13546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13547 soname_spec='${libname}${release}${shared_ext}$major'
13548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13549 shlibpath_var=LD_LIBRARY_PATH
13550 shlibpath_overrides_runpath=no
13551 # This implies no fast_install, which is unacceptable.
13552 # Some rework will be needed to allow for fast_install
13553 # before this can be enabled.
13554 hardcode_into_libs=yes
13555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13557
13558 # Append ld.so.conf contents to the search path
13559 if test -f /etc/ld.so.conf; then
13560 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' ' '`
13561 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13562 fi
13563
13564 # We used to test for /lib/ld.so.1 and disable shared libraries on
13565 # powerpc, because MkLinux only supported shared libraries with the
13566 # GNU dynamic linker. Since this was broken with cross compilers,
13567 # most powerpc-linux boxes support dynamic linking these days and
13568 # people can always --disable-shared, the test was removed, and we
13569 # assume the GNU/Linux dynamic linker is in use.
13570 dynamic_linker='GNU/Linux ld.so'
13571 ;;
13572
13573 netbsd*)
13574 version_type=sunos
13575 need_lib_prefix=no
13576 need_version=no
13577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13580 dynamic_linker='NetBSD (a.out) ld.so'
13581 else
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 dynamic_linker='NetBSD ld.elf_so'
13585 fi
13586 shlibpath_var=LD_LIBRARY_PATH
13587 shlibpath_overrides_runpath=yes
13588 hardcode_into_libs=yes
13589 ;;
13590
13591 newsos6)
13592 version_type=linux
13593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 shlibpath_overrides_runpath=yes
13596 ;;
13597
13598 nto-qnx*)
13599 version_type=linux
13600 need_lib_prefix=no
13601 need_version=no
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 shlibpath_overrides_runpath=yes
13606 ;;
13607
13608 openbsd*)
13609 version_type=sunos
13610 sys_lib_dlsearch_path_spec="/usr/lib"
13611 need_lib_prefix=no
13612 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13613 case $host_os in
13614 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13615 *) need_version=no ;;
13616 esac
13617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13619 shlibpath_var=LD_LIBRARY_PATH
13620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13621 case $host_os in
13622 openbsd2.[89] | openbsd2.[89].*)
13623 shlibpath_overrides_runpath=no
13624 ;;
13625 *)
13626 shlibpath_overrides_runpath=yes
13627 ;;
13628 esac
13629 else
13630 shlibpath_overrides_runpath=yes
13631 fi
13632 ;;
13633
13634 os2*)
13635 libname_spec='$name'
13636 shrext_cmds=".dll"
13637 need_lib_prefix=no
13638 library_names_spec='$libname${shared_ext} $libname.a'
13639 dynamic_linker='OS/2 ld.exe'
13640 shlibpath_var=LIBPATH
13641 ;;
13642
13643 osf3* | osf4* | osf5*)
13644 version_type=osf
13645 need_lib_prefix=no
13646 need_version=no
13647 soname_spec='${libname}${release}${shared_ext}$major'
13648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13651 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13652 ;;
13653
13654 rdos*)
13655 dynamic_linker=no
13656 ;;
13657
13658 solaris*)
13659 version_type=linux
13660 need_lib_prefix=no
13661 need_version=no
13662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663 soname_spec='${libname}${release}${shared_ext}$major'
13664 shlibpath_var=LD_LIBRARY_PATH
13665 shlibpath_overrides_runpath=yes
13666 hardcode_into_libs=yes
13667 # ldd complains unless libraries are executable
13668 postinstall_cmds='chmod +x $lib'
13669 ;;
13670
13671 sunos4*)
13672 version_type=sunos
13673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13675 shlibpath_var=LD_LIBRARY_PATH
13676 shlibpath_overrides_runpath=yes
13677 if test "$with_gnu_ld" = yes; then
13678 need_lib_prefix=no
13679 fi
13680 need_version=yes
13681 ;;
13682
13683 sysv4 | sysv4.3*)
13684 version_type=linux
13685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686 soname_spec='${libname}${release}${shared_ext}$major'
13687 shlibpath_var=LD_LIBRARY_PATH
13688 case $host_vendor in
13689 sni)
13690 shlibpath_overrides_runpath=no
13691 need_lib_prefix=no
13692 export_dynamic_flag_spec='${wl}-Blargedynsym'
13693 runpath_var=LD_RUN_PATH
13694 ;;
13695 siemens)
13696 need_lib_prefix=no
13697 ;;
13698 motorola)
13699 need_lib_prefix=no
13700 need_version=no
13701 shlibpath_overrides_runpath=no
13702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13703 ;;
13704 esac
13705 ;;
13706
13707 sysv4*MP*)
13708 if test -d /usr/nec ;then
13709 version_type=linux
13710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13711 soname_spec='$libname${shared_ext}.$major'
13712 shlibpath_var=LD_LIBRARY_PATH
13713 fi
13714 ;;
13715
13716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13717 version_type=freebsd-elf
13718 need_lib_prefix=no
13719 need_version=no
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13721 soname_spec='${libname}${release}${shared_ext}$major'
13722 shlibpath_var=LD_LIBRARY_PATH
13723 hardcode_into_libs=yes
13724 if test "$with_gnu_ld" = yes; then
13725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13726 shlibpath_overrides_runpath=no
13727 else
13728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13729 shlibpath_overrides_runpath=yes
13730 case $host_os in
13731 sco3.2v5*)
13732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13733 ;;
13734 esac
13735 fi
13736 sys_lib_dlsearch_path_spec='/usr/lib'
13737 ;;
13738
13739 uts4*)
13740 version_type=linux
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742 soname_spec='${libname}${release}${shared_ext}$major'
13743 shlibpath_var=LD_LIBRARY_PATH
13744 ;;
13745
13746 *)
13747 dynamic_linker=no
13748 ;;
13749 esac
13750 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13751 $as_echo "$dynamic_linker" >&6; }
13752 test "$dynamic_linker" = no && can_build_shared=no
13753
13754 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13755 $as_echo_n "(cached) " >&6
13756 else
13757 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13758 fi
13759
13760 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13761 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13762 $as_echo_n "(cached) " >&6
13763 else
13764 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13765 fi
13766
13767 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13768
13769 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13770 if test "$GCC" = yes; then
13771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13772 fi
13773
13774 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13776 hardcode_action_CXX=
13777 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13778 test -n "$runpath_var_CXX" || \
13779 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13780
13781 # We can hardcode non-existant directories.
13782 if test "$hardcode_direct_CXX" != no &&
13783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13784 # have to relink, otherwise we might link with an installed library
13785 # when we should be linking with a yet-to-be-installed one
13786 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13787 test "$hardcode_minus_L_CXX" != no; then
13788 # Linking always hardcodes the temporary library directory.
13789 hardcode_action_CXX=relink
13790 else
13791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13792 hardcode_action_CXX=immediate
13793 fi
13794 else
13795 # We cannot hardcode anything, or else we can only hardcode existing
13796 # directories.
13797 hardcode_action_CXX=unsupported
13798 fi
13799 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13800 $as_echo "$hardcode_action_CXX" >&6; }
13801
13802 if test "$hardcode_action_CXX" = relink; then
13803 # Fast installation is not supported
13804 enable_fast_install=no
13805 elif test "$shlibpath_overrides_runpath" = yes ||
13806 test "$enable_shared" = no; then
13807 # Fast installation is not necessary
13808 enable_fast_install=needless
13809 fi
13810
13811
13812 # The else clause should only fire when bootstrapping the
13813 # libtool distribution, otherwise you forgot to ship ltmain.sh
13814 # with your package, and you will get complaints that there are
13815 # no rules to generate ltmain.sh.
13816 if test -f "$ltmain"; then
13817 # See if we are running on zsh, and set the options which allow our commands through
13818 # without removal of \ escapes.
13819 if test -n "${ZSH_VERSION+set}" ; then
13820 setopt NO_GLOB_SUBST
13821 fi
13822 # Now quote all the things that may contain metacharacters while being
13823 # careful not to overquote the AC_SUBSTed values. We take copies of the
13824 # variables and quote the copies for generation of the libtool script.
13825 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13826 SED SHELL STRIP \
13827 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13828 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13829 deplibs_check_method reload_flag reload_cmds need_locks \
13830 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13831 lt_cv_sys_global_symbol_to_c_name_address \
13832 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13833 old_postinstall_cmds old_postuninstall_cmds \
13834 compiler_CXX \
13835 CC_CXX \
13836 LD_CXX \
13837 lt_prog_compiler_wl_CXX \
13838 lt_prog_compiler_pic_CXX \
13839 lt_prog_compiler_static_CXX \
13840 lt_prog_compiler_no_builtin_flag_CXX \
13841 export_dynamic_flag_spec_CXX \
13842 thread_safe_flag_spec_CXX \
13843 whole_archive_flag_spec_CXX \
13844 enable_shared_with_static_runtimes_CXX \
13845 old_archive_cmds_CXX \
13846 old_archive_from_new_cmds_CXX \
13847 predep_objects_CXX \
13848 postdep_objects_CXX \
13849 predeps_CXX \
13850 postdeps_CXX \
13851 compiler_lib_search_path_CXX \
13852 compiler_lib_search_dirs_CXX \
13853 archive_cmds_CXX \
13854 archive_expsym_cmds_CXX \
13855 postinstall_cmds_CXX \
13856 postuninstall_cmds_CXX \
13857 old_archive_from_expsyms_cmds_CXX \
13858 allow_undefined_flag_CXX \
13859 no_undefined_flag_CXX \
13860 export_symbols_cmds_CXX \
13861 hardcode_libdir_flag_spec_CXX \
13862 hardcode_libdir_flag_spec_ld_CXX \
13863 hardcode_libdir_separator_CXX \
13864 hardcode_automatic_CXX \
13865 module_cmds_CXX \
13866 module_expsym_cmds_CXX \
13867 lt_cv_prog_compiler_c_o_CXX \
13868 fix_srcfile_path_CXX \
13869 exclude_expsyms_CXX \
13870 include_expsyms_CXX; do
13871
13872 case $var in
13873 old_archive_cmds_CXX | \
13874 old_archive_from_new_cmds_CXX | \
13875 archive_cmds_CXX | \
13876 archive_expsym_cmds_CXX | \
13877 module_cmds_CXX | \
13878 module_expsym_cmds_CXX | \
13879 old_archive_from_expsyms_cmds_CXX | \
13880 export_symbols_cmds_CXX | \
13881 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13882 postinstall_cmds | postuninstall_cmds | \
13883 old_postinstall_cmds | old_postuninstall_cmds | \
13884 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13885 # Double-quote double-evaled strings.
13886 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13887 ;;
13888 *)
13889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13890 ;;
13891 esac
13892 done
13893
13894 case $lt_echo in
13895 *'\$0 --fallback-echo"')
13896 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13897 ;;
13898 esac
13899
13900 cfgfile="$ofile"
13901
13902 cat <<__EOF__ >> "$cfgfile"
13903 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13904
13905 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13906
13907 # Shell to use when invoking shell scripts.
13908 SHELL=$lt_SHELL
13909
13910 # Whether or not to build shared libraries.
13911 build_libtool_libs=$enable_shared
13912
13913 # Whether or not to build static libraries.
13914 build_old_libs=$enable_static
13915
13916 # Whether or not to add -lc for building shared libraries.
13917 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13918
13919 # Whether or not to disallow shared libs when runtime libs are static
13920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13921
13922 # Whether or not to optimize for fast installation.
13923 fast_install=$enable_fast_install
13924
13925 # The host system.
13926 host_alias=$host_alias
13927 host=$host
13928 host_os=$host_os
13929
13930 # The build system.
13931 build_alias=$build_alias
13932 build=$build
13933 build_os=$build_os
13934
13935 # An echo program that does not interpret backslashes.
13936 echo=$lt_echo
13937
13938 # The archiver.
13939 AR=$lt_AR
13940 AR_FLAGS=$lt_AR_FLAGS
13941
13942 # A C compiler.
13943 LTCC=$lt_LTCC
13944
13945 # LTCC compiler flags.
13946 LTCFLAGS=$lt_LTCFLAGS
13947
13948 # A language-specific compiler.
13949 CC=$lt_compiler_CXX
13950
13951 # Is the compiler the GNU C compiler?
13952 with_gcc=$GCC_CXX
13953
13954 # An ERE matcher.
13955 EGREP=$lt_EGREP
13956
13957 # The linker used to build libraries.
13958 LD=$lt_LD_CXX
13959
13960 # Whether we need hard or soft links.
13961 LN_S=$lt_LN_S
13962
13963 # A BSD-compatible nm program.
13964 NM=$lt_NM
13965
13966 # A symbol stripping program
13967 STRIP=$lt_STRIP
13968
13969 # Used to examine libraries when file_magic_cmd begins "file"
13970 MAGIC_CMD=$MAGIC_CMD
13971
13972 # Used on cygwin: DLL creation program.
13973 DLLTOOL="$DLLTOOL"
13974
13975 # Used on cygwin: object dumper.
13976 OBJDUMP="$OBJDUMP"
13977
13978 # Used on cygwin: assembler.
13979 AS="$AS"
13980
13981 # The name of the directory that contains temporary libtool files.
13982 objdir=$objdir
13983
13984 # How to create reloadable object files.
13985 reload_flag=$lt_reload_flag
13986 reload_cmds=$lt_reload_cmds
13987
13988 # How to pass a linker flag through the compiler.
13989 wl=$lt_lt_prog_compiler_wl_CXX
13990
13991 # Object file suffix (normally "o").
13992 objext="$ac_objext"
13993
13994 # Old archive suffix (normally "a").
13995 libext="$libext"
13996
13997 # Shared library suffix (normally ".so").
13998 shrext_cmds='$shrext_cmds'
13999
14000 # Executable file suffix (normally "").
14001 exeext="$exeext"
14002
14003 # Additional compiler flags for building library objects.
14004 pic_flag=$lt_lt_prog_compiler_pic_CXX
14005 pic_mode=$pic_mode
14006
14007 # What is the maximum length of a command?
14008 max_cmd_len=$lt_cv_sys_max_cmd_len
14009
14010 # Does compiler simultaneously support -c and -o options?
14011 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14012
14013 # Must we lock files when doing compilation?
14014 need_locks=$lt_need_locks
14015
14016 # Do we need the lib prefix for modules?
14017 need_lib_prefix=$need_lib_prefix
14018
14019 # Do we need a version for libraries?
14020 need_version=$need_version
14021
14022 # Whether dlopen is supported.
14023 dlopen_support=$enable_dlopen
14024
14025 # Whether dlopen of programs is supported.
14026 dlopen_self=$enable_dlopen_self
14027
14028 # Whether dlopen of statically linked programs is supported.
14029 dlopen_self_static=$enable_dlopen_self_static
14030
14031 # Compiler flag to prevent dynamic linking.
14032 link_static_flag=$lt_lt_prog_compiler_static_CXX
14033
14034 # Compiler flag to turn off builtin functions.
14035 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14036
14037 # Compiler flag to allow reflexive dlopens.
14038 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14039
14040 # Compiler flag to generate shared objects directly from archives.
14041 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14042
14043 # Compiler flag to generate thread-safe objects.
14044 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14045
14046 # Library versioning type.
14047 version_type=$version_type
14048
14049 # Format of library name prefix.
14050 libname_spec=$lt_libname_spec
14051
14052 # List of archive names. First name is the real one, the rest are links.
14053 # The last name is the one that the linker finds with -lNAME.
14054 library_names_spec=$lt_library_names_spec
14055
14056 # The coded name of the library, if different from the real name.
14057 soname_spec=$lt_soname_spec
14058
14059 # Commands used to build and install an old-style archive.
14060 RANLIB=$lt_RANLIB
14061 old_archive_cmds=$lt_old_archive_cmds_CXX
14062 old_postinstall_cmds=$lt_old_postinstall_cmds
14063 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14064
14065 # Create an old-style archive from a shared archive.
14066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14067
14068 # Create a temporary old-style archive to link instead of a shared archive.
14069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14070
14071 # Commands used to build and install a shared archive.
14072 archive_cmds=$lt_archive_cmds_CXX
14073 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14074 postinstall_cmds=$lt_postinstall_cmds
14075 postuninstall_cmds=$lt_postuninstall_cmds
14076
14077 # Commands used to build a loadable module (assumed same as above if empty)
14078 module_cmds=$lt_module_cmds_CXX
14079 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14080
14081 # Commands to strip libraries.
14082 old_striplib=$lt_old_striplib
14083 striplib=$lt_striplib
14084
14085 # Dependencies to place before the objects being linked to create a
14086 # shared library.
14087 predep_objects=$lt_predep_objects_CXX
14088
14089 # Dependencies to place after the objects being linked to create a
14090 # shared library.
14091 postdep_objects=$lt_postdep_objects_CXX
14092
14093 # Dependencies to place before the objects being linked to create a
14094 # shared library.
14095 predeps=$lt_predeps_CXX
14096
14097 # Dependencies to place after the objects being linked to create a
14098 # shared library.
14099 postdeps=$lt_postdeps_CXX
14100
14101 # The directories searched by this compiler when creating a shared
14102 # library
14103 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14104
14105 # The library search path used internally by the compiler when linking
14106 # a shared library.
14107 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14108
14109 # Method to check whether dependent libraries are shared objects.
14110 deplibs_check_method=$lt_deplibs_check_method
14111
14112 # Command to use when deplibs_check_method == file_magic.
14113 file_magic_cmd=$lt_file_magic_cmd
14114
14115 # Flag that allows shared libraries with undefined symbols to be built.
14116 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14117
14118 # Flag that forces no undefined symbols.
14119 no_undefined_flag=$lt_no_undefined_flag_CXX
14120
14121 # Commands used to finish a libtool library installation in a directory.
14122 finish_cmds=$lt_finish_cmds
14123
14124 # Same as above, but a single script fragment to be evaled but not shown.
14125 finish_eval=$lt_finish_eval
14126
14127 # Take the output of nm and produce a listing of raw symbols and C names.
14128 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14129
14130 # Transform the output of nm in a proper C declaration
14131 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14132
14133 # Transform the output of nm in a C name address pair
14134 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14135
14136 # This is the shared library runtime path variable.
14137 runpath_var=$runpath_var
14138
14139 # This is the shared library path variable.
14140 shlibpath_var=$shlibpath_var
14141
14142 # Is shlibpath searched before the hard-coded library search path?
14143 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14144
14145 # How to hardcode a shared library path into an executable.
14146 hardcode_action=$hardcode_action_CXX
14147
14148 # Whether we should hardcode library paths into libraries.
14149 hardcode_into_libs=$hardcode_into_libs
14150
14151 # Flag to hardcode \$libdir into a binary during linking.
14152 # This must work even if \$libdir does not exist.
14153 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14154
14155 # If ld is used when linking, flag to hardcode \$libdir into
14156 # a binary during linking. This must work even if \$libdir does
14157 # not exist.
14158 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14159
14160 # Whether we need a single -rpath flag with a separated argument.
14161 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14162
14163 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14164 # resulting binary.
14165 hardcode_direct=$hardcode_direct_CXX
14166
14167 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14168 # resulting binary.
14169 hardcode_minus_L=$hardcode_minus_L_CXX
14170
14171 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14172 # the resulting binary.
14173 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14174
14175 # Set to yes if building a shared library automatically hardcodes DIR into the library
14176 # and all subsequent libraries and executables linked against it.
14177 hardcode_automatic=$hardcode_automatic_CXX
14178
14179 # Variables whose values should be saved in libtool wrapper scripts and
14180 # restored at relink time.
14181 variables_saved_for_relink="$variables_saved_for_relink"
14182
14183 # Whether libtool must link a program against all its dependency libraries.
14184 link_all_deplibs=$link_all_deplibs_CXX
14185
14186 # Compile-time system search path for libraries
14187 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14188
14189 # Run-time system search path for libraries
14190 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14191
14192 # Fix the shell variable \$srcfile for the compiler.
14193 fix_srcfile_path=$lt_fix_srcfile_path
14194
14195 # Set to yes if exported symbols are required.
14196 always_export_symbols=$always_export_symbols_CXX
14197
14198 # The commands to list exported symbols.
14199 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14200
14201 # The commands to extract the exported symbol list from a shared archive.
14202 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14203
14204 # Symbols that should not be listed in the preloaded symbols.
14205 exclude_expsyms=$lt_exclude_expsyms_CXX
14206
14207 # Symbols that must always be exported.
14208 include_expsyms=$lt_include_expsyms_CXX
14209
14210 # ### END LIBTOOL TAG CONFIG: $tagname
14211
14212 __EOF__
14213
14214
14215 else
14216 # If there is no Makefile yet, we rely on a make rule to execute
14217 # `config.status --recheck' to rerun these tests and create the
14218 # libtool script then.
14219 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14220 if test -f "$ltmain_in"; then
14221 test -f Makefile && make "$ltmain"
14222 fi
14223 fi
14224
14225
14226 ac_ext=c
14227 ac_cpp='$CPP $CPPFLAGS'
14228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14231
14232 CC=$lt_save_CC
14233 LDCXX=$LD
14234 LD=$lt_save_LD
14235 GCC=$lt_save_GCC
14236 with_gnu_ldcxx=$with_gnu_ld
14237 with_gnu_ld=$lt_save_with_gnu_ld
14238 lt_cv_path_LDCXX=$lt_cv_path_LD
14239 lt_cv_path_LD=$lt_save_path_LD
14240 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14241 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14242
14243 else
14244 tagname=""
14245 fi
14246 ;;
14247
14248 F77)
14249 if test -n "$F77" && test "X$F77" != "Xno"; then
14250
14251 ac_ext=f
14252 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14253 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14255
14256
14257 archive_cmds_need_lc_F77=no
14258 allow_undefined_flag_F77=
14259 always_export_symbols_F77=no
14260 archive_expsym_cmds_F77=
14261 export_dynamic_flag_spec_F77=
14262 hardcode_direct_F77=no
14263 hardcode_libdir_flag_spec_F77=
14264 hardcode_libdir_flag_spec_ld_F77=
14265 hardcode_libdir_separator_F77=
14266 hardcode_minus_L_F77=no
14267 hardcode_automatic_F77=no
14268 module_cmds_F77=
14269 module_expsym_cmds_F77=
14270 link_all_deplibs_F77=unknown
14271 old_archive_cmds_F77=$old_archive_cmds
14272 no_undefined_flag_F77=
14273 whole_archive_flag_spec_F77=
14274 enable_shared_with_static_runtimes_F77=no
14275
14276 # Source file extension for f77 test sources.
14277 ac_ext=f
14278
14279 # Object file extension for compiled f77 test sources.
14280 objext=o
14281 objext_F77=$objext
14282
14283 # Code to be used in simple compile tests
14284 lt_simple_compile_test_code="\
14285 subroutine t
14286 return
14287 end
14288 "
14289
14290 # Code to be used in simple link tests
14291 lt_simple_link_test_code="\
14292 program t
14293 end
14294 "
14295
14296 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14297
14298 # If no C compiler was specified, use CC.
14299 LTCC=${LTCC-"$CC"}
14300
14301 # If no C compiler flags were specified, use CFLAGS.
14302 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14303
14304 # Allow CC to be a program name with arguments.
14305 compiler=$CC
14306
14307
14308 # save warnings/boilerplate of simple test code
14309 ac_outfile=conftest.$ac_objext
14310 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14312 _lt_compiler_boilerplate=`cat conftest.err`
14313 $rm conftest*
14314
14315 ac_outfile=conftest.$ac_objext
14316 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14317 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14318 _lt_linker_boilerplate=`cat conftest.err`
14319 $rm -r conftest*
14320
14321
14322 # Allow CC to be a program name with arguments.
14323 lt_save_CC="$CC"
14324 CC=${F77-"f77"}
14325 compiler=$CC
14326 compiler_F77=$CC
14327 for cc_temp in $compiler""; do
14328 case $cc_temp in
14329 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14330 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14331 \-*) ;;
14332 *) break;;
14333 esac
14334 done
14335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14336
14337
14338 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14339 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14340 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14341 $as_echo "$can_build_shared" >&6; }
14342
14343 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14344 $as_echo_n "checking whether to build shared libraries... " >&6; }
14345 test "$can_build_shared" = "no" && enable_shared=no
14346
14347 # On AIX, shared libraries and static libraries use the same namespace, and
14348 # are all built from PIC.
14349 case $host_os in
14350 aix3*)
14351 test "$enable_shared" = yes && enable_static=no
14352 if test -n "$RANLIB"; then
14353 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14354 postinstall_cmds='$RANLIB $lib'
14355 fi
14356 ;;
14357 aix[4-9]*)
14358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14359 test "$enable_shared" = yes && enable_static=no
14360 fi
14361 ;;
14362 esac
14363 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14364 $as_echo "$enable_shared" >&6; }
14365
14366 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14367 $as_echo_n "checking whether to build static libraries... " >&6; }
14368 # Make sure either enable_shared or enable_static is yes.
14369 test "$enable_shared" = yes || enable_static=yes
14370 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14371 $as_echo "$enable_static" >&6; }
14372
14373 GCC_F77="$G77"
14374 LD_F77="$LD"
14375
14376 lt_prog_compiler_wl_F77=
14377 lt_prog_compiler_pic_F77=
14378 lt_prog_compiler_static_F77=
14379
14380 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14381 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14382
14383 if test "$GCC" = yes; then
14384 lt_prog_compiler_wl_F77='-Wl,'
14385 lt_prog_compiler_static_F77='-static'
14386
14387 case $host_os in
14388 aix*)
14389 # All AIX code is PIC.
14390 if test "$host_cpu" = ia64; then
14391 # AIX 5 now supports IA64 processor
14392 lt_prog_compiler_static_F77='-Bstatic'
14393 fi
14394 ;;
14395
14396 amigaos*)
14397 # FIXME: we need at least 68020 code to build shared libraries, but
14398 # adding the `-m68020' flag to GCC prevents building anything better,
14399 # like `-m68040'.
14400 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14401 ;;
14402
14403 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14404 # PIC is the default for these OSes.
14405 ;;
14406
14407 mingw* | cygwin* | pw32* | os2*)
14408 # This hack is so that the source file can tell whether it is being
14409 # built for inclusion in a dll (and should export symbols for example).
14410 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14411 # (--disable-auto-import) libraries
14412 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14413 ;;
14414
14415 darwin* | rhapsody*)
14416 # PIC is the default on this platform
14417 # Common symbols not allowed in MH_DYLIB files
14418 lt_prog_compiler_pic_F77='-fno-common'
14419 ;;
14420
14421 interix[3-9]*)
14422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14423 # Instead, we relocate shared libraries at runtime.
14424 ;;
14425
14426 msdosdjgpp*)
14427 # Just because we use GCC doesn't mean we suddenly get shared libraries
14428 # on systems that don't support them.
14429 lt_prog_compiler_can_build_shared_F77=no
14430 enable_shared=no
14431 ;;
14432
14433 sysv4*MP*)
14434 if test -d /usr/nec; then
14435 lt_prog_compiler_pic_F77=-Kconform_pic
14436 fi
14437 ;;
14438
14439 hpux*)
14440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14441 # not for PA HP-UX.
14442 case $host_cpu in
14443 hppa*64*|ia64*)
14444 # +Z the default
14445 ;;
14446 *)
14447 lt_prog_compiler_pic_F77='-fPIC'
14448 ;;
14449 esac
14450 ;;
14451
14452 *)
14453 lt_prog_compiler_pic_F77='-fPIC'
14454 ;;
14455 esac
14456 else
14457 # PORTME Check for flag to pass linker flags through the system compiler.
14458 case $host_os in
14459 aix*)
14460 lt_prog_compiler_wl_F77='-Wl,'
14461 if test "$host_cpu" = ia64; then
14462 # AIX 5 now supports IA64 processor
14463 lt_prog_compiler_static_F77='-Bstatic'
14464 else
14465 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14466 fi
14467 ;;
14468 darwin*)
14469 # PIC is the default on this platform
14470 # Common symbols not allowed in MH_DYLIB files
14471 case $cc_basename in
14472 xlc*)
14473 lt_prog_compiler_pic_F77='-qnocommon'
14474 lt_prog_compiler_wl_F77='-Wl,'
14475 ;;
14476 esac
14477 ;;
14478
14479 mingw* | cygwin* | pw32* | os2*)
14480 # This hack is so that the source file can tell whether it is being
14481 # built for inclusion in a dll (and should export symbols for example).
14482 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14483 ;;
14484
14485 hpux9* | hpux10* | hpux11*)
14486 lt_prog_compiler_wl_F77='-Wl,'
14487 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14488 # not for PA HP-UX.
14489 case $host_cpu in
14490 hppa*64*|ia64*)
14491 # +Z the default
14492 ;;
14493 *)
14494 lt_prog_compiler_pic_F77='+Z'
14495 ;;
14496 esac
14497 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14498 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14499 ;;
14500
14501 irix5* | irix6* | nonstopux*)
14502 lt_prog_compiler_wl_F77='-Wl,'
14503 # PIC (with -KPIC) is the default.
14504 lt_prog_compiler_static_F77='-non_shared'
14505 ;;
14506
14507 newsos6)
14508 lt_prog_compiler_pic_F77='-KPIC'
14509 lt_prog_compiler_static_F77='-Bstatic'
14510 ;;
14511
14512 linux* | k*bsd*-gnu)
14513 case $cc_basename in
14514 icc* | ecc*)
14515 lt_prog_compiler_wl_F77='-Wl,'
14516 lt_prog_compiler_pic_F77='-KPIC'
14517 lt_prog_compiler_static_F77='-static'
14518 ;;
14519 pgcc* | pgf77* | pgf90* | pgf95*)
14520 # Portland Group compilers (*not* the Pentium gcc compiler,
14521 # which looks to be a dead project)
14522 lt_prog_compiler_wl_F77='-Wl,'
14523 lt_prog_compiler_pic_F77='-fpic'
14524 lt_prog_compiler_static_F77='-Bstatic'
14525 ;;
14526 ccc*)
14527 lt_prog_compiler_wl_F77='-Wl,'
14528 # All Alpha code is PIC.
14529 lt_prog_compiler_static_F77='-non_shared'
14530 ;;
14531 *)
14532 case `$CC -V 2>&1 | sed 5q` in
14533 *Sun\ C*)
14534 # Sun C 5.9
14535 lt_prog_compiler_pic_F77='-KPIC'
14536 lt_prog_compiler_static_F77='-Bstatic'
14537 lt_prog_compiler_wl_F77='-Wl,'
14538 ;;
14539 *Sun\ F*)
14540 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14541 lt_prog_compiler_pic_F77='-KPIC'
14542 lt_prog_compiler_static_F77='-Bstatic'
14543 lt_prog_compiler_wl_F77=''
14544 ;;
14545 esac
14546 ;;
14547 esac
14548 ;;
14549
14550 osf3* | osf4* | osf5*)
14551 lt_prog_compiler_wl_F77='-Wl,'
14552 # All OSF/1 code is PIC.
14553 lt_prog_compiler_static_F77='-non_shared'
14554 ;;
14555
14556 rdos*)
14557 lt_prog_compiler_static_F77='-non_shared'
14558 ;;
14559
14560 solaris*)
14561 lt_prog_compiler_pic_F77='-KPIC'
14562 lt_prog_compiler_static_F77='-Bstatic'
14563 case $cc_basename in
14564 f77* | f90* | f95*)
14565 lt_prog_compiler_wl_F77='-Qoption ld ';;
14566 *)
14567 lt_prog_compiler_wl_F77='-Wl,';;
14568 esac
14569 ;;
14570
14571 sunos4*)
14572 lt_prog_compiler_wl_F77='-Qoption ld '
14573 lt_prog_compiler_pic_F77='-PIC'
14574 lt_prog_compiler_static_F77='-Bstatic'
14575 ;;
14576
14577 sysv4 | sysv4.2uw2* | sysv4.3*)
14578 lt_prog_compiler_wl_F77='-Wl,'
14579 lt_prog_compiler_pic_F77='-KPIC'
14580 lt_prog_compiler_static_F77='-Bstatic'
14581 ;;
14582
14583 sysv4*MP*)
14584 if test -d /usr/nec ;then
14585 lt_prog_compiler_pic_F77='-Kconform_pic'
14586 lt_prog_compiler_static_F77='-Bstatic'
14587 fi
14588 ;;
14589
14590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14591 lt_prog_compiler_wl_F77='-Wl,'
14592 lt_prog_compiler_pic_F77='-KPIC'
14593 lt_prog_compiler_static_F77='-Bstatic'
14594 ;;
14595
14596 unicos*)
14597 lt_prog_compiler_wl_F77='-Wl,'
14598 lt_prog_compiler_can_build_shared_F77=no
14599 ;;
14600
14601 uts4*)
14602 lt_prog_compiler_pic_F77='-pic'
14603 lt_prog_compiler_static_F77='-Bstatic'
14604 ;;
14605
14606 *)
14607 lt_prog_compiler_can_build_shared_F77=no
14608 ;;
14609 esac
14610 fi
14611
14612 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14613 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14614
14615 #
14616 # Check to make sure the PIC flag actually works.
14617 #
14618 if test -n "$lt_prog_compiler_pic_F77"; then
14619
14620 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14621 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14622 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14623 $as_echo_n "(cached) " >&6
14624 else
14625 lt_cv_prog_compiler_pic_works_F77=no
14626 ac_outfile=conftest.$ac_objext
14627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14628 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14629 # Insert the option either (1) after the last *FLAGS variable, or
14630 # (2) before a word containing "conftest.", or (3) at the end.
14631 # Note that $ac_compile itself does not contain backslashes and begins
14632 # with a dollar sign (not a hyphen), so the echo should work correctly.
14633 # The option is referenced via a variable to avoid confusing sed.
14634 lt_compile=`echo "$ac_compile" | $SED \
14635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14637 -e 's:$: $lt_compiler_flag:'`
14638 (eval echo "\"\$as_me:14638: $lt_compile\"" >&5)
14639 (eval "$lt_compile" 2>conftest.err)
14640 ac_status=$?
14641 cat conftest.err >&5
14642 echo "$as_me:14642: \$? = $ac_status" >&5
14643 if (exit $ac_status) && test -s "$ac_outfile"; then
14644 # The compiler can only warn and ignore the option if not recognized
14645 # So say no if there are warnings other than the usual output.
14646 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14649 lt_cv_prog_compiler_pic_works_F77=yes
14650 fi
14651 fi
14652 $rm conftest*
14653
14654 fi
14655 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14656 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14657
14658 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14659 case $lt_prog_compiler_pic_F77 in
14660 "" | " "*) ;;
14661 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14662 esac
14663 else
14664 lt_prog_compiler_pic_F77=
14665 lt_prog_compiler_can_build_shared_F77=no
14666 fi
14667
14668 fi
14669 case $host_os in
14670 # For platforms which do not support PIC, -DPIC is meaningless:
14671 *djgpp*)
14672 lt_prog_compiler_pic_F77=
14673 ;;
14674 *)
14675 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14676 ;;
14677 esac
14678
14679 #
14680 # Check to make sure the static flag actually works.
14681 #
14682 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14683 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14684 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14685 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14686 $as_echo_n "(cached) " >&6
14687 else
14688 lt_cv_prog_compiler_static_works_F77=no
14689 save_LDFLAGS="$LDFLAGS"
14690 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14691 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14693 # The linker can only warn and ignore the option if not recognized
14694 # So say no if there are warnings
14695 if test -s conftest.err; then
14696 # Append any errors to the config.log.
14697 cat conftest.err 1>&5
14698 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14700 if diff conftest.exp conftest.er2 >/dev/null; then
14701 lt_cv_prog_compiler_static_works_F77=yes
14702 fi
14703 else
14704 lt_cv_prog_compiler_static_works_F77=yes
14705 fi
14706 fi
14707 $rm -r conftest*
14708 LDFLAGS="$save_LDFLAGS"
14709
14710 fi
14711 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14712 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14713
14714 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14715 :
14716 else
14717 lt_prog_compiler_static_F77=
14718 fi
14719
14720
14721 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14722 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14723 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14724 $as_echo_n "(cached) " >&6
14725 else
14726 lt_cv_prog_compiler_c_o_F77=no
14727 $rm -r conftest 2>/dev/null
14728 mkdir conftest
14729 cd conftest
14730 mkdir out
14731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14732
14733 lt_compiler_flag="-o out/conftest2.$ac_objext"
14734 # Insert the option either (1) after the last *FLAGS variable, or
14735 # (2) before a word containing "conftest.", or (3) at the end.
14736 # Note that $ac_compile itself does not contain backslashes and begins
14737 # with a dollar sign (not a hyphen), so the echo should work correctly.
14738 lt_compile=`echo "$ac_compile" | $SED \
14739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14741 -e 's:$: $lt_compiler_flag:'`
14742 (eval echo "\"\$as_me:14742: $lt_compile\"" >&5)
14743 (eval "$lt_compile" 2>out/conftest.err)
14744 ac_status=$?
14745 cat out/conftest.err >&5
14746 echo "$as_me:14746: \$? = $ac_status" >&5
14747 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14748 then
14749 # The compiler can only warn and ignore the option if not recognized
14750 # So say no if there are warnings
14751 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14752 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14753 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14754 lt_cv_prog_compiler_c_o_F77=yes
14755 fi
14756 fi
14757 chmod u+w . 2>&5
14758 $rm conftest*
14759 # SGI C++ compiler will create directory out/ii_files/ for
14760 # template instantiation
14761 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14762 $rm out/* && rmdir out
14763 cd ..
14764 rmdir conftest
14765 $rm conftest*
14766
14767 fi
14768 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14769 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14770
14771
14772 hard_links="nottested"
14773 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14774 # do not overwrite the value of need_locks provided by the user
14775 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14776 $as_echo_n "checking if we can lock with hard links... " >&6; }
14777 hard_links=yes
14778 $rm conftest*
14779 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14780 touch conftest.a
14781 ln conftest.a conftest.b 2>&5 || hard_links=no
14782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14783 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14784 $as_echo "$hard_links" >&6; }
14785 if test "$hard_links" = no; then
14786 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14787 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14788 need_locks=warn
14789 fi
14790 else
14791 need_locks=no
14792 fi
14793
14794 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14796
14797 runpath_var=
14798 allow_undefined_flag_F77=
14799 enable_shared_with_static_runtimes_F77=no
14800 archive_cmds_F77=
14801 archive_expsym_cmds_F77=
14802 old_archive_From_new_cmds_F77=
14803 old_archive_from_expsyms_cmds_F77=
14804 export_dynamic_flag_spec_F77=
14805 whole_archive_flag_spec_F77=
14806 thread_safe_flag_spec_F77=
14807 hardcode_libdir_flag_spec_F77=
14808 hardcode_libdir_flag_spec_ld_F77=
14809 hardcode_libdir_separator_F77=
14810 hardcode_direct_F77=no
14811 hardcode_minus_L_F77=no
14812 hardcode_shlibpath_var_F77=unsupported
14813 link_all_deplibs_F77=unknown
14814 hardcode_automatic_F77=no
14815 module_cmds_F77=
14816 module_expsym_cmds_F77=
14817 always_export_symbols_F77=no
14818 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14819 # include_expsyms should be a list of space-separated symbols to be *always*
14820 # included in the symbol list
14821 include_expsyms_F77=
14822 # exclude_expsyms can be an extended regexp of symbols to exclude
14823 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14824 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14825 # as well as any symbol that contains `d'.
14826 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14827 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14828 # platforms (ab)use it in PIC code, but their linkers get confused if
14829 # the symbol is explicitly referenced. Since portable code cannot
14830 # rely on this symbol name, it's probably fine to never include it in
14831 # preloaded symbol tables.
14832 # Exclude shared library initialization/finalization symbols.
14833 extract_expsyms_cmds=
14834 # Just being paranoid about ensuring that cc_basename is set.
14835 for cc_temp in $compiler""; do
14836 case $cc_temp in
14837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14839 \-*) ;;
14840 *) break;;
14841 esac
14842 done
14843 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14844
14845 case $host_os in
14846 cygwin* | mingw* | pw32*)
14847 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14848 # When not using gcc, we currently assume that we are using
14849 # Microsoft Visual C++.
14850 if test "$GCC" != yes; then
14851 with_gnu_ld=no
14852 fi
14853 ;;
14854 interix*)
14855 # we just hope/assume this is gcc and not c89 (= MSVC++)
14856 with_gnu_ld=yes
14857 ;;
14858 openbsd*)
14859 with_gnu_ld=no
14860 ;;
14861 esac
14862
14863 ld_shlibs_F77=yes
14864 if test "$with_gnu_ld" = yes; then
14865 # If archive_cmds runs LD, not CC, wlarc should be empty
14866 wlarc='${wl}'
14867
14868 # Set some defaults for GNU ld with shared library support. These
14869 # are reset later if shared libraries are not supported. Putting them
14870 # here allows them to be overridden if necessary.
14871 runpath_var=LD_RUN_PATH
14872 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14873 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14874 # ancient GNU ld didn't support --whole-archive et. al.
14875 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14876 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14877 else
14878 whole_archive_flag_spec_F77=
14879 fi
14880 supports_anon_versioning=no
14881 case `$LD -v 2>/dev/null` in
14882 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14883 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14884 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14885 *\ 2.11.*) ;; # other 2.11 versions
14886 *) supports_anon_versioning=yes ;;
14887 esac
14888
14889 # See if GNU ld supports shared libraries.
14890 case $host_os in
14891 aix[3-9]*)
14892 # On AIX/PPC, the GNU linker is very broken
14893 if test "$host_cpu" != ia64; then
14894 ld_shlibs_F77=no
14895 cat <<EOF 1>&2
14896
14897 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14898 *** to be unable to reliably create shared libraries on AIX.
14899 *** Therefore, libtool is disabling shared libraries support. If you
14900 *** really care for shared libraries, you may want to modify your PATH
14901 *** so that a non-GNU linker is found, and then restart.
14902
14903 EOF
14904 fi
14905 ;;
14906
14907 amigaos*)
14908 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)'
14909 hardcode_libdir_flag_spec_F77='-L$libdir'
14910 hardcode_minus_L_F77=yes
14911
14912 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14913 # that the semantics of dynamic libraries on AmigaOS, at least up
14914 # to version 4, is to share data among multiple programs linked
14915 # with the same dynamic library. Since this doesn't match the
14916 # behavior of shared libraries on other platforms, we can't use
14917 # them.
14918 ld_shlibs_F77=no
14919 ;;
14920
14921 beos*)
14922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14923 allow_undefined_flag_F77=unsupported
14924 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14925 # support --undefined. This deserves some investigation. FIXME
14926 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14927 else
14928 ld_shlibs_F77=no
14929 fi
14930 ;;
14931
14932 cygwin* | mingw* | pw32*)
14933 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14934 # as there is no search path for DLLs.
14935 hardcode_libdir_flag_spec_F77='-L$libdir'
14936 allow_undefined_flag_F77=unsupported
14937 always_export_symbols_F77=no
14938 enable_shared_with_static_runtimes_F77=yes
14939 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14940
14941 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14942 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14943 # If the export-symbols file already is a .def file (1st line
14944 # is EXPORTS), use it as is; otherwise, prepend...
14945 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14946 cp $export_symbols $output_objdir/$soname.def;
14947 else
14948 echo EXPORTS > $output_objdir/$soname.def;
14949 cat $export_symbols >> $output_objdir/$soname.def;
14950 fi~
14951 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14952 else
14953 ld_shlibs_F77=no
14954 fi
14955 ;;
14956
14957 interix[3-9]*)
14958 hardcode_direct_F77=no
14959 hardcode_shlibpath_var_F77=no
14960 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14961 export_dynamic_flag_spec_F77='${wl}-E'
14962 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14963 # Instead, shared libraries are loaded at an image base (0x10000000 by
14964 # default) and relocated if they conflict, which is a slow very memory
14965 # consuming and fragmenting process. To avoid this, we pick a random,
14966 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14967 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14968 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'
14969 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'
14970 ;;
14971
14972 gnu* | linux* | k*bsd*-gnu)
14973 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14974 tmp_addflag=
14975 case $cc_basename,$host_cpu in
14976 pgcc*) # Portland Group C compiler
14977 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'
14978 tmp_addflag=' $pic_flag'
14979 ;;
14980 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14981 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'
14982 tmp_addflag=' $pic_flag -Mnomain' ;;
14983 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14984 tmp_addflag=' -i_dynamic' ;;
14985 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14986 tmp_addflag=' -i_dynamic -nofor_main' ;;
14987 ifc* | ifort*) # Intel Fortran compiler
14988 tmp_addflag=' -nofor_main' ;;
14989 esac
14990 case `$CC -V 2>&1 | sed 5q` in
14991 *Sun\ C*) # Sun C 5.9
14992 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'
14993 tmp_sharedflag='-G' ;;
14994 *Sun\ F*) # Sun Fortran 8.3
14995 tmp_sharedflag='-G' ;;
14996 *)
14997 tmp_sharedflag='-shared' ;;
14998 esac
14999 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15000
15001 if test $supports_anon_versioning = yes; then
15002 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15004 $echo "local: *; };" >> $output_objdir/$libname.ver~
15005 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15006 fi
15007 else
15008 ld_shlibs_F77=no
15009 fi
15010 ;;
15011
15012 netbsd*)
15013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15014 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15015 wlarc=
15016 else
15017 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15018 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15019 fi
15020 ;;
15021
15022 solaris*)
15023 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15024 ld_shlibs_F77=no
15025 cat <<EOF 1>&2
15026
15027 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15028 *** create shared libraries on Solaris systems. Therefore, libtool
15029 *** is disabling shared libraries support. We urge you to upgrade GNU
15030 *** binutils to release 2.9.1 or newer. Another option is to modify
15031 *** your PATH or compiler configuration so that the native linker is
15032 *** used, and then restart.
15033
15034 EOF
15035 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15036 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15038 else
15039 ld_shlibs_F77=no
15040 fi
15041 ;;
15042
15043 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15044 case `$LD -v 2>&1` in
15045 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15046 ld_shlibs_F77=no
15047 cat <<_LT_EOF 1>&2
15048
15049 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15050 *** reliably create shared libraries on SCO systems. Therefore, libtool
15051 *** is disabling shared libraries support. We urge you to upgrade GNU
15052 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15053 *** your PATH or compiler configuration so that the native linker is
15054 *** used, and then restart.
15055
15056 _LT_EOF
15057 ;;
15058 *)
15059 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15060 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15061 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15062 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15063 else
15064 ld_shlibs_F77=no
15065 fi
15066 ;;
15067 esac
15068 ;;
15069
15070 sunos4*)
15071 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15072 wlarc=
15073 hardcode_direct_F77=yes
15074 hardcode_shlibpath_var_F77=no
15075 ;;
15076
15077 *)
15078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15080 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15081 else
15082 ld_shlibs_F77=no
15083 fi
15084 ;;
15085 esac
15086
15087 if test "$ld_shlibs_F77" = no; then
15088 runpath_var=
15089 hardcode_libdir_flag_spec_F77=
15090 export_dynamic_flag_spec_F77=
15091 whole_archive_flag_spec_F77=
15092 fi
15093 else
15094 # PORTME fill in a description of your system's linker (not GNU ld)
15095 case $host_os in
15096 aix3*)
15097 allow_undefined_flag_F77=unsupported
15098 always_export_symbols_F77=yes
15099 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'
15100 # Note: this linker hardcodes the directories in LIBPATH if there
15101 # are no directories specified by -L.
15102 hardcode_minus_L_F77=yes
15103 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15104 # Neither direct hardcoding nor static linking is supported with a
15105 # broken collect2.
15106 hardcode_direct_F77=unsupported
15107 fi
15108 ;;
15109
15110 aix[4-9]*)
15111 if test "$host_cpu" = ia64; then
15112 # On IA64, the linker does run time linking by default, so we don't
15113 # have to do anything special.
15114 aix_use_runtimelinking=no
15115 exp_sym_flag='-Bexport'
15116 no_entry_flag=""
15117 else
15118 # If we're using GNU nm, then we don't want the "-C" option.
15119 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15120 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15121 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'
15122 else
15123 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'
15124 fi
15125 aix_use_runtimelinking=no
15126
15127 # Test if we are trying to use run time linking or normal
15128 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15129 # need to do runtime linking.
15130 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15131 for ld_flag in $LDFLAGS; do
15132 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15133 aix_use_runtimelinking=yes
15134 break
15135 fi
15136 done
15137 ;;
15138 esac
15139
15140 exp_sym_flag='-bexport'
15141 no_entry_flag='-bnoentry'
15142 fi
15143
15144 # When large executables or shared objects are built, AIX ld can
15145 # have problems creating the table of contents. If linking a library
15146 # or program results in "error TOC overflow" add -mminimal-toc to
15147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15149
15150 archive_cmds_F77=''
15151 hardcode_direct_F77=yes
15152 hardcode_libdir_separator_F77=':'
15153 link_all_deplibs_F77=yes
15154
15155 if test "$GCC" = yes; then
15156 case $host_os in aix4.[012]|aix4.[012].*)
15157 # We only want to do this on AIX 4.2 and lower, the check
15158 # below for broken collect2 doesn't work under 4.3+
15159 collect2name=`${CC} -print-prog-name=collect2`
15160 if test -f "$collect2name" && \
15161 strings "$collect2name" | grep resolve_lib_name >/dev/null
15162 then
15163 # We have reworked collect2
15164 :
15165 else
15166 # We have old collect2
15167 hardcode_direct_F77=unsupported
15168 # It fails to find uninstalled libraries when the uninstalled
15169 # path is not listed in the libpath. Setting hardcode_minus_L
15170 # to unsupported forces relinking
15171 hardcode_minus_L_F77=yes
15172 hardcode_libdir_flag_spec_F77='-L$libdir'
15173 hardcode_libdir_separator_F77=
15174 fi
15175 ;;
15176 esac
15177 shared_flag='-shared'
15178 if test "$aix_use_runtimelinking" = yes; then
15179 shared_flag="$shared_flag "'${wl}-G'
15180 fi
15181 else
15182 # not using gcc
15183 if test "$host_cpu" = ia64; then
15184 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15185 # chokes on -Wl,-G. The following line is correct:
15186 shared_flag='-G'
15187 else
15188 if test "$aix_use_runtimelinking" = yes; then
15189 shared_flag='${wl}-G'
15190 else
15191 shared_flag='${wl}-bM:SRE'
15192 fi
15193 fi
15194 fi
15195
15196 # It seems that -bexpall does not export symbols beginning with
15197 # underscore (_), so it is better to generate a list of symbols to export.
15198 always_export_symbols_F77=yes
15199 if test "$aix_use_runtimelinking" = yes; then
15200 # Warning - without using the other runtime loading flags (-brtl),
15201 # -berok will link without error, but may produce a broken library.
15202 allow_undefined_flag_F77='-berok'
15203 # Determine the default libpath from the value encoded in an empty executable.
15204 cat >conftest.$ac_ext <<_ACEOF
15205 program main
15206
15207 end
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217 (eval "$ac_link") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && {
15224 test -z "$ac_f77_werror_flag" ||
15225 test ! -s conftest.err
15226 } && test -s conftest$ac_exeext && {
15227 test "$cross_compiling" = yes ||
15228 $as_test_x conftest$ac_exeext
15229 }; then
15230
15231 lt_aix_libpath_sed='
15232 /Import File Strings/,/^$/ {
15233 /^0/ {
15234 s/^0 *\(.*\)$/\1/
15235 p
15236 }
15237 }'
15238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15239 # Check for a 64-bit object if we didn't find anything.
15240 if test -z "$aix_libpath"; then
15241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15242 fi
15243 else
15244 $as_echo "$as_me: failed program was:" >&5
15245 sed 's/^/| /' conftest.$ac_ext >&5
15246
15247
15248 fi
15249
15250 rm -rf conftest.dSYM
15251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15252 conftest$ac_exeext conftest.$ac_ext
15253 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15254
15255 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15256 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"
15257 else
15258 if test "$host_cpu" = ia64; then
15259 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15260 allow_undefined_flag_F77="-z nodefs"
15261 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"
15262 else
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
15265 program main
15266
15267 end
15268 _ACEOF
15269 rm -f conftest.$ac_objext conftest$ac_exeext
15270 if { (ac_try="$ac_link"
15271 case "(($ac_try" in
15272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15273 *) ac_try_echo=$ac_try;;
15274 esac
15275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15276 $as_echo "$ac_try_echo") >&5
15277 (eval "$ac_link") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_f77_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest$ac_exeext && {
15287 test "$cross_compiling" = yes ||
15288 $as_test_x conftest$ac_exeext
15289 }; then
15290
15291 lt_aix_libpath_sed='
15292 /Import File Strings/,/^$/ {
15293 /^0/ {
15294 s/^0 *\(.*\)$/\1/
15295 p
15296 }
15297 }'
15298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15299 # Check for a 64-bit object if we didn't find anything.
15300 if test -z "$aix_libpath"; then
15301 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15302 fi
15303 else
15304 $as_echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15306
15307
15308 fi
15309
15310 rm -rf conftest.dSYM
15311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15312 conftest$ac_exeext conftest.$ac_ext
15313 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15314
15315 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15316 # Warning - without using the other run time loading flags,
15317 # -berok will link without error, but may produce a broken library.
15318 no_undefined_flag_F77=' ${wl}-bernotok'
15319 allow_undefined_flag_F77=' ${wl}-berok'
15320 # Exported symbols can be pulled into shared objects from archives
15321 whole_archive_flag_spec_F77='$convenience'
15322 archive_cmds_need_lc_F77=yes
15323 # This is similar to how AIX traditionally builds its shared libraries.
15324 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'
15325 fi
15326 fi
15327 ;;
15328
15329 amigaos*)
15330 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)'
15331 hardcode_libdir_flag_spec_F77='-L$libdir'
15332 hardcode_minus_L_F77=yes
15333 # see comment about different semantics on the GNU ld section
15334 ld_shlibs_F77=no
15335 ;;
15336
15337 bsdi[45]*)
15338 export_dynamic_flag_spec_F77=-rdynamic
15339 ;;
15340
15341 cygwin* | mingw* | pw32*)
15342 # When not using gcc, we currently assume that we are using
15343 # Microsoft Visual C++.
15344 # hardcode_libdir_flag_spec is actually meaningless, as there is
15345 # no search path for DLLs.
15346 hardcode_libdir_flag_spec_F77=' '
15347 allow_undefined_flag_F77=unsupported
15348 # Tell ltmain to make .lib files, not .a files.
15349 libext=lib
15350 # Tell ltmain to make .dll files, not .so files.
15351 shrext_cmds=".dll"
15352 # FIXME: Setting linknames here is a bad hack.
15353 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15354 # The linker will automatically build a .lib file if we build a DLL.
15355 old_archive_From_new_cmds_F77='true'
15356 # FIXME: Should let the user specify the lib program.
15357 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15358 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15359 enable_shared_with_static_runtimes_F77=yes
15360 ;;
15361
15362 darwin* | rhapsody*)
15363 case $host_os in
15364 rhapsody* | darwin1.[012])
15365 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15366 ;;
15367 *) # Darwin 1.3 on
15368 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15369 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15370 else
15371 case ${MACOSX_DEPLOYMENT_TARGET} in
15372 10.[012])
15373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15374 ;;
15375 10.*)
15376 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15377 ;;
15378 esac
15379 fi
15380 ;;
15381 esac
15382 archive_cmds_need_lc_F77=no
15383 hardcode_direct_F77=no
15384 hardcode_automatic_F77=yes
15385 hardcode_shlibpath_var_F77=unsupported
15386 whole_archive_flag_spec_F77=''
15387 link_all_deplibs_F77=yes
15388 if test "$GCC" = yes ; then
15389 output_verbose_link_cmd='echo'
15390 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}"
15391 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15392 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}"
15393 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}"
15394 else
15395 case $cc_basename in
15396 xlc*)
15397 output_verbose_link_cmd='echo'
15398 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15399 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15400 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15401 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}'
15402 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}'
15403 ;;
15404 *)
15405 ld_shlibs_F77=no
15406 ;;
15407 esac
15408 fi
15409 ;;
15410
15411 dgux*)
15412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413 hardcode_libdir_flag_spec_F77='-L$libdir'
15414 hardcode_shlibpath_var_F77=no
15415 ;;
15416
15417 freebsd1*)
15418 ld_shlibs_F77=no
15419 ;;
15420
15421 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15422 # support. Future versions do this automatically, but an explicit c++rt0.o
15423 # does not break anything, and helps significantly (at the cost of a little
15424 # extra space).
15425 freebsd2.2*)
15426 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15427 hardcode_libdir_flag_spec_F77='-R$libdir'
15428 hardcode_direct_F77=yes
15429 hardcode_shlibpath_var_F77=no
15430 ;;
15431
15432 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15433 freebsd2*)
15434 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15435 hardcode_direct_F77=yes
15436 hardcode_minus_L_F77=yes
15437 hardcode_shlibpath_var_F77=no
15438 ;;
15439
15440 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15441 freebsd* | dragonfly*)
15442 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15443 hardcode_libdir_flag_spec_F77='-R$libdir'
15444 hardcode_direct_F77=yes
15445 hardcode_shlibpath_var_F77=no
15446 ;;
15447
15448 hpux9*)
15449 if test "$GCC" = yes; then
15450 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'
15451 else
15452 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'
15453 fi
15454 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15455 hardcode_libdir_separator_F77=:
15456 hardcode_direct_F77=yes
15457
15458 # hardcode_minus_L: Not really in the search PATH,
15459 # but as the default location of the library.
15460 hardcode_minus_L_F77=yes
15461 export_dynamic_flag_spec_F77='${wl}-E'
15462 ;;
15463
15464 hpux10*)
15465 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15466 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15467 else
15468 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15469 fi
15470 if test "$with_gnu_ld" = no; then
15471 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15472 hardcode_libdir_separator_F77=:
15473
15474 hardcode_direct_F77=yes
15475 export_dynamic_flag_spec_F77='${wl}-E'
15476
15477 # hardcode_minus_L: Not really in the search PATH,
15478 # but as the default location of the library.
15479 hardcode_minus_L_F77=yes
15480 fi
15481 ;;
15482
15483 hpux11*)
15484 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15485 case $host_cpu in
15486 hppa*64*)
15487 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15488 ;;
15489 ia64*)
15490 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15491 ;;
15492 *)
15493 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15494 ;;
15495 esac
15496 else
15497 case $host_cpu in
15498 hppa*64*)
15499 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 ;;
15501 ia64*)
15502 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15503 ;;
15504 *)
15505 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15506 ;;
15507 esac
15508 fi
15509 if test "$with_gnu_ld" = no; then
15510 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15511 hardcode_libdir_separator_F77=:
15512
15513 case $host_cpu in
15514 hppa*64*|ia64*)
15515 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15516 hardcode_direct_F77=no
15517 hardcode_shlibpath_var_F77=no
15518 ;;
15519 *)
15520 hardcode_direct_F77=yes
15521 export_dynamic_flag_spec_F77='${wl}-E'
15522
15523 # hardcode_minus_L: Not really in the search PATH,
15524 # but as the default location of the library.
15525 hardcode_minus_L_F77=yes
15526 ;;
15527 esac
15528 fi
15529 ;;
15530
15531 irix5* | irix6* | nonstopux*)
15532 if test "$GCC" = yes; then
15533 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'
15534 else
15535 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'
15536 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15537 fi
15538 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15539 hardcode_libdir_separator_F77=:
15540 link_all_deplibs_F77=yes
15541 ;;
15542
15543 netbsd*)
15544 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15545 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15546 else
15547 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15548 fi
15549 hardcode_libdir_flag_spec_F77='-R$libdir'
15550 hardcode_direct_F77=yes
15551 hardcode_shlibpath_var_F77=no
15552 ;;
15553
15554 newsos6)
15555 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15556 hardcode_direct_F77=yes
15557 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15558 hardcode_libdir_separator_F77=:
15559 hardcode_shlibpath_var_F77=no
15560 ;;
15561
15562 openbsd*)
15563 if test -f /usr/libexec/ld.so; then
15564 hardcode_direct_F77=yes
15565 hardcode_shlibpath_var_F77=no
15566 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15567 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15568 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15569 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15570 export_dynamic_flag_spec_F77='${wl}-E'
15571 else
15572 case $host_os in
15573 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15574 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15575 hardcode_libdir_flag_spec_F77='-R$libdir'
15576 ;;
15577 *)
15578 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15579 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15580 ;;
15581 esac
15582 fi
15583 else
15584 ld_shlibs_F77=no
15585 fi
15586 ;;
15587
15588 os2*)
15589 hardcode_libdir_flag_spec_F77='-L$libdir'
15590 hardcode_minus_L_F77=yes
15591 allow_undefined_flag_F77=unsupported
15592 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'
15593 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15594 ;;
15595
15596 osf3*)
15597 if test "$GCC" = yes; then
15598 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15599 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'
15600 else
15601 allow_undefined_flag_F77=' -expect_unresolved \*'
15602 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'
15603 fi
15604 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15605 hardcode_libdir_separator_F77=:
15606 ;;
15607
15608 osf4* | osf5*) # as osf3* with the addition of -msym flag
15609 if test "$GCC" = yes; then
15610 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15611 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'
15612 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15613 else
15614 allow_undefined_flag_F77=' -expect_unresolved \*'
15615 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'
15616 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~
15617 $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'
15618
15619 # Both c and cxx compiler support -rpath directly
15620 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15621 fi
15622 hardcode_libdir_separator_F77=:
15623 ;;
15624
15625 solaris*)
15626 no_undefined_flag_F77=' -z text'
15627 if test "$GCC" = yes; then
15628 wlarc='${wl}'
15629 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15630 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15631 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15632 else
15633 wlarc=''
15634 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15635 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15636 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15637 fi
15638 hardcode_libdir_flag_spec_F77='-R$libdir'
15639 hardcode_shlibpath_var_F77=no
15640 case $host_os in
15641 solaris2.[0-5] | solaris2.[0-5].*) ;;
15642 *)
15643 # The compiler driver will combine and reorder linker options,
15644 # but understands `-z linker_flag'. GCC discards it without `$wl',
15645 # but is careful enough not to reorder.
15646 # Supported since Solaris 2.6 (maybe 2.5.1?)
15647 if test "$GCC" = yes; then
15648 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15649 else
15650 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15651 fi
15652 ;;
15653 esac
15654 link_all_deplibs_F77=yes
15655 ;;
15656
15657 sunos4*)
15658 if test "x$host_vendor" = xsequent; then
15659 # Use $CC to link under sequent, because it throws in some extra .o
15660 # files that make .init and .fini sections work.
15661 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15662 else
15663 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15664 fi
15665 hardcode_libdir_flag_spec_F77='-L$libdir'
15666 hardcode_direct_F77=yes
15667 hardcode_minus_L_F77=yes
15668 hardcode_shlibpath_var_F77=no
15669 ;;
15670
15671 sysv4)
15672 case $host_vendor in
15673 sni)
15674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15675 hardcode_direct_F77=yes # is this really true???
15676 ;;
15677 siemens)
15678 ## LD is ld it makes a PLAMLIB
15679 ## CC just makes a GrossModule.
15680 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15681 reload_cmds_F77='$CC -r -o $output$reload_objs'
15682 hardcode_direct_F77=no
15683 ;;
15684 motorola)
15685 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15687 ;;
15688 esac
15689 runpath_var='LD_RUN_PATH'
15690 hardcode_shlibpath_var_F77=no
15691 ;;
15692
15693 sysv4.3*)
15694 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15695 hardcode_shlibpath_var_F77=no
15696 export_dynamic_flag_spec_F77='-Bexport'
15697 ;;
15698
15699 sysv4*MP*)
15700 if test -d /usr/nec; then
15701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702 hardcode_shlibpath_var_F77=no
15703 runpath_var=LD_RUN_PATH
15704 hardcode_runpath_var=yes
15705 ld_shlibs_F77=yes
15706 fi
15707 ;;
15708
15709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15710 no_undefined_flag_F77='${wl}-z,text'
15711 archive_cmds_need_lc_F77=no
15712 hardcode_shlibpath_var_F77=no
15713 runpath_var='LD_RUN_PATH'
15714
15715 if test "$GCC" = yes; then
15716 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15717 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15718 else
15719 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15720 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15721 fi
15722 ;;
15723
15724 sysv5* | sco3.2v5* | sco5v6*)
15725 # Note: We can NOT use -z defs as we might desire, because we do not
15726 # link with -lc, and that would cause any symbols used from libc to
15727 # always be unresolved, which means just about no library would
15728 # ever link correctly. If we're not using GNU ld we use -z text
15729 # though, which does catch some bad symbols but isn't as heavy-handed
15730 # as -z defs.
15731 no_undefined_flag_F77='${wl}-z,text'
15732 allow_undefined_flag_F77='${wl}-z,nodefs'
15733 archive_cmds_need_lc_F77=no
15734 hardcode_shlibpath_var_F77=no
15735 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15736 hardcode_libdir_separator_F77=':'
15737 link_all_deplibs_F77=yes
15738 export_dynamic_flag_spec_F77='${wl}-Bexport'
15739 runpath_var='LD_RUN_PATH'
15740
15741 if test "$GCC" = yes; then
15742 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15744 else
15745 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15746 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15747 fi
15748 ;;
15749
15750 uts4*)
15751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_libdir_flag_spec_F77='-L$libdir'
15753 hardcode_shlibpath_var_F77=no
15754 ;;
15755
15756 *)
15757 ld_shlibs_F77=no
15758 ;;
15759 esac
15760 fi
15761
15762 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15763 $as_echo "$ld_shlibs_F77" >&6; }
15764 test "$ld_shlibs_F77" = no && can_build_shared=no
15765
15766 #
15767 # Do we need to explicitly link libc?
15768 #
15769 case "x$archive_cmds_need_lc_F77" in
15770 x|xyes)
15771 # Assume -lc should be added
15772 archive_cmds_need_lc_F77=yes
15773
15774 if test "$enable_shared" = yes && test "$GCC" = yes; then
15775 case $archive_cmds_F77 in
15776 *'~'*)
15777 # FIXME: we may have to deal with multi-command sequences.
15778 ;;
15779 '$CC '*)
15780 # Test whether the compiler implicitly links with -lc since on some
15781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15782 # to ld, don't add -lc before -lgcc.
15783 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15784 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15785 $rm conftest*
15786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15787
15788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15789 (eval $ac_compile) 2>&5
15790 ac_status=$?
15791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); } 2>conftest.err; then
15793 soname=conftest
15794 lib=conftest
15795 libobjs=conftest.$ac_objext
15796 deplibs=
15797 wl=$lt_prog_compiler_wl_F77
15798 pic_flag=$lt_prog_compiler_pic_F77
15799 compiler_flags=-v
15800 linker_flags=-v
15801 verstring=
15802 output_objdir=.
15803 libname=conftest
15804 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15805 allow_undefined_flag_F77=
15806 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15807 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15808 ac_status=$?
15809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }
15811 then
15812 archive_cmds_need_lc_F77=no
15813 else
15814 archive_cmds_need_lc_F77=yes
15815 fi
15816 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15817 else
15818 cat conftest.err 1>&5
15819 fi
15820 $rm conftest*
15821 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15822 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15823 ;;
15824 esac
15825 fi
15826 ;;
15827 esac
15828
15829 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15830 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15831 library_names_spec=
15832 libname_spec='lib$name'
15833 soname_spec=
15834 shrext_cmds=".so"
15835 postinstall_cmds=
15836 postuninstall_cmds=
15837 finish_cmds=
15838 finish_eval=
15839 shlibpath_var=
15840 shlibpath_overrides_runpath=unknown
15841 version_type=none
15842 dynamic_linker="$host_os ld.so"
15843 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15844
15845 need_lib_prefix=unknown
15846 hardcode_into_libs=no
15847
15848 # when you set need_version to no, make sure it does not cause -set_version
15849 # flags to be left without arguments
15850 need_version=unknown
15851
15852 case $host_os in
15853 aix3*)
15854 version_type=linux
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15856 shlibpath_var=LIBPATH
15857
15858 # AIX 3 has no versioning support, so we append a major version to the name.
15859 soname_spec='${libname}${release}${shared_ext}$major'
15860 ;;
15861
15862 aix[4-9]*)
15863 version_type=linux
15864 need_lib_prefix=no
15865 need_version=no
15866 hardcode_into_libs=yes
15867 if test "$host_cpu" = ia64; then
15868 # AIX 5 supports IA64
15869 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15870 shlibpath_var=LD_LIBRARY_PATH
15871 else
15872 # With GCC up to 2.95.x, collect2 would create an import file
15873 # for dependence libraries. The import file would start with
15874 # the line `#! .'. This would cause the generated library to
15875 # depend on `.', always an invalid library. This was fixed in
15876 # development snapshots of GCC prior to 3.0.
15877 case $host_os in
15878 aix4 | aix4.[01] | aix4.[01].*)
15879 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15880 echo ' yes '
15881 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15882 :
15883 else
15884 can_build_shared=no
15885 fi
15886 ;;
15887 esac
15888 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15889 # soname into executable. Probably we can add versioning support to
15890 # collect2, so additional links can be useful in future.
15891 if test "$aix_use_runtimelinking" = yes; then
15892 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15893 # instead of lib<name>.a to let people know that these are not
15894 # typical AIX shared libraries.
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 else
15897 # We preserve .a as extension for shared libraries through AIX4.2
15898 # and later when we are not doing run time linking.
15899 library_names_spec='${libname}${release}.a $libname.a'
15900 soname_spec='${libname}${release}${shared_ext}$major'
15901 fi
15902 shlibpath_var=LIBPATH
15903 fi
15904 ;;
15905
15906 amigaos*)
15907 library_names_spec='$libname.ixlibrary $libname.a'
15908 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15909 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'
15910 ;;
15911
15912 beos*)
15913 library_names_spec='${libname}${shared_ext}'
15914 dynamic_linker="$host_os ld.so"
15915 shlibpath_var=LIBRARY_PATH
15916 ;;
15917
15918 bsdi[45]*)
15919 version_type=linux
15920 need_version=no
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15926 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15927 # the default ld.so.conf also contains /usr/contrib/lib and
15928 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15929 # libtool to hard-code these into programs
15930 ;;
15931
15932 cygwin* | mingw* | pw32*)
15933 version_type=windows
15934 shrext_cmds=".dll"
15935 need_version=no
15936 need_lib_prefix=no
15937
15938 case $GCC,$host_os in
15939 yes,cygwin* | yes,mingw* | yes,pw32*)
15940 library_names_spec='$libname.dll.a'
15941 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15942 postinstall_cmds='base_file=`basename \${file}`~
15943 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15944 dldir=$destdir/`dirname \$dlpath`~
15945 test -d \$dldir || mkdir -p \$dldir~
15946 $install_prog $dir/$dlname \$dldir/$dlname~
15947 chmod a+x \$dldir/$dlname'
15948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15949 dlpath=$dir/\$dldll~
15950 $rm \$dlpath'
15951 shlibpath_overrides_runpath=yes
15952
15953 case $host_os in
15954 cygwin*)
15955 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15956 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15957 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15958 ;;
15959 mingw*)
15960 # MinGW DLLs use traditional 'lib' prefix
15961 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15963 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15964 # It is most probably a Windows format PATH printed by
15965 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15966 # path with ; separators, and with drive letters. We can handle the
15967 # drive letters (cygwin fileutils understands them), so leave them,
15968 # especially as we might pass files found there to a mingw objdump,
15969 # which wouldn't understand a cygwinified path. Ahh.
15970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15971 else
15972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15973 fi
15974 ;;
15975 pw32*)
15976 # pw32 DLLs use 'pw' prefix rather than 'lib'
15977 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15978 ;;
15979 esac
15980 ;;
15981
15982 *)
15983 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15984 ;;
15985 esac
15986 dynamic_linker='Win32 ld.exe'
15987 # FIXME: first we should search . and the directory the executable is in
15988 shlibpath_var=PATH
15989 ;;
15990
15991 darwin* | rhapsody*)
15992 dynamic_linker="$host_os dyld"
15993 version_type=darwin
15994 need_lib_prefix=no
15995 need_version=no
15996 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15997 soname_spec='${libname}${release}${major}$shared_ext'
15998 shlibpath_overrides_runpath=yes
15999 shlibpath_var=DYLD_LIBRARY_PATH
16000 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16001
16002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16003 ;;
16004
16005 dgux*)
16006 version_type=linux
16007 need_lib_prefix=no
16008 need_version=no
16009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16010 soname_spec='${libname}${release}${shared_ext}$major'
16011 shlibpath_var=LD_LIBRARY_PATH
16012 ;;
16013
16014 freebsd1*)
16015 dynamic_linker=no
16016 ;;
16017
16018 freebsd* | dragonfly*)
16019 # DragonFly does not have aout. When/if they implement a new
16020 # versioning mechanism, adjust this.
16021 if test -x /usr/bin/objformat; then
16022 objformat=`/usr/bin/objformat`
16023 else
16024 case $host_os in
16025 freebsd[123]*) objformat=aout ;;
16026 *) objformat=elf ;;
16027 esac
16028 fi
16029 version_type=freebsd-$objformat
16030 case $version_type in
16031 freebsd-elf*)
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16033 need_version=no
16034 need_lib_prefix=no
16035 ;;
16036 freebsd-*)
16037 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16038 need_version=yes
16039 ;;
16040 esac
16041 shlibpath_var=LD_LIBRARY_PATH
16042 case $host_os in
16043 freebsd2*)
16044 shlibpath_overrides_runpath=yes
16045 ;;
16046 freebsd3.[01]* | freebsdelf3.[01]*)
16047 shlibpath_overrides_runpath=yes
16048 hardcode_into_libs=yes
16049 ;;
16050 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16051 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16052 shlibpath_overrides_runpath=no
16053 hardcode_into_libs=yes
16054 ;;
16055 *) # from 4.6 on, and DragonFly
16056 shlibpath_overrides_runpath=yes
16057 hardcode_into_libs=yes
16058 ;;
16059 esac
16060 ;;
16061
16062 gnu*)
16063 version_type=linux
16064 need_lib_prefix=no
16065 need_version=no
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16067 soname_spec='${libname}${release}${shared_ext}$major'
16068 shlibpath_var=LD_LIBRARY_PATH
16069 hardcode_into_libs=yes
16070 ;;
16071
16072 hpux9* | hpux10* | hpux11*)
16073 # Give a soname corresponding to the major version so that dld.sl refuses to
16074 # link against other versions.
16075 version_type=sunos
16076 need_lib_prefix=no
16077 need_version=no
16078 case $host_cpu in
16079 ia64*)
16080 shrext_cmds='.so'
16081 hardcode_into_libs=yes
16082 dynamic_linker="$host_os dld.so"
16083 shlibpath_var=LD_LIBRARY_PATH
16084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 if test "X$HPUX_IA64_MODE" = X32; then
16088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16089 else
16090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16091 fi
16092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16093 ;;
16094 hppa*64*)
16095 shrext_cmds='.sl'
16096 hardcode_into_libs=yes
16097 dynamic_linker="$host_os dld.sl"
16098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16104 ;;
16105 *)
16106 shrext_cmds='.sl'
16107 dynamic_linker="$host_os dld.sl"
16108 shlibpath_var=SHLIB_PATH
16109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 ;;
16113 esac
16114 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16115 postinstall_cmds='chmod 555 $lib'
16116 ;;
16117
16118 interix[3-9]*)
16119 version_type=linux
16120 need_lib_prefix=no
16121 need_version=no
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=no
16127 hardcode_into_libs=yes
16128 ;;
16129
16130 irix5* | irix6* | nonstopux*)
16131 case $host_os in
16132 nonstopux*) version_type=nonstopux ;;
16133 *)
16134 if test "$lt_cv_prog_gnu_ld" = yes; then
16135 version_type=linux
16136 else
16137 version_type=irix
16138 fi ;;
16139 esac
16140 need_lib_prefix=no
16141 need_version=no
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16144 case $host_os in
16145 irix5* | nonstopux*)
16146 libsuff= shlibsuff=
16147 ;;
16148 *)
16149 case $LD in # libtool.m4 will add one of these switches to LD
16150 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16151 libsuff= shlibsuff= libmagic=32-bit;;
16152 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16153 libsuff=32 shlibsuff=N32 libmagic=N32;;
16154 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16155 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16156 *) libsuff= shlibsuff= libmagic=never-match;;
16157 esac
16158 ;;
16159 esac
16160 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16161 shlibpath_overrides_runpath=no
16162 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16163 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16164 hardcode_into_libs=yes
16165 ;;
16166
16167 # No shared lib support for Linux oldld, aout, or coff.
16168 linux*oldld* | linux*aout* | linux*coff*)
16169 dynamic_linker=no
16170 ;;
16171
16172 # This must be Linux ELF.
16173 linux* | k*bsd*-gnu)
16174 version_type=linux
16175 need_lib_prefix=no
16176 need_version=no
16177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178 soname_spec='${libname}${release}${shared_ext}$major'
16179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16180 shlibpath_var=LD_LIBRARY_PATH
16181 shlibpath_overrides_runpath=no
16182 # This implies no fast_install, which is unacceptable.
16183 # Some rework will be needed to allow for fast_install
16184 # before this can be enabled.
16185 hardcode_into_libs=yes
16186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16188
16189 # Append ld.so.conf contents to the search path
16190 if test -f /etc/ld.so.conf; then
16191 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' ' '`
16192 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16193 fi
16194
16195 # We used to test for /lib/ld.so.1 and disable shared libraries on
16196 # powerpc, because MkLinux only supported shared libraries with the
16197 # GNU dynamic linker. Since this was broken with cross compilers,
16198 # most powerpc-linux boxes support dynamic linking these days and
16199 # people can always --disable-shared, the test was removed, and we
16200 # assume the GNU/Linux dynamic linker is in use.
16201 dynamic_linker='GNU/Linux ld.so'
16202 ;;
16203
16204 netbsd*)
16205 version_type=sunos
16206 need_lib_prefix=no
16207 need_version=no
16208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16211 dynamic_linker='NetBSD (a.out) ld.so'
16212 else
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 dynamic_linker='NetBSD ld.elf_so'
16216 fi
16217 shlibpath_var=LD_LIBRARY_PATH
16218 shlibpath_overrides_runpath=yes
16219 hardcode_into_libs=yes
16220 ;;
16221
16222 newsos6)
16223 version_type=linux
16224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 shlibpath_overrides_runpath=yes
16227 ;;
16228
16229 nto-qnx*)
16230 version_type=linux
16231 need_lib_prefix=no
16232 need_version=no
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes
16237 ;;
16238
16239 openbsd*)
16240 version_type=sunos
16241 sys_lib_dlsearch_path_spec="/usr/lib"
16242 need_lib_prefix=no
16243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16244 case $host_os in
16245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16246 *) need_version=no ;;
16247 esac
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16252 case $host_os in
16253 openbsd2.[89] | openbsd2.[89].*)
16254 shlibpath_overrides_runpath=no
16255 ;;
16256 *)
16257 shlibpath_overrides_runpath=yes
16258 ;;
16259 esac
16260 else
16261 shlibpath_overrides_runpath=yes
16262 fi
16263 ;;
16264
16265 os2*)
16266 libname_spec='$name'
16267 shrext_cmds=".dll"
16268 need_lib_prefix=no
16269 library_names_spec='$libname${shared_ext} $libname.a'
16270 dynamic_linker='OS/2 ld.exe'
16271 shlibpath_var=LIBPATH
16272 ;;
16273
16274 osf3* | osf4* | osf5*)
16275 version_type=osf
16276 need_lib_prefix=no
16277 need_version=no
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 shlibpath_var=LD_LIBRARY_PATH
16281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16283 ;;
16284
16285 rdos*)
16286 dynamic_linker=no
16287 ;;
16288
16289 solaris*)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
16297 hardcode_into_libs=yes
16298 # ldd complains unless libraries are executable
16299 postinstall_cmds='chmod +x $lib'
16300 ;;
16301
16302 sunos4*)
16303 version_type=sunos
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes
16308 if test "$with_gnu_ld" = yes; then
16309 need_lib_prefix=no
16310 fi
16311 need_version=yes
16312 ;;
16313
16314 sysv4 | sysv4.3*)
16315 version_type=linux
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 shlibpath_var=LD_LIBRARY_PATH
16319 case $host_vendor in
16320 sni)
16321 shlibpath_overrides_runpath=no
16322 need_lib_prefix=no
16323 export_dynamic_flag_spec='${wl}-Blargedynsym'
16324 runpath_var=LD_RUN_PATH
16325 ;;
16326 siemens)
16327 need_lib_prefix=no
16328 ;;
16329 motorola)
16330 need_lib_prefix=no
16331 need_version=no
16332 shlibpath_overrides_runpath=no
16333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16334 ;;
16335 esac
16336 ;;
16337
16338 sysv4*MP*)
16339 if test -d /usr/nec ;then
16340 version_type=linux
16341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16342 soname_spec='$libname${shared_ext}.$major'
16343 shlibpath_var=LD_LIBRARY_PATH
16344 fi
16345 ;;
16346
16347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16348 version_type=freebsd-elf
16349 need_lib_prefix=no
16350 need_version=no
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 hardcode_into_libs=yes
16355 if test "$with_gnu_ld" = yes; then
16356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16357 shlibpath_overrides_runpath=no
16358 else
16359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16360 shlibpath_overrides_runpath=yes
16361 case $host_os in
16362 sco3.2v5*)
16363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16364 ;;
16365 esac
16366 fi
16367 sys_lib_dlsearch_path_spec='/usr/lib'
16368 ;;
16369
16370 uts4*)
16371 version_type=linux
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 ;;
16376
16377 *)
16378 dynamic_linker=no
16379 ;;
16380 esac
16381 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16382 $as_echo "$dynamic_linker" >&6; }
16383 test "$dynamic_linker" = no && can_build_shared=no
16384
16385 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16386 $as_echo_n "(cached) " >&6
16387 else
16388 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16389 fi
16390
16391 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16392 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16393 $as_echo_n "(cached) " >&6
16394 else
16395 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16396 fi
16397
16398 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16399
16400 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16401 if test "$GCC" = yes; then
16402 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16403 fi
16404
16405 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16406 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16407 hardcode_action_F77=
16408 if test -n "$hardcode_libdir_flag_spec_F77" || \
16409 test -n "$runpath_var_F77" || \
16410 test "X$hardcode_automatic_F77" = "Xyes" ; then
16411
16412 # We can hardcode non-existant directories.
16413 if test "$hardcode_direct_F77" != no &&
16414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16415 # have to relink, otherwise we might link with an installed library
16416 # when we should be linking with a yet-to-be-installed one
16417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16418 test "$hardcode_minus_L_F77" != no; then
16419 # Linking always hardcodes the temporary library directory.
16420 hardcode_action_F77=relink
16421 else
16422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16423 hardcode_action_F77=immediate
16424 fi
16425 else
16426 # We cannot hardcode anything, or else we can only hardcode existing
16427 # directories.
16428 hardcode_action_F77=unsupported
16429 fi
16430 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16431 $as_echo "$hardcode_action_F77" >&6; }
16432
16433 if test "$hardcode_action_F77" = relink; then
16434 # Fast installation is not supported
16435 enable_fast_install=no
16436 elif test "$shlibpath_overrides_runpath" = yes ||
16437 test "$enable_shared" = no; then
16438 # Fast installation is not necessary
16439 enable_fast_install=needless
16440 fi
16441
16442
16443 # The else clause should only fire when bootstrapping the
16444 # libtool distribution, otherwise you forgot to ship ltmain.sh
16445 # with your package, and you will get complaints that there are
16446 # no rules to generate ltmain.sh.
16447 if test -f "$ltmain"; then
16448 # See if we are running on zsh, and set the options which allow our commands through
16449 # without removal of \ escapes.
16450 if test -n "${ZSH_VERSION+set}" ; then
16451 setopt NO_GLOB_SUBST
16452 fi
16453 # Now quote all the things that may contain metacharacters while being
16454 # careful not to overquote the AC_SUBSTed values. We take copies of the
16455 # variables and quote the copies for generation of the libtool script.
16456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16457 SED SHELL STRIP \
16458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16460 deplibs_check_method reload_flag reload_cmds need_locks \
16461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16462 lt_cv_sys_global_symbol_to_c_name_address \
16463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16464 old_postinstall_cmds old_postuninstall_cmds \
16465 compiler_F77 \
16466 CC_F77 \
16467 LD_F77 \
16468 lt_prog_compiler_wl_F77 \
16469 lt_prog_compiler_pic_F77 \
16470 lt_prog_compiler_static_F77 \
16471 lt_prog_compiler_no_builtin_flag_F77 \
16472 export_dynamic_flag_spec_F77 \
16473 thread_safe_flag_spec_F77 \
16474 whole_archive_flag_spec_F77 \
16475 enable_shared_with_static_runtimes_F77 \
16476 old_archive_cmds_F77 \
16477 old_archive_from_new_cmds_F77 \
16478 predep_objects_F77 \
16479 postdep_objects_F77 \
16480 predeps_F77 \
16481 postdeps_F77 \
16482 compiler_lib_search_path_F77 \
16483 compiler_lib_search_dirs_F77 \
16484 archive_cmds_F77 \
16485 archive_expsym_cmds_F77 \
16486 postinstall_cmds_F77 \
16487 postuninstall_cmds_F77 \
16488 old_archive_from_expsyms_cmds_F77 \
16489 allow_undefined_flag_F77 \
16490 no_undefined_flag_F77 \
16491 export_symbols_cmds_F77 \
16492 hardcode_libdir_flag_spec_F77 \
16493 hardcode_libdir_flag_spec_ld_F77 \
16494 hardcode_libdir_separator_F77 \
16495 hardcode_automatic_F77 \
16496 module_cmds_F77 \
16497 module_expsym_cmds_F77 \
16498 lt_cv_prog_compiler_c_o_F77 \
16499 fix_srcfile_path_F77 \
16500 exclude_expsyms_F77 \
16501 include_expsyms_F77; do
16502
16503 case $var in
16504 old_archive_cmds_F77 | \
16505 old_archive_from_new_cmds_F77 | \
16506 archive_cmds_F77 | \
16507 archive_expsym_cmds_F77 | \
16508 module_cmds_F77 | \
16509 module_expsym_cmds_F77 | \
16510 old_archive_from_expsyms_cmds_F77 | \
16511 export_symbols_cmds_F77 | \
16512 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16513 postinstall_cmds | postuninstall_cmds | \
16514 old_postinstall_cmds | old_postuninstall_cmds | \
16515 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16516 # Double-quote double-evaled strings.
16517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16518 ;;
16519 *)
16520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16521 ;;
16522 esac
16523 done
16524
16525 case $lt_echo in
16526 *'\$0 --fallback-echo"')
16527 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16528 ;;
16529 esac
16530
16531 cfgfile="$ofile"
16532
16533 cat <<__EOF__ >> "$cfgfile"
16534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16535
16536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16537
16538 # Shell to use when invoking shell scripts.
16539 SHELL=$lt_SHELL
16540
16541 # Whether or not to build shared libraries.
16542 build_libtool_libs=$enable_shared
16543
16544 # Whether or not to build static libraries.
16545 build_old_libs=$enable_static
16546
16547 # Whether or not to add -lc for building shared libraries.
16548 build_libtool_need_lc=$archive_cmds_need_lc_F77
16549
16550 # Whether or not to disallow shared libs when runtime libs are static
16551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16552
16553 # Whether or not to optimize for fast installation.
16554 fast_install=$enable_fast_install
16555
16556 # The host system.
16557 host_alias=$host_alias
16558 host=$host
16559 host_os=$host_os
16560
16561 # The build system.
16562 build_alias=$build_alias
16563 build=$build
16564 build_os=$build_os
16565
16566 # An echo program that does not interpret backslashes.
16567 echo=$lt_echo
16568
16569 # The archiver.
16570 AR=$lt_AR
16571 AR_FLAGS=$lt_AR_FLAGS
16572
16573 # A C compiler.
16574 LTCC=$lt_LTCC
16575
16576 # LTCC compiler flags.
16577 LTCFLAGS=$lt_LTCFLAGS
16578
16579 # A language-specific compiler.
16580 CC=$lt_compiler_F77
16581
16582 # Is the compiler the GNU C compiler?
16583 with_gcc=$GCC_F77
16584
16585 # An ERE matcher.
16586 EGREP=$lt_EGREP
16587
16588 # The linker used to build libraries.
16589 LD=$lt_LD_F77
16590
16591 # Whether we need hard or soft links.
16592 LN_S=$lt_LN_S
16593
16594 # A BSD-compatible nm program.
16595 NM=$lt_NM
16596
16597 # A symbol stripping program
16598 STRIP=$lt_STRIP
16599
16600 # Used to examine libraries when file_magic_cmd begins "file"
16601 MAGIC_CMD=$MAGIC_CMD
16602
16603 # Used on cygwin: DLL creation program.
16604 DLLTOOL="$DLLTOOL"
16605
16606 # Used on cygwin: object dumper.
16607 OBJDUMP="$OBJDUMP"
16608
16609 # Used on cygwin: assembler.
16610 AS="$AS"
16611
16612 # The name of the directory that contains temporary libtool files.
16613 objdir=$objdir
16614
16615 # How to create reloadable object files.
16616 reload_flag=$lt_reload_flag
16617 reload_cmds=$lt_reload_cmds
16618
16619 # How to pass a linker flag through the compiler.
16620 wl=$lt_lt_prog_compiler_wl_F77
16621
16622 # Object file suffix (normally "o").
16623 objext="$ac_objext"
16624
16625 # Old archive suffix (normally "a").
16626 libext="$libext"
16627
16628 # Shared library suffix (normally ".so").
16629 shrext_cmds='$shrext_cmds'
16630
16631 # Executable file suffix (normally "").
16632 exeext="$exeext"
16633
16634 # Additional compiler flags for building library objects.
16635 pic_flag=$lt_lt_prog_compiler_pic_F77
16636 pic_mode=$pic_mode
16637
16638 # What is the maximum length of a command?
16639 max_cmd_len=$lt_cv_sys_max_cmd_len
16640
16641 # Does compiler simultaneously support -c and -o options?
16642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16643
16644 # Must we lock files when doing compilation?
16645 need_locks=$lt_need_locks
16646
16647 # Do we need the lib prefix for modules?
16648 need_lib_prefix=$need_lib_prefix
16649
16650 # Do we need a version for libraries?
16651 need_version=$need_version
16652
16653 # Whether dlopen is supported.
16654 dlopen_support=$enable_dlopen
16655
16656 # Whether dlopen of programs is supported.
16657 dlopen_self=$enable_dlopen_self
16658
16659 # Whether dlopen of statically linked programs is supported.
16660 dlopen_self_static=$enable_dlopen_self_static
16661
16662 # Compiler flag to prevent dynamic linking.
16663 link_static_flag=$lt_lt_prog_compiler_static_F77
16664
16665 # Compiler flag to turn off builtin functions.
16666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16667
16668 # Compiler flag to allow reflexive dlopens.
16669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16670
16671 # Compiler flag to generate shared objects directly from archives.
16672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16673
16674 # Compiler flag to generate thread-safe objects.
16675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16676
16677 # Library versioning type.
16678 version_type=$version_type
16679
16680 # Format of library name prefix.
16681 libname_spec=$lt_libname_spec
16682
16683 # List of archive names. First name is the real one, the rest are links.
16684 # The last name is the one that the linker finds with -lNAME.
16685 library_names_spec=$lt_library_names_spec
16686
16687 # The coded name of the library, if different from the real name.
16688 soname_spec=$lt_soname_spec
16689
16690 # Commands used to build and install an old-style archive.
16691 RANLIB=$lt_RANLIB
16692 old_archive_cmds=$lt_old_archive_cmds_F77
16693 old_postinstall_cmds=$lt_old_postinstall_cmds
16694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16695
16696 # Create an old-style archive from a shared archive.
16697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16698
16699 # Create a temporary old-style archive to link instead of a shared archive.
16700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16701
16702 # Commands used to build and install a shared archive.
16703 archive_cmds=$lt_archive_cmds_F77
16704 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16705 postinstall_cmds=$lt_postinstall_cmds
16706 postuninstall_cmds=$lt_postuninstall_cmds
16707
16708 # Commands used to build a loadable module (assumed same as above if empty)
16709 module_cmds=$lt_module_cmds_F77
16710 module_expsym_cmds=$lt_module_expsym_cmds_F77
16711
16712 # Commands to strip libraries.
16713 old_striplib=$lt_old_striplib
16714 striplib=$lt_striplib
16715
16716 # Dependencies to place before the objects being linked to create a
16717 # shared library.
16718 predep_objects=$lt_predep_objects_F77
16719
16720 # Dependencies to place after the objects being linked to create a
16721 # shared library.
16722 postdep_objects=$lt_postdep_objects_F77
16723
16724 # Dependencies to place before the objects being linked to create a
16725 # shared library.
16726 predeps=$lt_predeps_F77
16727
16728 # Dependencies to place after the objects being linked to create a
16729 # shared library.
16730 postdeps=$lt_postdeps_F77
16731
16732 # The directories searched by this compiler when creating a shared
16733 # library
16734 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16735
16736 # The library search path used internally by the compiler when linking
16737 # a shared library.
16738 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16739
16740 # Method to check whether dependent libraries are shared objects.
16741 deplibs_check_method=$lt_deplibs_check_method
16742
16743 # Command to use when deplibs_check_method == file_magic.
16744 file_magic_cmd=$lt_file_magic_cmd
16745
16746 # Flag that allows shared libraries with undefined symbols to be built.
16747 allow_undefined_flag=$lt_allow_undefined_flag_F77
16748
16749 # Flag that forces no undefined symbols.
16750 no_undefined_flag=$lt_no_undefined_flag_F77
16751
16752 # Commands used to finish a libtool library installation in a directory.
16753 finish_cmds=$lt_finish_cmds
16754
16755 # Same as above, but a single script fragment to be evaled but not shown.
16756 finish_eval=$lt_finish_eval
16757
16758 # Take the output of nm and produce a listing of raw symbols and C names.
16759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16760
16761 # Transform the output of nm in a proper C declaration
16762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16763
16764 # Transform the output of nm in a C name address pair
16765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16766
16767 # This is the shared library runtime path variable.
16768 runpath_var=$runpath_var
16769
16770 # This is the shared library path variable.
16771 shlibpath_var=$shlibpath_var
16772
16773 # Is shlibpath searched before the hard-coded library search path?
16774 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16775
16776 # How to hardcode a shared library path into an executable.
16777 hardcode_action=$hardcode_action_F77
16778
16779 # Whether we should hardcode library paths into libraries.
16780 hardcode_into_libs=$hardcode_into_libs
16781
16782 # Flag to hardcode \$libdir into a binary during linking.
16783 # This must work even if \$libdir does not exist.
16784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16785
16786 # If ld is used when linking, flag to hardcode \$libdir into
16787 # a binary during linking. This must work even if \$libdir does
16788 # not exist.
16789 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16790
16791 # Whether we need a single -rpath flag with a separated argument.
16792 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16793
16794 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16795 # resulting binary.
16796 hardcode_direct=$hardcode_direct_F77
16797
16798 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16799 # resulting binary.
16800 hardcode_minus_L=$hardcode_minus_L_F77
16801
16802 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16803 # the resulting binary.
16804 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16805
16806 # Set to yes if building a shared library automatically hardcodes DIR into the library
16807 # and all subsequent libraries and executables linked against it.
16808 hardcode_automatic=$hardcode_automatic_F77
16809
16810 # Variables whose values should be saved in libtool wrapper scripts and
16811 # restored at relink time.
16812 variables_saved_for_relink="$variables_saved_for_relink"
16813
16814 # Whether libtool must link a program against all its dependency libraries.
16815 link_all_deplibs=$link_all_deplibs_F77
16816
16817 # Compile-time system search path for libraries
16818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16819
16820 # Run-time system search path for libraries
16821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16822
16823 # Fix the shell variable \$srcfile for the compiler.
16824 fix_srcfile_path=$lt_fix_srcfile_path
16825
16826 # Set to yes if exported symbols are required.
16827 always_export_symbols=$always_export_symbols_F77
16828
16829 # The commands to list exported symbols.
16830 export_symbols_cmds=$lt_export_symbols_cmds_F77
16831
16832 # The commands to extract the exported symbol list from a shared archive.
16833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16834
16835 # Symbols that should not be listed in the preloaded symbols.
16836 exclude_expsyms=$lt_exclude_expsyms_F77
16837
16838 # Symbols that must always be exported.
16839 include_expsyms=$lt_include_expsyms_F77
16840
16841 # ### END LIBTOOL TAG CONFIG: $tagname
16842
16843 __EOF__
16844
16845
16846 else
16847 # If there is no Makefile yet, we rely on a make rule to execute
16848 # `config.status --recheck' to rerun these tests and create the
16849 # libtool script then.
16850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16851 if test -f "$ltmain_in"; then
16852 test -f Makefile && make "$ltmain"
16853 fi
16854 fi
16855
16856
16857 ac_ext=c
16858 ac_cpp='$CPP $CPPFLAGS'
16859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16862
16863 CC="$lt_save_CC"
16864
16865 else
16866 tagname=""
16867 fi
16868 ;;
16869
16870 GCJ)
16871 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16872
16873
16874 # Source file extension for Java test sources.
16875 ac_ext=java
16876
16877 # Object file extension for compiled Java test sources.
16878 objext=o
16879 objext_GCJ=$objext
16880
16881 # Code to be used in simple compile tests
16882 lt_simple_compile_test_code="class foo {}"
16883
16884 # Code to be used in simple link tests
16885 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16886
16887 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16888
16889 # If no C compiler was specified, use CC.
16890 LTCC=${LTCC-"$CC"}
16891
16892 # If no C compiler flags were specified, use CFLAGS.
16893 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16894
16895 # Allow CC to be a program name with arguments.
16896 compiler=$CC
16897
16898
16899 # save warnings/boilerplate of simple test code
16900 ac_outfile=conftest.$ac_objext
16901 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16903 _lt_compiler_boilerplate=`cat conftest.err`
16904 $rm conftest*
16905
16906 ac_outfile=conftest.$ac_objext
16907 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16909 _lt_linker_boilerplate=`cat conftest.err`
16910 $rm -r conftest*
16911
16912
16913 # Allow CC to be a program name with arguments.
16914 lt_save_CC="$CC"
16915 CC=${GCJ-"gcj"}
16916 compiler=$CC
16917 compiler_GCJ=$CC
16918 for cc_temp in $compiler""; do
16919 case $cc_temp in
16920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16922 \-*) ;;
16923 *) break;;
16924 esac
16925 done
16926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16927
16928
16929 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16930 archive_cmds_need_lc_GCJ=no
16931
16932 old_archive_cmds_GCJ=$old_archive_cmds
16933
16934
16935 lt_prog_compiler_no_builtin_flag_GCJ=
16936
16937 if test "$GCC" = yes; then
16938 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16939
16940
16941 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16942 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16943 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16944 $as_echo_n "(cached) " >&6
16945 else
16946 lt_cv_prog_compiler_rtti_exceptions=no
16947 ac_outfile=conftest.$ac_objext
16948 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16949 lt_compiler_flag="-fno-rtti -fno-exceptions"
16950 # Insert the option either (1) after the last *FLAGS variable, or
16951 # (2) before a word containing "conftest.", or (3) at the end.
16952 # Note that $ac_compile itself does not contain backslashes and begins
16953 # with a dollar sign (not a hyphen), so the echo should work correctly.
16954 # The option is referenced via a variable to avoid confusing sed.
16955 lt_compile=`echo "$ac_compile" | $SED \
16956 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16957 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16958 -e 's:$: $lt_compiler_flag:'`
16959 (eval echo "\"\$as_me:16959: $lt_compile\"" >&5)
16960 (eval "$lt_compile" 2>conftest.err)
16961 ac_status=$?
16962 cat conftest.err >&5
16963 echo "$as_me:16963: \$? = $ac_status" >&5
16964 if (exit $ac_status) && test -s "$ac_outfile"; then
16965 # The compiler can only warn and ignore the option if not recognized
16966 # So say no if there are warnings other than the usual output.
16967 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16968 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16969 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16970 lt_cv_prog_compiler_rtti_exceptions=yes
16971 fi
16972 fi
16973 $rm conftest*
16974
16975 fi
16976 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16977 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16978
16979 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16980 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16981 else
16982 :
16983 fi
16984
16985 fi
16986
16987 lt_prog_compiler_wl_GCJ=
16988 lt_prog_compiler_pic_GCJ=
16989 lt_prog_compiler_static_GCJ=
16990
16991 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16993
16994 if test "$GCC" = yes; then
16995 lt_prog_compiler_wl_GCJ='-Wl,'
16996 lt_prog_compiler_static_GCJ='-static'
16997
16998 case $host_os in
16999 aix*)
17000 # All AIX code is PIC.
17001 if test "$host_cpu" = ia64; then
17002 # AIX 5 now supports IA64 processor
17003 lt_prog_compiler_static_GCJ='-Bstatic'
17004 fi
17005 ;;
17006
17007 amigaos*)
17008 # FIXME: we need at least 68020 code to build shared libraries, but
17009 # adding the `-m68020' flag to GCC prevents building anything better,
17010 # like `-m68040'.
17011 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17012 ;;
17013
17014 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17015 # PIC is the default for these OSes.
17016 ;;
17017
17018 mingw* | cygwin* | pw32* | os2*)
17019 # This hack is so that the source file can tell whether it is being
17020 # built for inclusion in a dll (and should export symbols for example).
17021 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17022 # (--disable-auto-import) libraries
17023
17024 ;;
17025
17026 darwin* | rhapsody*)
17027 # PIC is the default on this platform
17028 # Common symbols not allowed in MH_DYLIB files
17029 lt_prog_compiler_pic_GCJ='-fno-common'
17030 ;;
17031
17032 interix[3-9]*)
17033 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17034 # Instead, we relocate shared libraries at runtime.
17035 ;;
17036
17037 msdosdjgpp*)
17038 # Just because we use GCC doesn't mean we suddenly get shared libraries
17039 # on systems that don't support them.
17040 lt_prog_compiler_can_build_shared_GCJ=no
17041 enable_shared=no
17042 ;;
17043
17044 sysv4*MP*)
17045 if test -d /usr/nec; then
17046 lt_prog_compiler_pic_GCJ=-Kconform_pic
17047 fi
17048 ;;
17049
17050 hpux*)
17051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17052 # not for PA HP-UX.
17053 case $host_cpu in
17054 hppa*64*|ia64*)
17055 # +Z the default
17056 ;;
17057 *)
17058 lt_prog_compiler_pic_GCJ='-fPIC'
17059 ;;
17060 esac
17061 ;;
17062
17063 *)
17064 lt_prog_compiler_pic_GCJ='-fPIC'
17065 ;;
17066 esac
17067 else
17068 # PORTME Check for flag to pass linker flags through the system compiler.
17069 case $host_os in
17070 aix*)
17071 lt_prog_compiler_wl_GCJ='-Wl,'
17072 if test "$host_cpu" = ia64; then
17073 # AIX 5 now supports IA64 processor
17074 lt_prog_compiler_static_GCJ='-Bstatic'
17075 else
17076 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17077 fi
17078 ;;
17079 darwin*)
17080 # PIC is the default on this platform
17081 # Common symbols not allowed in MH_DYLIB files
17082 case $cc_basename in
17083 xlc*)
17084 lt_prog_compiler_pic_GCJ='-qnocommon'
17085 lt_prog_compiler_wl_GCJ='-Wl,'
17086 ;;
17087 esac
17088 ;;
17089
17090 mingw* | cygwin* | pw32* | os2*)
17091 # This hack is so that the source file can tell whether it is being
17092 # built for inclusion in a dll (and should export symbols for example).
17093
17094 ;;
17095
17096 hpux9* | hpux10* | hpux11*)
17097 lt_prog_compiler_wl_GCJ='-Wl,'
17098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17099 # not for PA HP-UX.
17100 case $host_cpu in
17101 hppa*64*|ia64*)
17102 # +Z the default
17103 ;;
17104 *)
17105 lt_prog_compiler_pic_GCJ='+Z'
17106 ;;
17107 esac
17108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17109 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17110 ;;
17111
17112 irix5* | irix6* | nonstopux*)
17113 lt_prog_compiler_wl_GCJ='-Wl,'
17114 # PIC (with -KPIC) is the default.
17115 lt_prog_compiler_static_GCJ='-non_shared'
17116 ;;
17117
17118 newsos6)
17119 lt_prog_compiler_pic_GCJ='-KPIC'
17120 lt_prog_compiler_static_GCJ='-Bstatic'
17121 ;;
17122
17123 linux* | k*bsd*-gnu)
17124 case $cc_basename in
17125 icc* | ecc*)
17126 lt_prog_compiler_wl_GCJ='-Wl,'
17127 lt_prog_compiler_pic_GCJ='-KPIC'
17128 lt_prog_compiler_static_GCJ='-static'
17129 ;;
17130 pgcc* | pgf77* | pgf90* | pgf95*)
17131 # Portland Group compilers (*not* the Pentium gcc compiler,
17132 # which looks to be a dead project)
17133 lt_prog_compiler_wl_GCJ='-Wl,'
17134 lt_prog_compiler_pic_GCJ='-fpic'
17135 lt_prog_compiler_static_GCJ='-Bstatic'
17136 ;;
17137 ccc*)
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17139 # All Alpha code is PIC.
17140 lt_prog_compiler_static_GCJ='-non_shared'
17141 ;;
17142 *)
17143 case `$CC -V 2>&1 | sed 5q` in
17144 *Sun\ C*)
17145 # Sun C 5.9
17146 lt_prog_compiler_pic_GCJ='-KPIC'
17147 lt_prog_compiler_static_GCJ='-Bstatic'
17148 lt_prog_compiler_wl_GCJ='-Wl,'
17149 ;;
17150 *Sun\ F*)
17151 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17152 lt_prog_compiler_pic_GCJ='-KPIC'
17153 lt_prog_compiler_static_GCJ='-Bstatic'
17154 lt_prog_compiler_wl_GCJ=''
17155 ;;
17156 esac
17157 ;;
17158 esac
17159 ;;
17160
17161 osf3* | osf4* | osf5*)
17162 lt_prog_compiler_wl_GCJ='-Wl,'
17163 # All OSF/1 code is PIC.
17164 lt_prog_compiler_static_GCJ='-non_shared'
17165 ;;
17166
17167 rdos*)
17168 lt_prog_compiler_static_GCJ='-non_shared'
17169 ;;
17170
17171 solaris*)
17172 lt_prog_compiler_pic_GCJ='-KPIC'
17173 lt_prog_compiler_static_GCJ='-Bstatic'
17174 case $cc_basename in
17175 f77* | f90* | f95*)
17176 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17177 *)
17178 lt_prog_compiler_wl_GCJ='-Wl,';;
17179 esac
17180 ;;
17181
17182 sunos4*)
17183 lt_prog_compiler_wl_GCJ='-Qoption ld '
17184 lt_prog_compiler_pic_GCJ='-PIC'
17185 lt_prog_compiler_static_GCJ='-Bstatic'
17186 ;;
17187
17188 sysv4 | sysv4.2uw2* | sysv4.3*)
17189 lt_prog_compiler_wl_GCJ='-Wl,'
17190 lt_prog_compiler_pic_GCJ='-KPIC'
17191 lt_prog_compiler_static_GCJ='-Bstatic'
17192 ;;
17193
17194 sysv4*MP*)
17195 if test -d /usr/nec ;then
17196 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17197 lt_prog_compiler_static_GCJ='-Bstatic'
17198 fi
17199 ;;
17200
17201 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17202 lt_prog_compiler_wl_GCJ='-Wl,'
17203 lt_prog_compiler_pic_GCJ='-KPIC'
17204 lt_prog_compiler_static_GCJ='-Bstatic'
17205 ;;
17206
17207 unicos*)
17208 lt_prog_compiler_wl_GCJ='-Wl,'
17209 lt_prog_compiler_can_build_shared_GCJ=no
17210 ;;
17211
17212 uts4*)
17213 lt_prog_compiler_pic_GCJ='-pic'
17214 lt_prog_compiler_static_GCJ='-Bstatic'
17215 ;;
17216
17217 *)
17218 lt_prog_compiler_can_build_shared_GCJ=no
17219 ;;
17220 esac
17221 fi
17222
17223 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17224 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17225
17226 #
17227 # Check to make sure the PIC flag actually works.
17228 #
17229 if test -n "$lt_prog_compiler_pic_GCJ"; then
17230
17231 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17232 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17233 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17234 $as_echo_n "(cached) " >&6
17235 else
17236 lt_cv_prog_compiler_pic_works_GCJ=no
17237 ac_outfile=conftest.$ac_objext
17238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17239 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17240 # Insert the option either (1) after the last *FLAGS variable, or
17241 # (2) before a word containing "conftest.", or (3) at the end.
17242 # Note that $ac_compile itself does not contain backslashes and begins
17243 # with a dollar sign (not a hyphen), so the echo should work correctly.
17244 # The option is referenced via a variable to avoid confusing sed.
17245 lt_compile=`echo "$ac_compile" | $SED \
17246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17248 -e 's:$: $lt_compiler_flag:'`
17249 (eval echo "\"\$as_me:17249: $lt_compile\"" >&5)
17250 (eval "$lt_compile" 2>conftest.err)
17251 ac_status=$?
17252 cat conftest.err >&5
17253 echo "$as_me:17253: \$? = $ac_status" >&5
17254 if (exit $ac_status) && test -s "$ac_outfile"; then
17255 # The compiler can only warn and ignore the option if not recognized
17256 # So say no if there are warnings other than the usual output.
17257 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17259 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17260 lt_cv_prog_compiler_pic_works_GCJ=yes
17261 fi
17262 fi
17263 $rm conftest*
17264
17265 fi
17266 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17267 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17268
17269 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17270 case $lt_prog_compiler_pic_GCJ in
17271 "" | " "*) ;;
17272 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17273 esac
17274 else
17275 lt_prog_compiler_pic_GCJ=
17276 lt_prog_compiler_can_build_shared_GCJ=no
17277 fi
17278
17279 fi
17280 case $host_os in
17281 # For platforms which do not support PIC, -DPIC is meaningless:
17282 *djgpp*)
17283 lt_prog_compiler_pic_GCJ=
17284 ;;
17285 *)
17286 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17287 ;;
17288 esac
17289
17290 #
17291 # Check to make sure the static flag actually works.
17292 #
17293 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17294 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17295 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17296 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17297 $as_echo_n "(cached) " >&6
17298 else
17299 lt_cv_prog_compiler_static_works_GCJ=no
17300 save_LDFLAGS="$LDFLAGS"
17301 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17302 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17303 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17304 # The linker can only warn and ignore the option if not recognized
17305 # So say no if there are warnings
17306 if test -s conftest.err; then
17307 # Append any errors to the config.log.
17308 cat conftest.err 1>&5
17309 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17311 if diff conftest.exp conftest.er2 >/dev/null; then
17312 lt_cv_prog_compiler_static_works_GCJ=yes
17313 fi
17314 else
17315 lt_cv_prog_compiler_static_works_GCJ=yes
17316 fi
17317 fi
17318 $rm -r conftest*
17319 LDFLAGS="$save_LDFLAGS"
17320
17321 fi
17322 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17323 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17324
17325 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17326 :
17327 else
17328 lt_prog_compiler_static_GCJ=
17329 fi
17330
17331
17332 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17334 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17335 $as_echo_n "(cached) " >&6
17336 else
17337 lt_cv_prog_compiler_c_o_GCJ=no
17338 $rm -r conftest 2>/dev/null
17339 mkdir conftest
17340 cd conftest
17341 mkdir out
17342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17343
17344 lt_compiler_flag="-o out/conftest2.$ac_objext"
17345 # Insert the option either (1) after the last *FLAGS variable, or
17346 # (2) before a word containing "conftest.", or (3) at the end.
17347 # Note that $ac_compile itself does not contain backslashes and begins
17348 # with a dollar sign (not a hyphen), so the echo should work correctly.
17349 lt_compile=`echo "$ac_compile" | $SED \
17350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17352 -e 's:$: $lt_compiler_flag:'`
17353 (eval echo "\"\$as_me:17353: $lt_compile\"" >&5)
17354 (eval "$lt_compile" 2>out/conftest.err)
17355 ac_status=$?
17356 cat out/conftest.err >&5
17357 echo "$as_me:17357: \$? = $ac_status" >&5
17358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17359 then
17360 # The compiler can only warn and ignore the option if not recognized
17361 # So say no if there are warnings
17362 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17365 lt_cv_prog_compiler_c_o_GCJ=yes
17366 fi
17367 fi
17368 chmod u+w . 2>&5
17369 $rm conftest*
17370 # SGI C++ compiler will create directory out/ii_files/ for
17371 # template instantiation
17372 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17373 $rm out/* && rmdir out
17374 cd ..
17375 rmdir conftest
17376 $rm conftest*
17377
17378 fi
17379 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17380 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17381
17382
17383 hard_links="nottested"
17384 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17385 # do not overwrite the value of need_locks provided by the user
17386 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17387 $as_echo_n "checking if we can lock with hard links... " >&6; }
17388 hard_links=yes
17389 $rm conftest*
17390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17391 touch conftest.a
17392 ln conftest.a conftest.b 2>&5 || hard_links=no
17393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17394 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17395 $as_echo "$hard_links" >&6; }
17396 if test "$hard_links" = no; then
17397 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17398 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17399 need_locks=warn
17400 fi
17401 else
17402 need_locks=no
17403 fi
17404
17405 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17406 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17407
17408 runpath_var=
17409 allow_undefined_flag_GCJ=
17410 enable_shared_with_static_runtimes_GCJ=no
17411 archive_cmds_GCJ=
17412 archive_expsym_cmds_GCJ=
17413 old_archive_From_new_cmds_GCJ=
17414 old_archive_from_expsyms_cmds_GCJ=
17415 export_dynamic_flag_spec_GCJ=
17416 whole_archive_flag_spec_GCJ=
17417 thread_safe_flag_spec_GCJ=
17418 hardcode_libdir_flag_spec_GCJ=
17419 hardcode_libdir_flag_spec_ld_GCJ=
17420 hardcode_libdir_separator_GCJ=
17421 hardcode_direct_GCJ=no
17422 hardcode_minus_L_GCJ=no
17423 hardcode_shlibpath_var_GCJ=unsupported
17424 link_all_deplibs_GCJ=unknown
17425 hardcode_automatic_GCJ=no
17426 module_cmds_GCJ=
17427 module_expsym_cmds_GCJ=
17428 always_export_symbols_GCJ=no
17429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17430 # include_expsyms should be a list of space-separated symbols to be *always*
17431 # included in the symbol list
17432 include_expsyms_GCJ=
17433 # exclude_expsyms can be an extended regexp of symbols to exclude
17434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17436 # as well as any symbol that contains `d'.
17437 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17439 # platforms (ab)use it in PIC code, but their linkers get confused if
17440 # the symbol is explicitly referenced. Since portable code cannot
17441 # rely on this symbol name, it's probably fine to never include it in
17442 # preloaded symbol tables.
17443 # Exclude shared library initialization/finalization symbols.
17444 extract_expsyms_cmds=
17445 # Just being paranoid about ensuring that cc_basename is set.
17446 for cc_temp in $compiler""; do
17447 case $cc_temp in
17448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17450 \-*) ;;
17451 *) break;;
17452 esac
17453 done
17454 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17455
17456 case $host_os in
17457 cygwin* | mingw* | pw32*)
17458 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17459 # When not using gcc, we currently assume that we are using
17460 # Microsoft Visual C++.
17461 if test "$GCC" != yes; then
17462 with_gnu_ld=no
17463 fi
17464 ;;
17465 interix*)
17466 # we just hope/assume this is gcc and not c89 (= MSVC++)
17467 with_gnu_ld=yes
17468 ;;
17469 openbsd*)
17470 with_gnu_ld=no
17471 ;;
17472 esac
17473
17474 ld_shlibs_GCJ=yes
17475 if test "$with_gnu_ld" = yes; then
17476 # If archive_cmds runs LD, not CC, wlarc should be empty
17477 wlarc='${wl}'
17478
17479 # Set some defaults for GNU ld with shared library support. These
17480 # are reset later if shared libraries are not supported. Putting them
17481 # here allows them to be overridden if necessary.
17482 runpath_var=LD_RUN_PATH
17483 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17484 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17485 # ancient GNU ld didn't support --whole-archive et. al.
17486 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17487 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17488 else
17489 whole_archive_flag_spec_GCJ=
17490 fi
17491 supports_anon_versioning=no
17492 case `$LD -v 2>/dev/null` in
17493 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17494 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17495 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17496 *\ 2.11.*) ;; # other 2.11 versions
17497 *) supports_anon_versioning=yes ;;
17498 esac
17499
17500 # See if GNU ld supports shared libraries.
17501 case $host_os in
17502 aix[3-9]*)
17503 # On AIX/PPC, the GNU linker is very broken
17504 if test "$host_cpu" != ia64; then
17505 ld_shlibs_GCJ=no
17506 cat <<EOF 1>&2
17507
17508 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17509 *** to be unable to reliably create shared libraries on AIX.
17510 *** Therefore, libtool is disabling shared libraries support. If you
17511 *** really care for shared libraries, you may want to modify your PATH
17512 *** so that a non-GNU linker is found, and then restart.
17513
17514 EOF
17515 fi
17516 ;;
17517
17518 amigaos*)
17519 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)'
17520 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17521 hardcode_minus_L_GCJ=yes
17522
17523 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17524 # that the semantics of dynamic libraries on AmigaOS, at least up
17525 # to version 4, is to share data among multiple programs linked
17526 # with the same dynamic library. Since this doesn't match the
17527 # behavior of shared libraries on other platforms, we can't use
17528 # them.
17529 ld_shlibs_GCJ=no
17530 ;;
17531
17532 beos*)
17533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17534 allow_undefined_flag_GCJ=unsupported
17535 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17536 # support --undefined. This deserves some investigation. FIXME
17537 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538 else
17539 ld_shlibs_GCJ=no
17540 fi
17541 ;;
17542
17543 cygwin* | mingw* | pw32*)
17544 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17545 # as there is no search path for DLLs.
17546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17547 allow_undefined_flag_GCJ=unsupported
17548 always_export_symbols_GCJ=no
17549 enable_shared_with_static_runtimes_GCJ=yes
17550 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17551
17552 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17554 # If the export-symbols file already is a .def file (1st line
17555 # is EXPORTS), use it as is; otherwise, prepend...
17556 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17557 cp $export_symbols $output_objdir/$soname.def;
17558 else
17559 echo EXPORTS > $output_objdir/$soname.def;
17560 cat $export_symbols >> $output_objdir/$soname.def;
17561 fi~
17562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17563 else
17564 ld_shlibs_GCJ=no
17565 fi
17566 ;;
17567
17568 interix[3-9]*)
17569 hardcode_direct_GCJ=no
17570 hardcode_shlibpath_var_GCJ=no
17571 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17572 export_dynamic_flag_spec_GCJ='${wl}-E'
17573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17574 # Instead, shared libraries are loaded at an image base (0x10000000 by
17575 # default) and relocated if they conflict, which is a slow very memory
17576 # consuming and fragmenting process. To avoid this, we pick a random,
17577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17579 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'
17580 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'
17581 ;;
17582
17583 gnu* | linux* | k*bsd*-gnu)
17584 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17585 tmp_addflag=
17586 case $cc_basename,$host_cpu in
17587 pgcc*) # Portland Group C compiler
17588 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'
17589 tmp_addflag=' $pic_flag'
17590 ;;
17591 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17592 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'
17593 tmp_addflag=' $pic_flag -Mnomain' ;;
17594 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17595 tmp_addflag=' -i_dynamic' ;;
17596 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17597 tmp_addflag=' -i_dynamic -nofor_main' ;;
17598 ifc* | ifort*) # Intel Fortran compiler
17599 tmp_addflag=' -nofor_main' ;;
17600 esac
17601 case `$CC -V 2>&1 | sed 5q` in
17602 *Sun\ C*) # Sun C 5.9
17603 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'
17604 tmp_sharedflag='-G' ;;
17605 *Sun\ F*) # Sun Fortran 8.3
17606 tmp_sharedflag='-G' ;;
17607 *)
17608 tmp_sharedflag='-shared' ;;
17609 esac
17610 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17611
17612 if test $supports_anon_versioning = yes; then
17613 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17615 $echo "local: *; };" >> $output_objdir/$libname.ver~
17616 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17617 fi
17618 else
17619 ld_shlibs_GCJ=no
17620 fi
17621 ;;
17622
17623 netbsd*)
17624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17625 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17626 wlarc=
17627 else
17628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17630 fi
17631 ;;
17632
17633 solaris*)
17634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17635 ld_shlibs_GCJ=no
17636 cat <<EOF 1>&2
17637
17638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17639 *** create shared libraries on Solaris systems. Therefore, libtool
17640 *** is disabling shared libraries support. We urge you to upgrade GNU
17641 *** binutils to release 2.9.1 or newer. Another option is to modify
17642 *** your PATH or compiler configuration so that the native linker is
17643 *** used, and then restart.
17644
17645 EOF
17646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17649 else
17650 ld_shlibs_GCJ=no
17651 fi
17652 ;;
17653
17654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17655 case `$LD -v 2>&1` in
17656 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17657 ld_shlibs_GCJ=no
17658 cat <<_LT_EOF 1>&2
17659
17660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17661 *** reliably create shared libraries on SCO systems. Therefore, libtool
17662 *** is disabling shared libraries support. We urge you to upgrade GNU
17663 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17664 *** your PATH or compiler configuration so that the native linker is
17665 *** used, and then restart.
17666
17667 _LT_EOF
17668 ;;
17669 *)
17670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17671 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17672 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17673 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17674 else
17675 ld_shlibs_GCJ=no
17676 fi
17677 ;;
17678 esac
17679 ;;
17680
17681 sunos4*)
17682 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17683 wlarc=
17684 hardcode_direct_GCJ=yes
17685 hardcode_shlibpath_var_GCJ=no
17686 ;;
17687
17688 *)
17689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17690 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17691 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17692 else
17693 ld_shlibs_GCJ=no
17694 fi
17695 ;;
17696 esac
17697
17698 if test "$ld_shlibs_GCJ" = no; then
17699 runpath_var=
17700 hardcode_libdir_flag_spec_GCJ=
17701 export_dynamic_flag_spec_GCJ=
17702 whole_archive_flag_spec_GCJ=
17703 fi
17704 else
17705 # PORTME fill in a description of your system's linker (not GNU ld)
17706 case $host_os in
17707 aix3*)
17708 allow_undefined_flag_GCJ=unsupported
17709 always_export_symbols_GCJ=yes
17710 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'
17711 # Note: this linker hardcodes the directories in LIBPATH if there
17712 # are no directories specified by -L.
17713 hardcode_minus_L_GCJ=yes
17714 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17715 # Neither direct hardcoding nor static linking is supported with a
17716 # broken collect2.
17717 hardcode_direct_GCJ=unsupported
17718 fi
17719 ;;
17720
17721 aix[4-9]*)
17722 if test "$host_cpu" = ia64; then
17723 # On IA64, the linker does run time linking by default, so we don't
17724 # have to do anything special.
17725 aix_use_runtimelinking=no
17726 exp_sym_flag='-Bexport'
17727 no_entry_flag=""
17728 else
17729 # If we're using GNU nm, then we don't want the "-C" option.
17730 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17731 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17732 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'
17733 else
17734 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'
17735 fi
17736 aix_use_runtimelinking=no
17737
17738 # Test if we are trying to use run time linking or normal
17739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17740 # need to do runtime linking.
17741 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17742 for ld_flag in $LDFLAGS; do
17743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17744 aix_use_runtimelinking=yes
17745 break
17746 fi
17747 done
17748 ;;
17749 esac
17750
17751 exp_sym_flag='-bexport'
17752 no_entry_flag='-bnoentry'
17753 fi
17754
17755 # When large executables or shared objects are built, AIX ld can
17756 # have problems creating the table of contents. If linking a library
17757 # or program results in "error TOC overflow" add -mminimal-toc to
17758 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17759 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17760
17761 archive_cmds_GCJ=''
17762 hardcode_direct_GCJ=yes
17763 hardcode_libdir_separator_GCJ=':'
17764 link_all_deplibs_GCJ=yes
17765
17766 if test "$GCC" = yes; then
17767 case $host_os in aix4.[012]|aix4.[012].*)
17768 # We only want to do this on AIX 4.2 and lower, the check
17769 # below for broken collect2 doesn't work under 4.3+
17770 collect2name=`${CC} -print-prog-name=collect2`
17771 if test -f "$collect2name" && \
17772 strings "$collect2name" | grep resolve_lib_name >/dev/null
17773 then
17774 # We have reworked collect2
17775 :
17776 else
17777 # We have old collect2
17778 hardcode_direct_GCJ=unsupported
17779 # It fails to find uninstalled libraries when the uninstalled
17780 # path is not listed in the libpath. Setting hardcode_minus_L
17781 # to unsupported forces relinking
17782 hardcode_minus_L_GCJ=yes
17783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17784 hardcode_libdir_separator_GCJ=
17785 fi
17786 ;;
17787 esac
17788 shared_flag='-shared'
17789 if test "$aix_use_runtimelinking" = yes; then
17790 shared_flag="$shared_flag "'${wl}-G'
17791 fi
17792 else
17793 # not using gcc
17794 if test "$host_cpu" = ia64; then
17795 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17796 # chokes on -Wl,-G. The following line is correct:
17797 shared_flag='-G'
17798 else
17799 if test "$aix_use_runtimelinking" = yes; then
17800 shared_flag='${wl}-G'
17801 else
17802 shared_flag='${wl}-bM:SRE'
17803 fi
17804 fi
17805 fi
17806
17807 # It seems that -bexpall does not export symbols beginning with
17808 # underscore (_), so it is better to generate a list of symbols to export.
17809 always_export_symbols_GCJ=yes
17810 if test "$aix_use_runtimelinking" = yes; then
17811 # Warning - without using the other runtime loading flags (-brtl),
17812 # -berok will link without error, but may produce a broken library.
17813 allow_undefined_flag_GCJ='-berok'
17814 # Determine the default libpath from the value encoded in an empty executable.
17815 cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h. */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821
17822 int
17823 main ()
17824 {
17825
17826 ;
17827 return 0;
17828 }
17829 _ACEOF
17830 rm -f conftest.$ac_objext conftest$ac_exeext
17831 if { (ac_try="$ac_link"
17832 case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835 esac
17836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17837 $as_echo "$ac_try_echo") >&5
17838 (eval "$ac_link") 2>conftest.er1
17839 ac_status=$?
17840 grep -v '^ *+' conftest.er1 >conftest.err
17841 rm -f conftest.er1
17842 cat conftest.err >&5
17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } && {
17845 test -z "$ac_c_werror_flag" ||
17846 test ! -s conftest.err
17847 } && test -s conftest$ac_exeext && {
17848 test "$cross_compiling" = yes ||
17849 $as_test_x conftest$ac_exeext
17850 }; then
17851
17852 lt_aix_libpath_sed='
17853 /Import File Strings/,/^$/ {
17854 /^0/ {
17855 s/^0 *\(.*\)$/\1/
17856 p
17857 }
17858 }'
17859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17860 # Check for a 64-bit object if we didn't find anything.
17861 if test -z "$aix_libpath"; then
17862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17863 fi
17864 else
17865 $as_echo "$as_me: failed program was:" >&5
17866 sed 's/^/| /' conftest.$ac_ext >&5
17867
17868
17869 fi
17870
17871 rm -rf conftest.dSYM
17872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17873 conftest$ac_exeext conftest.$ac_ext
17874 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17875
17876 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17877 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"
17878 else
17879 if test "$host_cpu" = ia64; then
17880 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17881 allow_undefined_flag_GCJ="-z nodefs"
17882 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"
17883 else
17884 # Determine the default libpath from the value encoded in an empty executable.
17885 cat >conftest.$ac_ext <<_ACEOF
17886 /* confdefs.h. */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h. */
17891
17892 int
17893 main ()
17894 {
17895
17896 ;
17897 return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext conftest$ac_exeext
17901 if { (ac_try="$ac_link"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905 esac
17906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17907 $as_echo "$ac_try_echo") >&5
17908 (eval "$ac_link") 2>conftest.er1
17909 ac_status=$?
17910 grep -v '^ *+' conftest.er1 >conftest.err
17911 rm -f conftest.er1
17912 cat conftest.err >&5
17913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } && {
17915 test -z "$ac_c_werror_flag" ||
17916 test ! -s conftest.err
17917 } && test -s conftest$ac_exeext && {
17918 test "$cross_compiling" = yes ||
17919 $as_test_x conftest$ac_exeext
17920 }; then
17921
17922 lt_aix_libpath_sed='
17923 /Import File Strings/,/^$/ {
17924 /^0/ {
17925 s/^0 *\(.*\)$/\1/
17926 p
17927 }
17928 }'
17929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17930 # Check for a 64-bit object if we didn't find anything.
17931 if test -z "$aix_libpath"; then
17932 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17933 fi
17934 else
17935 $as_echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938
17939 fi
17940
17941 rm -rf conftest.dSYM
17942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17943 conftest$ac_exeext conftest.$ac_ext
17944 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17945
17946 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17947 # Warning - without using the other run time loading flags,
17948 # -berok will link without error, but may produce a broken library.
17949 no_undefined_flag_GCJ=' ${wl}-bernotok'
17950 allow_undefined_flag_GCJ=' ${wl}-berok'
17951 # Exported symbols can be pulled into shared objects from archives
17952 whole_archive_flag_spec_GCJ='$convenience'
17953 archive_cmds_need_lc_GCJ=yes
17954 # This is similar to how AIX traditionally builds its shared libraries.
17955 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'
17956 fi
17957 fi
17958 ;;
17959
17960 amigaos*)
17961 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)'
17962 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17963 hardcode_minus_L_GCJ=yes
17964 # see comment about different semantics on the GNU ld section
17965 ld_shlibs_GCJ=no
17966 ;;
17967
17968 bsdi[45]*)
17969 export_dynamic_flag_spec_GCJ=-rdynamic
17970 ;;
17971
17972 cygwin* | mingw* | pw32*)
17973 # When not using gcc, we currently assume that we are using
17974 # Microsoft Visual C++.
17975 # hardcode_libdir_flag_spec is actually meaningless, as there is
17976 # no search path for DLLs.
17977 hardcode_libdir_flag_spec_GCJ=' '
17978 allow_undefined_flag_GCJ=unsupported
17979 # Tell ltmain to make .lib files, not .a files.
17980 libext=lib
17981 # Tell ltmain to make .dll files, not .so files.
17982 shrext_cmds=".dll"
17983 # FIXME: Setting linknames here is a bad hack.
17984 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17985 # The linker will automatically build a .lib file if we build a DLL.
17986 old_archive_From_new_cmds_GCJ='true'
17987 # FIXME: Should let the user specify the lib program.
17988 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17989 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17990 enable_shared_with_static_runtimes_GCJ=yes
17991 ;;
17992
17993 darwin* | rhapsody*)
17994 case $host_os in
17995 rhapsody* | darwin1.[012])
17996 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17997 ;;
17998 *) # Darwin 1.3 on
17999 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18000 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18001 else
18002 case ${MACOSX_DEPLOYMENT_TARGET} in
18003 10.[012])
18004 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18005 ;;
18006 10.*)
18007 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18008 ;;
18009 esac
18010 fi
18011 ;;
18012 esac
18013 archive_cmds_need_lc_GCJ=no
18014 hardcode_direct_GCJ=no
18015 hardcode_automatic_GCJ=yes
18016 hardcode_shlibpath_var_GCJ=unsupported
18017 whole_archive_flag_spec_GCJ=''
18018 link_all_deplibs_GCJ=yes
18019 if test "$GCC" = yes ; then
18020 output_verbose_link_cmd='echo'
18021 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}"
18022 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18023 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}"
18024 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}"
18025 else
18026 case $cc_basename in
18027 xlc*)
18028 output_verbose_link_cmd='echo'
18029 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18030 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18031 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18032 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}'
18033 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}'
18034 ;;
18035 *)
18036 ld_shlibs_GCJ=no
18037 ;;
18038 esac
18039 fi
18040 ;;
18041
18042 dgux*)
18043 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18044 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18045 hardcode_shlibpath_var_GCJ=no
18046 ;;
18047
18048 freebsd1*)
18049 ld_shlibs_GCJ=no
18050 ;;
18051
18052 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18053 # support. Future versions do this automatically, but an explicit c++rt0.o
18054 # does not break anything, and helps significantly (at the cost of a little
18055 # extra space).
18056 freebsd2.2*)
18057 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18058 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18059 hardcode_direct_GCJ=yes
18060 hardcode_shlibpath_var_GCJ=no
18061 ;;
18062
18063 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18064 freebsd2*)
18065 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18066 hardcode_direct_GCJ=yes
18067 hardcode_minus_L_GCJ=yes
18068 hardcode_shlibpath_var_GCJ=no
18069 ;;
18070
18071 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18072 freebsd* | dragonfly*)
18073 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18074 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18075 hardcode_direct_GCJ=yes
18076 hardcode_shlibpath_var_GCJ=no
18077 ;;
18078
18079 hpux9*)
18080 if test "$GCC" = yes; then
18081 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'
18082 else
18083 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'
18084 fi
18085 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18086 hardcode_libdir_separator_GCJ=:
18087 hardcode_direct_GCJ=yes
18088
18089 # hardcode_minus_L: Not really in the search PATH,
18090 # but as the default location of the library.
18091 hardcode_minus_L_GCJ=yes
18092 export_dynamic_flag_spec_GCJ='${wl}-E'
18093 ;;
18094
18095 hpux10*)
18096 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18097 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18098 else
18099 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18100 fi
18101 if test "$with_gnu_ld" = no; then
18102 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18103 hardcode_libdir_separator_GCJ=:
18104
18105 hardcode_direct_GCJ=yes
18106 export_dynamic_flag_spec_GCJ='${wl}-E'
18107
18108 # hardcode_minus_L: Not really in the search PATH,
18109 # but as the default location of the library.
18110 hardcode_minus_L_GCJ=yes
18111 fi
18112 ;;
18113
18114 hpux11*)
18115 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18116 case $host_cpu in
18117 hppa*64*)
18118 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18119 ;;
18120 ia64*)
18121 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18122 ;;
18123 *)
18124 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18125 ;;
18126 esac
18127 else
18128 case $host_cpu in
18129 hppa*64*)
18130 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18131 ;;
18132 ia64*)
18133 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18134 ;;
18135 *)
18136 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18137 ;;
18138 esac
18139 fi
18140 if test "$with_gnu_ld" = no; then
18141 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18142 hardcode_libdir_separator_GCJ=:
18143
18144 case $host_cpu in
18145 hppa*64*|ia64*)
18146 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18147 hardcode_direct_GCJ=no
18148 hardcode_shlibpath_var_GCJ=no
18149 ;;
18150 *)
18151 hardcode_direct_GCJ=yes
18152 export_dynamic_flag_spec_GCJ='${wl}-E'
18153
18154 # hardcode_minus_L: Not really in the search PATH,
18155 # but as the default location of the library.
18156 hardcode_minus_L_GCJ=yes
18157 ;;
18158 esac
18159 fi
18160 ;;
18161
18162 irix5* | irix6* | nonstopux*)
18163 if test "$GCC" = yes; then
18164 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'
18165 else
18166 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'
18167 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18168 fi
18169 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18170 hardcode_libdir_separator_GCJ=:
18171 link_all_deplibs_GCJ=yes
18172 ;;
18173
18174 netbsd*)
18175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18176 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18177 else
18178 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18179 fi
18180 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18181 hardcode_direct_GCJ=yes
18182 hardcode_shlibpath_var_GCJ=no
18183 ;;
18184
18185 newsos6)
18186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18187 hardcode_direct_GCJ=yes
18188 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18189 hardcode_libdir_separator_GCJ=:
18190 hardcode_shlibpath_var_GCJ=no
18191 ;;
18192
18193 openbsd*)
18194 if test -f /usr/libexec/ld.so; then
18195 hardcode_direct_GCJ=yes
18196 hardcode_shlibpath_var_GCJ=no
18197 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18198 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18199 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18200 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18201 export_dynamic_flag_spec_GCJ='${wl}-E'
18202 else
18203 case $host_os in
18204 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18205 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18206 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18207 ;;
18208 *)
18209 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18211 ;;
18212 esac
18213 fi
18214 else
18215 ld_shlibs_GCJ=no
18216 fi
18217 ;;
18218
18219 os2*)
18220 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18221 hardcode_minus_L_GCJ=yes
18222 allow_undefined_flag_GCJ=unsupported
18223 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'
18224 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18225 ;;
18226
18227 osf3*)
18228 if test "$GCC" = yes; then
18229 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18230 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'
18231 else
18232 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18233 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'
18234 fi
18235 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18236 hardcode_libdir_separator_GCJ=:
18237 ;;
18238
18239 osf4* | osf5*) # as osf3* with the addition of -msym flag
18240 if test "$GCC" = yes; then
18241 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18242 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'
18243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18244 else
18245 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18246 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'
18247 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~
18248 $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'
18249
18250 # Both c and cxx compiler support -rpath directly
18251 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18252 fi
18253 hardcode_libdir_separator_GCJ=:
18254 ;;
18255
18256 solaris*)
18257 no_undefined_flag_GCJ=' -z text'
18258 if test "$GCC" = yes; then
18259 wlarc='${wl}'
18260 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18261 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18262 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18263 else
18264 wlarc=''
18265 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18266 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18267 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18268 fi
18269 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18270 hardcode_shlibpath_var_GCJ=no
18271 case $host_os in
18272 solaris2.[0-5] | solaris2.[0-5].*) ;;
18273 *)
18274 # The compiler driver will combine and reorder linker options,
18275 # but understands `-z linker_flag'. GCC discards it without `$wl',
18276 # but is careful enough not to reorder.
18277 # Supported since Solaris 2.6 (maybe 2.5.1?)
18278 if test "$GCC" = yes; then
18279 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18280 else
18281 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18282 fi
18283 ;;
18284 esac
18285 link_all_deplibs_GCJ=yes
18286 ;;
18287
18288 sunos4*)
18289 if test "x$host_vendor" = xsequent; then
18290 # Use $CC to link under sequent, because it throws in some extra .o
18291 # files that make .init and .fini sections work.
18292 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18293 else
18294 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18295 fi
18296 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18297 hardcode_direct_GCJ=yes
18298 hardcode_minus_L_GCJ=yes
18299 hardcode_shlibpath_var_GCJ=no
18300 ;;
18301
18302 sysv4)
18303 case $host_vendor in
18304 sni)
18305 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18306 hardcode_direct_GCJ=yes # is this really true???
18307 ;;
18308 siemens)
18309 ## LD is ld it makes a PLAMLIB
18310 ## CC just makes a GrossModule.
18311 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18312 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18313 hardcode_direct_GCJ=no
18314 ;;
18315 motorola)
18316 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18317 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18318 ;;
18319 esac
18320 runpath_var='LD_RUN_PATH'
18321 hardcode_shlibpath_var_GCJ=no
18322 ;;
18323
18324 sysv4.3*)
18325 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326 hardcode_shlibpath_var_GCJ=no
18327 export_dynamic_flag_spec_GCJ='-Bexport'
18328 ;;
18329
18330 sysv4*MP*)
18331 if test -d /usr/nec; then
18332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18333 hardcode_shlibpath_var_GCJ=no
18334 runpath_var=LD_RUN_PATH
18335 hardcode_runpath_var=yes
18336 ld_shlibs_GCJ=yes
18337 fi
18338 ;;
18339
18340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18341 no_undefined_flag_GCJ='${wl}-z,text'
18342 archive_cmds_need_lc_GCJ=no
18343 hardcode_shlibpath_var_GCJ=no
18344 runpath_var='LD_RUN_PATH'
18345
18346 if test "$GCC" = yes; then
18347 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18348 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18349 else
18350 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18351 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18352 fi
18353 ;;
18354
18355 sysv5* | sco3.2v5* | sco5v6*)
18356 # Note: We can NOT use -z defs as we might desire, because we do not
18357 # link with -lc, and that would cause any symbols used from libc to
18358 # always be unresolved, which means just about no library would
18359 # ever link correctly. If we're not using GNU ld we use -z text
18360 # though, which does catch some bad symbols but isn't as heavy-handed
18361 # as -z defs.
18362 no_undefined_flag_GCJ='${wl}-z,text'
18363 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18364 archive_cmds_need_lc_GCJ=no
18365 hardcode_shlibpath_var_GCJ=no
18366 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18367 hardcode_libdir_separator_GCJ=':'
18368 link_all_deplibs_GCJ=yes
18369 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18370 runpath_var='LD_RUN_PATH'
18371
18372 if test "$GCC" = yes; then
18373 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18374 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18375 else
18376 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18377 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18378 fi
18379 ;;
18380
18381 uts4*)
18382 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18383 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18384 hardcode_shlibpath_var_GCJ=no
18385 ;;
18386
18387 *)
18388 ld_shlibs_GCJ=no
18389 ;;
18390 esac
18391 fi
18392
18393 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18394 $as_echo "$ld_shlibs_GCJ" >&6; }
18395 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18396
18397 #
18398 # Do we need to explicitly link libc?
18399 #
18400 case "x$archive_cmds_need_lc_GCJ" in
18401 x|xyes)
18402 # Assume -lc should be added
18403 archive_cmds_need_lc_GCJ=yes
18404
18405 if test "$enable_shared" = yes && test "$GCC" = yes; then
18406 case $archive_cmds_GCJ in
18407 *'~'*)
18408 # FIXME: we may have to deal with multi-command sequences.
18409 ;;
18410 '$CC '*)
18411 # Test whether the compiler implicitly links with -lc since on some
18412 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18413 # to ld, don't add -lc before -lgcc.
18414 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18415 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18416 $rm conftest*
18417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18418
18419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18420 (eval $ac_compile) 2>&5
18421 ac_status=$?
18422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } 2>conftest.err; then
18424 soname=conftest
18425 lib=conftest
18426 libobjs=conftest.$ac_objext
18427 deplibs=
18428 wl=$lt_prog_compiler_wl_GCJ
18429 pic_flag=$lt_prog_compiler_pic_GCJ
18430 compiler_flags=-v
18431 linker_flags=-v
18432 verstring=
18433 output_objdir=.
18434 libname=conftest
18435 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18436 allow_undefined_flag_GCJ=
18437 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18438 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18439 ac_status=$?
18440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }
18442 then
18443 archive_cmds_need_lc_GCJ=no
18444 else
18445 archive_cmds_need_lc_GCJ=yes
18446 fi
18447 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18448 else
18449 cat conftest.err 1>&5
18450 fi
18451 $rm conftest*
18452 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18453 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18454 ;;
18455 esac
18456 fi
18457 ;;
18458 esac
18459
18460 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18461 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18462 library_names_spec=
18463 libname_spec='lib$name'
18464 soname_spec=
18465 shrext_cmds=".so"
18466 postinstall_cmds=
18467 postuninstall_cmds=
18468 finish_cmds=
18469 finish_eval=
18470 shlibpath_var=
18471 shlibpath_overrides_runpath=unknown
18472 version_type=none
18473 dynamic_linker="$host_os ld.so"
18474 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18475
18476 need_lib_prefix=unknown
18477 hardcode_into_libs=no
18478
18479 # when you set need_version to no, make sure it does not cause -set_version
18480 # flags to be left without arguments
18481 need_version=unknown
18482
18483 case $host_os in
18484 aix3*)
18485 version_type=linux
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18487 shlibpath_var=LIBPATH
18488
18489 # AIX 3 has no versioning support, so we append a major version to the name.
18490 soname_spec='${libname}${release}${shared_ext}$major'
18491 ;;
18492
18493 aix[4-9]*)
18494 version_type=linux
18495 need_lib_prefix=no
18496 need_version=no
18497 hardcode_into_libs=yes
18498 if test "$host_cpu" = ia64; then
18499 # AIX 5 supports IA64
18500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 else
18503 # With GCC up to 2.95.x, collect2 would create an import file
18504 # for dependence libraries. The import file would start with
18505 # the line `#! .'. This would cause the generated library to
18506 # depend on `.', always an invalid library. This was fixed in
18507 # development snapshots of GCC prior to 3.0.
18508 case $host_os in
18509 aix4 | aix4.[01] | aix4.[01].*)
18510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18511 echo ' yes '
18512 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18513 :
18514 else
18515 can_build_shared=no
18516 fi
18517 ;;
18518 esac
18519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18520 # soname into executable. Probably we can add versioning support to
18521 # collect2, so additional links can be useful in future.
18522 if test "$aix_use_runtimelinking" = yes; then
18523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18524 # instead of lib<name>.a to let people know that these are not
18525 # typical AIX shared libraries.
18526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527 else
18528 # We preserve .a as extension for shared libraries through AIX4.2
18529 # and later when we are not doing run time linking.
18530 library_names_spec='${libname}${release}.a $libname.a'
18531 soname_spec='${libname}${release}${shared_ext}$major'
18532 fi
18533 shlibpath_var=LIBPATH
18534 fi
18535 ;;
18536
18537 amigaos*)
18538 library_names_spec='$libname.ixlibrary $libname.a'
18539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18540 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'
18541 ;;
18542
18543 beos*)
18544 library_names_spec='${libname}${shared_ext}'
18545 dynamic_linker="$host_os ld.so"
18546 shlibpath_var=LIBRARY_PATH
18547 ;;
18548
18549 bsdi[45]*)
18550 version_type=linux
18551 need_version=no
18552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18553 soname_spec='${libname}${release}${shared_ext}$major'
18554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18555 shlibpath_var=LD_LIBRARY_PATH
18556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18558 # the default ld.so.conf also contains /usr/contrib/lib and
18559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18560 # libtool to hard-code these into programs
18561 ;;
18562
18563 cygwin* | mingw* | pw32*)
18564 version_type=windows
18565 shrext_cmds=".dll"
18566 need_version=no
18567 need_lib_prefix=no
18568
18569 case $GCC,$host_os in
18570 yes,cygwin* | yes,mingw* | yes,pw32*)
18571 library_names_spec='$libname.dll.a'
18572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18573 postinstall_cmds='base_file=`basename \${file}`~
18574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18575 dldir=$destdir/`dirname \$dlpath`~
18576 test -d \$dldir || mkdir -p \$dldir~
18577 $install_prog $dir/$dlname \$dldir/$dlname~
18578 chmod a+x \$dldir/$dlname'
18579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18580 dlpath=$dir/\$dldll~
18581 $rm \$dlpath'
18582 shlibpath_overrides_runpath=yes
18583
18584 case $host_os in
18585 cygwin*)
18586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18589 ;;
18590 mingw*)
18591 # MinGW DLLs use traditional 'lib' prefix
18592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18595 # It is most probably a Windows format PATH printed by
18596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18597 # path with ; separators, and with drive letters. We can handle the
18598 # drive letters (cygwin fileutils understands them), so leave them,
18599 # especially as we might pass files found there to a mingw objdump,
18600 # which wouldn't understand a cygwinified path. Ahh.
18601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18602 else
18603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18604 fi
18605 ;;
18606 pw32*)
18607 # pw32 DLLs use 'pw' prefix rather than 'lib'
18608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18609 ;;
18610 esac
18611 ;;
18612
18613 *)
18614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18615 ;;
18616 esac
18617 dynamic_linker='Win32 ld.exe'
18618 # FIXME: first we should search . and the directory the executable is in
18619 shlibpath_var=PATH
18620 ;;
18621
18622 darwin* | rhapsody*)
18623 dynamic_linker="$host_os dyld"
18624 version_type=darwin
18625 need_lib_prefix=no
18626 need_version=no
18627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18628 soname_spec='${libname}${release}${major}$shared_ext'
18629 shlibpath_overrides_runpath=yes
18630 shlibpath_var=DYLD_LIBRARY_PATH
18631 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18632
18633 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18634 ;;
18635
18636 dgux*)
18637 version_type=linux
18638 need_lib_prefix=no
18639 need_version=no
18640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18641 soname_spec='${libname}${release}${shared_ext}$major'
18642 shlibpath_var=LD_LIBRARY_PATH
18643 ;;
18644
18645 freebsd1*)
18646 dynamic_linker=no
18647 ;;
18648
18649 freebsd* | dragonfly*)
18650 # DragonFly does not have aout. When/if they implement a new
18651 # versioning mechanism, adjust this.
18652 if test -x /usr/bin/objformat; then
18653 objformat=`/usr/bin/objformat`
18654 else
18655 case $host_os in
18656 freebsd[123]*) objformat=aout ;;
18657 *) objformat=elf ;;
18658 esac
18659 fi
18660 version_type=freebsd-$objformat
18661 case $version_type in
18662 freebsd-elf*)
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18664 need_version=no
18665 need_lib_prefix=no
18666 ;;
18667 freebsd-*)
18668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18669 need_version=yes
18670 ;;
18671 esac
18672 shlibpath_var=LD_LIBRARY_PATH
18673 case $host_os in
18674 freebsd2*)
18675 shlibpath_overrides_runpath=yes
18676 ;;
18677 freebsd3.[01]* | freebsdelf3.[01]*)
18678 shlibpath_overrides_runpath=yes
18679 hardcode_into_libs=yes
18680 ;;
18681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18683 shlibpath_overrides_runpath=no
18684 hardcode_into_libs=yes
18685 ;;
18686 *) # from 4.6 on, and DragonFly
18687 shlibpath_overrides_runpath=yes
18688 hardcode_into_libs=yes
18689 ;;
18690 esac
18691 ;;
18692
18693 gnu*)
18694 version_type=linux
18695 need_lib_prefix=no
18696 need_version=no
18697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18698 soname_spec='${libname}${release}${shared_ext}$major'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 hardcode_into_libs=yes
18701 ;;
18702
18703 hpux9* | hpux10* | hpux11*)
18704 # Give a soname corresponding to the major version so that dld.sl refuses to
18705 # link against other versions.
18706 version_type=sunos
18707 need_lib_prefix=no
18708 need_version=no
18709 case $host_cpu in
18710 ia64*)
18711 shrext_cmds='.so'
18712 hardcode_into_libs=yes
18713 dynamic_linker="$host_os dld.so"
18714 shlibpath_var=LD_LIBRARY_PATH
18715 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 soname_spec='${libname}${release}${shared_ext}$major'
18718 if test "X$HPUX_IA64_MODE" = X32; then
18719 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18720 else
18721 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18722 fi
18723 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18724 ;;
18725 hppa*64*)
18726 shrext_cmds='.sl'
18727 hardcode_into_libs=yes
18728 dynamic_linker="$host_os dld.sl"
18729 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 soname_spec='${libname}${release}${shared_ext}$major'
18733 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18734 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18735 ;;
18736 *)
18737 shrext_cmds='.sl'
18738 dynamic_linker="$host_os dld.sl"
18739 shlibpath_var=SHLIB_PATH
18740 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742 soname_spec='${libname}${release}${shared_ext}$major'
18743 ;;
18744 esac
18745 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18746 postinstall_cmds='chmod 555 $lib'
18747 ;;
18748
18749 interix[3-9]*)
18750 version_type=linux
18751 need_lib_prefix=no
18752 need_version=no
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754 soname_spec='${libname}${release}${shared_ext}$major'
18755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 shlibpath_overrides_runpath=no
18758 hardcode_into_libs=yes
18759 ;;
18760
18761 irix5* | irix6* | nonstopux*)
18762 case $host_os in
18763 nonstopux*) version_type=nonstopux ;;
18764 *)
18765 if test "$lt_cv_prog_gnu_ld" = yes; then
18766 version_type=linux
18767 else
18768 version_type=irix
18769 fi ;;
18770 esac
18771 need_lib_prefix=no
18772 need_version=no
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18775 case $host_os in
18776 irix5* | nonstopux*)
18777 libsuff= shlibsuff=
18778 ;;
18779 *)
18780 case $LD in # libtool.m4 will add one of these switches to LD
18781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18782 libsuff= shlibsuff= libmagic=32-bit;;
18783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18784 libsuff=32 shlibsuff=N32 libmagic=N32;;
18785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18787 *) libsuff= shlibsuff= libmagic=never-match;;
18788 esac
18789 ;;
18790 esac
18791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18792 shlibpath_overrides_runpath=no
18793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18795 hardcode_into_libs=yes
18796 ;;
18797
18798 # No shared lib support for Linux oldld, aout, or coff.
18799 linux*oldld* | linux*aout* | linux*coff*)
18800 dynamic_linker=no
18801 ;;
18802
18803 # This must be Linux ELF.
18804 linux* | k*bsd*-gnu)
18805 version_type=linux
18806 need_lib_prefix=no
18807 need_version=no
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18809 soname_spec='${libname}${release}${shared_ext}$major'
18810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18811 shlibpath_var=LD_LIBRARY_PATH
18812 shlibpath_overrides_runpath=no
18813 # This implies no fast_install, which is unacceptable.
18814 # Some rework will be needed to allow for fast_install
18815 # before this can be enabled.
18816 hardcode_into_libs=yes
18817 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18818 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18819
18820 # Append ld.so.conf contents to the search path
18821 if test -f /etc/ld.so.conf; then
18822 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' ' '`
18823 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18824 fi
18825
18826 # We used to test for /lib/ld.so.1 and disable shared libraries on
18827 # powerpc, because MkLinux only supported shared libraries with the
18828 # GNU dynamic linker. Since this was broken with cross compilers,
18829 # most powerpc-linux boxes support dynamic linking these days and
18830 # people can always --disable-shared, the test was removed, and we
18831 # assume the GNU/Linux dynamic linker is in use.
18832 dynamic_linker='GNU/Linux ld.so'
18833 ;;
18834
18835 netbsd*)
18836 version_type=sunos
18837 need_lib_prefix=no
18838 need_version=no
18839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18842 dynamic_linker='NetBSD (a.out) ld.so'
18843 else
18844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18845 soname_spec='${libname}${release}${shared_ext}$major'
18846 dynamic_linker='NetBSD ld.elf_so'
18847 fi
18848 shlibpath_var=LD_LIBRARY_PATH
18849 shlibpath_overrides_runpath=yes
18850 hardcode_into_libs=yes
18851 ;;
18852
18853 newsos6)
18854 version_type=linux
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856 shlibpath_var=LD_LIBRARY_PATH
18857 shlibpath_overrides_runpath=yes
18858 ;;
18859
18860 nto-qnx*)
18861 version_type=linux
18862 need_lib_prefix=no
18863 need_version=no
18864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18865 soname_spec='${libname}${release}${shared_ext}$major'
18866 shlibpath_var=LD_LIBRARY_PATH
18867 shlibpath_overrides_runpath=yes
18868 ;;
18869
18870 openbsd*)
18871 version_type=sunos
18872 sys_lib_dlsearch_path_spec="/usr/lib"
18873 need_lib_prefix=no
18874 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18875 case $host_os in
18876 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18877 *) need_version=no ;;
18878 esac
18879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18881 shlibpath_var=LD_LIBRARY_PATH
18882 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18883 case $host_os in
18884 openbsd2.[89] | openbsd2.[89].*)
18885 shlibpath_overrides_runpath=no
18886 ;;
18887 *)
18888 shlibpath_overrides_runpath=yes
18889 ;;
18890 esac
18891 else
18892 shlibpath_overrides_runpath=yes
18893 fi
18894 ;;
18895
18896 os2*)
18897 libname_spec='$name'
18898 shrext_cmds=".dll"
18899 need_lib_prefix=no
18900 library_names_spec='$libname${shared_ext} $libname.a'
18901 dynamic_linker='OS/2 ld.exe'
18902 shlibpath_var=LIBPATH
18903 ;;
18904
18905 osf3* | osf4* | osf5*)
18906 version_type=osf
18907 need_lib_prefix=no
18908 need_version=no
18909 soname_spec='${libname}${release}${shared_ext}$major'
18910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18911 shlibpath_var=LD_LIBRARY_PATH
18912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18913 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18914 ;;
18915
18916 rdos*)
18917 dynamic_linker=no
18918 ;;
18919
18920 solaris*)
18921 version_type=linux
18922 need_lib_prefix=no
18923 need_version=no
18924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18925 soname_spec='${libname}${release}${shared_ext}$major'
18926 shlibpath_var=LD_LIBRARY_PATH
18927 shlibpath_overrides_runpath=yes
18928 hardcode_into_libs=yes
18929 # ldd complains unless libraries are executable
18930 postinstall_cmds='chmod +x $lib'
18931 ;;
18932
18933 sunos4*)
18934 version_type=sunos
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18937 shlibpath_var=LD_LIBRARY_PATH
18938 shlibpath_overrides_runpath=yes
18939 if test "$with_gnu_ld" = yes; then
18940 need_lib_prefix=no
18941 fi
18942 need_version=yes
18943 ;;
18944
18945 sysv4 | sysv4.3*)
18946 version_type=linux
18947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948 soname_spec='${libname}${release}${shared_ext}$major'
18949 shlibpath_var=LD_LIBRARY_PATH
18950 case $host_vendor in
18951 sni)
18952 shlibpath_overrides_runpath=no
18953 need_lib_prefix=no
18954 export_dynamic_flag_spec='${wl}-Blargedynsym'
18955 runpath_var=LD_RUN_PATH
18956 ;;
18957 siemens)
18958 need_lib_prefix=no
18959 ;;
18960 motorola)
18961 need_lib_prefix=no
18962 need_version=no
18963 shlibpath_overrides_runpath=no
18964 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18965 ;;
18966 esac
18967 ;;
18968
18969 sysv4*MP*)
18970 if test -d /usr/nec ;then
18971 version_type=linux
18972 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18973 soname_spec='$libname${shared_ext}.$major'
18974 shlibpath_var=LD_LIBRARY_PATH
18975 fi
18976 ;;
18977
18978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18979 version_type=freebsd-elf
18980 need_lib_prefix=no
18981 need_version=no
18982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18983 soname_spec='${libname}${release}${shared_ext}$major'
18984 shlibpath_var=LD_LIBRARY_PATH
18985 hardcode_into_libs=yes
18986 if test "$with_gnu_ld" = yes; then
18987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18988 shlibpath_overrides_runpath=no
18989 else
18990 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18991 shlibpath_overrides_runpath=yes
18992 case $host_os in
18993 sco3.2v5*)
18994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18995 ;;
18996 esac
18997 fi
18998 sys_lib_dlsearch_path_spec='/usr/lib'
18999 ;;
19000
19001 uts4*)
19002 version_type=linux
19003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19004 soname_spec='${libname}${release}${shared_ext}$major'
19005 shlibpath_var=LD_LIBRARY_PATH
19006 ;;
19007
19008 *)
19009 dynamic_linker=no
19010 ;;
19011 esac
19012 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19013 $as_echo "$dynamic_linker" >&6; }
19014 test "$dynamic_linker" = no && can_build_shared=no
19015
19016 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19017 $as_echo_n "(cached) " >&6
19018 else
19019 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19020 fi
19021
19022 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19023 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19024 $as_echo_n "(cached) " >&6
19025 else
19026 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19027 fi
19028
19029 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19030
19031 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19032 if test "$GCC" = yes; then
19033 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19034 fi
19035
19036 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19037 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19038 hardcode_action_GCJ=
19039 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19040 test -n "$runpath_var_GCJ" || \
19041 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19042
19043 # We can hardcode non-existant directories.
19044 if test "$hardcode_direct_GCJ" != no &&
19045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19046 # have to relink, otherwise we might link with an installed library
19047 # when we should be linking with a yet-to-be-installed one
19048 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19049 test "$hardcode_minus_L_GCJ" != no; then
19050 # Linking always hardcodes the temporary library directory.
19051 hardcode_action_GCJ=relink
19052 else
19053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19054 hardcode_action_GCJ=immediate
19055 fi
19056 else
19057 # We cannot hardcode anything, or else we can only hardcode existing
19058 # directories.
19059 hardcode_action_GCJ=unsupported
19060 fi
19061 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19062 $as_echo "$hardcode_action_GCJ" >&6; }
19063
19064 if test "$hardcode_action_GCJ" = relink; then
19065 # Fast installation is not supported
19066 enable_fast_install=no
19067 elif test "$shlibpath_overrides_runpath" = yes ||
19068 test "$enable_shared" = no; then
19069 # Fast installation is not necessary
19070 enable_fast_install=needless
19071 fi
19072
19073
19074 # The else clause should only fire when bootstrapping the
19075 # libtool distribution, otherwise you forgot to ship ltmain.sh
19076 # with your package, and you will get complaints that there are
19077 # no rules to generate ltmain.sh.
19078 if test -f "$ltmain"; then
19079 # See if we are running on zsh, and set the options which allow our commands through
19080 # without removal of \ escapes.
19081 if test -n "${ZSH_VERSION+set}" ; then
19082 setopt NO_GLOB_SUBST
19083 fi
19084 # Now quote all the things that may contain metacharacters while being
19085 # careful not to overquote the AC_SUBSTed values. We take copies of the
19086 # variables and quote the copies for generation of the libtool script.
19087 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19088 SED SHELL STRIP \
19089 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19090 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19091 deplibs_check_method reload_flag reload_cmds need_locks \
19092 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19093 lt_cv_sys_global_symbol_to_c_name_address \
19094 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19095 old_postinstall_cmds old_postuninstall_cmds \
19096 compiler_GCJ \
19097 CC_GCJ \
19098 LD_GCJ \
19099 lt_prog_compiler_wl_GCJ \
19100 lt_prog_compiler_pic_GCJ \
19101 lt_prog_compiler_static_GCJ \
19102 lt_prog_compiler_no_builtin_flag_GCJ \
19103 export_dynamic_flag_spec_GCJ \
19104 thread_safe_flag_spec_GCJ \
19105 whole_archive_flag_spec_GCJ \
19106 enable_shared_with_static_runtimes_GCJ \
19107 old_archive_cmds_GCJ \
19108 old_archive_from_new_cmds_GCJ \
19109 predep_objects_GCJ \
19110 postdep_objects_GCJ \
19111 predeps_GCJ \
19112 postdeps_GCJ \
19113 compiler_lib_search_path_GCJ \
19114 compiler_lib_search_dirs_GCJ \
19115 archive_cmds_GCJ \
19116 archive_expsym_cmds_GCJ \
19117 postinstall_cmds_GCJ \
19118 postuninstall_cmds_GCJ \
19119 old_archive_from_expsyms_cmds_GCJ \
19120 allow_undefined_flag_GCJ \
19121 no_undefined_flag_GCJ \
19122 export_symbols_cmds_GCJ \
19123 hardcode_libdir_flag_spec_GCJ \
19124 hardcode_libdir_flag_spec_ld_GCJ \
19125 hardcode_libdir_separator_GCJ \
19126 hardcode_automatic_GCJ \
19127 module_cmds_GCJ \
19128 module_expsym_cmds_GCJ \
19129 lt_cv_prog_compiler_c_o_GCJ \
19130 fix_srcfile_path_GCJ \
19131 exclude_expsyms_GCJ \
19132 include_expsyms_GCJ; do
19133
19134 case $var in
19135 old_archive_cmds_GCJ | \
19136 old_archive_from_new_cmds_GCJ | \
19137 archive_cmds_GCJ | \
19138 archive_expsym_cmds_GCJ | \
19139 module_cmds_GCJ | \
19140 module_expsym_cmds_GCJ | \
19141 old_archive_from_expsyms_cmds_GCJ | \
19142 export_symbols_cmds_GCJ | \
19143 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19144 postinstall_cmds | postuninstall_cmds | \
19145 old_postinstall_cmds | old_postuninstall_cmds | \
19146 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19147 # Double-quote double-evaled strings.
19148 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19149 ;;
19150 *)
19151 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19152 ;;
19153 esac
19154 done
19155
19156 case $lt_echo in
19157 *'\$0 --fallback-echo"')
19158 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19159 ;;
19160 esac
19161
19162 cfgfile="$ofile"
19163
19164 cat <<__EOF__ >> "$cfgfile"
19165 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19166
19167 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19168
19169 # Shell to use when invoking shell scripts.
19170 SHELL=$lt_SHELL
19171
19172 # Whether or not to build shared libraries.
19173 build_libtool_libs=$enable_shared
19174
19175 # Whether or not to build static libraries.
19176 build_old_libs=$enable_static
19177
19178 # Whether or not to add -lc for building shared libraries.
19179 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19180
19181 # Whether or not to disallow shared libs when runtime libs are static
19182 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19183
19184 # Whether or not to optimize for fast installation.
19185 fast_install=$enable_fast_install
19186
19187 # The host system.
19188 host_alias=$host_alias
19189 host=$host
19190 host_os=$host_os
19191
19192 # The build system.
19193 build_alias=$build_alias
19194 build=$build
19195 build_os=$build_os
19196
19197 # An echo program that does not interpret backslashes.
19198 echo=$lt_echo
19199
19200 # The archiver.
19201 AR=$lt_AR
19202 AR_FLAGS=$lt_AR_FLAGS
19203
19204 # A C compiler.
19205 LTCC=$lt_LTCC
19206
19207 # LTCC compiler flags.
19208 LTCFLAGS=$lt_LTCFLAGS
19209
19210 # A language-specific compiler.
19211 CC=$lt_compiler_GCJ
19212
19213 # Is the compiler the GNU C compiler?
19214 with_gcc=$GCC_GCJ
19215
19216 # An ERE matcher.
19217 EGREP=$lt_EGREP
19218
19219 # The linker used to build libraries.
19220 LD=$lt_LD_GCJ
19221
19222 # Whether we need hard or soft links.
19223 LN_S=$lt_LN_S
19224
19225 # A BSD-compatible nm program.
19226 NM=$lt_NM
19227
19228 # A symbol stripping program
19229 STRIP=$lt_STRIP
19230
19231 # Used to examine libraries when file_magic_cmd begins "file"
19232 MAGIC_CMD=$MAGIC_CMD
19233
19234 # Used on cygwin: DLL creation program.
19235 DLLTOOL="$DLLTOOL"
19236
19237 # Used on cygwin: object dumper.
19238 OBJDUMP="$OBJDUMP"
19239
19240 # Used on cygwin: assembler.
19241 AS="$AS"
19242
19243 # The name of the directory that contains temporary libtool files.
19244 objdir=$objdir
19245
19246 # How to create reloadable object files.
19247 reload_flag=$lt_reload_flag
19248 reload_cmds=$lt_reload_cmds
19249
19250 # How to pass a linker flag through the compiler.
19251 wl=$lt_lt_prog_compiler_wl_GCJ
19252
19253 # Object file suffix (normally "o").
19254 objext="$ac_objext"
19255
19256 # Old archive suffix (normally "a").
19257 libext="$libext"
19258
19259 # Shared library suffix (normally ".so").
19260 shrext_cmds='$shrext_cmds'
19261
19262 # Executable file suffix (normally "").
19263 exeext="$exeext"
19264
19265 # Additional compiler flags for building library objects.
19266 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19267 pic_mode=$pic_mode
19268
19269 # What is the maximum length of a command?
19270 max_cmd_len=$lt_cv_sys_max_cmd_len
19271
19272 # Does compiler simultaneously support -c and -o options?
19273 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19274
19275 # Must we lock files when doing compilation?
19276 need_locks=$lt_need_locks
19277
19278 # Do we need the lib prefix for modules?
19279 need_lib_prefix=$need_lib_prefix
19280
19281 # Do we need a version for libraries?
19282 need_version=$need_version
19283
19284 # Whether dlopen is supported.
19285 dlopen_support=$enable_dlopen
19286
19287 # Whether dlopen of programs is supported.
19288 dlopen_self=$enable_dlopen_self
19289
19290 # Whether dlopen of statically linked programs is supported.
19291 dlopen_self_static=$enable_dlopen_self_static
19292
19293 # Compiler flag to prevent dynamic linking.
19294 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19295
19296 # Compiler flag to turn off builtin functions.
19297 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19298
19299 # Compiler flag to allow reflexive dlopens.
19300 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19301
19302 # Compiler flag to generate shared objects directly from archives.
19303 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19304
19305 # Compiler flag to generate thread-safe objects.
19306 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19307
19308 # Library versioning type.
19309 version_type=$version_type
19310
19311 # Format of library name prefix.
19312 libname_spec=$lt_libname_spec
19313
19314 # List of archive names. First name is the real one, the rest are links.
19315 # The last name is the one that the linker finds with -lNAME.
19316 library_names_spec=$lt_library_names_spec
19317
19318 # The coded name of the library, if different from the real name.
19319 soname_spec=$lt_soname_spec
19320
19321 # Commands used to build and install an old-style archive.
19322 RANLIB=$lt_RANLIB
19323 old_archive_cmds=$lt_old_archive_cmds_GCJ
19324 old_postinstall_cmds=$lt_old_postinstall_cmds
19325 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19326
19327 # Create an old-style archive from a shared archive.
19328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19329
19330 # Create a temporary old-style archive to link instead of a shared archive.
19331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19332
19333 # Commands used to build and install a shared archive.
19334 archive_cmds=$lt_archive_cmds_GCJ
19335 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19336 postinstall_cmds=$lt_postinstall_cmds
19337 postuninstall_cmds=$lt_postuninstall_cmds
19338
19339 # Commands used to build a loadable module (assumed same as above if empty)
19340 module_cmds=$lt_module_cmds_GCJ
19341 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19342
19343 # Commands to strip libraries.
19344 old_striplib=$lt_old_striplib
19345 striplib=$lt_striplib
19346
19347 # Dependencies to place before the objects being linked to create a
19348 # shared library.
19349 predep_objects=$lt_predep_objects_GCJ
19350
19351 # Dependencies to place after the objects being linked to create a
19352 # shared library.
19353 postdep_objects=$lt_postdep_objects_GCJ
19354
19355 # Dependencies to place before the objects being linked to create a
19356 # shared library.
19357 predeps=$lt_predeps_GCJ
19358
19359 # Dependencies to place after the objects being linked to create a
19360 # shared library.
19361 postdeps=$lt_postdeps_GCJ
19362
19363 # The directories searched by this compiler when creating a shared
19364 # library
19365 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19366
19367 # The library search path used internally by the compiler when linking
19368 # a shared library.
19369 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19370
19371 # Method to check whether dependent libraries are shared objects.
19372 deplibs_check_method=$lt_deplibs_check_method
19373
19374 # Command to use when deplibs_check_method == file_magic.
19375 file_magic_cmd=$lt_file_magic_cmd
19376
19377 # Flag that allows shared libraries with undefined symbols to be built.
19378 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19379
19380 # Flag that forces no undefined symbols.
19381 no_undefined_flag=$lt_no_undefined_flag_GCJ
19382
19383 # Commands used to finish a libtool library installation in a directory.
19384 finish_cmds=$lt_finish_cmds
19385
19386 # Same as above, but a single script fragment to be evaled but not shown.
19387 finish_eval=$lt_finish_eval
19388
19389 # Take the output of nm and produce a listing of raw symbols and C names.
19390 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19391
19392 # Transform the output of nm in a proper C declaration
19393 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19394
19395 # Transform the output of nm in a C name address pair
19396 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19397
19398 # This is the shared library runtime path variable.
19399 runpath_var=$runpath_var
19400
19401 # This is the shared library path variable.
19402 shlibpath_var=$shlibpath_var
19403
19404 # Is shlibpath searched before the hard-coded library search path?
19405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19406
19407 # How to hardcode a shared library path into an executable.
19408 hardcode_action=$hardcode_action_GCJ
19409
19410 # Whether we should hardcode library paths into libraries.
19411 hardcode_into_libs=$hardcode_into_libs
19412
19413 # Flag to hardcode \$libdir into a binary during linking.
19414 # This must work even if \$libdir does not exist.
19415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19416
19417 # If ld is used when linking, flag to hardcode \$libdir into
19418 # a binary during linking. This must work even if \$libdir does
19419 # not exist.
19420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19421
19422 # Whether we need a single -rpath flag with a separated argument.
19423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19424
19425 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19426 # resulting binary.
19427 hardcode_direct=$hardcode_direct_GCJ
19428
19429 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19430 # resulting binary.
19431 hardcode_minus_L=$hardcode_minus_L_GCJ
19432
19433 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19434 # the resulting binary.
19435 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19436
19437 # Set to yes if building a shared library automatically hardcodes DIR into the library
19438 # and all subsequent libraries and executables linked against it.
19439 hardcode_automatic=$hardcode_automatic_GCJ
19440
19441 # Variables whose values should be saved in libtool wrapper scripts and
19442 # restored at relink time.
19443 variables_saved_for_relink="$variables_saved_for_relink"
19444
19445 # Whether libtool must link a program against all its dependency libraries.
19446 link_all_deplibs=$link_all_deplibs_GCJ
19447
19448 # Compile-time system search path for libraries
19449 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19450
19451 # Run-time system search path for libraries
19452 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19453
19454 # Fix the shell variable \$srcfile for the compiler.
19455 fix_srcfile_path=$lt_fix_srcfile_path
19456
19457 # Set to yes if exported symbols are required.
19458 always_export_symbols=$always_export_symbols_GCJ
19459
19460 # The commands to list exported symbols.
19461 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19462
19463 # The commands to extract the exported symbol list from a shared archive.
19464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19465
19466 # Symbols that should not be listed in the preloaded symbols.
19467 exclude_expsyms=$lt_exclude_expsyms_GCJ
19468
19469 # Symbols that must always be exported.
19470 include_expsyms=$lt_include_expsyms_GCJ
19471
19472 # ### END LIBTOOL TAG CONFIG: $tagname
19473
19474 __EOF__
19475
19476
19477 else
19478 # If there is no Makefile yet, we rely on a make rule to execute
19479 # `config.status --recheck' to rerun these tests and create the
19480 # libtool script then.
19481 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19482 if test -f "$ltmain_in"; then
19483 test -f Makefile && make "$ltmain"
19484 fi
19485 fi
19486
19487
19488 ac_ext=c
19489 ac_cpp='$CPP $CPPFLAGS'
19490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19493
19494 CC="$lt_save_CC"
19495
19496 else
19497 tagname=""
19498 fi
19499 ;;
19500
19501 RC)
19502
19503
19504 # Source file extension for RC test sources.
19505 ac_ext=rc
19506
19507 # Object file extension for compiled RC test sources.
19508 objext=o
19509 objext_RC=$objext
19510
19511 # Code to be used in simple compile tests
19512 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19513
19514 # Code to be used in simple link tests
19515 lt_simple_link_test_code="$lt_simple_compile_test_code"
19516
19517 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19518
19519 # If no C compiler was specified, use CC.
19520 LTCC=${LTCC-"$CC"}
19521
19522 # If no C compiler flags were specified, use CFLAGS.
19523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19524
19525 # Allow CC to be a program name with arguments.
19526 compiler=$CC
19527
19528
19529 # save warnings/boilerplate of simple test code
19530 ac_outfile=conftest.$ac_objext
19531 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19532 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19533 _lt_compiler_boilerplate=`cat conftest.err`
19534 $rm conftest*
19535
19536 ac_outfile=conftest.$ac_objext
19537 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19538 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19539 _lt_linker_boilerplate=`cat conftest.err`
19540 $rm -r conftest*
19541
19542
19543 # Allow CC to be a program name with arguments.
19544 lt_save_CC="$CC"
19545 CC=${RC-"windres"}
19546 compiler=$CC
19547 compiler_RC=$CC
19548 for cc_temp in $compiler""; do
19549 case $cc_temp in
19550 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19551 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19552 \-*) ;;
19553 *) break;;
19554 esac
19555 done
19556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19557
19558 lt_cv_prog_compiler_c_o_RC=yes
19559
19560 # The else clause should only fire when bootstrapping the
19561 # libtool distribution, otherwise you forgot to ship ltmain.sh
19562 # with your package, and you will get complaints that there are
19563 # no rules to generate ltmain.sh.
19564 if test -f "$ltmain"; then
19565 # See if we are running on zsh, and set the options which allow our commands through
19566 # without removal of \ escapes.
19567 if test -n "${ZSH_VERSION+set}" ; then
19568 setopt NO_GLOB_SUBST
19569 fi
19570 # Now quote all the things that may contain metacharacters while being
19571 # careful not to overquote the AC_SUBSTed values. We take copies of the
19572 # variables and quote the copies for generation of the libtool script.
19573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19574 SED SHELL STRIP \
19575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19577 deplibs_check_method reload_flag reload_cmds need_locks \
19578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19579 lt_cv_sys_global_symbol_to_c_name_address \
19580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19581 old_postinstall_cmds old_postuninstall_cmds \
19582 compiler_RC \
19583 CC_RC \
19584 LD_RC \
19585 lt_prog_compiler_wl_RC \
19586 lt_prog_compiler_pic_RC \
19587 lt_prog_compiler_static_RC \
19588 lt_prog_compiler_no_builtin_flag_RC \
19589 export_dynamic_flag_spec_RC \
19590 thread_safe_flag_spec_RC \
19591 whole_archive_flag_spec_RC \
19592 enable_shared_with_static_runtimes_RC \
19593 old_archive_cmds_RC \
19594 old_archive_from_new_cmds_RC \
19595 predep_objects_RC \
19596 postdep_objects_RC \
19597 predeps_RC \
19598 postdeps_RC \
19599 compiler_lib_search_path_RC \
19600 compiler_lib_search_dirs_RC \
19601 archive_cmds_RC \
19602 archive_expsym_cmds_RC \
19603 postinstall_cmds_RC \
19604 postuninstall_cmds_RC \
19605 old_archive_from_expsyms_cmds_RC \
19606 allow_undefined_flag_RC \
19607 no_undefined_flag_RC \
19608 export_symbols_cmds_RC \
19609 hardcode_libdir_flag_spec_RC \
19610 hardcode_libdir_flag_spec_ld_RC \
19611 hardcode_libdir_separator_RC \
19612 hardcode_automatic_RC \
19613 module_cmds_RC \
19614 module_expsym_cmds_RC \
19615 lt_cv_prog_compiler_c_o_RC \
19616 fix_srcfile_path_RC \
19617 exclude_expsyms_RC \
19618 include_expsyms_RC; do
19619
19620 case $var in
19621 old_archive_cmds_RC | \
19622 old_archive_from_new_cmds_RC | \
19623 archive_cmds_RC | \
19624 archive_expsym_cmds_RC | \
19625 module_cmds_RC | \
19626 module_expsym_cmds_RC | \
19627 old_archive_from_expsyms_cmds_RC | \
19628 export_symbols_cmds_RC | \
19629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19630 postinstall_cmds | postuninstall_cmds | \
19631 old_postinstall_cmds | old_postuninstall_cmds | \
19632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19633 # Double-quote double-evaled strings.
19634 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19635 ;;
19636 *)
19637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19638 ;;
19639 esac
19640 done
19641
19642 case $lt_echo in
19643 *'\$0 --fallback-echo"')
19644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19645 ;;
19646 esac
19647
19648 cfgfile="$ofile"
19649
19650 cat <<__EOF__ >> "$cfgfile"
19651 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19652
19653 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19654
19655 # Shell to use when invoking shell scripts.
19656 SHELL=$lt_SHELL
19657
19658 # Whether or not to build shared libraries.
19659 build_libtool_libs=$enable_shared
19660
19661 # Whether or not to build static libraries.
19662 build_old_libs=$enable_static
19663
19664 # Whether or not to add -lc for building shared libraries.
19665 build_libtool_need_lc=$archive_cmds_need_lc_RC
19666
19667 # Whether or not to disallow shared libs when runtime libs are static
19668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19669
19670 # Whether or not to optimize for fast installation.
19671 fast_install=$enable_fast_install
19672
19673 # The host system.
19674 host_alias=$host_alias
19675 host=$host
19676 host_os=$host_os
19677
19678 # The build system.
19679 build_alias=$build_alias
19680 build=$build
19681 build_os=$build_os
19682
19683 # An echo program that does not interpret backslashes.
19684 echo=$lt_echo
19685
19686 # The archiver.
19687 AR=$lt_AR
19688 AR_FLAGS=$lt_AR_FLAGS
19689
19690 # A C compiler.
19691 LTCC=$lt_LTCC
19692
19693 # LTCC compiler flags.
19694 LTCFLAGS=$lt_LTCFLAGS
19695
19696 # A language-specific compiler.
19697 CC=$lt_compiler_RC
19698
19699 # Is the compiler the GNU C compiler?
19700 with_gcc=$GCC_RC
19701
19702 # An ERE matcher.
19703 EGREP=$lt_EGREP
19704
19705 # The linker used to build libraries.
19706 LD=$lt_LD_RC
19707
19708 # Whether we need hard or soft links.
19709 LN_S=$lt_LN_S
19710
19711 # A BSD-compatible nm program.
19712 NM=$lt_NM
19713
19714 # A symbol stripping program
19715 STRIP=$lt_STRIP
19716
19717 # Used to examine libraries when file_magic_cmd begins "file"
19718 MAGIC_CMD=$MAGIC_CMD
19719
19720 # Used on cygwin: DLL creation program.
19721 DLLTOOL="$DLLTOOL"
19722
19723 # Used on cygwin: object dumper.
19724 OBJDUMP="$OBJDUMP"
19725
19726 # Used on cygwin: assembler.
19727 AS="$AS"
19728
19729 # The name of the directory that contains temporary libtool files.
19730 objdir=$objdir
19731
19732 # How to create reloadable object files.
19733 reload_flag=$lt_reload_flag
19734 reload_cmds=$lt_reload_cmds
19735
19736 # How to pass a linker flag through the compiler.
19737 wl=$lt_lt_prog_compiler_wl_RC
19738
19739 # Object file suffix (normally "o").
19740 objext="$ac_objext"
19741
19742 # Old archive suffix (normally "a").
19743 libext="$libext"
19744
19745 # Shared library suffix (normally ".so").
19746 shrext_cmds='$shrext_cmds'
19747
19748 # Executable file suffix (normally "").
19749 exeext="$exeext"
19750
19751 # Additional compiler flags for building library objects.
19752 pic_flag=$lt_lt_prog_compiler_pic_RC
19753 pic_mode=$pic_mode
19754
19755 # What is the maximum length of a command?
19756 max_cmd_len=$lt_cv_sys_max_cmd_len
19757
19758 # Does compiler simultaneously support -c and -o options?
19759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19760
19761 # Must we lock files when doing compilation?
19762 need_locks=$lt_need_locks
19763
19764 # Do we need the lib prefix for modules?
19765 need_lib_prefix=$need_lib_prefix
19766
19767 # Do we need a version for libraries?
19768 need_version=$need_version
19769
19770 # Whether dlopen is supported.
19771 dlopen_support=$enable_dlopen
19772
19773 # Whether dlopen of programs is supported.
19774 dlopen_self=$enable_dlopen_self
19775
19776 # Whether dlopen of statically linked programs is supported.
19777 dlopen_self_static=$enable_dlopen_self_static
19778
19779 # Compiler flag to prevent dynamic linking.
19780 link_static_flag=$lt_lt_prog_compiler_static_RC
19781
19782 # Compiler flag to turn off builtin functions.
19783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19784
19785 # Compiler flag to allow reflexive dlopens.
19786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19787
19788 # Compiler flag to generate shared objects directly from archives.
19789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19790
19791 # Compiler flag to generate thread-safe objects.
19792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19793
19794 # Library versioning type.
19795 version_type=$version_type
19796
19797 # Format of library name prefix.
19798 libname_spec=$lt_libname_spec
19799
19800 # List of archive names. First name is the real one, the rest are links.
19801 # The last name is the one that the linker finds with -lNAME.
19802 library_names_spec=$lt_library_names_spec
19803
19804 # The coded name of the library, if different from the real name.
19805 soname_spec=$lt_soname_spec
19806
19807 # Commands used to build and install an old-style archive.
19808 RANLIB=$lt_RANLIB
19809 old_archive_cmds=$lt_old_archive_cmds_RC
19810 old_postinstall_cmds=$lt_old_postinstall_cmds
19811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19812
19813 # Create an old-style archive from a shared archive.
19814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19815
19816 # Create a temporary old-style archive to link instead of a shared archive.
19817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19818
19819 # Commands used to build and install a shared archive.
19820 archive_cmds=$lt_archive_cmds_RC
19821 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19822 postinstall_cmds=$lt_postinstall_cmds
19823 postuninstall_cmds=$lt_postuninstall_cmds
19824
19825 # Commands used to build a loadable module (assumed same as above if empty)
19826 module_cmds=$lt_module_cmds_RC
19827 module_expsym_cmds=$lt_module_expsym_cmds_RC
19828
19829 # Commands to strip libraries.
19830 old_striplib=$lt_old_striplib
19831 striplib=$lt_striplib
19832
19833 # Dependencies to place before the objects being linked to create a
19834 # shared library.
19835 predep_objects=$lt_predep_objects_RC
19836
19837 # Dependencies to place after the objects being linked to create a
19838 # shared library.
19839 postdep_objects=$lt_postdep_objects_RC
19840
19841 # Dependencies to place before the objects being linked to create a
19842 # shared library.
19843 predeps=$lt_predeps_RC
19844
19845 # Dependencies to place after the objects being linked to create a
19846 # shared library.
19847 postdeps=$lt_postdeps_RC
19848
19849 # The directories searched by this compiler when creating a shared
19850 # library
19851 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19852
19853 # The library search path used internally by the compiler when linking
19854 # a shared library.
19855 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19856
19857 # Method to check whether dependent libraries are shared objects.
19858 deplibs_check_method=$lt_deplibs_check_method
19859
19860 # Command to use when deplibs_check_method == file_magic.
19861 file_magic_cmd=$lt_file_magic_cmd
19862
19863 # Flag that allows shared libraries with undefined symbols to be built.
19864 allow_undefined_flag=$lt_allow_undefined_flag_RC
19865
19866 # Flag that forces no undefined symbols.
19867 no_undefined_flag=$lt_no_undefined_flag_RC
19868
19869 # Commands used to finish a libtool library installation in a directory.
19870 finish_cmds=$lt_finish_cmds
19871
19872 # Same as above, but a single script fragment to be evaled but not shown.
19873 finish_eval=$lt_finish_eval
19874
19875 # Take the output of nm and produce a listing of raw symbols and C names.
19876 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19877
19878 # Transform the output of nm in a proper C declaration
19879 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19880
19881 # Transform the output of nm in a C name address pair
19882 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19883
19884 # This is the shared library runtime path variable.
19885 runpath_var=$runpath_var
19886
19887 # This is the shared library path variable.
19888 shlibpath_var=$shlibpath_var
19889
19890 # Is shlibpath searched before the hard-coded library search path?
19891 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19892
19893 # How to hardcode a shared library path into an executable.
19894 hardcode_action=$hardcode_action_RC
19895
19896 # Whether we should hardcode library paths into libraries.
19897 hardcode_into_libs=$hardcode_into_libs
19898
19899 # Flag to hardcode \$libdir into a binary during linking.
19900 # This must work even if \$libdir does not exist.
19901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19902
19903 # If ld is used when linking, flag to hardcode \$libdir into
19904 # a binary during linking. This must work even if \$libdir does
19905 # not exist.
19906 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19907
19908 # Whether we need a single -rpath flag with a separated argument.
19909 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19910
19911 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19912 # resulting binary.
19913 hardcode_direct=$hardcode_direct_RC
19914
19915 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19916 # resulting binary.
19917 hardcode_minus_L=$hardcode_minus_L_RC
19918
19919 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19920 # the resulting binary.
19921 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19922
19923 # Set to yes if building a shared library automatically hardcodes DIR into the library
19924 # and all subsequent libraries and executables linked against it.
19925 hardcode_automatic=$hardcode_automatic_RC
19926
19927 # Variables whose values should be saved in libtool wrapper scripts and
19928 # restored at relink time.
19929 variables_saved_for_relink="$variables_saved_for_relink"
19930
19931 # Whether libtool must link a program against all its dependency libraries.
19932 link_all_deplibs=$link_all_deplibs_RC
19933
19934 # Compile-time system search path for libraries
19935 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19936
19937 # Run-time system search path for libraries
19938 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19939
19940 # Fix the shell variable \$srcfile for the compiler.
19941 fix_srcfile_path=$lt_fix_srcfile_path
19942
19943 # Set to yes if exported symbols are required.
19944 always_export_symbols=$always_export_symbols_RC
19945
19946 # The commands to list exported symbols.
19947 export_symbols_cmds=$lt_export_symbols_cmds_RC
19948
19949 # The commands to extract the exported symbol list from a shared archive.
19950 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19951
19952 # Symbols that should not be listed in the preloaded symbols.
19953 exclude_expsyms=$lt_exclude_expsyms_RC
19954
19955 # Symbols that must always be exported.
19956 include_expsyms=$lt_include_expsyms_RC
19957
19958 # ### END LIBTOOL TAG CONFIG: $tagname
19959
19960 __EOF__
19961
19962
19963 else
19964 # If there is no Makefile yet, we rely on a make rule to execute
19965 # `config.status --recheck' to rerun these tests and create the
19966 # libtool script then.
19967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19968 if test -f "$ltmain_in"; then
19969 test -f Makefile && make "$ltmain"
19970 fi
19971 fi
19972
19973
19974 ac_ext=c
19975 ac_cpp='$CPP $CPPFLAGS'
19976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19979
19980 CC="$lt_save_CC"
19981
19982 ;;
19983
19984 *)
19985 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19986 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19987 { (exit 1); exit 1; }; }
19988 ;;
19989 esac
19990
19991 # Append the new tag name to the list of available tags.
19992 if test -n "$tagname" ; then
19993 available_tags="$available_tags $tagname"
19994 fi
19995 fi
19996 done
19997 IFS="$lt_save_ifs"
19998
19999 # Now substitute the updated list of available tags.
20000 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20001 mv "${ofile}T" "$ofile"
20002 chmod +x "$ofile"
20003 else
20004 rm -f "${ofile}T"
20005 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20006 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20007 { (exit 1); exit 1; }; }
20008 fi
20009 fi
20010
20011
20012
20013 # This can be used to rebuild libtool when needed
20014 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20015
20016 # Always use our own libtool.
20017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20018
20019 # Prevent multiple expansion
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040 ac_ext=c
20041 ac_cpp='$CPP $CPPFLAGS'
20042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20045 if test -n "$ac_tool_prefix"; then
20046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20047 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20049 $as_echo_n "checking for $ac_word... " >&6; }
20050 if test "${ac_cv_prog_CC+set}" = set; then
20051 $as_echo_n "(cached) " >&6
20052 else
20053 if test -n "$CC"; then
20054 ac_cv_prog_CC="$CC" # Let the user override the test.
20055 else
20056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20057 for as_dir in $PATH
20058 do
20059 IFS=$as_save_IFS
20060 test -z "$as_dir" && as_dir=.
20061 for ac_exec_ext in '' $ac_executable_extensions; do
20062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20063 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20065 break 2
20066 fi
20067 done
20068 done
20069 IFS=$as_save_IFS
20070
20071 fi
20072 fi
20073 CC=$ac_cv_prog_CC
20074 if test -n "$CC"; then
20075 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20076 $as_echo "$CC" >&6; }
20077 else
20078 { $as_echo "$as_me:$LINENO: result: no" >&5
20079 $as_echo "no" >&6; }
20080 fi
20081
20082
20083 fi
20084 if test -z "$ac_cv_prog_CC"; then
20085 ac_ct_CC=$CC
20086 # Extract the first word of "gcc", so it can be a program name with args.
20087 set dummy gcc; ac_word=$2
20088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20089 $as_echo_n "checking for $ac_word... " >&6; }
20090 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20091 $as_echo_n "(cached) " >&6
20092 else
20093 if test -n "$ac_ct_CC"; then
20094 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20095 else
20096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20097 for as_dir in $PATH
20098 do
20099 IFS=$as_save_IFS
20100 test -z "$as_dir" && as_dir=.
20101 for ac_exec_ext in '' $ac_executable_extensions; do
20102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20103 ac_cv_prog_ac_ct_CC="gcc"
20104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20105 break 2
20106 fi
20107 done
20108 done
20109 IFS=$as_save_IFS
20110
20111 fi
20112 fi
20113 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20114 if test -n "$ac_ct_CC"; then
20115 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20116 $as_echo "$ac_ct_CC" >&6; }
20117 else
20118 { $as_echo "$as_me:$LINENO: result: no" >&5
20119 $as_echo "no" >&6; }
20120 fi
20121
20122 if test "x$ac_ct_CC" = x; then
20123 CC=""
20124 else
20125 case $cross_compiling:$ac_tool_warned in
20126 yes:)
20127 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20129 ac_tool_warned=yes ;;
20130 esac
20131 CC=$ac_ct_CC
20132 fi
20133 else
20134 CC="$ac_cv_prog_CC"
20135 fi
20136
20137 if test -z "$CC"; then
20138 if test -n "$ac_tool_prefix"; then
20139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20140 set dummy ${ac_tool_prefix}cc; ac_word=$2
20141 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20142 $as_echo_n "checking for $ac_word... " >&6; }
20143 if test "${ac_cv_prog_CC+set}" = set; then
20144 $as_echo_n "(cached) " >&6
20145 else
20146 if test -n "$CC"; then
20147 ac_cv_prog_CC="$CC" # Let the user override the test.
20148 else
20149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150 for as_dir in $PATH
20151 do
20152 IFS=$as_save_IFS
20153 test -z "$as_dir" && as_dir=.
20154 for ac_exec_ext in '' $ac_executable_extensions; do
20155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20156 ac_cv_prog_CC="${ac_tool_prefix}cc"
20157 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20158 break 2
20159 fi
20160 done
20161 done
20162 IFS=$as_save_IFS
20163
20164 fi
20165 fi
20166 CC=$ac_cv_prog_CC
20167 if test -n "$CC"; then
20168 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20169 $as_echo "$CC" >&6; }
20170 else
20171 { $as_echo "$as_me:$LINENO: result: no" >&5
20172 $as_echo "no" >&6; }
20173 fi
20174
20175
20176 fi
20177 fi
20178 if test -z "$CC"; then
20179 # Extract the first word of "cc", so it can be a program name with args.
20180 set dummy cc; ac_word=$2
20181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20182 $as_echo_n "checking for $ac_word... " >&6; }
20183 if test "${ac_cv_prog_CC+set}" = set; then
20184 $as_echo_n "(cached) " >&6
20185 else
20186 if test -n "$CC"; then
20187 ac_cv_prog_CC="$CC" # Let the user override the test.
20188 else
20189 ac_prog_rejected=no
20190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20191 for as_dir in $PATH
20192 do
20193 IFS=$as_save_IFS
20194 test -z "$as_dir" && as_dir=.
20195 for ac_exec_ext in '' $ac_executable_extensions; do
20196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20198 ac_prog_rejected=yes
20199 continue
20200 fi
20201 ac_cv_prog_CC="cc"
20202 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20203 break 2
20204 fi
20205 done
20206 done
20207 IFS=$as_save_IFS
20208
20209 if test $ac_prog_rejected = yes; then
20210 # We found a bogon in the path, so make sure we never use it.
20211 set dummy $ac_cv_prog_CC
20212 shift
20213 if test $# != 0; then
20214 # We chose a different compiler from the bogus one.
20215 # However, it has the same basename, so the bogon will be chosen
20216 # first if we set CC to just the basename; use the full file name.
20217 shift
20218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20219 fi
20220 fi
20221 fi
20222 fi
20223 CC=$ac_cv_prog_CC
20224 if test -n "$CC"; then
20225 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20226 $as_echo "$CC" >&6; }
20227 else
20228 { $as_echo "$as_me:$LINENO: result: no" >&5
20229 $as_echo "no" >&6; }
20230 fi
20231
20232
20233 fi
20234 if test -z "$CC"; then
20235 if test -n "$ac_tool_prefix"; then
20236 for ac_prog in cl.exe
20237 do
20238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20241 $as_echo_n "checking for $ac_word... " >&6; }
20242 if test "${ac_cv_prog_CC+set}" = set; then
20243 $as_echo_n "(cached) " >&6
20244 else
20245 if test -n "$CC"; then
20246 ac_cv_prog_CC="$CC" # Let the user override the test.
20247 else
20248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20249 for as_dir in $PATH
20250 do
20251 IFS=$as_save_IFS
20252 test -z "$as_dir" && as_dir=.
20253 for ac_exec_ext in '' $ac_executable_extensions; do
20254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20257 break 2
20258 fi
20259 done
20260 done
20261 IFS=$as_save_IFS
20262
20263 fi
20264 fi
20265 CC=$ac_cv_prog_CC
20266 if test -n "$CC"; then
20267 { $as_echo "$as_me:$LINENO: result: $CC" >&5
20268 $as_echo "$CC" >&6; }
20269 else
20270 { $as_echo "$as_me:$LINENO: result: no" >&5
20271 $as_echo "no" >&6; }
20272 fi
20273
20274
20275 test -n "$CC" && break
20276 done
20277 fi
20278 if test -z "$CC"; then
20279 ac_ct_CC=$CC
20280 for ac_prog in cl.exe
20281 do
20282 # Extract the first word of "$ac_prog", so it can be a program name with args.
20283 set dummy $ac_prog; ac_word=$2
20284 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20285 $as_echo_n "checking for $ac_word... " >&6; }
20286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20287 $as_echo_n "(cached) " >&6
20288 else
20289 if test -n "$ac_ct_CC"; then
20290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20291 else
20292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20293 for as_dir in $PATH
20294 do
20295 IFS=$as_save_IFS
20296 test -z "$as_dir" && as_dir=.
20297 for ac_exec_ext in '' $ac_executable_extensions; do
20298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20299 ac_cv_prog_ac_ct_CC="$ac_prog"
20300 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20301 break 2
20302 fi
20303 done
20304 done
20305 IFS=$as_save_IFS
20306
20307 fi
20308 fi
20309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
20310 if test -n "$ac_ct_CC"; then
20311 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20312 $as_echo "$ac_ct_CC" >&6; }
20313 else
20314 { $as_echo "$as_me:$LINENO: result: no" >&5
20315 $as_echo "no" >&6; }
20316 fi
20317
20318
20319 test -n "$ac_ct_CC" && break
20320 done
20321
20322 if test "x$ac_ct_CC" = x; then
20323 CC=""
20324 else
20325 case $cross_compiling:$ac_tool_warned in
20326 yes:)
20327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20329 ac_tool_warned=yes ;;
20330 esac
20331 CC=$ac_ct_CC
20332 fi
20333 fi
20334
20335 fi
20336
20337
20338 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20340 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20341 See \`config.log' for more details." >&5
20342 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
20343 See \`config.log' for more details." >&2;}
20344 { (exit 1); exit 1; }; }; }
20345
20346 # Provide some information about the compiler.
20347 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
20348 set X $ac_compile
20349 ac_compiler=$2
20350 { (ac_try="$ac_compiler --version >&5"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20356 $as_echo "$ac_try_echo") >&5
20357 (eval "$ac_compiler --version >&5") 2>&5
20358 ac_status=$?
20359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }
20361 { (ac_try="$ac_compiler -v >&5"
20362 case "(($ac_try" in
20363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364 *) ac_try_echo=$ac_try;;
20365 esac
20366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20367 $as_echo "$ac_try_echo") >&5
20368 (eval "$ac_compiler -v >&5") 2>&5
20369 ac_status=$?
20370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }
20372 { (ac_try="$ac_compiler -V >&5"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20376 esac
20377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20378 $as_echo "$ac_try_echo") >&5
20379 (eval "$ac_compiler -V >&5") 2>&5
20380 ac_status=$?
20381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }
20383
20384 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20385 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
20386 if test "${ac_cv_c_compiler_gnu+set}" = set; then
20387 $as_echo_n "(cached) " >&6
20388 else
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395
20396 int
20397 main ()
20398 {
20399 #ifndef __GNUC__
20400 choke me
20401 #endif
20402
20403 ;
20404 return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (ac_try="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20414 $as_echo "$ac_try_echo") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_compiler_gnu=yes
20426 else
20427 $as_echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20429
20430 ac_compiler_gnu=no
20431 fi
20432
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
20435
20436 fi
20437 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
20439 if test $ac_compiler_gnu = yes; then
20440 GCC=yes
20441 else
20442 GCC=
20443 fi
20444 ac_test_CFLAGS=${CFLAGS+set}
20445 ac_save_CFLAGS=$CFLAGS
20446 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
20448 if test "${ac_cv_prog_cc_g+set}" = set; then
20449 $as_echo_n "(cached) " >&6
20450 else
20451 ac_save_c_werror_flag=$ac_c_werror_flag
20452 ac_c_werror_flag=yes
20453 ac_cv_prog_cc_g=no
20454 CFLAGS="-g"
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h. */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20461
20462 int
20463 main ()
20464 {
20465
20466 ;
20467 return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext
20471 if { (ac_try="$ac_compile"
20472 case "(($ac_try" in
20473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20474 *) ac_try_echo=$ac_try;;
20475 esac
20476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20477 $as_echo "$ac_try_echo") >&5
20478 (eval "$ac_compile") 2>conftest.er1
20479 ac_status=$?
20480 grep -v '^ *+' conftest.er1 >conftest.err
20481 rm -f conftest.er1
20482 cat conftest.err >&5
20483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest.$ac_objext; then
20488 ac_cv_prog_cc_g=yes
20489 else
20490 $as_echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20492
20493 CFLAGS=""
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500
20501 int
20502 main ()
20503 {
20504
20505 ;
20506 return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext
20510 if { (ac_try="$ac_compile"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20514 esac
20515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20516 $as_echo "$ac_try_echo") >&5
20517 (eval "$ac_compile") 2>conftest.er1
20518 ac_status=$?
20519 grep -v '^ *+' conftest.er1 >conftest.err
20520 rm -f conftest.er1
20521 cat conftest.err >&5
20522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); } && {
20524 test -z "$ac_c_werror_flag" ||
20525 test ! -s conftest.err
20526 } && test -s conftest.$ac_objext; then
20527 :
20528 else
20529 $as_echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20531
20532 ac_c_werror_flag=$ac_save_c_werror_flag
20533 CFLAGS="-g"
20534 cat >conftest.$ac_ext <<_ACEOF
20535 /* confdefs.h. */
20536 _ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540
20541 int
20542 main ()
20543 {
20544
20545 ;
20546 return 0;
20547 }
20548 _ACEOF
20549 rm -f conftest.$ac_objext
20550 if { (ac_try="$ac_compile"
20551 case "(($ac_try" in
20552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20553 *) ac_try_echo=$ac_try;;
20554 esac
20555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20556 $as_echo "$ac_try_echo") >&5
20557 (eval "$ac_compile") 2>conftest.er1
20558 ac_status=$?
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
20562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest.$ac_objext; then
20567 ac_cv_prog_cc_g=yes
20568 else
20569 $as_echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572
20573 fi
20574
20575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 fi
20577
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579 fi
20580
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 ac_c_werror_flag=$ac_save_c_werror_flag
20583 fi
20584 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20585 $as_echo "$ac_cv_prog_cc_g" >&6; }
20586 if test "$ac_test_CFLAGS" = set; then
20587 CFLAGS=$ac_save_CFLAGS
20588 elif test $ac_cv_prog_cc_g = yes; then
20589 if test "$GCC" = yes; then
20590 CFLAGS="-g -O2"
20591 else
20592 CFLAGS="-g"
20593 fi
20594 else
20595 if test "$GCC" = yes; then
20596 CFLAGS="-O2"
20597 else
20598 CFLAGS=
20599 fi
20600 fi
20601 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20602 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
20603 if test "${ac_cv_prog_cc_c89+set}" = set; then
20604 $as_echo_n "(cached) " >&6
20605 else
20606 ac_cv_prog_cc_c89=no
20607 ac_save_CC=$CC
20608 cat >conftest.$ac_ext <<_ACEOF
20609 /* confdefs.h. */
20610 _ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #include <stdarg.h>
20615 #include <stdio.h>
20616 #include <sys/types.h>
20617 #include <sys/stat.h>
20618 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
20619 struct buf { int x; };
20620 FILE * (*rcsopen) (struct buf *, struct stat *, int);
20621 static char *e (p, i)
20622 char **p;
20623 int i;
20624 {
20625 return p[i];
20626 }
20627 static char *f (char * (*g) (char **, int), char **p, ...)
20628 {
20629 char *s;
20630 va_list v;
20631 va_start (v,p);
20632 s = g (p, va_arg (v,int));
20633 va_end (v);
20634 return s;
20635 }
20636
20637 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
20638 function prototypes and stuff, but not '\xHH' hex character constants.
20639 These don't provoke an error unfortunately, instead are silently treated
20640 as 'x'. The following induces an error, until -std is added to get
20641 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
20642 array size at least. It's necessary to write '\x00'==0 to get something
20643 that's true only with -std. */
20644 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20645
20646 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20647 inside strings and character constants. */
20648 #define FOO(x) 'x'
20649 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20650
20651 int test (int i, double x);
20652 struct s1 {int (*f) (int a);};
20653 struct s2 {int (*f) (double a);};
20654 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20655 int argc;
20656 char **argv;
20657 int
20658 main ()
20659 {
20660 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
20661 ;
20662 return 0;
20663 }
20664 _ACEOF
20665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20666 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20667 do
20668 CC="$ac_save_CC $ac_arg"
20669 rm -f conftest.$ac_objext
20670 if { (ac_try="$ac_compile"
20671 case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20674 esac
20675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20676 $as_echo "$ac_try_echo") >&5
20677 (eval "$ac_compile") 2>conftest.er1
20678 ac_status=$?
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
20682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } && {
20684 test -z "$ac_c_werror_flag" ||
20685 test ! -s conftest.err
20686 } && test -s conftest.$ac_objext; then
20687 ac_cv_prog_cc_c89=$ac_arg
20688 else
20689 $as_echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20691
20692
20693 fi
20694
20695 rm -f core conftest.err conftest.$ac_objext
20696 test "x$ac_cv_prog_cc_c89" != "xno" && break
20697 done
20698 rm -f conftest.$ac_ext
20699 CC=$ac_save_CC
20700
20701 fi
20702 # AC_CACHE_VAL
20703 case "x$ac_cv_prog_cc_c89" in
20704 x)
20705 { $as_echo "$as_me:$LINENO: result: none needed" >&5
20706 $as_echo "none needed" >&6; } ;;
20707 xno)
20708 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
20709 $as_echo "unsupported" >&6; } ;;
20710 *)
20711 CC="$CC $ac_cv_prog_cc_c89"
20712 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20713 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
20714 esac
20715
20716
20717 ac_ext=c
20718 ac_cpp='$CPP $CPPFLAGS'
20719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20722
20723 depcc="$CC" am_compiler_list=
20724
20725 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20726 $as_echo_n "checking dependency style of $depcc... " >&6; }
20727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20728 $as_echo_n "(cached) " >&6
20729 else
20730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20731 # We make a subdir and do the tests there. Otherwise we can end up
20732 # making bogus files that we don't know about and never remove. For
20733 # instance it was reported that on HP-UX the gcc test will end up
20734 # making a dummy file named `D' -- because `-MD' means `put the output
20735 # in D'.
20736 mkdir conftest.dir
20737 # Copy depcomp to subdir because otherwise we won't find it if we're
20738 # using a relative directory.
20739 cp "$am_depcomp" conftest.dir
20740 cd conftest.dir
20741 # We will build objects and dependencies in a subdirectory because
20742 # it helps to detect inapplicable dependency modes. For instance
20743 # both Tru64's cc and ICC support -MD to output dependencies as a
20744 # side effect of compilation, but ICC will put the dependencies in
20745 # the current directory while Tru64 will put them in the object
20746 # directory.
20747 mkdir sub
20748
20749 am_cv_CC_dependencies_compiler_type=none
20750 if test "$am_compiler_list" = ""; then
20751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20752 fi
20753 am__universal=false
20754 case " $depcc " in #(
20755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20756 esac
20757
20758 for depmode in $am_compiler_list; do
20759 # Setup a source with many dependencies, because some compilers
20760 # like to wrap large dependency lists on column 80 (with \), and
20761 # we should not choose a depcomp mode which is confused by this.
20762 #
20763 # We need to recreate these files for each test, as the compiler may
20764 # overwrite some of them when testing with obscure command lines.
20765 # This happens at least with the AIX C compiler.
20766 : > sub/conftest.c
20767 for i in 1 2 3 4 5 6; do
20768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20770 # Solaris 8's {/usr,}/bin/sh.
20771 touch sub/conftst$i.h
20772 done
20773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20774
20775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20776 # mode. It turns out that the SunPro C++ compiler does not properly
20777 # handle `-M -o', and we need to detect this. Also, some Intel
20778 # versions had trouble with output in subdirs
20779 am__obj=sub/conftest.${OBJEXT-o}
20780 am__minus_obj="-o $am__obj"
20781 case $depmode in
20782 gcc)
20783 # This depmode causes a compiler race in universal mode.
20784 test "$am__universal" = false || continue
20785 ;;
20786 nosideeffect)
20787 # after this tag, mechanisms are not by side-effect, so they'll
20788 # only be used when explicitly requested
20789 if test "x$enable_dependency_tracking" = xyes; then
20790 continue
20791 else
20792 break
20793 fi
20794 ;;
20795 msvisualcpp | msvcmsys)
20796 # This compiler won't grok `-c -o', but also, the minuso test has
20797 # not run yet. These depmodes are late enough in the game, and
20798 # so weak that their functioning should not be impacted.
20799 am__obj=conftest.${OBJEXT-o}
20800 am__minus_obj=
20801 ;;
20802 none) break ;;
20803 esac
20804 if depmode=$depmode \
20805 source=sub/conftest.c object=$am__obj \
20806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20808 >/dev/null 2>conftest.err &&
20809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20813 # icc doesn't choke on unknown options, it will just issue warnings
20814 # or remarks (even with -Werror). So we grep stderr for any message
20815 # that says an option was ignored or not supported.
20816 # When given -MP, icc 7.0 and 7.1 complain thusly:
20817 # icc: Command line warning: ignoring option '-M'; no argument required
20818 # The diagnosis changed in icc 8.0:
20819 # icc: Command line remark: option '-MP' not supported
20820 if (grep 'ignoring option' conftest.err ||
20821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20822 am_cv_CC_dependencies_compiler_type=$depmode
20823 break
20824 fi
20825 fi
20826 done
20827
20828 cd ..
20829 rm -rf conftest.dir
20830 else
20831 am_cv_CC_dependencies_compiler_type=none
20832 fi
20833
20834 fi
20835 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20838
20839 if
20840 test "x$enable_dependency_tracking" != xno \
20841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20842 am__fastdepCC_TRUE=
20843 am__fastdepCC_FALSE='#'
20844 else
20845 am__fastdepCC_TRUE='#'
20846 am__fastdepCC_FALSE=
20847 fi
20848
20849
20850
20851
20852
20853
20854
20855 # Check whether --with-xorg-module-dir was given.
20856 if test "${with_xorg_module_dir+set}" = set; then
20857 withval=$with_xorg_module_dir; moduledir="$withval"
20858 else
20859 moduledir="$libdir/xorg/modules"
20860 fi
20861
20862
20863
20864
20865 # Checks for extensions
20866
20867 SAVE_CFLAGS="$CFLAGS"
20868 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20869 cat >conftest.$ac_ext <<_ACEOF
20870 /* confdefs.h. */
20871 _ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875
20876 #include "xorg-server.h"
20877 #if !defined RANDR
20878 #error RANDR not defined
20879 #endif
20880
20881 int
20882 main ()
20883 {
20884
20885 ;
20886 return 0;
20887 }
20888 _ACEOF
20889 rm -f conftest.$ac_objext
20890 if { (ac_try="$ac_compile"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20894 esac
20895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20896 $as_echo "$ac_try_echo") >&5
20897 (eval "$ac_compile") 2>conftest.er1
20898 ac_status=$?
20899 grep -v '^ *+' conftest.er1 >conftest.err
20900 rm -f conftest.er1
20901 cat conftest.err >&5
20902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); } && {
20904 test -z "$ac_c_werror_flag" ||
20905 test ! -s conftest.err
20906 } && test -s conftest.$ac_objext; then
20907 _EXT_CHECK=yes
20908 else
20909 $as_echo "$as_me: failed program was:" >&5
20910 sed 's/^/| /' conftest.$ac_ext >&5
20911
20912 _EXT_CHECK=no
20913 fi
20914
20915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20916 CFLAGS="$SAVE_CFLAGS"
20917 { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20918 $as_echo_n "checking if RANDR is defined... " >&6; }
20919 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20920 $as_echo "$_EXT_CHECK" >&6; }
20921 if test "$_EXT_CHECK" != no; then
20922 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20923 fi
20924
20925
20926 SAVE_CFLAGS="$CFLAGS"
20927 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h. */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h. */
20934
20935 #include "xorg-server.h"
20936 #if !defined RENDER
20937 #error RENDER not defined
20938 #endif
20939
20940 int
20941 main ()
20942 {
20943
20944 ;
20945 return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (ac_try="$ac_compile"
20950 case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20953 esac
20954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20955 $as_echo "$ac_try_echo") >&5
20956 (eval "$ac_compile") 2>conftest.er1
20957 ac_status=$?
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
20961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } && {
20963 test -z "$ac_c_werror_flag" ||
20964 test ! -s conftest.err
20965 } && test -s conftest.$ac_objext; then
20966 _EXT_CHECK=yes
20967 else
20968 $as_echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971 _EXT_CHECK=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 CFLAGS="$SAVE_CFLAGS"
20976 { $as_echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20977 $as_echo_n "checking if RENDER is defined... " >&6; }
20978 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20979 $as_echo "$_EXT_CHECK" >&6; }
20980 if test "$_EXT_CHECK" != no; then
20981 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20982 fi
20983
20984
20985 SAVE_CFLAGS="$CFLAGS"
20986 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20987 cat >conftest.$ac_ext <<_ACEOF
20988 /* confdefs.h. */
20989 _ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20993
20994 #include "xorg-server.h"
20995 #if !defined DPMSExtension
20996 #error DPMSExtension not defined
20997 #endif
20998
20999 int
21000 main ()
21001 {
21002
21003 ;
21004 return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext
21008 if { (ac_try="$ac_compile"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21012 esac
21013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21014 $as_echo "$ac_try_echo") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21016 ac_status=$?
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
21020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 _EXT_CHECK=yes
21026 else
21027 $as_echo "$as_me: failed program was:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21029
21030 _EXT_CHECK=no
21031 fi
21032
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 CFLAGS="$SAVE_CFLAGS"
21035 { $as_echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
21036 $as_echo_n "checking if DPMSExtension is defined... " >&6; }
21037 { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
21038 $as_echo "$_EXT_CHECK" >&6; }
21039 if test "$_EXT_CHECK" != no; then
21040 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
21041 fi
21042
21043
21044 # Checks for pkg-config packages
21045
21046
21047 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21048 if test -n "$ac_tool_prefix"; then
21049 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21050 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21051 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21052 $as_echo_n "checking for $ac_word... " >&6; }
21053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21054 $as_echo_n "(cached) " >&6
21055 else
21056 case $PKG_CONFIG in
21057 [\\/]* | ?:[\\/]*)
21058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21059 ;;
21060 *)
21061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21062 for as_dir in $PATH
21063 do
21064 IFS=$as_save_IFS
21065 test -z "$as_dir" && as_dir=.
21066 for ac_exec_ext in '' $ac_executable_extensions; do
21067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21070 break 2
21071 fi
21072 done
21073 done
21074 IFS=$as_save_IFS
21075
21076 ;;
21077 esac
21078 fi
21079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21080 if test -n "$PKG_CONFIG"; then
21081 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21082 $as_echo "$PKG_CONFIG" >&6; }
21083 else
21084 { $as_echo "$as_me:$LINENO: result: no" >&5
21085 $as_echo "no" >&6; }
21086 fi
21087
21088
21089 fi
21090 if test -z "$ac_cv_path_PKG_CONFIG"; then
21091 ac_pt_PKG_CONFIG=$PKG_CONFIG
21092 # Extract the first word of "pkg-config", so it can be a program name with args.
21093 set dummy pkg-config; ac_word=$2
21094 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21095 $as_echo_n "checking for $ac_word... " >&6; }
21096 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21097 $as_echo_n "(cached) " >&6
21098 else
21099 case $ac_pt_PKG_CONFIG in
21100 [\\/]* | ?:[\\/]*)
21101 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21102 ;;
21103 *)
21104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21105 for as_dir in $PATH
21106 do
21107 IFS=$as_save_IFS
21108 test -z "$as_dir" && as_dir=.
21109 for ac_exec_ext in '' $ac_executable_extensions; do
21110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21111 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21113 break 2
21114 fi
21115 done
21116 done
21117 IFS=$as_save_IFS
21118
21119 ;;
21120 esac
21121 fi
21122 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21123 if test -n "$ac_pt_PKG_CONFIG"; then
21124 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21125 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21126 else
21127 { $as_echo "$as_me:$LINENO: result: no" >&5
21128 $as_echo "no" >&6; }
21129 fi
21130
21131 if test "x$ac_pt_PKG_CONFIG" = x; then
21132 PKG_CONFIG=""
21133 else
21134 case $cross_compiling:$ac_tool_warned in
21135 yes:)
21136 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
21137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21138 ac_tool_warned=yes ;;
21139 esac
21140 PKG_CONFIG=$ac_pt_PKG_CONFIG
21141 fi
21142 else
21143 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21144 fi
21145
21146 fi
21147 if test -n "$PKG_CONFIG"; then
21148 _pkg_min_version=0.9.0
21149 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21150 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21151 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21152 { $as_echo "$as_me:$LINENO: result: yes" >&5
21153 $as_echo "yes" >&6; }
21154 else
21155 { $as_echo "$as_me:$LINENO: result: no" >&5
21156 $as_echo "no" >&6; }
21157 PKG_CONFIG=""
21158 fi
21159
21160 fi
21161
21162 pkg_failed=no
21163 { $as_echo "$as_me:$LINENO: checking for XORG" >&5
21164 $as_echo_n "checking for XORG... " >&6; }
21165
21166 if test -n "$XORG_CFLAGS"; then
21167 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
21168 elif test -n "$PKG_CONFIG"; then
21169 if test -n "$PKG_CONFIG" && \
21170 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21171 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21172 ac_status=$?
21173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; then
21175 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21176 else
21177 pkg_failed=yes
21178 fi
21179 else
21180 pkg_failed=untried
21181 fi
21182 if test -n "$XORG_LIBS"; then
21183 pkg_cv_XORG_LIBS="$XORG_LIBS"
21184 elif test -n "$PKG_CONFIG"; then
21185 if test -n "$PKG_CONFIG" && \
21186 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
21187 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
21188 ac_status=$?
21189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; then
21191 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
21192 else
21193 pkg_failed=yes
21194 fi
21195 else
21196 pkg_failed=untried
21197 fi
21198
21199
21200
21201 if test $pkg_failed = yes; then
21202
21203 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21204 _pkg_short_errors_supported=yes
21205 else
21206 _pkg_short_errors_supported=no
21207 fi
21208 if test $_pkg_short_errors_supported = yes; then
21209 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21210 else
21211 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
21212 fi
21213 # Put the nasty error message in config.log where it belongs
21214 echo "$XORG_PKG_ERRORS" >&5
21215
21216 { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21217
21218 $XORG_PKG_ERRORS
21219
21220 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21221 installed software in a non-standard prefix.
21222
21223 Alternatively, you may set the environment variables XORG_CFLAGS
21224 and XORG_LIBS to avoid the need to call pkg-config.
21225 See the pkg-config man page for more details.
21226 " >&5
21227 $as_echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
21228
21229 $XORG_PKG_ERRORS
21230
21231 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21232 installed software in a non-standard prefix.
21233
21234 Alternatively, you may set the environment variables XORG_CFLAGS
21235 and XORG_LIBS to avoid the need to call pkg-config.
21236 See the pkg-config man page for more details.
21237 " >&2;}
21238 { (exit 1); exit 1; }; }
21239 elif test $pkg_failed = untried; then
21240 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21242 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21243 is in your PATH or set the PKG_CONFIG environment variable to the full
21244 path to pkg-config.
21245
21246 Alternatively, you may set the environment variables XORG_CFLAGS
21247 and XORG_LIBS to avoid the need to call pkg-config.
21248 See the pkg-config man page for more details.
21249
21250 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21251 See \`config.log' for more details." >&5
21252 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21253 is in your PATH or set the PKG_CONFIG environment variable to the full
21254 path to pkg-config.
21255
21256 Alternatively, you may set the environment variables XORG_CFLAGS
21257 and XORG_LIBS to avoid the need to call pkg-config.
21258 See the pkg-config man page for more details.
21259
21260 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21261 See \`config.log' for more details." >&2;}
21262 { (exit 1); exit 1; }; }; }
21263 else
21264 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
21265 XORG_LIBS=$pkg_cv_XORG_LIBS
21266 { $as_echo "$as_me:$LINENO: result: yes" >&5
21267 $as_echo "yes" >&6; }
21268 :
21269 fi
21270 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
21271
21272 CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
21273 INCLUDES="$XORG_INCS -I${sdkdir} "'-I$(top_srcdir)/src -I$(prefix)/include'
21274
21275
21276
21277 # Checks for libraries.
21278 SAVE_CPPFLAGS="$CPPFLAGS"
21279 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
21280 { $as_echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
21281 $as_echo_n "checking whether XSERVER_LIBPCIACCESS is declared... " >&6; }
21282 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
21283 $as_echo_n "(cached) " >&6
21284 else
21285 cat >conftest.$ac_ext <<_ACEOF
21286 /* confdefs.h. */
21287 _ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 #include "xorg-server.h"
21292
21293 int
21294 main ()
21295 {
21296 #ifndef XSERVER_LIBPCIACCESS
21297 (void) XSERVER_LIBPCIACCESS;
21298 #endif
21299
21300 ;
21301 return 0;
21302 }
21303 _ACEOF
21304 rm -f conftest.$ac_objext
21305 if { (ac_try="$ac_compile"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_compile") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest.$ac_objext; then
21322 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
21323 else
21324 $as_echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
21328 fi
21329
21330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 fi
21332 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
21333 $as_echo "$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
21334 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = x""yes; then
21335 XSERVER_LIBPCIACCESS=yes
21336 else
21337 XSERVER_LIBPCIACCESS=no
21338 fi
21339
21340 CPPFLAGS="$SAVE_CPPFLAGS"
21341
21342 # Checks for header files.
21343 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21344 $as_echo_n "checking for ANSI C header files... " >&6; }
21345 if test "${ac_cv_header_stdc+set}" = set; then
21346 $as_echo_n "(cached) " >&6
21347 else
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h. */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h. */
21354 #include <stdlib.h>
21355 #include <stdarg.h>
21356 #include <string.h>
21357 #include <float.h>
21358
21359 int
21360 main ()
21361 {
21362
21363 ;
21364 return 0;
21365 }
21366 _ACEOF
21367 rm -f conftest.$ac_objext
21368 if { (ac_try="$ac_compile"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21372 esac
21373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21374 $as_echo "$ac_try_echo") >&5
21375 (eval "$ac_compile") 2>conftest.er1
21376 ac_status=$?
21377 grep -v '^ *+' conftest.er1 >conftest.err
21378 rm -f conftest.er1
21379 cat conftest.err >&5
21380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } && {
21382 test -z "$ac_c_werror_flag" ||
21383 test ! -s conftest.err
21384 } && test -s conftest.$ac_objext; then
21385 ac_cv_header_stdc=yes
21386 else
21387 $as_echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390 ac_cv_header_stdc=no
21391 fi
21392
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394
21395 if test $ac_cv_header_stdc = yes; then
21396 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21397 cat >conftest.$ac_ext <<_ACEOF
21398 /* confdefs.h. */
21399 _ACEOF
21400 cat confdefs.h >>conftest.$ac_ext
21401 cat >>conftest.$ac_ext <<_ACEOF
21402 /* end confdefs.h. */
21403 #include <string.h>
21404
21405 _ACEOF
21406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21407 $EGREP "memchr" >/dev/null 2>&1; then
21408 :
21409 else
21410 ac_cv_header_stdc=no
21411 fi
21412 rm -f conftest*
21413
21414 fi
21415
21416 if test $ac_cv_header_stdc = yes; then
21417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21418 cat >conftest.$ac_ext <<_ACEOF
21419 /* confdefs.h. */
21420 _ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21424 #include <stdlib.h>
21425
21426 _ACEOF
21427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21428 $EGREP "free" >/dev/null 2>&1; then
21429 :
21430 else
21431 ac_cv_header_stdc=no
21432 fi
21433 rm -f conftest*
21434
21435 fi
21436
21437 if test $ac_cv_header_stdc = yes; then
21438 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21439 if test "$cross_compiling" = yes; then
21440 :
21441 else
21442 cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h. */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 #include <ctype.h>
21449 #include <stdlib.h>
21450 #if ((' ' & 0x0FF) == 0x020)
21451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21453 #else
21454 # define ISLOWER(c) \
21455 (('a' <= (c) && (c) <= 'i') \
21456 || ('j' <= (c) && (c) <= 'r') \
21457 || ('s' <= (c) && (c) <= 'z'))
21458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21459 #endif
21460
21461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21462 int
21463 main ()
21464 {
21465 int i;
21466 for (i = 0; i < 256; i++)
21467 if (XOR (islower (i), ISLOWER (i))
21468 || toupper (i) != TOUPPER (i))
21469 return 2;
21470 return 0;
21471 }
21472 _ACEOF
21473 rm -f conftest$ac_exeext
21474 if { (ac_try="$ac_link"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478 esac
21479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21480 $as_echo "$ac_try_echo") >&5
21481 (eval "$ac_link") 2>&5
21482 ac_status=$?
21483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485 { (case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21490 $as_echo "$ac_try_echo") >&5
21491 (eval "$ac_try") 2>&5
21492 ac_status=$?
21493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); }; }; then
21495 :
21496 else
21497 $as_echo "$as_me: program exited with status $ac_status" >&5
21498 $as_echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21500
21501 ( exit $ac_status )
21502 ac_cv_header_stdc=no
21503 fi
21504 rm -rf conftest.dSYM
21505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21506 fi
21507
21508
21509 fi
21510 fi
21511 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21512 $as_echo "$ac_cv_header_stdc" >&6; }
21513 if test $ac_cv_header_stdc = yes; then
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define STDC_HEADERS 1
21517 _ACEOF
21518
21519 fi
21520
21521
21522 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21523
21524 pkg_failed=no
21525 { $as_echo "$as_me:$LINENO: checking for PCIACCESS" >&5
21526 $as_echo_n "checking for PCIACCESS... " >&6; }
21527
21528 if test -n "$PCIACCESS_CFLAGS"; then
21529 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
21530 elif test -n "$PKG_CONFIG"; then
21531 if test -n "$PKG_CONFIG" && \
21532 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21533 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21534 ac_status=$?
21535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; then
21537 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
21538 else
21539 pkg_failed=yes
21540 fi
21541 else
21542 pkg_failed=untried
21543 fi
21544 if test -n "$PCIACCESS_LIBS"; then
21545 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
21546 elif test -n "$PKG_CONFIG"; then
21547 if test -n "$PKG_CONFIG" && \
21548 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
21549 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
21550 ac_status=$?
21551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; then
21553 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
21554 else
21555 pkg_failed=yes
21556 fi
21557 else
21558 pkg_failed=untried
21559 fi
21560
21561
21562
21563 if test $pkg_failed = yes; then
21564
21565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21566 _pkg_short_errors_supported=yes
21567 else
21568 _pkg_short_errors_supported=no
21569 fi
21570 if test $_pkg_short_errors_supported = yes; then
21571 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
21572 else
21573 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
21574 fi
21575 # Put the nasty error message in config.log where it belongs
21576 echo "$PCIACCESS_PKG_ERRORS" >&5
21577
21578 { { $as_echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met:
21579
21580 $PCIACCESS_PKG_ERRORS
21581
21582 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21583 installed software in a non-standard prefix.
21584
21585 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21586 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21587 See the pkg-config man page for more details.
21588 " >&5
21589 $as_echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met:
21590
21591 $PCIACCESS_PKG_ERRORS
21592
21593 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21594 installed software in a non-standard prefix.
21595
21596 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21597 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21598 See the pkg-config man page for more details.
21599 " >&2;}
21600 { (exit 1); exit 1; }; }
21601 elif test $pkg_failed = untried; then
21602 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
21603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21604 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21605 is in your PATH or set the PKG_CONFIG environment variable to the full
21606 path to pkg-config.
21607
21608 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21609 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21610 See the pkg-config man page for more details.
21611
21612 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21613 See \`config.log' for more details." >&5
21614 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21615 is in your PATH or set the PKG_CONFIG environment variable to the full
21616 path to pkg-config.
21617
21618 Alternatively, you may set the environment variables PCIACCESS_CFLAGS
21619 and PCIACCESS_LIBS to avoid the need to call pkg-config.
21620 See the pkg-config man page for more details.
21621
21622 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21623 See \`config.log' for more details." >&2;}
21624 { (exit 1); exit 1; }; }; }
21625 else
21626 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
21627 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
21628 { $as_echo "$as_me:$LINENO: result: yes" >&5
21629 $as_echo "yes" >&6; }
21630 :
21631 fi
21632 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
21633 fi
21634 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
21635 XSERVER_LIBPCIACCESS_TRUE=
21636 XSERVER_LIBPCIACCESS_FALSE='#'
21637 else
21638 XSERVER_LIBPCIACCESS_TRUE='#'
21639 XSERVER_LIBPCIACCESS_FALSE=
21640 fi
21641
21642
21643
21644 DRIVER_NAME=ark
21645
21646
21647
21648
21649
21650 if test x$APP_MAN_SUFFIX = x ; then
21651 APP_MAN_SUFFIX=1
21652 fi
21653 if test x$APP_MAN_DIR = x ; then
21654 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21655 fi
21656
21657 if test x$LIB_MAN_SUFFIX = x ; then
21658 LIB_MAN_SUFFIX=3
21659 fi
21660 if test x$LIB_MAN_DIR = x ; then
21661 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21662 fi
21663
21664 if test x$FILE_MAN_SUFFIX = x ; then
21665 case $host_os in
21666 solaris*) FILE_MAN_SUFFIX=4 ;;
21667 *) FILE_MAN_SUFFIX=5 ;;
21668 esac
21669 fi
21670 if test x$FILE_MAN_DIR = x ; then
21671 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21672 fi
21673
21674 if test x$MISC_MAN_SUFFIX = x ; then
21675 case $host_os in
21676 solaris*) MISC_MAN_SUFFIX=5 ;;
21677 *) MISC_MAN_SUFFIX=7 ;;
21678 esac
21679 fi
21680 if test x$MISC_MAN_DIR = x ; then
21681 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21682 fi
21683
21684 if test x$DRIVER_MAN_SUFFIX = x ; then
21685 case $host_os in
21686 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21687 *) DRIVER_MAN_SUFFIX=4 ;;
21688 esac
21689 fi
21690 if test x$DRIVER_MAN_DIR = x ; then
21691 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21692 fi
21693
21694 if test x$ADMIN_MAN_SUFFIX = x ; then
21695 case $host_os in
21696 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21697 *) ADMIN_MAN_SUFFIX=8 ;;
21698 esac
21699 fi
21700 if test x$ADMIN_MAN_DIR = x ; then
21701 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21702 fi
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720 # Check whether --with-release-version was given.
21721 if test "${with_release_version+set}" = set; then
21722 withval=$with_release_version; RELEASE_VERSION="$withval"
21723 else
21724 RELEASE_VERSION=""
21725 fi
21726
21727 if test "x$RELEASE_VERSION" != "x"; then
21728 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21729 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21730 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21731 $as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21732 fi
21733
21734 cat >>confdefs.h <<_ACEOF
21735 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21736 _ACEOF
21737
21738 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21739 if test "x$PVM" = "x"; then
21740 PVM="0"
21741 fi
21742
21743 cat >>confdefs.h <<_ACEOF
21744 #define PACKAGE_VERSION_MINOR $PVM
21745 _ACEOF
21746
21747 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21748 if test "x$PVP" = "x"; then
21749 PVP="0"
21750 fi
21751
21752 cat >>confdefs.h <<_ACEOF
21753 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21754 _ACEOF
21755
21756
21757
21758 ac_config_files="$ac_config_files Makefile src/Makefile"
21759
21760 cat >confcache <<\_ACEOF
21761 # This file is a shell script that caches the results of configure
21762 # tests run on this system so they can be shared between configure
21763 # scripts and configure runs, see configure's option --config-cache.
21764 # It is not useful on other systems. If it contains results you don't
21765 # want to keep, you may remove or edit it.
21766 #
21767 # config.status only pays attention to the cache file if you give it
21768 # the --recheck option to rerun configure.
21769 #
21770 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21771 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21772 # following values.
21773
21774 _ACEOF
21775
21776 # The following way of writing the cache mishandles newlines in values,
21777 # but we know of no workaround that is simple, portable, and efficient.
21778 # So, we kill variables containing newlines.
21779 # Ultrix sh set writes to stderr and can't be redirected directly,
21780 # and sets the high bit in the cache file unless we assign to the vars.
21781 (
21782 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21783 eval ac_val=\$$ac_var
21784 case $ac_val in #(
21785 *${as_nl}*)
21786 case $ac_var in #(
21787 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21788 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21789 esac
21790 case $ac_var in #(
21791 _ | IFS | as_nl) ;; #(
21792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21793 *) $as_unset $ac_var ;;
21794 esac ;;
21795 esac
21796 done
21797
21798 (set) 2>&1 |
21799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21800 *${as_nl}ac_space=\ *)
21801 # `set' does not quote correctly, so add quotes (double-quote
21802 # substitution turns \\\\ into \\, and sed turns \\ into \).
21803 sed -n \
21804 "s/'/'\\\\''/g;
21805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21806 ;; #(
21807 *)
21808 # `set' quotes correctly as required by POSIX, so do not add quotes.
21809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21810 ;;
21811 esac |
21812 sort
21813 ) |
21814 sed '
21815 /^ac_cv_env_/b end
21816 t clear
21817 :clear
21818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21819 t end
21820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21821 :end' >>confcache
21822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21823 if test -w "$cache_file"; then
21824 test "x$cache_file" != "x/dev/null" &&
21825 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21826 $as_echo "$as_me: updating cache $cache_file" >&6;}
21827 cat confcache >$cache_file
21828 else
21829 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21830 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21831 fi
21832 fi
21833 rm -f confcache
21834
21835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21836 # Let make expand exec_prefix.
21837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21838
21839 DEFS=-DHAVE_CONFIG_H
21840
21841 ac_libobjs=
21842 ac_ltlibobjs=
21843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21844 # 1. Remove the extension, and $U if already installed.
21845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21846 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21848 # will be set to the directory where LIBOBJS objects are built.
21849 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21850 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21851 done
21852 LIBOBJS=$ac_libobjs
21853
21854 LTLIBOBJS=$ac_ltlibobjs
21855
21856
21857 if test -n "$EXEEXT"; then
21858 am__EXEEXT_TRUE=
21859 am__EXEEXT_FALSE='#'
21860 else
21861 am__EXEEXT_TRUE='#'
21862 am__EXEEXT_FALSE=
21863 fi
21864
21865 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21866 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21867 Usually this means the macro was only invoked conditionally." >&5
21868 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21869 Usually this means the macro was only invoked conditionally." >&2;}
21870 { (exit 1); exit 1; }; }
21871 fi
21872 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21873 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21874 Usually this means the macro was only invoked conditionally." >&5
21875 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21876 Usually this means the macro was only invoked conditionally." >&2;}
21877 { (exit 1); exit 1; }; }
21878 fi
21879 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21880 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21881 Usually this means the macro was only invoked conditionally." >&5
21882 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21883 Usually this means the macro was only invoked conditionally." >&2;}
21884 { (exit 1); exit 1; }; }
21885 fi
21886 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21887 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21888 Usually this means the macro was only invoked conditionally." >&5
21889 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21890 Usually this means the macro was only invoked conditionally." >&2;}
21891 { (exit 1); exit 1; }; }
21892 fi
21893 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21894 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21895 Usually this means the macro was only invoked conditionally." >&5
21896 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21897 Usually this means the macro was only invoked conditionally." >&2;}
21898 { (exit 1); exit 1; }; }
21899 fi
21900 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21901 { { $as_echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21902 Usually this means the macro was only invoked conditionally." >&5
21903 $as_echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21904 Usually this means the macro was only invoked conditionally." >&2;}
21905 { (exit 1); exit 1; }; }
21906 fi
21907
21908 : ${CONFIG_STATUS=./config.status}
21909 ac_write_fail=0
21910 ac_clean_files_save=$ac_clean_files
21911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21912 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21913 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21914 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21915 #! $SHELL
21916 # Generated by $as_me.
21917 # Run this file to recreate the current configuration.
21918 # Compiler output produced by configure, useful for debugging
21919 # configure, is in config.log if it exists.
21920
21921 debug=false
21922 ac_cs_recheck=false
21923 ac_cs_silent=false
21924 SHELL=\${CONFIG_SHELL-$SHELL}
21925 _ACEOF
21926
21927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21928 ## --------------------- ##
21929 ## M4sh Initialization. ##
21930 ## --------------------- ##
21931
21932 # Be more Bourne compatible
21933 DUALCASE=1; export DUALCASE # for MKS sh
21934 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21935 emulate sh
21936 NULLCMD=:
21937 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21938 # is contrary to our usage. Disable this feature.
21939 alias -g '${1+"$@"}'='"$@"'
21940 setopt NO_GLOB_SUBST
21941 else
21942 case `(set -o) 2>/dev/null` in
21943 *posix*) set -o posix ;;
21944 esac
21945
21946 fi
21947
21948
21949
21950
21951 # PATH needs CR
21952 # Avoid depending upon Character Ranges.
21953 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21954 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21955 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21956 as_cr_digits='0123456789'
21957 as_cr_alnum=$as_cr_Letters$as_cr_digits
21958
21959 as_nl='
21960 '
21961 export as_nl
21962 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21963 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21964 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21965 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21966 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21967 as_echo='printf %s\n'
21968 as_echo_n='printf %s'
21969 else
21970 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21971 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21972 as_echo_n='/usr/ucb/echo -n'
21973 else
21974 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21975 as_echo_n_body='eval
21976 arg=$1;
21977 case $arg in
21978 *"$as_nl"*)
21979 expr "X$arg" : "X\\(.*\\)$as_nl";
21980 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21981 esac;
21982 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21983 '
21984 export as_echo_n_body
21985 as_echo_n='sh -c $as_echo_n_body as_echo'
21986 fi
21987 export as_echo_body
21988 as_echo='sh -c $as_echo_body as_echo'
21989 fi
21990
21991 # The user is always right.
21992 if test "${PATH_SEPARATOR+set}" != set; then
21993 PATH_SEPARATOR=:
21994 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21995 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21996 PATH_SEPARATOR=';'
21997 }
21998 fi
21999
22000 # Support unset when possible.
22001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22002 as_unset=unset
22003 else
22004 as_unset=false
22005 fi
22006
22007
22008 # IFS
22009 # We need space, tab and new line, in precisely that order. Quoting is
22010 # there to prevent editors from complaining about space-tab.
22011 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22012 # splitting by setting IFS to empty value.)
22013 IFS=" "" $as_nl"
22014
22015 # Find who we are. Look in the path if we contain no directory separator.
22016 case $0 in
22017 *[\\/]* ) as_myself=$0 ;;
22018 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22019 for as_dir in $PATH
22020 do
22021 IFS=$as_save_IFS
22022 test -z "$as_dir" && as_dir=.
22023 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22024 done
22025 IFS=$as_save_IFS
22026
22027 ;;
22028 esac
22029 # We did not find ourselves, most probably we were run as `sh COMMAND'
22030 # in which case we are not to be found in the path.
22031 if test "x$as_myself" = x; then
22032 as_myself=$0
22033 fi
22034 if test ! -f "$as_myself"; then
22035 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22036 { (exit 1); exit 1; }
22037 fi
22038
22039 # Work around bugs in pre-3.0 UWIN ksh.
22040 for as_var in ENV MAIL MAILPATH
22041 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22042 done
22043 PS1='$ '
22044 PS2='> '
22045 PS4='+ '
22046
22047 # NLS nuisances.
22048 LC_ALL=C
22049 export LC_ALL
22050 LANGUAGE=C
22051 export LANGUAGE
22052
22053 # Required to use basename.
22054 if expr a : '\(a\)' >/dev/null 2>&1 &&
22055 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22056 as_expr=expr
22057 else
22058 as_expr=false
22059 fi
22060
22061 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22062 as_basename=basename
22063 else
22064 as_basename=false
22065 fi
22066
22067
22068 # Name of the executable.
22069 as_me=`$as_basename -- "$0" ||
22070 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22071 X"$0" : 'X\(//\)$' \| \
22072 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22073 $as_echo X/"$0" |
22074 sed '/^.*\/\([^/][^/]*\)\/*$/{
22075 s//\1/
22076 q
22077 }
22078 /^X\/\(\/\/\)$/{
22079 s//\1/
22080 q
22081 }
22082 /^X\/\(\/\).*/{
22083 s//\1/
22084 q
22085 }
22086 s/.*/./; q'`
22087
22088 # CDPATH.
22089 $as_unset CDPATH
22090
22091
22092
22093 as_lineno_1=$LINENO
22094 as_lineno_2=$LINENO
22095 test "x$as_lineno_1" != "x$as_lineno_2" &&
22096 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22097
22098 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22099 # uniformly replaced by the line number. The first 'sed' inserts a
22100 # line-number line after each line using $LINENO; the second 'sed'
22101 # does the real work. The second script uses 'N' to pair each
22102 # line-number line with the line containing $LINENO, and appends
22103 # trailing '-' during substitution so that $LINENO is not a special
22104 # case at line end.
22105 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22106 # scripts with optimization help from Paolo Bonzini. Blame Lee
22107 # E. McMahon (1931-1989) for sed's syntax. :-)
22108 sed -n '
22109 p
22110 /[$]LINENO/=
22111 ' <$as_myself |
22112 sed '
22113 s/[$]LINENO.*/&-/
22114 t lineno
22115 b
22116 :lineno
22117 N
22118 :loop
22119 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22120 t loop
22121 s/-\n.*//
22122 ' >$as_me.lineno &&
22123 chmod +x "$as_me.lineno" ||
22124 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22125 { (exit 1); exit 1; }; }
22126
22127 # Don't try to exec as it changes $[0], causing all sort of problems
22128 # (the dirname of $[0] is not the place where we might find the
22129 # original and so on. Autoconf is especially sensitive to this).
22130 . "./$as_me.lineno"
22131 # Exit status is that of the last command.
22132 exit
22133 }
22134
22135
22136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22137 as_dirname=dirname
22138 else
22139 as_dirname=false
22140 fi
22141
22142 ECHO_C= ECHO_N= ECHO_T=
22143 case `echo -n x` in
22144 -n*)
22145 case `echo 'x\c'` in
22146 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22147 *) ECHO_C='\c';;
22148 esac;;
22149 *)
22150 ECHO_N='-n';;
22151 esac
22152 if expr a : '\(a\)' >/dev/null 2>&1 &&
22153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22154 as_expr=expr
22155 else
22156 as_expr=false
22157 fi
22158
22159 rm -f conf$$ conf$$.exe conf$$.file
22160 if test -d conf$$.dir; then
22161 rm -f conf$$.dir/conf$$.file
22162 else
22163 rm -f conf$$.dir
22164 mkdir conf$$.dir 2>/dev/null
22165 fi
22166 if (echo >conf$$.file) 2>/dev/null; then
22167 if ln -s conf$$.file conf$$ 2>/dev/null; then
22168 as_ln_s='ln -s'
22169 # ... but there are two gotchas:
22170 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22171 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22172 # In both cases, we have to default to `cp -p'.
22173 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22174 as_ln_s='cp -p'
22175 elif ln conf$$.file conf$$ 2>/dev/null; then
22176 as_ln_s=ln
22177 else
22178 as_ln_s='cp -p'
22179 fi
22180 else
22181 as_ln_s='cp -p'
22182 fi
22183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22184 rmdir conf$$.dir 2>/dev/null
22185
22186 if mkdir -p . 2>/dev/null; then
22187 as_mkdir_p=:
22188 else
22189 test -d ./-p && rmdir ./-p
22190 as_mkdir_p=false
22191 fi
22192
22193 if test -x / >/dev/null 2>&1; then
22194 as_test_x='test -x'
22195 else
22196 if ls -dL / >/dev/null 2>&1; then
22197 as_ls_L_option=L
22198 else
22199 as_ls_L_option=
22200 fi
22201 as_test_x='
22202 eval sh -c '\''
22203 if test -d "$1"; then
22204 test -d "$1/.";
22205 else
22206 case $1 in
22207 -*)set "./$1";;
22208 esac;
22209 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22210 ???[sx]*):;;*)false;;esac;fi
22211 '\'' sh
22212 '
22213 fi
22214 as_executable_p=$as_test_x
22215
22216 # Sed expression to map a string onto a valid CPP name.
22217 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22218
22219 # Sed expression to map a string onto a valid variable name.
22220 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22221
22222
22223 exec 6>&1
22224
22225 # Save the log message, to keep $[0] and so on meaningful, and to
22226 # report actual input values of CONFIG_FILES etc. instead of their
22227 # values after options handling.
22228 ac_log="
22229 This file was extended by xf86-video-ark $as_me 0.7.2, which was
22230 generated by GNU Autoconf 2.63. Invocation command line was
22231
22232 CONFIG_FILES = $CONFIG_FILES
22233 CONFIG_HEADERS = $CONFIG_HEADERS
22234 CONFIG_LINKS = $CONFIG_LINKS
22235 CONFIG_COMMANDS = $CONFIG_COMMANDS
22236 $ $0 $@
22237
22238 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22239 "
22240
22241 _ACEOF
22242
22243 case $ac_config_files in *"
22244 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22245 esac
22246
22247 case $ac_config_headers in *"
22248 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22249 esac
22250
22251
22252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22253 # Files that config.status was made for.
22254 config_files="$ac_config_files"
22255 config_headers="$ac_config_headers"
22256 config_commands="$ac_config_commands"
22257
22258 _ACEOF
22259
22260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22261 ac_cs_usage="\
22262 \`$as_me' instantiates files from templates according to the
22263 current configuration.
22264
22265 Usage: $0 [OPTION]... [FILE]...
22266
22267 -h, --help print this help, then exit
22268 -V, --version print version number and configuration settings, then exit
22269 -q, --quiet, --silent
22270 do not print progress messages
22271 -d, --debug don't remove temporary files
22272 --recheck update $as_me by reconfiguring in the same conditions
22273 --file=FILE[:TEMPLATE]
22274 instantiate the configuration file FILE
22275 --header=FILE[:TEMPLATE]
22276 instantiate the configuration header FILE
22277
22278 Configuration files:
22279 $config_files
22280
22281 Configuration headers:
22282 $config_headers
22283
22284 Configuration commands:
22285 $config_commands
22286
22287 Report bugs to <bug-autoconf (at] gnu.org>."
22288
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22291 ac_cs_version="\\
22292 xf86-video-ark config.status 0.7.2
22293 configured by $0, generated by GNU Autoconf 2.63,
22294 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22295
22296 Copyright (C) 2008 Free Software Foundation, Inc.
22297 This config.status script is free software; the Free Software Foundation
22298 gives unlimited permission to copy, distribute and modify it."
22299
22300 ac_pwd='$ac_pwd'
22301 srcdir='$srcdir'
22302 INSTALL='$INSTALL'
22303 MKDIR_P='$MKDIR_P'
22304 AWK='$AWK'
22305 test -n "\$AWK" || AWK=awk
22306 _ACEOF
22307
22308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22309 # The default lists apply if the user does not specify any file.
22310 ac_need_defaults=:
22311 while test $# != 0
22312 do
22313 case $1 in
22314 --*=*)
22315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22316 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22317 ac_shift=:
22318 ;;
22319 *)
22320 ac_option=$1
22321 ac_optarg=$2
22322 ac_shift=shift
22323 ;;
22324 esac
22325
22326 case $ac_option in
22327 # Handling of the options.
22328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22329 ac_cs_recheck=: ;;
22330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22331 $as_echo "$ac_cs_version"; exit ;;
22332 --debug | --debu | --deb | --de | --d | -d )
22333 debug=: ;;
22334 --file | --fil | --fi | --f )
22335 $ac_shift
22336 case $ac_optarg in
22337 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22338 esac
22339 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22340 ac_need_defaults=false;;
22341 --header | --heade | --head | --hea )
22342 $ac_shift
22343 case $ac_optarg in
22344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22345 esac
22346 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22347 ac_need_defaults=false;;
22348 --he | --h)
22349 # Conflict between --help and --header
22350 { $as_echo "$as_me: error: ambiguous option: $1
22351 Try \`$0 --help' for more information." >&2
22352 { (exit 1); exit 1; }; };;
22353 --help | --hel | -h )
22354 $as_echo "$ac_cs_usage"; exit ;;
22355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22357 ac_cs_silent=: ;;
22358
22359 # This is an error.
22360 -*) { $as_echo "$as_me: error: unrecognized option: $1
22361 Try \`$0 --help' for more information." >&2
22362 { (exit 1); exit 1; }; } ;;
22363
22364 *) ac_config_targets="$ac_config_targets $1"
22365 ac_need_defaults=false ;;
22366
22367 esac
22368 shift
22369 done
22370
22371 ac_configure_extra_args=
22372
22373 if $ac_cs_silent; then
22374 exec 6>/dev/null
22375 ac_configure_extra_args="$ac_configure_extra_args --silent"
22376 fi
22377
22378 _ACEOF
22379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22380 if \$ac_cs_recheck; then
22381 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22382 shift
22383 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22384 CONFIG_SHELL='$SHELL'
22385 export CONFIG_SHELL
22386 exec "\$@"
22387 fi
22388
22389 _ACEOF
22390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22391 exec 5>>config.log
22392 {
22393 echo
22394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22395 ## Running $as_me. ##
22396 _ASBOX
22397 $as_echo "$ac_log"
22398 } >&5
22399
22400 _ACEOF
22401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22402 #
22403 # INIT-COMMANDS
22404 #
22405 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22406
22407 _ACEOF
22408
22409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22410
22411 # Handling of arguments.
22412 for ac_config_target in $ac_config_targets
22413 do
22414 case $ac_config_target in
22415 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22416 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22417 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22418 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22419
22420 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22421 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22422 { (exit 1); exit 1; }; };;
22423 esac
22424 done
22425
22426
22427 # If the user did not use the arguments to specify the items to instantiate,
22428 # then the envvar interface is used. Set only those that are not.
22429 # We use the long form for the default assignment because of an extremely
22430 # bizarre bug on SunOS 4.1.3.
22431 if $ac_need_defaults; then
22432 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22433 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22434 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22435 fi
22436
22437 # Have a temporary directory for convenience. Make it in the build tree
22438 # simply because there is no reason against having it here, and in addition,
22439 # creating and moving files from /tmp can sometimes cause problems.
22440 # Hook for its removal unless debugging.
22441 # Note that there is a small window in which the directory will not be cleaned:
22442 # after its creation but before its name has been assigned to `$tmp'.
22443 $debug ||
22444 {
22445 tmp=
22446 trap 'exit_status=$?
22447 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22448 ' 0
22449 trap '{ (exit 1); exit 1; }' 1 2 13 15
22450 }
22451 # Create a (secure) tmp directory for tmp files.
22452
22453 {
22454 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22455 test -n "$tmp" && test -d "$tmp"
22456 } ||
22457 {
22458 tmp=./conf$$-$RANDOM
22459 (umask 077 && mkdir "$tmp")
22460 } ||
22461 {
22462 $as_echo "$as_me: cannot create a temporary directory in ." >&2
22463 { (exit 1); exit 1; }
22464 }
22465
22466 # Set up the scripts for CONFIG_FILES section.
22467 # No need to generate them if there are no CONFIG_FILES.
22468 # This happens for instance with `./config.status config.h'.
22469 if test -n "$CONFIG_FILES"; then
22470
22471
22472 ac_cr='
'
22474 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22475 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22476 ac_cs_awk_cr='\\r'
22477 else
22478 ac_cs_awk_cr=$ac_cr
22479 fi
22480
22481 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22482 _ACEOF
22483
22484
22485 {
22486 echo "cat >conf$$subs.awk <<_ACEOF" &&
22487 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22488 echo "_ACEOF"
22489 } >conf$$subs.sh ||
22490 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22491 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22492 { (exit 1); exit 1; }; }
22493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22494 ac_delim='%!_!# '
22495 for ac_last_try in false false false false false :; do
22496 . ./conf$$subs.sh ||
22497 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22498 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22499 { (exit 1); exit 1; }; }
22500
22501 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22502 if test $ac_delim_n = $ac_delim_num; then
22503 break
22504 elif $ac_last_try; then
22505 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22506 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22507 { (exit 1); exit 1; }; }
22508 else
22509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22510 fi
22511 done
22512 rm -f conf$$subs.sh
22513
22514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22515 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22516 _ACEOF
22517 sed -n '
22518 h
22519 s/^/S["/; s/!.*/"]=/
22520 p
22521 g
22522 s/^[^!]*!//
22523 :repl
22524 t repl
22525 s/'"$ac_delim"'$//
22526 t delim
22527 :nl
22528 h
22529 s/\(.\{148\}\).*/\1/
22530 t more1
22531 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22532 p
22533 n
22534 b repl
22535 :more1
22536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22537 p
22538 g
22539 s/.\{148\}//
22540 t nl
22541 :delim
22542 h
22543 s/\(.\{148\}\).*/\1/
22544 t more2
22545 s/["\\]/\\&/g; s/^/"/; s/$/"/
22546 p
22547 b
22548 :more2
22549 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22550 p
22551 g
22552 s/.\{148\}//
22553 t delim
22554 ' <conf$$subs.awk | sed '
22555 /^[^""]/{
22556 N
22557 s/\n//
22558 }
22559 ' >>$CONFIG_STATUS || ac_write_fail=1
22560 rm -f conf$$subs.awk
22561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22562 _ACAWK
22563 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22564 for (key in S) S_is_set[key] = 1
22565 FS = ""
22566
22567 }
22568 {
22569 line = $ 0
22570 nfields = split(line, field, "@")
22571 substed = 0
22572 len = length(field[1])
22573 for (i = 2; i < nfields; i++) {
22574 key = field[i]
22575 keylen = length(key)
22576 if (S_is_set[key]) {
22577 value = S[key]
22578 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22579 len += length(value) + length(field[++i])
22580 substed = 1
22581 } else
22582 len += 1 + keylen
22583 }
22584
22585 print line
22586 }
22587
22588 _ACAWK
22589 _ACEOF
22590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22591 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22592 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22593 else
22594 cat
22595 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22596 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22597 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22598 { (exit 1); exit 1; }; }
22599 _ACEOF
22600
22601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22603 # trailing colons and then remove the whole line if VPATH becomes empty
22604 # (actually we leave an empty line to preserve line numbers).
22605 if test "x$srcdir" = x.; then
22606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22607 s/:*\$(srcdir):*/:/
22608 s/:*\${srcdir}:*/:/
22609 s/:*@srcdir@:*/:/
22610 s/^\([^=]*=[ ]*\):*/\1/
22611 s/:*$//
22612 s/^[^=]*=[ ]*$//
22613 }'
22614 fi
22615
22616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22617 fi # test -n "$CONFIG_FILES"
22618
22619 # Set up the scripts for CONFIG_HEADERS section.
22620 # No need to generate them if there are no CONFIG_HEADERS.
22621 # This happens for instance with `./config.status Makefile'.
22622 if test -n "$CONFIG_HEADERS"; then
22623 cat >"$tmp/defines.awk" <<\_ACAWK ||
22624 BEGIN {
22625 _ACEOF
22626
22627 # Transform confdefs.h into an awk script `defines.awk', embedded as
22628 # here-document in config.status, that substitutes the proper values into
22629 # config.h.in to produce config.h.
22630
22631 # Create a delimiter string that does not exist in confdefs.h, to ease
22632 # handling of long lines.
22633 ac_delim='%!_!# '
22634 for ac_last_try in false false :; do
22635 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22636 if test -z "$ac_t"; then
22637 break
22638 elif $ac_last_try; then
22639 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22640 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22641 { (exit 1); exit 1; }; }
22642 else
22643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22644 fi
22645 done
22646
22647 # For the awk script, D is an array of macro values keyed by name,
22648 # likewise P contains macro parameters if any. Preserve backslash
22649 # newline sequences.
22650
22651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22652 sed -n '
22653 s/.\{148\}/&'"$ac_delim"'/g
22654 t rset
22655 :rset
22656 s/^[ ]*#[ ]*define[ ][ ]*/ /
22657 t def
22658 d
22659 :def
22660 s/\\$//
22661 t bsnl
22662 s/["\\]/\\&/g
22663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22664 D["\1"]=" \3"/p
22665 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22666 d
22667 :bsnl
22668 s/["\\]/\\&/g
22669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22670 D["\1"]=" \3\\\\\\n"\\/p
22671 t cont
22672 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22673 t cont
22674 d
22675 :cont
22676 n
22677 s/.\{148\}/&'"$ac_delim"'/g
22678 t clear
22679 :clear
22680 s/\\$//
22681 t bsnlc
22682 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22683 d
22684 :bsnlc
22685 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22686 b cont
22687 ' <confdefs.h | sed '
22688 s/'"$ac_delim"'/"\\\
22689 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22690
22691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22692 for (key in D) D_is_set[key] = 1
22693 FS = ""
22694 }
22695 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22696 line = \$ 0
22697 split(line, arg, " ")
22698 if (arg[1] == "#") {
22699 defundef = arg[2]
22700 mac1 = arg[3]
22701 } else {
22702 defundef = substr(arg[1], 2)
22703 mac1 = arg[2]
22704 }
22705 split(mac1, mac2, "(") #)
22706 macro = mac2[1]
22707 prefix = substr(line, 1, index(line, defundef) - 1)
22708 if (D_is_set[macro]) {
22709 # Preserve the white space surrounding the "#".
22710 print prefix "define", macro P[macro] D[macro]
22711 next
22712 } else {
22713 # Replace #undef with comments. This is necessary, for example,
22714 # in the case of _POSIX_SOURCE, which is predefined and required
22715 # on some systems where configure will not decide to define it.
22716 if (defundef == "undef") {
22717 print "/*", prefix defundef, macro, "*/"
22718 next
22719 }
22720 }
22721 }
22722 { print }
22723 _ACAWK
22724 _ACEOF
22725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22726 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22727 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22728 { (exit 1); exit 1; }; }
22729 fi # test -n "$CONFIG_HEADERS"
22730
22731
22732 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22733 shift
22734 for ac_tag
22735 do
22736 case $ac_tag in
22737 :[FHLC]) ac_mode=$ac_tag; continue;;
22738 esac
22739 case $ac_mode$ac_tag in
22740 :[FHL]*:*);;
22741 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22742 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22743 { (exit 1); exit 1; }; };;
22744 :[FH]-) ac_tag=-:-;;
22745 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22746 esac
22747 ac_save_IFS=$IFS
22748 IFS=:
22749 set x $ac_tag
22750 IFS=$ac_save_IFS
22751 shift
22752 ac_file=$1
22753 shift
22754
22755 case $ac_mode in
22756 :L) ac_source=$1;;
22757 :[FH])
22758 ac_file_inputs=
22759 for ac_f
22760 do
22761 case $ac_f in
22762 -) ac_f="$tmp/stdin";;
22763 *) # Look for the file first in the build tree, then in the source tree
22764 # (if the path is not absolute). The absolute path cannot be DOS-style,
22765 # because $ac_f cannot contain `:'.
22766 test -f "$ac_f" ||
22767 case $ac_f in
22768 [\\/$]*) false;;
22769 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22770 esac ||
22771 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22772 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22773 { (exit 1); exit 1; }; };;
22774 esac
22775 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22776 ac_file_inputs="$ac_file_inputs '$ac_f'"
22777 done
22778
22779 # Let's still pretend it is `configure' which instantiates (i.e., don't
22780 # use $as_me), people would be surprised to read:
22781 # /* config.h. Generated by config.status. */
22782 configure_input='Generated from '`
22783 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22784 `' by configure.'
22785 if test x"$ac_file" != x-; then
22786 configure_input="$ac_file. $configure_input"
22787 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22788 $as_echo "$as_me: creating $ac_file" >&6;}
22789 fi
22790 # Neutralize special characters interpreted by sed in replacement strings.
22791 case $configure_input in #(
22792 *\&* | *\|* | *\\* )
22793 ac_sed_conf_input=`$as_echo "$configure_input" |
22794 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22795 *) ac_sed_conf_input=$configure_input;;
22796 esac
22797
22798 case $ac_tag in
22799 *:-:* | *:-) cat >"$tmp/stdin" \
22800 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22801 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22802 { (exit 1); exit 1; }; } ;;
22803 esac
22804 ;;
22805 esac
22806
22807 ac_dir=`$as_dirname -- "$ac_file" ||
22808 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22809 X"$ac_file" : 'X\(//\)[^/]' \| \
22810 X"$ac_file" : 'X\(//\)$' \| \
22811 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22812 $as_echo X"$ac_file" |
22813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22814 s//\1/
22815 q
22816 }
22817 /^X\(\/\/\)[^/].*/{
22818 s//\1/
22819 q
22820 }
22821 /^X\(\/\/\)$/{
22822 s//\1/
22823 q
22824 }
22825 /^X\(\/\).*/{
22826 s//\1/
22827 q
22828 }
22829 s/.*/./; q'`
22830 { as_dir="$ac_dir"
22831 case $as_dir in #(
22832 -*) as_dir=./$as_dir;;
22833 esac
22834 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22835 as_dirs=
22836 while :; do
22837 case $as_dir in #(
22838 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22839 *) as_qdir=$as_dir;;
22840 esac
22841 as_dirs="'$as_qdir' $as_dirs"
22842 as_dir=`$as_dirname -- "$as_dir" ||
22843 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22844 X"$as_dir" : 'X\(//\)[^/]' \| \
22845 X"$as_dir" : 'X\(//\)$' \| \
22846 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22847 $as_echo X"$as_dir" |
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22849 s//\1/
22850 q
22851 }
22852 /^X\(\/\/\)[^/].*/{
22853 s//\1/
22854 q
22855 }
22856 /^X\(\/\/\)$/{
22857 s//\1/
22858 q
22859 }
22860 /^X\(\/\).*/{
22861 s//\1/
22862 q
22863 }
22864 s/.*/./; q'`
22865 test -d "$as_dir" && break
22866 done
22867 test -z "$as_dirs" || eval "mkdir $as_dirs"
22868 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22869 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22870 { (exit 1); exit 1; }; }; }
22871 ac_builddir=.
22872
22873 case "$ac_dir" in
22874 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22875 *)
22876 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22877 # A ".." for each directory in $ac_dir_suffix.
22878 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22879 case $ac_top_builddir_sub in
22880 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22881 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22882 esac ;;
22883 esac
22884 ac_abs_top_builddir=$ac_pwd
22885 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22886 # for backward compatibility:
22887 ac_top_builddir=$ac_top_build_prefix
22888
22889 case $srcdir in
22890 .) # We are building in place.
22891 ac_srcdir=.
22892 ac_top_srcdir=$ac_top_builddir_sub
22893 ac_abs_top_srcdir=$ac_pwd ;;
22894 [\\/]* | ?:[\\/]* ) # Absolute name.
22895 ac_srcdir=$srcdir$ac_dir_suffix;
22896 ac_top_srcdir=$srcdir
22897 ac_abs_top_srcdir=$srcdir ;;
22898 *) # Relative name.
22899 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22900 ac_top_srcdir=$ac_top_build_prefix$srcdir
22901 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22902 esac
22903 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22904
22905
22906 case $ac_mode in
22907 :F)
22908 #
22909 # CONFIG_FILE
22910 #
22911
22912 case $INSTALL in
22913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22914 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22915 esac
22916 ac_MKDIR_P=$MKDIR_P
22917 case $MKDIR_P in
22918 [\\/$]* | ?:[\\/]* ) ;;
22919 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22920 esac
22921 _ACEOF
22922
22923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22924 # If the template does not know about datarootdir, expand it.
22925 # FIXME: This hack should be removed a few years after 2.60.
22926 ac_datarootdir_hack=; ac_datarootdir_seen=
22927
22928 ac_sed_dataroot='
22929 /datarootdir/ {
22930 p
22931 q
22932 }
22933 /@datadir@/p
22934 /@docdir@/p
22935 /@infodir@/p
22936 /@localedir@/p
22937 /@mandir@/p
22938 '
22939 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22940 *datarootdir*) ac_datarootdir_seen=yes;;
22941 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22942 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22943 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22944 _ACEOF
22945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22946 ac_datarootdir_hack='
22947 s&@datadir@&$datadir&g
22948 s&@docdir@&$docdir&g
22949 s&@infodir@&$infodir&g
22950 s&@localedir@&$localedir&g
22951 s&@mandir@&$mandir&g
22952 s&\\\${datarootdir}&$datarootdir&g' ;;
22953 esac
22954 _ACEOF
22955
22956 # Neutralize VPATH when `$srcdir' = `.'.
22957 # Shell code in configure.ac might set extrasub.
22958 # FIXME: do we really want to maintain this feature?
22959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22960 ac_sed_extra="$ac_vpsub
22961 $extrasub
22962 _ACEOF
22963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22964 :t
22965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22966 s|@configure_input@|$ac_sed_conf_input|;t t
22967 s&@top_builddir@&$ac_top_builddir_sub&;t t
22968 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22969 s&@srcdir@&$ac_srcdir&;t t
22970 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22971 s&@top_srcdir@&$ac_top_srcdir&;t t
22972 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22973 s&@builddir@&$ac_builddir&;t t
22974 s&@abs_builddir@&$ac_abs_builddir&;t t
22975 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22976 s&@INSTALL@&$ac_INSTALL&;t t
22977 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22978 $ac_datarootdir_hack
22979 "
22980 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22981 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22982 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22983 { (exit 1); exit 1; }; }
22984
22985 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22986 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22987 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22988 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22989 which seems to be undefined. Please make sure it is defined." >&5
22990 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22991 which seems to be undefined. Please make sure it is defined." >&2;}
22992
22993 rm -f "$tmp/stdin"
22994 case $ac_file in
22995 -) cat "$tmp/out" && rm -f "$tmp/out";;
22996 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22997 esac \
22998 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22999 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23000 { (exit 1); exit 1; }; }
23001 ;;
23002 :H)
23003 #
23004 # CONFIG_HEADER
23005 #
23006 if test x"$ac_file" != x-; then
23007 {
23008 $as_echo "/* $configure_input */" \
23009 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23010 } >"$tmp/config.h" \
23011 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23012 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23013 { (exit 1); exit 1; }; }
23014 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23015 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23016 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23017 else
23018 rm -f "$ac_file"
23019 mv "$tmp/config.h" "$ac_file" \
23020 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23022 { (exit 1); exit 1; }; }
23023 fi
23024 else
23025 $as_echo "/* $configure_input */" \
23026 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23027 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23028 $as_echo "$as_me: error: could not create -" >&2;}
23029 { (exit 1); exit 1; }; }
23030 fi
23031 # Compute "$ac_file"'s index in $config_headers.
23032 _am_arg="$ac_file"
23033 _am_stamp_count=1
23034 for _am_header in $config_headers :; do
23035 case $_am_header in
23036 $_am_arg | $_am_arg:* )
23037 break ;;
23038 * )
23039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23040 esac
23041 done
23042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23044 X"$_am_arg" : 'X\(//\)[^/]' \| \
23045 X"$_am_arg" : 'X\(//\)$' \| \
23046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23047 $as_echo X"$_am_arg" |
23048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23049 s//\1/
23050 q
23051 }
23052 /^X\(\/\/\)[^/].*/{
23053 s//\1/
23054 q
23055 }
23056 /^X\(\/\/\)$/{
23057 s//\1/
23058 q
23059 }
23060 /^X\(\/\).*/{
23061 s//\1/
23062 q
23063 }
23064 s/.*/./; q'`/stamp-h$_am_stamp_count
23065 ;;
23066
23067 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23068 $as_echo "$as_me: executing $ac_file commands" >&6;}
23069 ;;
23070 esac
23071
23072
23073 case $ac_file$ac_mode in
23074 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23075 # Autoconf 2.62 quotes --file arguments for eval, but not when files
23076 # are listed without --file. Let's play safe and only enable the eval
23077 # if we detect the quoting.
23078 case $CONFIG_FILES in
23079 *\'*) eval set x "$CONFIG_FILES" ;;
23080 *) set x $CONFIG_FILES ;;
23081 esac
23082 shift
23083 for mf
23084 do
23085 # Strip MF so we end up with the name of the file.
23086 mf=`echo "$mf" | sed -e 's/:.*$//'`
23087 # Check whether this is an Automake generated Makefile or not.
23088 # We used to match only the files named `Makefile.in', but
23089 # some people rename them; so instead we look at the file content.
23090 # Grep'ing the first line is not enough: some people post-process
23091 # each Makefile.in and add a new line on top of each file to say so.
23092 # Grep'ing the whole file is not good either: AIX grep has a line
23093 # limit of 2048, but all sed's we know have understand at least 4000.
23094 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23095 dirpart=`$as_dirname -- "$mf" ||
23096 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23097 X"$mf" : 'X\(//\)[^/]' \| \
23098 X"$mf" : 'X\(//\)$' \| \
23099 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23100 $as_echo X"$mf" |
23101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23102 s//\1/
23103 q
23104 }
23105 /^X\(\/\/\)[^/].*/{
23106 s//\1/
23107 q
23108 }
23109 /^X\(\/\/\)$/{
23110 s//\1/
23111 q
23112 }
23113 /^X\(\/\).*/{
23114 s//\1/
23115 q
23116 }
23117 s/.*/./; q'`
23118 else
23119 continue
23120 fi
23121 # Extract the definition of DEPDIR, am__include, and am__quote
23122 # from the Makefile without running `make'.
23123 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23124 test -z "$DEPDIR" && continue
23125 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23126 test -z "am__include" && continue
23127 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23128 # When using ansi2knr, U may be empty or an underscore; expand it
23129 U=`sed -n 's/^U = //p' < "$mf"`
23130 # Find all dependency output files, they are included files with
23131 # $(DEPDIR) in their names. We invoke sed twice because it is the
23132 # simplest approach to changing $(DEPDIR) to its actual value in the
23133 # expansion.
23134 for file in `sed -n "
23135 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23136 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23137 # Make sure the directory exists.
23138 test -f "$dirpart/$file" && continue
23139 fdir=`$as_dirname -- "$file" ||
23140 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23141 X"$file" : 'X\(//\)[^/]' \| \
23142 X"$file" : 'X\(//\)$' \| \
23143 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23144 $as_echo X"$file" |
23145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23146 s//\1/
23147 q
23148 }
23149 /^X\(\/\/\)[^/].*/{
23150 s//\1/
23151 q
23152 }
23153 /^X\(\/\/\)$/{
23154 s//\1/
23155 q
23156 }
23157 /^X\(\/\).*/{
23158 s//\1/
23159 q
23160 }
23161 s/.*/./; q'`
23162 { as_dir=$dirpart/$fdir
23163 case $as_dir in #(
23164 -*) as_dir=./$as_dir;;
23165 esac
23166 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23167 as_dirs=
23168 while :; do
23169 case $as_dir in #(
23170 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23171 *) as_qdir=$as_dir;;
23172 esac
23173 as_dirs="'$as_qdir' $as_dirs"
23174 as_dir=`$as_dirname -- "$as_dir" ||
23175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23176 X"$as_dir" : 'X\(//\)[^/]' \| \
23177 X"$as_dir" : 'X\(//\)$' \| \
23178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23179 $as_echo X"$as_dir" |
23180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23181 s//\1/
23182 q
23183 }
23184 /^X\(\/\/\)[^/].*/{
23185 s//\1/
23186 q
23187 }
23188 /^X\(\/\/\)$/{
23189 s//\1/
23190 q
23191 }
23192 /^X\(\/\).*/{
23193 s//\1/
23194 q
23195 }
23196 s/.*/./; q'`
23197 test -d "$as_dir" && break
23198 done
23199 test -z "$as_dirs" || eval "mkdir $as_dirs"
23200 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23201 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23202 { (exit 1); exit 1; }; }; }
23203 # echo "creating $dirpart/$file"
23204 echo '# dummy' > "$dirpart/$file"
23205 done
23206 done
23207 }
23208 ;;
23209
23210 esac
23211 done # for ac_tag
23212
23213
23214 { (exit 0); exit 0; }
23215 _ACEOF
23216 chmod +x $CONFIG_STATUS
23217 ac_clean_files=$ac_clean_files_save
23218
23219 test $ac_write_fail = 0 ||
23220 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23221 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23222 { (exit 1); exit 1; }; }
23223
23224
23225 # configure is writing to config.log, and then calls config.status.
23226 # config.status does its own redirection, appending to config.log.
23227 # Unfortunately, on DOS this fails, as config.log is still kept open
23228 # by configure, so config.status won't be able to write to it; its
23229 # output is simply discarded. So we exec the FD to /dev/null,
23230 # effectively closing config.log, so it can be properly (re)opened and
23231 # appended to by config.status. When coming back to configure, we
23232 # need to make the FD available again.
23233 if test "$no_create" != yes; then
23234 ac_cs_success=:
23235 ac_config_status_args=
23236 test "$silent" = yes &&
23237 ac_config_status_args="$ac_config_status_args --quiet"
23238 exec 5>/dev/null
23239 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23240 exec 5>>config.log
23241 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23242 # would make configure fail if this is the last instruction.
23243 $ac_cs_success || { (exit 1); exit 1; }
23244 fi
23245 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23246 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23247 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23248 fi
23249
23250