configure revision 1.1.1.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for xf86-video-cirrus 1.3.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='xf86-video-cirrus'
730 PACKAGE_TARNAME='xf86-video-cirrus'
731 PACKAGE_VERSION='1.3.0'
732 PACKAGE_STRING='xf86-video-cirrus 1.3.0'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 ac_unique_file="Makefile.am"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 MAINTAINER_MODE_TRUE
832 MAINTAINER_MODE_FALSE
833 MAINT
834 build
835 build_cpu
836 build_vendor
837 build_os
838 host
839 host_cpu
840 host_vendor
841 host_os
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 ac_ct_CC
847 EXEEXT
848 OBJEXT
849 DEPDIR
850 am__include
851 am__quote
852 AMDEP_TRUE
853 AMDEP_FALSE
854 AMDEPBACKSLASH
855 CCDEPMODE
856 am__fastdepCC_TRUE
857 am__fastdepCC_FALSE
858 GREP
859 EGREP
860 LN_S
861 ECHO
862 AR
863 RANLIB
864 CPP
865 CXX
866 CXXFLAGS
867 ac_ct_CXX
868 CXXDEPMODE
869 am__fastdepCXX_TRUE
870 am__fastdepCXX_FALSE
871 CXXCPP
872 F77
873 FFLAGS
874 ac_ct_F77
875 LIBTOOL
876 CWARNFLAGS
877 PKG_CONFIG
878 XORG_CFLAGS
879 XORG_LIBS
880 PCIACCESS_CFLAGS
881 PCIACCESS_LIBS
882 XSERVER_LIBPCIACCESS_TRUE
883 XSERVER_LIBPCIACCESS_FALSE
884 moduledir
885 DRIVER_NAME
886 APP_MAN_SUFFIX
887 LIB_MAN_SUFFIX
888 FILE_MAN_SUFFIX
889 MISC_MAN_SUFFIX
890 DRIVER_MAN_SUFFIX
891 ADMIN_MAN_SUFFIX
892 APP_MAN_DIR
893 LIB_MAN_DIR
894 FILE_MAN_DIR
895 MISC_MAN_DIR
896 DRIVER_MAN_DIR
897 ADMIN_MAN_DIR
898 CHANGELOG_CMD
899 distcleancheck_listfiles
900 LIBOBJS
901 LTLIBOBJS'
902 ac_subst_files=''
903 ac_precious_vars='build_alias
904 host_alias
905 target_alias
906 CC
907 CFLAGS
908 LDFLAGS
909 LIBS
910 CPPFLAGS
911 CPP
912 CXX
913 CXXFLAGS
914 CCC
915 CXXCPP
916 F77
917 FFLAGS
918 PKG_CONFIG
919 XORG_CFLAGS
920 XORG_LIBS
921 PCIACCESS_CFLAGS
922 PCIACCESS_LIBS'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
930 cache_file=/dev/null
931 exec_prefix=NONE
932 no_create=
933 no_recursion=
934 prefix=NONE
935 program_prefix=NONE
936 program_suffix=NONE
937 program_transform_name=s,x,x,
938 silent=
939 site=
940 srcdir=
941 verbose=
942 x_includes=NONE
943 x_libraries=NONE
944
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
963 htmldir='${docdir}'
964 dvidir='${docdir}'
965 pdfdir='${docdir}'
966 psdir='${docdir}'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
970
971 ac_prev=
972 ac_dashdash=
973 for ac_option
974 do
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
978 ac_prev=
979 continue
980 fi
981
982 case $ac_option in
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 *) ac_optarg=yes ;;
985 esac
986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=no ;;
1033
1034 -docdir | --docdir | --docdi | --doc | --do)
1035 ac_prev=docdir ;;
1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037 docdir=$ac_optarg ;;
1038
1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040 ac_prev=dvidir ;;
1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042 dvidir=$ac_optarg ;;
1043
1044 -enable-* | --enable-*)
1045 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1051 eval enable_$ac_feature=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1201
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1212
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1217
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1222
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1229
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1234
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1237
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1240
1241 -with-* | --with-*)
1242 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_$ac_package=\$ac_optarg ;;
1249
1250 -without-* | --without-*)
1251 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254 { echo "$as_me: error: invalid package name: $ac_package" >&2
1255 { (exit 1); exit 1; }; }
1256 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1257 eval with_$ac_package=no ;;
1258
1259 --x)
1260 # Obsolete; use --with-x.
1261 with_x=yes ;;
1262
1263 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1264 | --x-incl | --x-inc | --x-in | --x-i)
1265 ac_prev=x_includes ;;
1266 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1267 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1268 x_includes=$ac_optarg ;;
1269
1270 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1271 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1272 ac_prev=x_libraries ;;
1273 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1274 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1275 x_libraries=$ac_optarg ;;
1276
1277 -*) { echo "$as_me: error: unrecognized option: $ac_option
1278 Try \`$0 --help' for more information." >&2
1279 { (exit 1); exit 1; }; }
1280 ;;
1281
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1286 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1287 { (exit 1); exit 1; }; }
1288 eval $ac_envvar=\$ac_optarg
1289 export $ac_envvar ;;
1290
1291 *)
1292 # FIXME: should be removed in autoconf 3.0.
1293 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1294 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1295 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1296 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1297 ;;
1298
1299 esac
1300 done
1301
1302 if test -n "$ac_prev"; then
1303 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1304 { echo "$as_me: error: missing argument to $ac_option" >&2
1305 { (exit 1); exit 1; }; }
1306 fi
1307
1308 # Be sure to have absolute directory names.
1309 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1310 datadir sysconfdir sharedstatedir localstatedir includedir \
1311 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1312 libdir localedir mandir
1313 do
1314 eval ac_val=\$$ac_var
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1320 { (exit 1); exit 1; }; }
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1335 If a cross compiler is detected then cross compile mode will be used." >&2
1336 elif test "x$build_alias" != "x$host_alias"; then
1337 cross_compiling=yes
1338 fi
1339 fi
1340
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344 test "$silent" = yes && exec 6>/dev/null
1345
1346
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350 { echo "$as_me: error: Working directory cannot be determined" >&2
1351 { (exit 1); exit 1; }; }
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 { echo "$as_me: error: pwd does not report name of working directory" >&2
1354 { (exit 1); exit 1; }; }
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$0" ||
1362 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$0" : 'X\(//\)[^/]' \| \
1364 X"$0" : 'X\(//\)$' \| \
1365 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1366 echo X"$0" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1387 fi
1388 else
1389 ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1394 { (exit 1); exit 1; }; }
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1399 { (exit 1); exit 1; }; }
1400 pwd)`
1401 # When building in place, set srcdir=.
1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1403 srcdir=.
1404 fi
1405 # Remove unnecessary trailing slashes from srcdir.
1406 # Double slashes in file names in object file debugging info
1407 # mess up M-x gdb in Emacs.
1408 case $srcdir in
1409 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1410 esac
1411 for ac_var in $ac_precious_vars; do
1412 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_env_${ac_var}_value=\$${ac_var}
1414 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1415 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1416 done
1417
1418 #
1419 # Report the --help message.
1420 #
1421 if test "$ac_init_help" = "long"; then
1422 # Omit some internal or obsolete options to make the list less imposing.
1423 # This message is too long to be a string in the A/UX 3.1 sh.
1424 cat <<_ACEOF
1425 \`configure' configures xf86-video-cirrus 1.3.0 to adapt to many kinds of systems.
1426
1427 Usage: $0 [OPTION]... [VAR=VALUE]...
1428
1429 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1430 VAR=VALUE. See below for descriptions of some of the useful variables.
1431
1432 Defaults for the options are specified in brackets.
1433
1434 Configuration:
1435 -h, --help display this help and exit
1436 --help=short display options specific to this package
1437 --help=recursive display the short help of all the included packages
1438 -V, --version display version information and exit
1439 -q, --quiet, --silent do not print \`checking...' messages
1440 --cache-file=FILE cache test results in FILE [disabled]
1441 -C, --config-cache alias for \`--cache-file=config.cache'
1442 -n, --no-create do not create output files
1443 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1444
1445 Installation directories:
1446 --prefix=PREFIX install architecture-independent files in PREFIX
1447 [$ac_default_prefix]
1448 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1449 [PREFIX]
1450
1451 By default, \`make install' will install all the files in
1452 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1453 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1454 for instance \`--prefix=\$HOME'.
1455
1456 For better control, use the options below.
1457
1458 Fine tuning of the installation directories:
1459 --bindir=DIR user executables [EPREFIX/bin]
1460 --sbindir=DIR system admin executables [EPREFIX/sbin]
1461 --libexecdir=DIR program executables [EPREFIX/libexec]
1462 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1463 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1464 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1465 --libdir=DIR object code libraries [EPREFIX/lib]
1466 --includedir=DIR C header files [PREFIX/include]
1467 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1468 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1469 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1470 --infodir=DIR info documentation [DATAROOTDIR/info]
1471 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1472 --mandir=DIR man documentation [DATAROOTDIR/man]
1473 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-cirrus]
1474 --htmldir=DIR html documentation [DOCDIR]
1475 --dvidir=DIR dvi documentation [DOCDIR]
1476 --pdfdir=DIR pdf documentation [DOCDIR]
1477 --psdir=DIR ps documentation [DOCDIR]
1478 _ACEOF
1479
1480 cat <<\_ACEOF
1481
1482 Program names:
1483 --program-prefix=PREFIX prepend PREFIX to installed program names
1484 --program-suffix=SUFFIX append SUFFIX to installed program names
1485 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1486
1487 System types:
1488 --build=BUILD configure for building on BUILD [guessed]
1489 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1490 _ACEOF
1491 fi
1492
1493 if test -n "$ac_init_help"; then
1494 case $ac_init_help in
1495 short | recursive ) echo "Configuration of xf86-video-cirrus 1.3.0:";;
1496 esac
1497 cat <<\_ACEOF
1498
1499 Optional Features:
1500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
1504 --enable-static[=PKGS] build static libraries [default=no]
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-dependency-tracking speeds up one-time build
1509 --enable-dependency-tracking do not reject slow dependency extractors
1510 --disable-libtool-lock avoid locking (might break parallel builds)
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1516 --with-pic try to use only PIC/non-PIC objects [default=use
1517 both]
1518 --with-tags[=TAGS] include additional configurations [automatic]
1519 --with-xorg-module-dir=DIR
1520 Default xorg module directory
1521 [default=$libdir/xorg/modules]
1522 --with-release-version=STRING
1523 Use release version string in package name
1524
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 CPP C preprocessor
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1536 CXXCPP C++ preprocessor
1537 F77 Fortran 77 compiler command
1538 FFLAGS Fortran 77 compiler flags
1539 PKG_CONFIG path to pkg-config utility
1540 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1541 XORG_LIBS linker flags for XORG, overriding pkg-config
1542 PCIACCESS_CFLAGS
1543 C compiler flags for PCIACCESS, overriding pkg-config
1544 PCIACCESS_LIBS
1545 linker flags for PCIACCESS, overriding pkg-config
1546
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1549
1550 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" || continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 xf86-video-cirrus configure 1.3.0
1612 generated by GNU Autoconf 2.61
1613
1614 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1615 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1620 fi
1621 cat >config.log <<_ACEOF
1622 This file contains any messages produced by compilers while
1623 running configure, to aid debugging if configure makes a mistake.
1624
1625 It was created by xf86-video-cirrus $as_me 1.3.0, which was
1626 generated by GNU Autoconf 2.61. Invocation command line was
1627
1628 $ $0 $@
1629
1630 _ACEOF
1631 exec 5>>config.log
1632 {
1633 cat <<_ASUNAME
1634 ## --------- ##
1635 ## Platform. ##
1636 ## --------- ##
1637
1638 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1639 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1640 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1641 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1642 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1643
1644 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1645 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1646
1647 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1648 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1649 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1650 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1651 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1652 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1653 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1654
1655 _ASUNAME
1656
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 for as_dir in $PATH
1659 do
1660 IFS=$as_save_IFS
1661 test -z "$as_dir" && as_dir=.
1662 echo "PATH: $as_dir"
1663 done
1664 IFS=$as_save_IFS
1665
1666 } >&5
1667
1668 cat >&5 <<_ACEOF
1669
1670
1671 ## ----------- ##
1672 ## Core tests. ##
1673 ## ----------- ##
1674
1675 _ACEOF
1676
1677
1678 # Keep a trace of the command line.
1679 # Strip out --no-create and --no-recursion so they do not pile up.
1680 # Strip out --silent because we don't want to record it for future runs.
1681 # Also quote any args containing shell meta-characters.
1682 # Make two passes to allow for proper duplicate-argument suppression.
1683 ac_configure_args=
1684 ac_configure_args0=
1685 ac_configure_args1=
1686 ac_must_keep_next=false
1687 for ac_pass in 1 2
1688 do
1689 for ac_arg
1690 do
1691 case $ac_arg in
1692 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1694 | -silent | --silent | --silen | --sile | --sil)
1695 continue ;;
1696 *\'*)
1697 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1698 esac
1699 case $ac_pass in
1700 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1701 2)
1702 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1703 if test $ac_must_keep_next = true; then
1704 ac_must_keep_next=false # Got value, back to normal.
1705 else
1706 case $ac_arg in
1707 *=* | --config-cache | -C | -disable-* | --disable-* \
1708 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1709 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1710 | -with-* | --with-* | -without-* | --without-* | --x)
1711 case "$ac_configure_args0 " in
1712 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1713 esac
1714 ;;
1715 -* ) ac_must_keep_next=true ;;
1716 esac
1717 fi
1718 ac_configure_args="$ac_configure_args '$ac_arg'"
1719 ;;
1720 esac
1721 done
1722 done
1723 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1724 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1725
1726 # When interrupted or exit'd, cleanup temporary files, and complete
1727 # config.log. We remove comments because anyway the quotes in there
1728 # would cause problems or look ugly.
1729 # WARNING: Use '\'' to represent an apostrophe within the trap.
1730 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1731 trap 'exit_status=$?
1732 # Save into config.log some information that might help in debugging.
1733 {
1734 echo
1735
1736 cat <<\_ASBOX
1737 ## ---------------- ##
1738 ## Cache variables. ##
1739 ## ---------------- ##
1740 _ASBOX
1741 echo
1742 # The following way of writing the cache mishandles newlines in values,
1743 (
1744 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1745 eval ac_val=\$$ac_var
1746 case $ac_val in #(
1747 *${as_nl}*)
1748 case $ac_var in #(
1749 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1750 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1751 esac
1752 case $ac_var in #(
1753 _ | IFS | as_nl) ;; #(
1754 *) $as_unset $ac_var ;;
1755 esac ;;
1756 esac
1757 done
1758 (set) 2>&1 |
1759 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1760 *${as_nl}ac_space=\ *)
1761 sed -n \
1762 "s/'\''/'\''\\\\'\'''\''/g;
1763 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1764 ;; #(
1765 *)
1766 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1767 ;;
1768 esac |
1769 sort
1770 )
1771 echo
1772
1773 cat <<\_ASBOX
1774 ## ----------------- ##
1775 ## Output variables. ##
1776 ## ----------------- ##
1777 _ASBOX
1778 echo
1779 for ac_var in $ac_subst_vars
1780 do
1781 eval ac_val=\$$ac_var
1782 case $ac_val in
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1784 esac
1785 echo "$ac_var='\''$ac_val'\''"
1786 done | sort
1787 echo
1788
1789 if test -n "$ac_subst_files"; then
1790 cat <<\_ASBOX
1791 ## ------------------- ##
1792 ## File substitutions. ##
1793 ## ------------------- ##
1794 _ASBOX
1795 echo
1796 for ac_var in $ac_subst_files
1797 do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in
1800 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801 esac
1802 echo "$ac_var='\''$ac_val'\''"
1803 done | sort
1804 echo
1805 fi
1806
1807 if test -s confdefs.h; then
1808 cat <<\_ASBOX
1809 ## ----------- ##
1810 ## confdefs.h. ##
1811 ## ----------- ##
1812 _ASBOX
1813 echo
1814 cat confdefs.h
1815 echo
1816 fi
1817 test "$ac_signal" != 0 &&
1818 echo "$as_me: caught signal $ac_signal"
1819 echo "$as_me: exit $exit_status"
1820 } >&5
1821 rm -f core *.core core.conftest.* &&
1822 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1823 exit $exit_status
1824 ' 0
1825 for ac_signal in 1 2 13 15; do
1826 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1827 done
1828 ac_signal=0
1829
1830 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1831 rm -f -r conftest* confdefs.h
1832
1833 # Predefined preprocessor variables.
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_NAME "$PACKAGE_NAME"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_STRING "$PACKAGE_STRING"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1857 _ACEOF
1858
1859
1860 # Let the site file select an alternate cache file if it wants to.
1861 # Prefer explicitly selected file to automatically selected ones.
1862 if test -n "$CONFIG_SITE"; then
1863 set x "$CONFIG_SITE"
1864 elif test "x$prefix" != xNONE; then
1865 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1866 else
1867 set x "$ac_default_prefix/share/config.site" \
1868 "$ac_default_prefix/etc/config.site"
1869 fi
1870 shift
1871 for ac_site_file
1872 do
1873 if test -r "$ac_site_file"; then
1874 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1875 echo "$as_me: loading site script $ac_site_file" >&6;}
1876 sed 's/^/| /' "$ac_site_file" >&5
1877 . "$ac_site_file"
1878 fi
1879 done
1880
1881 if test -r "$cache_file"; then
1882 # Some versions of bash will fail to source /dev/null (special
1883 # files actually), so we avoid doing that.
1884 if test -f "$cache_file"; then
1885 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1886 echo "$as_me: loading cache $cache_file" >&6;}
1887 case $cache_file in
1888 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1889 *) . "./$cache_file";;
1890 esac
1891 fi
1892 else
1893 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1894 echo "$as_me: creating cache $cache_file" >&6;}
1895 >$cache_file
1896 fi
1897
1898 # Check that the precious variables saved in the cache have kept the same
1899 # value.
1900 ac_cache_corrupted=false
1901 for ac_var in $ac_precious_vars; do
1902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1903 eval ac_new_set=\$ac_env_${ac_var}_set
1904 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1905 eval ac_new_val=\$ac_env_${ac_var}_value
1906 case $ac_old_set,$ac_new_set in
1907 set,)
1908 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1910 ac_cache_corrupted=: ;;
1911 ,set)
1912 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1914 ac_cache_corrupted=: ;;
1915 ,);;
1916 *)
1917 if test "x$ac_old_val" != "x$ac_new_val"; then
1918 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1921 echo "$as_me: former value: $ac_old_val" >&2;}
1922 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1923 echo "$as_me: current value: $ac_new_val" >&2;}
1924 ac_cache_corrupted=:
1925 fi;;
1926 esac
1927 # Pass precious variables to config.status.
1928 if test "$ac_new_set" = set; then
1929 case $ac_new_val in
1930 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931 *) ac_arg=$ac_var=$ac_new_val ;;
1932 esac
1933 case " $ac_configure_args " in
1934 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1935 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936 esac
1937 fi
1938 done
1939 if $ac_cache_corrupted; then
1940 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1943 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1944 { (exit 1); exit 1; }; }
1945 fi
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971 ac_ext=c
1972 ac_cpp='$CPP $CPPFLAGS'
1973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1976
1977
1978
1979
1980 ac_config_headers="$ac_config_headers config.h"
1981
1982 ac_aux_dir=
1983 for ac_dir in . "$srcdir"/.; do
1984 if test -f "$ac_dir/install-sh"; then
1985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install-sh -c"
1987 break
1988 elif test -f "$ac_dir/install.sh"; then
1989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/install.sh -c"
1991 break
1992 elif test -f "$ac_dir/shtool"; then
1993 ac_aux_dir=$ac_dir
1994 ac_install_sh="$ac_aux_dir/shtool install -c"
1995 break
1996 fi
1997 done
1998 if test -z "$ac_aux_dir"; then
1999 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
2000 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
2001 { (exit 1); exit 1; }; }
2002 fi
2003
2004 # These three variables are undocumented and unsupported,
2005 # and are intended to be withdrawn in a future Autoconf release.
2006 # They can cause serious problems if a builder's source tree is in a directory
2007 # whose full name contains unusual characters.
2008 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2009 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2010 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011
2012
2013
2014 am__api_version='1.10'
2015
2016 # Find a good install program. We prefer a C program (faster),
2017 # so one script is as good as another. But avoid the broken or
2018 # incompatible versions:
2019 # SysV /etc/install, /usr/sbin/install
2020 # SunOS /usr/etc/install
2021 # IRIX /sbin/install
2022 # AIX /bin/install
2023 # AmigaOS /C/install, which installs bootblocks on floppy discs
2024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2027 # OS/2's system install, which has a completely different semantic
2028 # ./install, which can be erroneously created by make from ./install.sh.
2029 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2031 if test -z "$INSTALL"; then
2032 if test "${ac_cv_path_install+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 # Account for people who put trailing slashes in PATH elements.
2041 case $as_dir/ in
2042 ./ | .// | /cC/* | \
2043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2045 /usr/ucb/* ) ;;
2046 *)
2047 # OSF1 and SCO ODT 3.0 have their own names for install.
2048 # Don't use installbsd from OSF since it installs stuff as root
2049 # by default.
2050 for ac_prog in ginstall scoinst install; do
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2053 if test $ac_prog = install &&
2054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2055 # AIX install. It has an incompatible calling convention.
2056 :
2057 elif test $ac_prog = install &&
2058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2059 # program-specific install script used by HP pwplus--don't use.
2060 :
2061 else
2062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2063 break 3
2064 fi
2065 fi
2066 done
2067 done
2068 ;;
2069 esac
2070 done
2071 IFS=$as_save_IFS
2072
2073
2074 fi
2075 if test "${ac_cv_path_install+set}" = set; then
2076 INSTALL=$ac_cv_path_install
2077 else
2078 # As a last resort, use the slow shell script. Don't cache a
2079 # value for INSTALL within a source directory, because that will
2080 # break other packages using the cache if that directory is
2081 # removed, or if the value is a relative name.
2082 INSTALL=$ac_install_sh
2083 fi
2084 fi
2085 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2086 echo "${ECHO_T}$INSTALL" >&6; }
2087
2088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2089 # It thinks the first close brace ends the variable substitution.
2090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2091
2092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2093
2094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2095
2096 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2097 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2098 # Just in case
2099 sleep 1
2100 echo timestamp > conftest.file
2101 # Do `set' in a subshell so we don't clobber the current shell's
2102 # arguments. Must try -L first in case configure is actually a
2103 # symlink; some systems play weird games with the mod time of symlinks
2104 # (eg FreeBSD returns the mod time of the symlink's containing
2105 # directory).
2106 if (
2107 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2108 if test "$*" = "X"; then
2109 # -L didn't work.
2110 set X `ls -t $srcdir/configure conftest.file`
2111 fi
2112 rm -f conftest.file
2113 if test "$*" != "X $srcdir/configure conftest.file" \
2114 && test "$*" != "X conftest.file $srcdir/configure"; then
2115
2116 # If neither matched, then we have a broken ls. This can happen
2117 # if, for instance, CONFIG_SHELL is bash and it inherits a
2118 # broken ls alias from the environment. This has actually
2119 # happened. Such a system could not be considered "sane".
2120 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2121 alias in your environment" >&5
2122 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2123 alias in your environment" >&2;}
2124 { (exit 1); exit 1; }; }
2125 fi
2126
2127 test "$2" = conftest.file
2128 )
2129 then
2130 # Ok.
2131 :
2132 else
2133 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2134 Check your system clock" >&5
2135 echo "$as_me: error: newly created file is older than distributed files!
2136 Check your system clock" >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139 { echo "$as_me:$LINENO: result: yes" >&5
2140 echo "${ECHO_T}yes" >&6; }
2141 test "$program_prefix" != NONE &&
2142 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2143 # Use a double $ so make ignores it.
2144 test "$program_suffix" != NONE &&
2145 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2146 # Double any \ or $. echo might interpret backslashes.
2147 # By default was `s,x,x', remove it if useless.
2148 cat <<\_ACEOF >conftest.sed
2149 s/[\\$]/&&/g;s/;s,x,x,$//
2150 _ACEOF
2151 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2152 rm -f conftest.sed
2153
2154 # expand $ac_aux_dir to an absolute path
2155 am_aux_dir=`cd $ac_aux_dir && pwd`
2156
2157 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2158 # Use eval to expand $SHELL
2159 if eval "$MISSING --run true"; then
2160 am_missing_run="$MISSING --run "
2161 else
2162 am_missing_run=
2163 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2164 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2165 fi
2166
2167 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2168 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2169 if test -z "$MKDIR_P"; then
2170 if test "${ac_cv_path_mkdir+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2175 do
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_prog in mkdir gmkdir; do
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2181 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2182 'mkdir (GNU coreutils) '* | \
2183 'mkdir (coreutils) '* | \
2184 'mkdir (fileutils) '4.1*)
2185 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2186 break 3;;
2187 esac
2188 done
2189 done
2190 done
2191 IFS=$as_save_IFS
2192
2193 fi
2194
2195 if test "${ac_cv_path_mkdir+set}" = set; then
2196 MKDIR_P="$ac_cv_path_mkdir -p"
2197 else
2198 # As a last resort, use the slow shell script. Don't cache a
2199 # value for MKDIR_P within a source directory, because that will
2200 # break other packages using the cache if that directory is
2201 # removed, or if the value is a relative name.
2202 test -d ./--version && rmdir ./--version
2203 MKDIR_P="$ac_install_sh -d"
2204 fi
2205 fi
2206 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2207 echo "${ECHO_T}$MKDIR_P" >&6; }
2208
2209 mkdir_p="$MKDIR_P"
2210 case $mkdir_p in
2211 [\\/$]* | ?:[\\/]*) ;;
2212 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2213 esac
2214
2215 for ac_prog in gawk mawk nawk awk
2216 do
2217 # Extract the first word of "$ac_prog", so it can be a program name with args.
2218 set dummy $ac_prog; ac_word=$2
2219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2221 if test "${ac_cv_prog_AWK+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224 if test -n "$AWK"; then
2225 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2226 else
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234 ac_cv_prog_AWK="$ac_prog"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238 done
2239 done
2240 IFS=$as_save_IFS
2241
2242 fi
2243 fi
2244 AWK=$ac_cv_prog_AWK
2245 if test -n "$AWK"; then
2246 { echo "$as_me:$LINENO: result: $AWK" >&5
2247 echo "${ECHO_T}$AWK" >&6; }
2248 else
2249 { echo "$as_me:$LINENO: result: no" >&5
2250 echo "${ECHO_T}no" >&6; }
2251 fi
2252
2253
2254 test -n "$AWK" && break
2255 done
2256
2257 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2258 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2259 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2260 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262 else
2263 cat >conftest.make <<\_ACEOF
2264 SHELL = /bin/sh
2265 all:
2266 @echo '@@@%%%=$(MAKE)=@@@%%%'
2267 _ACEOF
2268 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2269 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2270 *@@@%%%=?*=@@@%%%*)
2271 eval ac_cv_prog_make_${ac_make}_set=yes;;
2272 *)
2273 eval ac_cv_prog_make_${ac_make}_set=no;;
2274 esac
2275 rm -f conftest.make
2276 fi
2277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2278 { echo "$as_me:$LINENO: result: yes" >&5
2279 echo "${ECHO_T}yes" >&6; }
2280 SET_MAKE=
2281 else
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 SET_MAKE="MAKE=${MAKE-make}"
2285 fi
2286
2287 rm -rf .tst 2>/dev/null
2288 mkdir .tst 2>/dev/null
2289 if test -d .tst; then
2290 am__leading_dot=.
2291 else
2292 am__leading_dot=_
2293 fi
2294 rmdir .tst 2>/dev/null
2295
2296 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2297 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2298 # is not polluted with repeated "-I."
2299 am__isrc=' -I$(srcdir)'
2300 # test to see if srcdir already configured
2301 if test -f $srcdir/config.status; then
2302 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2303 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2304 { (exit 1); exit 1; }; }
2305 fi
2306 fi
2307
2308 # test whether we have cygpath
2309 if test -z "$CYGPATH_W"; then
2310 if (cygpath --version) >/dev/null 2>/dev/null; then
2311 CYGPATH_W='cygpath -w'
2312 else
2313 CYGPATH_W=echo
2314 fi
2315 fi
2316
2317
2318 # Define the identity of the package.
2319 PACKAGE='xf86-video-cirrus'
2320 VERSION='1.3.0'
2321
2322
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE "$PACKAGE"
2325 _ACEOF
2326
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define VERSION "$VERSION"
2330 _ACEOF
2331
2332 # Some tools Automake needs.
2333
2334 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2335
2336
2337 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2338
2339
2340 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2341
2342
2343 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2344
2345
2346 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2347
2348 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2349
2350 # Installed binaries are usually stripped using `strip' when the user
2351 # run `make install-strip'. However `strip' might not be the right
2352 # tool to use in cross-compilation environments, therefore Automake
2353 # will honor the `STRIP' environment variable to overrule this program.
2354 if test "$cross_compiling" != no; then
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}strip; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_STRIP+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 else
2363 if test -n "$STRIP"; then
2364 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 break 2
2376 fi
2377 done
2378 done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 STRIP=$ac_cv_prog_STRIP
2384 if test -n "$STRIP"; then
2385 { echo "$as_me:$LINENO: result: $STRIP" >&5
2386 echo "${ECHO_T}$STRIP" >&6; }
2387 else
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 fi
2391
2392
2393 fi
2394 if test -z "$ac_cv_prog_STRIP"; then
2395 ac_ct_STRIP=$STRIP
2396 # Extract the first word of "strip", so it can be a program name with args.
2397 set dummy strip; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403 if test -n "$ac_ct_STRIP"; then
2404 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409 IFS=$as_save_IFS
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_ac_ct_STRIP="strip"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 break 2
2416 fi
2417 done
2418 done
2419 IFS=$as_save_IFS
2420
2421 fi
2422 fi
2423 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2424 if test -n "$ac_ct_STRIP"; then
2425 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2426 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2427 else
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2430 fi
2431
2432 if test "x$ac_ct_STRIP" = x; then
2433 STRIP=":"
2434 else
2435 case $cross_compiling:$ac_tool_warned in
2436 yes:)
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2444 esac
2445 STRIP=$ac_ct_STRIP
2446 fi
2447 else
2448 STRIP="$ac_cv_prog_STRIP"
2449 fi
2450
2451 fi
2452 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2453
2454 # We need awk for the "check" target. The system "awk" is bad on
2455 # some platforms.
2456 # Always define AMTAR for backward compatibility.
2457
2458 AMTAR=${AMTAR-"${am_missing_run}tar"}
2459
2460 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2461
2462
2463
2464
2465
2466
2467 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2468 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2469 # Check whether --enable-maintainer-mode was given.
2470 if test "${enable_maintainer_mode+set}" = set; then
2471 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2472 else
2473 USE_MAINTAINER_MODE=no
2474 fi
2475
2476 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2477 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2478 if test $USE_MAINTAINER_MODE = yes; then
2479 MAINTAINER_MODE_TRUE=
2480 MAINTAINER_MODE_FALSE='#'
2481 else
2482 MAINTAINER_MODE_TRUE='#'
2483 MAINTAINER_MODE_FALSE=
2484 fi
2485
2486 MAINT=$MAINTAINER_MODE_TRUE
2487
2488
2489
2490 # Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503 # Checks for programs.
2504 # Check whether --enable-static was given.
2505 if test "${enable_static+set}" = set; then
2506 enableval=$enable_static; p=${PACKAGE-default}
2507 case $enableval in
2508 yes) enable_static=yes ;;
2509 no) enable_static=no ;;
2510 *)
2511 enable_static=no
2512 # Look at the argument we got. We use all the common list separators.
2513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2514 for pkg in $enableval; do
2515 IFS="$lt_save_ifs"
2516 if test "X$pkg" = "X$p"; then
2517 enable_static=yes
2518 fi
2519 done
2520 IFS="$lt_save_ifs"
2521 ;;
2522 esac
2523 else
2524 enable_static=no
2525 fi
2526
2527
2528
2529 # Check whether --enable-shared was given.
2530 if test "${enable_shared+set}" = set; then
2531 enableval=$enable_shared; p=${PACKAGE-default}
2532 case $enableval in
2533 yes) enable_shared=yes ;;
2534 no) enable_shared=no ;;
2535 *)
2536 enable_shared=no
2537 # Look at the argument we got. We use all the common list separators.
2538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2539 for pkg in $enableval; do
2540 IFS="$lt_save_ifs"
2541 if test "X$pkg" = "X$p"; then
2542 enable_shared=yes
2543 fi
2544 done
2545 IFS="$lt_save_ifs"
2546 ;;
2547 esac
2548 else
2549 enable_shared=yes
2550 fi
2551
2552
2553 # Check whether --enable-fast-install was given.
2554 if test "${enable_fast_install+set}" = set; then
2555 enableval=$enable_fast_install; p=${PACKAGE-default}
2556 case $enableval in
2557 yes) enable_fast_install=yes ;;
2558 no) enable_fast_install=no ;;
2559 *)
2560 enable_fast_install=no
2561 # Look at the argument we got. We use all the common list separators.
2562 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2563 for pkg in $enableval; do
2564 IFS="$lt_save_ifs"
2565 if test "X$pkg" = "X$p"; then
2566 enable_fast_install=yes
2567 fi
2568 done
2569 IFS="$lt_save_ifs"
2570 ;;
2571 esac
2572 else
2573 enable_fast_install=yes
2574 fi
2575
2576
2577 # Make sure we can run config.sub.
2578 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2579 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2580 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2581 { (exit 1); exit 1; }; }
2582
2583 { echo "$as_me:$LINENO: checking build system type" >&5
2584 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2585 if test "${ac_cv_build+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588 ac_build_alias=$build_alias
2589 test "x$ac_build_alias" = x &&
2590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2591 test "x$ac_build_alias" = x &&
2592 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2593 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2594 { (exit 1); exit 1; }; }
2595 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2596 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2597 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2598 { (exit 1); exit 1; }; }
2599
2600 fi
2601 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2602 echo "${ECHO_T}$ac_cv_build" >&6; }
2603 case $ac_cv_build in
2604 *-*-*) ;;
2605 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2606 echo "$as_me: error: invalid value of canonical build" >&2;}
2607 { (exit 1); exit 1; }; };;
2608 esac
2609 build=$ac_cv_build
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_build
2612 shift
2613 build_cpu=$1
2614 build_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 build_os=$*
2619 IFS=$ac_save_IFS
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623 { echo "$as_me:$LINENO: checking host system type" >&5
2624 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2625 if test "${ac_cv_host+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 if test "x$host_alias" = x; then
2629 ac_cv_host=$ac_cv_build
2630 else
2631 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2633 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2634 { (exit 1); exit 1; }; }
2635 fi
2636
2637 fi
2638 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2639 echo "${ECHO_T}$ac_cv_host" >&6; }
2640 case $ac_cv_host in
2641 *-*-*) ;;
2642 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2643 echo "$as_me: error: invalid value of canonical host" >&2;}
2644 { (exit 1); exit 1; }; };;
2645 esac
2646 host=$ac_cv_host
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_host
2649 shift
2650 host_cpu=$1
2651 host_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 host_os=$*
2656 IFS=$ac_save_IFS
2657 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2658
2659
2660 DEPDIR="${am__leading_dot}deps"
2661
2662 ac_config_commands="$ac_config_commands depfiles"
2663
2664
2665 am_make=${MAKE-make}
2666 cat > confinc << 'END'
2667 am__doit:
2668 @echo done
2669 .PHONY: am__doit
2670 END
2671 # If we don't find an include directive, just comment out the code.
2672 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2673 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2674 am__include="#"
2675 am__quote=
2676 _am_result=none
2677 # First try GNU make style include.
2678 echo "include confinc" > confmf
2679 # We grep out `Entering directory' and `Leaving directory'
2680 # messages which can occur if `w' ends up in MAKEFLAGS.
2681 # In particular we don't look at `^make:' because GNU make might
2682 # be invoked under some other name (usually "gmake"), in which
2683 # case it prints its new name instead of `make'.
2684 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2685 am__include=include
2686 am__quote=
2687 _am_result=GNU
2688 fi
2689 # Now try BSD make style include.
2690 if test "$am__include" = "#"; then
2691 echo '.include "confinc"' > confmf
2692 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2693 am__include=.include
2694 am__quote="\""
2695 _am_result=BSD
2696 fi
2697 fi
2698
2699
2700 { echo "$as_me:$LINENO: result: $_am_result" >&5
2701 echo "${ECHO_T}$_am_result" >&6; }
2702 rm -f confinc confmf
2703
2704 # Check whether --enable-dependency-tracking was given.
2705 if test "${enable_dependency_tracking+set}" = set; then
2706 enableval=$enable_dependency_tracking;
2707 fi
2708
2709 if test "x$enable_dependency_tracking" != xno; then
2710 am_depcomp="$ac_aux_dir/depcomp"
2711 AMDEPBACKSLASH='\'
2712 fi
2713 if test "x$enable_dependency_tracking" != xno; then
2714 AMDEP_TRUE=
2715 AMDEP_FALSE='#'
2716 else
2717 AMDEP_TRUE='#'
2718 AMDEP_FALSE=
2719 fi
2720
2721
2722 ac_ext=c
2723 ac_cpp='$CPP $CPPFLAGS'
2724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2729 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2732 if test "${ac_cv_prog_CC+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 else
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 for as_dir in $PATH
2740 do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749 done
2750 done
2751 IFS=$as_save_IFS
2752
2753 fi
2754 fi
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { echo "$as_me:$LINENO: result: $CC" >&5
2758 echo "${ECHO_T}$CC" >&6; }
2759 else
2760 { echo "$as_me:$LINENO: result: no" >&5
2761 echo "${ECHO_T}no" >&6; }
2762 fi
2763
2764
2765 fi
2766 if test -z "$ac_cv_prog_CC"; then
2767 ac_ct_CC=$CC
2768 # Extract the first word of "gcc", so it can be a program name with args.
2769 set dummy gcc; ac_word=$2
2770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2780 do
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_ac_ct_CC="gcc"
2786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2788 fi
2789 done
2790 done
2791 IFS=$as_save_IFS
2792
2793 fi
2794 fi
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2798 echo "${ECHO_T}$ac_ct_CC" >&6; }
2799 else
2800 { echo "$as_me:$LINENO: result: no" >&5
2801 echo "${ECHO_T}no" >&6; }
2802 fi
2803
2804 if test "x$ac_ct_CC" = x; then
2805 CC=""
2806 else
2807 case $cross_compiling:$ac_tool_warned in
2808 yes:)
2809 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2810 whose name does not start with the host triplet. If you think this
2811 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2812 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2813 whose name does not start with the host triplet. If you think this
2814 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2818 fi
2819 else
2820 CC="$ac_cv_prog_CC"
2821 fi
2822
2823 if test -z "$CC"; then
2824 if test -n "$ac_tool_prefix"; then
2825 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2826 set dummy ${ac_tool_prefix}cc; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 for as_dir in $PATH
2837 do
2838 IFS=$as_save_IFS
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CC="${ac_tool_prefix}cc"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851 fi
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { echo "$as_me:$LINENO: result: $CC" >&5
2855 echo "${ECHO_T}$CC" >&6; }
2856 else
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2859 fi
2860
2861
2862 fi
2863 fi
2864 if test -z "$CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc; ac_word=$2
2867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2869 if test "${ac_cv_prog_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$CC"; then
2873 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 else
2875 ac_prog_rejected=no
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2884 ac_prog_rejected=yes
2885 continue
2886 fi
2887 ac_cv_prog_CC="cc"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 if test $ac_prog_rejected = yes; then
2896 # We found a bogon in the path, so make sure we never use it.
2897 set dummy $ac_cv_prog_CC
2898 shift
2899 if test $# != 0; then
2900 # We chose a different compiler from the bogus one.
2901 # However, it has the same basename, so the bogon will be chosen
2902 # first if we set CC to just the basename; use the full file name.
2903 shift
2904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2905 fi
2906 fi
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2913 else
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$CC"; then
2921 if test -n "$ac_tool_prefix"; then
2922 for ac_prog in cl.exe
2923 do
2924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2941 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 break 2
2944 fi
2945 done
2946 done
2947 IFS=$as_save_IFS
2948
2949 fi
2950 fi
2951 CC=$ac_cv_prog_CC
2952 if test -n "$CC"; then
2953 { echo "$as_me:$LINENO: result: $CC" >&5
2954 echo "${ECHO_T}$CC" >&6; }
2955 else
2956 { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960
2961 test -n "$CC" && break
2962 done
2963 fi
2964 if test -z "$CC"; then
2965 ac_ct_CC=$CC
2966 for ac_prog in cl.exe
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2974 else
2975 if test -n "$ac_ct_CC"; then
2976 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_CC="$ac_prog"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2996 if test -n "$ac_ct_CC"; then
2997 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2998 echo "${ECHO_T}$ac_ct_CC" >&6; }
2999 else
3000 { echo "$as_me:$LINENO: result: no" >&5
3001 echo "${ECHO_T}no" >&6; }
3002 fi
3003
3004
3005 test -n "$ac_ct_CC" && break
3006 done
3007
3008 if test "x$ac_ct_CC" = x; then
3009 CC=""
3010 else
3011 case $cross_compiling:$ac_tool_warned in
3012 yes:)
3013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3014 whose name does not start with the host triplet. If you think this
3015 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
3016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3017 whose name does not start with the host triplet. If you think this
3018 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
3019 ac_tool_warned=yes ;;
3020 esac
3021 CC=$ac_ct_CC
3022 fi
3023 fi
3024
3025 fi
3026
3027
3028 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: no acceptable C compiler found in \$PATH
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033
3034 # Provide some information about the compiler.
3035 echo "$as_me:$LINENO: checking for C compiler version" >&5
3036 ac_compiler=`set X $ac_compile; echo $2`
3037 { (ac_try="$ac_compiler --version >&5"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_compiler --version >&5") 2>&5
3044 ac_status=$?
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }
3047 { (ac_try="$ac_compiler -v >&5"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compiler -v >&5") 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }
3057 { (ac_try="$ac_compiler -V >&5"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063 (eval "$ac_compiler -V >&5") 2>&5
3064 ac_status=$?
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); }
3067
3068 cat >conftest.$ac_ext <<_ACEOF
3069 /* confdefs.h. */
3070 _ACEOF
3071 cat confdefs.h >>conftest.$ac_ext
3072 cat >>conftest.$ac_ext <<_ACEOF
3073 /* end confdefs.h. */
3074
3075 int
3076 main ()
3077 {
3078
3079 ;
3080 return 0;
3081 }
3082 _ACEOF
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3087 # of exeext.
3088 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3089 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3090 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3091 #
3092 # List of possible output files, starting from the most likely.
3093 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3094 # only as a last resort. b.out is created by i960 compilers.
3095 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3096 #
3097 # The IRIX 6 linker writes into existing files which may not be
3098 # executable, retaining their permissions. Remove them first so a
3099 # subsequent execution test works.
3100 ac_rmfiles=
3101 for ac_file in $ac_files
3102 do
3103 case $ac_file in
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106 esac
3107 done
3108 rm -f $ac_rmfiles
3109
3110 if { (ac_try="$ac_link_default"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_link_default") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3121 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3122 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3123 # so that the user can short-circuit this test for compilers unknown to
3124 # Autoconf.
3125 for ac_file in $ac_files ''
3126 do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3130 ;;
3131 [ab].out )
3132 # We found the default executable, but exeext='' is most
3133 # certainly right.
3134 break;;
3135 *.* )
3136 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3137 then :; else
3138 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3139 fi
3140 # We set ac_cv_exeext here because the later test for it is not
3141 # safe: cross compilers may not add the suffix if given an `-o'
3142 # argument, so we may need to know it at that point already.
3143 # Even if this section looks crufty: it has the advantage of
3144 # actually working.
3145 break;;
3146 * )
3147 break;;
3148 esac
3149 done
3150 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151
3152 else
3153 ac_file=''
3154 fi
3155
3156 { echo "$as_me:$LINENO: result: $ac_file" >&5
3157 echo "${ECHO_T}$ac_file" >&6; }
3158 if test -z "$ac_file"; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3163 See \`config.log' for more details." >&5
3164 echo "$as_me: error: C compiler cannot create executables
3165 See \`config.log' for more details." >&2;}
3166 { (exit 77); exit 77; }; }
3167 fi
3168
3169 ac_exeext=$ac_cv_exeext
3170
3171 # Check that the compiler produces executables we can run. If not, either
3172 # the compiler is broken, or we cross compile.
3173 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3174 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3175 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3176 # If not cross compiling, check that we can run a simple program.
3177 if test "$cross_compiling" != yes; then
3178 if { ac_try='./$ac_file'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
3188 cross_compiling=no
3189 else
3190 if test "$cross_compiling" = maybe; then
3191 cross_compiling=yes
3192 else
3193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3194 If you meant to cross compile, use \`--host'.
3195 See \`config.log' for more details." >&5
3196 echo "$as_me: error: cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details." >&2;}
3199 { (exit 1); exit 1; }; }
3200 fi
3201 fi
3202 fi
3203 { echo "$as_me:$LINENO: result: yes" >&5
3204 echo "${ECHO_T}yes" >&6; }
3205
3206 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3207 ac_clean_files=$ac_clean_files_save
3208 # Check that the compiler produces executables we can run. If not, either
3209 # the compiler is broken, or we cross compile.
3210 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3211 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3212 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3213 echo "${ECHO_T}$cross_compiling" >&6; }
3214
3215 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3216 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3217 if { (ac_try="$ac_link"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_link") 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; then
3227 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3229 # work properly (i.e., refer to `conftest.exe'), while it won't with
3230 # `rm'.
3231 for ac_file in conftest.exe conftest conftest.*; do
3232 test -f "$ac_file" || continue
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 break;;
3237 * ) break;;
3238 esac
3239 done
3240 else
3241 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3242 See \`config.log' for more details." >&5
3243 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3244 See \`config.log' for more details." >&2;}
3245 { (exit 1); exit 1; }; }
3246 fi
3247
3248 rm -f conftest$ac_cv_exeext
3249 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3250 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3251
3252 rm -f conftest.$ac_ext
3253 EXEEXT=$ac_cv_exeext
3254 ac_exeext=$EXEEXT
3255 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3256 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3257 if test "${ac_cv_objext+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266
3267 int
3268 main ()
3269 {
3270
3271 ;
3272 return 0;
3273 }
3274 _ACEOF
3275 rm -f conftest.o conftest.obj
3276 if { (ac_try="$ac_compile"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3282 (eval "$ac_compile") 2>&5
3283 ac_status=$?
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; then
3286 for ac_file in conftest.o conftest.obj conftest.*; do
3287 test -f "$ac_file" || continue;
3288 case $ac_file in
3289 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3290 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3291 break;;
3292 esac
3293 done
3294 else
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3303 fi
3304
3305 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3306 fi
3307 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3308 echo "${ECHO_T}$ac_cv_objext" >&6; }
3309 OBJEXT=$ac_cv_objext
3310 ac_objext=$OBJEXT
3311 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3312 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3313 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 cat >conftest.$ac_ext <<_ACEOF
3317 /* confdefs.h. */
3318 _ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3322
3323 int
3324 main ()
3325 {
3326 #ifndef __GNUC__
3327 choke me
3328 #endif
3329
3330 ;
3331 return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3342 ac_status=$?
3343 grep -v '^ *+' conftest.er1 >conftest.err
3344 rm -f conftest.er1
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3351 ac_compiler_gnu=yes
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 ac_compiler_gnu=no
3357 fi
3358
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3361
3362 fi
3363 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3364 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3365 GCC=`test $ac_compiler_gnu = yes && echo yes`
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3369 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3370 if test "${ac_cv_prog_cc_g+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 else
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3375 ac_cv_prog_cc_g=no
3376 CFLAGS="-g"
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_compile") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } && {
3406 test -z "$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 } && test -s conftest.$ac_objext; then
3409 ac_cv_prog_cc_g=yes
3410 else
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3413
3414 CFLAGS=""
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 :
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 ac_c_werror_flag=$ac_save_c_werror_flag
3453 CFLAGS="-g"
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464
3465 ;
3466 return 0;
3467 }
3468 _ACEOF
3469 rm -f conftest.$ac_objext
3470 if { (ac_try="$ac_compile"
3471 case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_compile") 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } && {
3483 test -z "$ac_c_werror_flag" ||
3484 test ! -s conftest.err
3485 } && test -s conftest.$ac_objext; then
3486 ac_cv_prog_cc_g=yes
3487 else
3488 echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 fi
3499
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 ac_c_werror_flag=$ac_save_c_werror_flag
3502 fi
3503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3505 if test "$ac_test_CFLAGS" = set; then
3506 CFLAGS=$ac_save_CFLAGS
3507 elif test $ac_cv_prog_cc_g = yes; then
3508 if test "$GCC" = yes; then
3509 CFLAGS="-g -O2"
3510 else
3511 CFLAGS="-g"
3512 fi
3513 else
3514 if test "$GCC" = yes; then
3515 CFLAGS="-O2"
3516 else
3517 CFLAGS=
3518 fi
3519 fi
3520 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3521 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3522 if test "${ac_cv_prog_cc_c89+set}" = set; then
3523 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 else
3525 ac_cv_prog_cc_c89=no
3526 ac_save_CC=$CC
3527 cat >conftest.$ac_ext <<_ACEOF
3528 /* confdefs.h. */
3529 _ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3533 #include <stdarg.h>
3534 #include <stdio.h>
3535 #include <sys/types.h>
3536 #include <sys/stat.h>
3537 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3538 struct buf { int x; };
3539 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3540 static char *e (p, i)
3541 char **p;
3542 int i;
3543 {
3544 return p[i];
3545 }
3546 static char *f (char * (*g) (char **, int), char **p, ...)
3547 {
3548 char *s;
3549 va_list v;
3550 va_start (v,p);
3551 s = g (p, va_arg (v,int));
3552 va_end (v);
3553 return s;
3554 }
3555
3556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3557 function prototypes and stuff, but not '\xHH' hex character constants.
3558 These don't provoke an error unfortunately, instead are silently treated
3559 as 'x'. The following induces an error, until -std is added to get
3560 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3561 array size at least. It's necessary to write '\x00'==0 to get something
3562 that's true only with -std. */
3563 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564
3565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3566 inside strings and character constants. */
3567 #define FOO(x) 'x'
3568 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569
3570 int test (int i, double x);
3571 struct s1 {int (*f) (int a);};
3572 struct s2 {int (*f) (double a);};
3573 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 int argc;
3575 char **argv;
3576 int
3577 main ()
3578 {
3579 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3585 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 do
3587 CC="$ac_save_CC $ac_arg"
3588 rm -f conftest.$ac_objext
3589 if { (ac_try="$ac_compile"
3590 case "(($ac_try" in
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3593 esac
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_compile") 2>conftest.er1
3596 ac_status=$?
3597 grep -v '^ *+' conftest.er1 >conftest.err
3598 rm -f conftest.er1
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } && {
3602 test -z "$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3604 } && test -s conftest.$ac_objext; then
3605 ac_cv_prog_cc_c89=$ac_arg
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3609
3610
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext
3614 test "x$ac_cv_prog_cc_c89" != "xno" && break
3615 done
3616 rm -f conftest.$ac_ext
3617 CC=$ac_save_CC
3618
3619 fi
3620 # AC_CACHE_VAL
3621 case "x$ac_cv_prog_cc_c89" in
3622 x)
3623 { echo "$as_me:$LINENO: result: none needed" >&5
3624 echo "${ECHO_T}none needed" >&6; } ;;
3625 xno)
3626 { echo "$as_me:$LINENO: result: unsupported" >&5
3627 echo "${ECHO_T}unsupported" >&6; } ;;
3628 *)
3629 CC="$CC $ac_cv_prog_cc_c89"
3630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3631 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3632 esac
3633
3634
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640
3641 depcc="$CC" am_compiler_list=
3642
3643 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3644 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3645 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3649 # We make a subdir and do the tests there. Otherwise we can end up
3650 # making bogus files that we don't know about and never remove. For
3651 # instance it was reported that on HP-UX the gcc test will end up
3652 # making a dummy file named `D' -- because `-MD' means `put the output
3653 # in D'.
3654 mkdir conftest.dir
3655 # Copy depcomp to subdir because otherwise we won't find it if we're
3656 # using a relative directory.
3657 cp "$am_depcomp" conftest.dir
3658 cd conftest.dir
3659 # We will build objects and dependencies in a subdirectory because
3660 # it helps to detect inapplicable dependency modes. For instance
3661 # both Tru64's cc and ICC support -MD to output dependencies as a
3662 # side effect of compilation, but ICC will put the dependencies in
3663 # the current directory while Tru64 will put them in the object
3664 # directory.
3665 mkdir sub
3666
3667 am_cv_CC_dependencies_compiler_type=none
3668 if test "$am_compiler_list" = ""; then
3669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3670 fi
3671 for depmode in $am_compiler_list; do
3672 # Setup a source with many dependencies, because some compilers
3673 # like to wrap large dependency lists on column 80 (with \), and
3674 # we should not choose a depcomp mode which is confused by this.
3675 #
3676 # We need to recreate these files for each test, as the compiler may
3677 # overwrite some of them when testing with obscure command lines.
3678 # This happens at least with the AIX C compiler.
3679 : > sub/conftest.c
3680 for i in 1 2 3 4 5 6; do
3681 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3682 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3683 # Solaris 8's {/usr,}/bin/sh.
3684 touch sub/conftst$i.h
3685 done
3686 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3687
3688 case $depmode in
3689 nosideeffect)
3690 # after this tag, mechanisms are not by side-effect, so they'll
3691 # only be used when explicitly requested
3692 if test "x$enable_dependency_tracking" = xyes; then
3693 continue
3694 else
3695 break
3696 fi
3697 ;;
3698 none) break ;;
3699 esac
3700 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3701 # mode. It turns out that the SunPro C++ compiler does not properly
3702 # handle `-M -o', and we need to detect this.
3703 if depmode=$depmode \
3704 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3706 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3707 >/dev/null 2>conftest.err &&
3708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3710 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3712 # icc doesn't choke on unknown options, it will just issue warnings
3713 # or remarks (even with -Werror). So we grep stderr for any message
3714 # that says an option was ignored or not supported.
3715 # When given -MP, icc 7.0 and 7.1 complain thusly:
3716 # icc: Command line warning: ignoring option '-M'; no argument required
3717 # The diagnosis changed in icc 8.0:
3718 # icc: Command line remark: option '-MP' not supported
3719 if (grep 'ignoring option' conftest.err ||
3720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3721 am_cv_CC_dependencies_compiler_type=$depmode
3722 break
3723 fi
3724 fi
3725 done
3726
3727 cd ..
3728 rm -rf conftest.dir
3729 else
3730 am_cv_CC_dependencies_compiler_type=none
3731 fi
3732
3733 fi
3734 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3735 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3736 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3737
3738 if
3739 test "x$enable_dependency_tracking" != xno \
3740 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3741 am__fastdepCC_TRUE=
3742 am__fastdepCC_FALSE='#'
3743 else
3744 am__fastdepCC_TRUE='#'
3745 am__fastdepCC_FALSE=
3746 fi
3747
3748
3749 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3750 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3751 if test "${lt_cv_path_SED+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754 # Loop through the user's path and test for sed and gsed.
3755 # Then use that list of sed's as ones to test for truncation.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for lt_ac_prog in sed gsed; do
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3764 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3765 fi
3766 done
3767 done
3768 done
3769 lt_ac_max=0
3770 lt_ac_count=0
3771 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3772 # along with /bin/sed that truncates output.
3773 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3774 test ! -f $lt_ac_sed && continue
3775 cat /dev/null > conftest.in
3776 lt_ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3778 # Check for GNU sed and select it if it is found.
3779 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3780 lt_cv_path_SED=$lt_ac_sed
3781 break
3782 fi
3783 while true; do
3784 cat conftest.in conftest.in >conftest.tmp
3785 mv conftest.tmp conftest.in
3786 cp conftest.in conftest.nl
3787 echo >>conftest.nl
3788 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3789 cmp -s conftest.out conftest.nl || break
3790 # 10000 chars as input seems more than enough
3791 test $lt_ac_count -gt 10 && break
3792 lt_ac_count=`expr $lt_ac_count + 1`
3793 if test $lt_ac_count -gt $lt_ac_max; then
3794 lt_ac_max=$lt_ac_count
3795 lt_cv_path_SED=$lt_ac_sed
3796 fi
3797 done
3798 done
3799
3800 fi
3801
3802 SED=$lt_cv_path_SED
3803 { echo "$as_me:$LINENO: result: $SED" >&5
3804 echo "${ECHO_T}$SED" >&6; }
3805
3806 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3807 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3808 if test "${ac_cv_path_GREP+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 # Extract the first word of "grep ggrep" to use in msg output
3812 if test -z "$GREP"; then
3813 set dummy grep ggrep; ac_prog_name=$2
3814 if test "${ac_cv_path_GREP+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817 ac_path_GREP_found=false
3818 # Loop through the user's path and test for each of PROGNAME-LIST
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3821 do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_prog in grep ggrep; do
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3827 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3828 # Check for GNU ac_path_GREP and select it if it is found.
3829 # Check for GNU $ac_path_GREP
3830 case `"$ac_path_GREP" --version 2>&1` in
3831 *GNU*)
3832 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3833 *)
3834 ac_count=0
3835 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3836 while :
3837 do
3838 cat "conftest.in" "conftest.in" >"conftest.tmp"
3839 mv "conftest.tmp" "conftest.in"
3840 cp "conftest.in" "conftest.nl"
3841 echo 'GREP' >> "conftest.nl"
3842 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3844 ac_count=`expr $ac_count + 1`
3845 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3846 # Best one so far, save it but keep looking for a better one
3847 ac_cv_path_GREP="$ac_path_GREP"
3848 ac_path_GREP_max=$ac_count
3849 fi
3850 # 10*(2^10) chars as input seems more than enough
3851 test $ac_count -gt 10 && break
3852 done
3853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3854 esac
3855
3856
3857 $ac_path_GREP_found && break 3
3858 done
3859 done
3860
3861 done
3862 IFS=$as_save_IFS
3863
3864
3865 fi
3866
3867 GREP="$ac_cv_path_GREP"
3868 if test -z "$GREP"; then
3869 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3870 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3871 { (exit 1); exit 1; }; }
3872 fi
3873
3874 else
3875 ac_cv_path_GREP=$GREP
3876 fi
3877
3878
3879 fi
3880 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3881 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3882 GREP="$ac_cv_path_GREP"
3883
3884
3885 { echo "$as_me:$LINENO: checking for egrep" >&5
3886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3887 if test "${ac_cv_path_EGREP+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3891 then ac_cv_path_EGREP="$GREP -E"
3892 else
3893 # Extract the first word of "egrep" to use in msg output
3894 if test -z "$EGREP"; then
3895 set dummy egrep; ac_prog_name=$2
3896 if test "${ac_cv_path_EGREP+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 ac_path_EGREP_found=false
3900 # Loop through the user's path and test for each of PROGNAME-LIST
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3903 do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_prog in egrep; do
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3909 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3910 # Check for GNU ac_path_EGREP and select it if it is found.
3911 # Check for GNU $ac_path_EGREP
3912 case `"$ac_path_EGREP" --version 2>&1` in
3913 *GNU*)
3914 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3915 *)
3916 ac_count=0
3917 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3918 while :
3919 do
3920 cat "conftest.in" "conftest.in" >"conftest.tmp"
3921 mv "conftest.tmp" "conftest.in"
3922 cp "conftest.in" "conftest.nl"
3923 echo 'EGREP' >> "conftest.nl"
3924 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3925 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3926 ac_count=`expr $ac_count + 1`
3927 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3928 # Best one so far, save it but keep looking for a better one
3929 ac_cv_path_EGREP="$ac_path_EGREP"
3930 ac_path_EGREP_max=$ac_count
3931 fi
3932 # 10*(2^10) chars as input seems more than enough
3933 test $ac_count -gt 10 && break
3934 done
3935 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3936 esac
3937
3938
3939 $ac_path_EGREP_found && break 3
3940 done
3941 done
3942
3943 done
3944 IFS=$as_save_IFS
3945
3946
3947 fi
3948
3949 EGREP="$ac_cv_path_EGREP"
3950 if test -z "$EGREP"; then
3951 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3953 { (exit 1); exit 1; }; }
3954 fi
3955
3956 else
3957 ac_cv_path_EGREP=$EGREP
3958 fi
3959
3960
3961 fi
3962 fi
3963 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3964 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3965 EGREP="$ac_cv_path_EGREP"
3966
3967
3968
3969 # Check whether --with-gnu-ld was given.
3970 if test "${with_gnu_ld+set}" = set; then
3971 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3972 else
3973 with_gnu_ld=no
3974 fi
3975
3976 ac_prog=ld
3977 if test "$GCC" = yes; then
3978 # Check if gcc -print-prog-name=ld gives a path.
3979 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3980 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3981 case $host in
3982 *-*-mingw*)
3983 # gcc leaves a trailing carriage return which upsets mingw
3984 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3985 *)
3986 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3987 esac
3988 case $ac_prog in
3989 # Accept absolute paths.
3990 [\\/]* | ?:[\\/]*)
3991 re_direlt='/[^/][^/]*/\.\./'
3992 # Canonicalize the pathname of ld
3993 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3994 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3995 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3996 done
3997 test -z "$LD" && LD="$ac_prog"
3998 ;;
3999 "")
4000 # If it fails, then pretend we aren't using GCC.
4001 ac_prog=ld
4002 ;;
4003 *)
4004 # If it is relative, then search for the first ld in PATH.
4005 with_gnu_ld=unknown
4006 ;;
4007 esac
4008 elif test "$with_gnu_ld" = yes; then
4009 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4010 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4011 else
4012 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4013 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4014 fi
4015 if test "${lt_cv_path_LD+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018 if test -z "$LD"; then
4019 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4020 for ac_dir in $PATH; do
4021 IFS="$lt_save_ifs"
4022 test -z "$ac_dir" && ac_dir=.
4023 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4024 lt_cv_path_LD="$ac_dir/$ac_prog"
4025 # Check to see if the program is GNU ld. I'd rather use --version,
4026 # but apparently some variants of GNU ld only accept -v.
4027 # Break only if it was the GNU/non-GNU ld that we prefer.
4028 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4029 *GNU* | *'with BFD'*)
4030 test "$with_gnu_ld" != no && break
4031 ;;
4032 *)
4033 test "$with_gnu_ld" != yes && break
4034 ;;
4035 esac
4036 fi
4037 done
4038 IFS="$lt_save_ifs"
4039 else
4040 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4041 fi
4042 fi
4043
4044 LD="$lt_cv_path_LD"
4045 if test -n "$LD"; then
4046 { echo "$as_me:$LINENO: result: $LD" >&5
4047 echo "${ECHO_T}$LD" >&6; }
4048 else
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4051 fi
4052 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4053 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4054 { (exit 1); exit 1; }; }
4055 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4056 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4057 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4061 case `$LD -v 2>&1 </dev/null` in
4062 *GNU* | *'with BFD'*)
4063 lt_cv_prog_gnu_ld=yes
4064 ;;
4065 *)
4066 lt_cv_prog_gnu_ld=no
4067 ;;
4068 esac
4069 fi
4070 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4071 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4072 with_gnu_ld=$lt_cv_prog_gnu_ld
4073
4074
4075 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4076 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4077 if test "${lt_cv_ld_reload_flag+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 lt_cv_ld_reload_flag='-r'
4081 fi
4082 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4083 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4084 reload_flag=$lt_cv_ld_reload_flag
4085 case $reload_flag in
4086 "" | " "*) ;;
4087 *) reload_flag=" $reload_flag" ;;
4088 esac
4089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4090 case $host_os in
4091 darwin*)
4092 if test "$GCC" = yes; then
4093 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4094 else
4095 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4096 fi
4097 ;;
4098 esac
4099
4100 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4101 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4102 if test "${lt_cv_path_NM+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 if test -n "$NM"; then
4106 # Let the user override the test.
4107 lt_cv_path_NM="$NM"
4108 else
4109 lt_nm_to_check="${ac_tool_prefix}nm"
4110 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4111 lt_nm_to_check="$lt_nm_to_check nm"
4112 fi
4113 for lt_tmp_nm in $lt_nm_to_check; do
4114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4115 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4116 IFS="$lt_save_ifs"
4117 test -z "$ac_dir" && ac_dir=.
4118 tmp_nm="$ac_dir/$lt_tmp_nm"
4119 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4120 # Check to see if the nm accepts a BSD-compat flag.
4121 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4122 # nm: unknown option "B" ignored
4123 # Tru64's nm complains that /dev/null is an invalid object file
4124 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4125 */dev/null* | *'Invalid file or object type'*)
4126 lt_cv_path_NM="$tmp_nm -B"
4127 break
4128 ;;
4129 *)
4130 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4131 */dev/null*)
4132 lt_cv_path_NM="$tmp_nm -p"
4133 break
4134 ;;
4135 *)
4136 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4137 continue # so that we can try to find one that supports BSD flags
4138 ;;
4139 esac
4140 ;;
4141 esac
4142 fi
4143 done
4144 IFS="$lt_save_ifs"
4145 done
4146 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4147 fi
4148 fi
4149 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4150 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4151 NM="$lt_cv_path_NM"
4152
4153 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4154 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4155 LN_S=$as_ln_s
4156 if test "$LN_S" = "ln -s"; then
4157 { echo "$as_me:$LINENO: result: yes" >&5
4158 echo "${ECHO_T}yes" >&6; }
4159 else
4160 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4161 echo "${ECHO_T}no, using $LN_S" >&6; }
4162 fi
4163
4164 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4165 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4166 if test "${lt_cv_deplibs_check_method+set}" = set; then
4167 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169 lt_cv_file_magic_cmd='$MAGIC_CMD'
4170 lt_cv_file_magic_test_file=
4171 lt_cv_deplibs_check_method='unknown'
4172 # Need to set the preceding variable on all platforms that support
4173 # interlibrary dependencies.
4174 # 'none' -- dependencies not supported.
4175 # `unknown' -- same as none, but documents that we really don't know.
4176 # 'pass_all' -- all dependencies passed with no checks.
4177 # 'test_compile' -- check by making test program.
4178 # 'file_magic [[regex]]' -- check by looking for files in library path
4179 # which responds to the $file_magic_cmd with a given extended regex.
4180 # If you have `file' or equivalent on your system and you're not sure
4181 # whether `pass_all' will *always* work, you probably want this one.
4182
4183 case $host_os in
4184 aix4* | aix5*)
4185 lt_cv_deplibs_check_method=pass_all
4186 ;;
4187
4188 beos*)
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192 bsdi[45]*)
4193 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4194 lt_cv_file_magic_cmd='/usr/bin/file -L'
4195 lt_cv_file_magic_test_file=/shlib/libc.so
4196 ;;
4197
4198 cygwin*)
4199 # func_win32_libid is a shell function defined in ltmain.sh
4200 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4201 lt_cv_file_magic_cmd='func_win32_libid'
4202 ;;
4203
4204 mingw* | pw32*)
4205 # Base MSYS/MinGW do not provide the 'file' command needed by
4206 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4207 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4208 lt_cv_file_magic_cmd='$OBJDUMP -f'
4209 ;;
4210
4211 darwin* | rhapsody*)
4212 lt_cv_deplibs_check_method=pass_all
4213 ;;
4214
4215 freebsd* | kfreebsd*-gnu | dragonfly*)
4216 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4217 case $host_cpu in
4218 i*86 )
4219 # Not sure whether the presence of OpenBSD here was a mistake.
4220 # Let's accept both of them until this is cleared up.
4221 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4222 lt_cv_file_magic_cmd=/usr/bin/file
4223 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4224 ;;
4225 esac
4226 else
4227 lt_cv_deplibs_check_method=pass_all
4228 fi
4229 ;;
4230
4231 gnu*)
4232 lt_cv_deplibs_check_method=pass_all
4233 ;;
4234
4235 hpux10.20* | hpux11*)
4236 lt_cv_file_magic_cmd=/usr/bin/file
4237 case $host_cpu in
4238 ia64*)
4239 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4240 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4241 ;;
4242 hppa*64*)
4243 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]'
4244 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4245 ;;
4246 *)
4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4249 ;;
4250 esac
4251 ;;
4252
4253 interix3*)
4254 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4256 ;;
4257
4258 irix5* | irix6* | nonstopux*)
4259 case $LD in
4260 *-32|*"-32 ") libmagic=32-bit;;
4261 *-n32|*"-n32 ") libmagic=N32;;
4262 *-64|*"-64 ") libmagic=64-bit;;
4263 *) libmagic=never-match;;
4264 esac
4265 lt_cv_deplibs_check_method=pass_all
4266 ;;
4267
4268 # This must be Linux ELF.
4269 linux*)
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273 netbsd*)
4274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4276 else
4277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4278 fi
4279 ;;
4280
4281 newos6*)
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4283 lt_cv_file_magic_cmd=/usr/bin/file
4284 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4285 ;;
4286
4287 nto-qnx*)
4288 lt_cv_deplibs_check_method=unknown
4289 ;;
4290
4291 openbsd*)
4292 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4294 else
4295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4296 fi
4297 ;;
4298
4299 osf3* | osf4* | osf5*)
4300 lt_cv_deplibs_check_method=pass_all
4301 ;;
4302
4303 solaris*)
4304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
4307 sysv4 | sysv4.3*)
4308 case $host_vendor in
4309 motorola)
4310 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]'
4311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4312 ;;
4313 ncr)
4314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316 sequent)
4317 lt_cv_file_magic_cmd='/bin/file'
4318 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4319 ;;
4320 sni)
4321 lt_cv_file_magic_cmd='/bin/file'
4322 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4323 lt_cv_file_magic_test_file=/lib/libc.so
4324 ;;
4325 siemens)
4326 lt_cv_deplibs_check_method=pass_all
4327 ;;
4328 pc)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331 esac
4332 ;;
4333
4334 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
4337 esac
4338
4339 fi
4340 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4342 file_magic_cmd=$lt_cv_file_magic_cmd
4343 deplibs_check_method=$lt_cv_deplibs_check_method
4344 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4345
4346
4347
4348
4349 # If no C compiler was specified, use CC.
4350 LTCC=${LTCC-"$CC"}
4351
4352 # If no C compiler flags were specified, use CFLAGS.
4353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4354
4355 # Allow CC to be a program name with arguments.
4356 compiler=$CC
4357
4358
4359 # Check whether --enable-libtool-lock was given.
4360 if test "${enable_libtool_lock+set}" = set; then
4361 enableval=$enable_libtool_lock;
4362 fi
4363
4364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4365
4366 # Some flags need to be propagated to the compiler or linker for good
4367 # libtool support.
4368 case $host in
4369 ia64-*-hpux*)
4370 # Find out which ABI we are using.
4371 echo 'int i;' > conftest.$ac_ext
4372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4373 (eval $ac_compile) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; then
4377 case `/usr/bin/file conftest.$ac_objext` in
4378 *ELF-32*)
4379 HPUX_IA64_MODE="32"
4380 ;;
4381 *ELF-64*)
4382 HPUX_IA64_MODE="64"
4383 ;;
4384 esac
4385 fi
4386 rm -rf conftest*
4387 ;;
4388 *-*-irix6*)
4389 # Find out which ABI we are using.
4390 echo '#line 4390 "configure"' > conftest.$ac_ext
4391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4392 (eval $ac_compile) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; then
4396 if test "$lt_cv_prog_gnu_ld" = yes; then
4397 case `/usr/bin/file conftest.$ac_objext` in
4398 *32-bit*)
4399 LD="${LD-ld} -melf32bsmip"
4400 ;;
4401 *N32*)
4402 LD="${LD-ld} -melf32bmipn32"
4403 ;;
4404 *64-bit*)
4405 LD="${LD-ld} -melf64bmip"
4406 ;;
4407 esac
4408 else
4409 case `/usr/bin/file conftest.$ac_objext` in
4410 *32-bit*)
4411 LD="${LD-ld} -32"
4412 ;;
4413 *N32*)
4414 LD="${LD-ld} -n32"
4415 ;;
4416 *64-bit*)
4417 LD="${LD-ld} -64"
4418 ;;
4419 esac
4420 fi
4421 fi
4422 rm -rf conftest*
4423 ;;
4424
4425 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4426 # Find out which ABI we are using.
4427 echo 'int i;' > conftest.$ac_ext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4430 ac_status=$?
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); }; then
4433 case `/usr/bin/file conftest.o` in
4434 *32-bit*)
4435 case $host in
4436 x86_64-*linux*)
4437 LD="${LD-ld} -m elf_i386"
4438 ;;
4439 ppc64-*linux*|powerpc64-*linux*)
4440 LD="${LD-ld} -m elf32ppclinux"
4441 ;;
4442 s390x-*linux*)
4443 LD="${LD-ld} -m elf_s390"
4444 ;;
4445 sparc64-*linux*)
4446 LD="${LD-ld} -m elf32_sparc"
4447 ;;
4448 esac
4449 ;;
4450 *64-bit*)
4451 case $host in
4452 x86_64-*linux*)
4453 LD="${LD-ld} -m elf_x86_64"
4454 ;;
4455 ppc*-*linux*|powerpc*-*linux*)
4456 LD="${LD-ld} -m elf64ppc"
4457 ;;
4458 s390*-*linux*)
4459 LD="${LD-ld} -m elf64_s390"
4460 ;;
4461 sparc*-*linux*)
4462 LD="${LD-ld} -m elf64_sparc"
4463 ;;
4464 esac
4465 ;;
4466 esac
4467 fi
4468 rm -rf conftest*
4469 ;;
4470
4471 *-*-sco3.2v5*)
4472 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4473 SAVE_CFLAGS="$CFLAGS"
4474 CFLAGS="$CFLAGS -belf"
4475 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4476 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4477 if test "${lt_cv_cc_needs_belf+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 ac_ext=c
4481 ac_cpp='$CPP $CPPFLAGS'
4482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492
4493 int
4494 main ()
4495 {
4496
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (ac_try="$ac_link"
4503 case "(($ac_try" in
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4506 esac
4507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4508 (eval "$ac_link") 2>conftest.er1
4509 ac_status=$?
4510 grep -v '^ *+' conftest.er1 >conftest.err
4511 rm -f conftest.er1
4512 cat conftest.err >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } && {
4515 test -z "$ac_c_werror_flag" ||
4516 test ! -s conftest.err
4517 } && test -s conftest$ac_exeext &&
4518 $as_test_x conftest$ac_exeext; then
4519 lt_cv_cc_needs_belf=yes
4520 else
4521 echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4523
4524 lt_cv_cc_needs_belf=no
4525 fi
4526
4527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4528 conftest$ac_exeext conftest.$ac_ext
4529 ac_ext=c
4530 ac_cpp='$CPP $CPPFLAGS'
4531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
4535 fi
4536 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4537 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4538 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4539 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4540 CFLAGS="$SAVE_CFLAGS"
4541 fi
4542 ;;
4543 sparc*-*solaris*)
4544 # Find out which ABI we are using.
4545 echo 'int i;' > conftest.$ac_ext
4546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547 (eval $ac_compile) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; then
4551 case `/usr/bin/file conftest.o` in
4552 *64-bit*)
4553 case $lt_cv_prog_gnu_ld in
4554 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4555 *) LD="${LD-ld} -64" ;;
4556 esac
4557 ;;
4558 esac
4559 fi
4560 rm -rf conftest*
4561 ;;
4562
4563
4564 esac
4565
4566 need_locks="$enable_libtool_lock"
4567
4568
4569 ac_ext=c
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4576 # On Suns, sometimes $CPP names a directory.
4577 if test -n "$CPP" && test -d "$CPP"; then
4578 CPP=
4579 fi
4580 if test -z "$CPP"; then
4581 if test "${ac_cv_prog_CPP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 # Double quotes because CPP needs to be expanded
4585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4586 do
4587 ac_preproc_ok=false
4588 for ac_c_preproc_warn_flag in '' yes
4589 do
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
4592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
4594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat >conftest.$ac_ext <<_ACEOF
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 #ifdef __STDC__
4603 # include <limits.h>
4604 #else
4605 # include <assert.h>
4606 #endif
4607 Syntax error
4608 _ACEOF
4609 if { (ac_try="$ac_cpp conftest.$ac_ext"
4610 case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4616 ac_status=$?
4617 grep -v '^ *+' conftest.er1 >conftest.err
4618 rm -f conftest.er1
4619 cat conftest.err >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); } >/dev/null && {
4622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4623 test ! -s conftest.err
4624 }; then
4625 :
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 # Broken: fails on valid input.
4631 continue
4632 fi
4633
4634 rm -f conftest.err conftest.$ac_ext
4635
4636 # OK, works on sane cases. Now check whether nonexistent headers
4637 # can be detected and how.
4638 cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h. */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4644 #include <ac_nonexistent.h>
4645 _ACEOF
4646 if { (ac_try="$ac_cpp conftest.$ac_ext"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4653 ac_status=$?
4654 grep -v '^ *+' conftest.er1 >conftest.err
4655 rm -f conftest.er1
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } >/dev/null && {
4659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 }; then
4662 # Broken: success on invalid input.
4663 continue
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668 # Passes both tests.
4669 ac_preproc_ok=:
4670 break
4671 fi
4672
4673 rm -f conftest.err conftest.$ac_ext
4674
4675 done
4676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677 rm -f conftest.err conftest.$ac_ext
4678 if $ac_preproc_ok; then
4679 break
4680 fi
4681
4682 done
4683 ac_cv_prog_CPP=$CPP
4684
4685 fi
4686 CPP=$ac_cv_prog_CPP
4687 else
4688 ac_cv_prog_CPP=$CPP
4689 fi
4690 { echo "$as_me:$LINENO: result: $CPP" >&5
4691 echo "${ECHO_T}$CPP" >&6; }
4692 ac_preproc_ok=false
4693 for ac_c_preproc_warn_flag in '' yes
4694 do
4695 # Use a header file that comes with gcc, so configuring glibc
4696 # with a fresh cross-compiler works.
4697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4698 # <limits.h> exists even on freestanding compilers.
4699 # On the NeXT, cc -E runs the code through the compiler's parser,
4700 # not just through cpp. "Syntax error" is here to catch this case.
4701 cat >conftest.$ac_ext <<_ACEOF
4702 /* confdefs.h. */
4703 _ACEOF
4704 cat confdefs.h >>conftest.$ac_ext
4705 cat >>conftest.$ac_ext <<_ACEOF
4706 /* end confdefs.h. */
4707 #ifdef __STDC__
4708 # include <limits.h>
4709 #else
4710 # include <assert.h>
4711 #endif
4712 Syntax error
4713 _ACEOF
4714 if { (ac_try="$ac_cpp conftest.$ac_ext"
4715 case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4721 ac_status=$?
4722 grep -v '^ *+' conftest.er1 >conftest.err
4723 rm -f conftest.er1
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null && {
4727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4729 }; then
4730 :
4731 else
4732 echo "$as_me: failed program was:" >&5
4733 sed 's/^/| /' conftest.$ac_ext >&5
4734
4735 # Broken: fails on valid input.
4736 continue
4737 fi
4738
4739 rm -f conftest.err conftest.$ac_ext
4740
4741 # OK, works on sane cases. Now check whether nonexistent headers
4742 # can be detected and how.
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <ac_nonexistent.h>
4750 _ACEOF
4751 if { (ac_try="$ac_cpp conftest.$ac_ext"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4758 ac_status=$?
4759 grep -v '^ *+' conftest.er1 >conftest.err
4760 rm -f conftest.er1
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } >/dev/null && {
4764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4765 test ! -s conftest.err
4766 }; then
4767 # Broken: success on invalid input.
4768 continue
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 # Passes both tests.
4774 ac_preproc_ok=:
4775 break
4776 fi
4777
4778 rm -f conftest.err conftest.$ac_ext
4779
4780 done
4781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4782 rm -f conftest.err conftest.$ac_ext
4783 if $ac_preproc_ok; then
4784 :
4785 else
4786 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4787 See \`config.log' for more details." >&5
4788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4789 See \`config.log' for more details." >&2;}
4790 { (exit 1); exit 1; }; }
4791 fi
4792
4793 ac_ext=c
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799
4800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4802 if test "${ac_cv_header_stdc+set}" = set; then
4803 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 else
4805 cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811 #include <stdlib.h>
4812 #include <stdarg.h>
4813 #include <string.h>
4814 #include <float.h>
4815
4816 int
4817 main ()
4818 {
4819
4820 ;
4821 return 0;
4822 }
4823 _ACEOF
4824 rm -f conftest.$ac_objext
4825 if { (ac_try="$ac_compile"
4826 case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829 esac
4830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_compile") 2>conftest.er1
4832 ac_status=$?
4833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
4836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4837 (exit $ac_status); } && {
4838 test -z "$ac_c_werror_flag" ||
4839 test ! -s conftest.err
4840 } && test -s conftest.$ac_objext; then
4841 ac_cv_header_stdc=yes
4842 else
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4845
4846 ac_cv_header_stdc=no
4847 fi
4848
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850
4851 if test $ac_cv_header_stdc = yes; then
4852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <string.h>
4860
4861 _ACEOF
4862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4863 $EGREP "memchr" >/dev/null 2>&1; then
4864 :
4865 else
4866 ac_cv_header_stdc=no
4867 fi
4868 rm -f conftest*
4869
4870 fi
4871
4872 if test $ac_cv_header_stdc = yes; then
4873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4874 cat >conftest.$ac_ext <<_ACEOF
4875 /* confdefs.h. */
4876 _ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <stdlib.h>
4881
4882 _ACEOF
4883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4884 $EGREP "free" >/dev/null 2>&1; then
4885 :
4886 else
4887 ac_cv_header_stdc=no
4888 fi
4889 rm -f conftest*
4890
4891 fi
4892
4893 if test $ac_cv_header_stdc = yes; then
4894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4895 if test "$cross_compiling" = yes; then
4896 :
4897 else
4898 cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h. */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h. */
4904 #include <ctype.h>
4905 #include <stdlib.h>
4906 #if ((' ' & 0x0FF) == 0x020)
4907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4909 #else
4910 # define ISLOWER(c) \
4911 (('a' <= (c) && (c) <= 'i') \
4912 || ('j' <= (c) && (c) <= 'r') \
4913 || ('s' <= (c) && (c) <= 'z'))
4914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4915 #endif
4916
4917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4918 int
4919 main ()
4920 {
4921 int i;
4922 for (i = 0; i < 256; i++)
4923 if (XOR (islower (i), ISLOWER (i))
4924 || toupper (i) != TOUPPER (i))
4925 return 2;
4926 return 0;
4927 }
4928 _ACEOF
4929 rm -f conftest$ac_exeext
4930 if { (ac_try="$ac_link"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_link") 2>&5
4937 ac_status=$?
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4940 { (case "(($ac_try" in
4941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942 *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945 (eval "$ac_try") 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); }; }; then
4949 :
4950 else
4951 echo "$as_me: program exited with status $ac_status" >&5
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 ( exit $ac_status )
4956 ac_cv_header_stdc=no
4957 fi
4958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4959 fi
4960
4961
4962 fi
4963 fi
4964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4966 if test $ac_cv_header_stdc = yes; then
4967
4968 cat >>confdefs.h <<\_ACEOF
4969 #define STDC_HEADERS 1
4970 _ACEOF
4971
4972 fi
4973
4974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4985 inttypes.h stdint.h unistd.h
4986 do
4987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 $ac_includes_default
5000
5001 #include <$ac_header>
5002 _ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (ac_try="$ac_compile"
5005 case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008 esac
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_compile") 2>conftest.er1
5011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
5020 eval "$as_ac_Header=yes"
5021 else
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5024
5025 eval "$as_ac_Header=no"
5026 fi
5027
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5029 fi
5030 ac_res=`eval echo '${'$as_ac_Header'}'`
5031 { echo "$as_me:$LINENO: result: $ac_res" >&5
5032 echo "${ECHO_T}$ac_res" >&6; }
5033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5034 cat >>confdefs.h <<_ACEOF
5035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5036 _ACEOF
5037
5038 fi
5039
5040 done
5041
5042
5043
5044 for ac_header in dlfcn.h
5045 do
5046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 fi
5053 ac_res=`eval echo '${'$as_ac_Header'}'`
5054 { echo "$as_me:$LINENO: result: $ac_res" >&5
5055 echo "${ECHO_T}$ac_res" >&6; }
5056 else
5057 # Is the header compilable?
5058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 $ac_includes_default
5067 #include <$ac_header>
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (ac_try="$ac_compile"
5071 case "(($ac_try" in
5072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5073 *) ac_try_echo=$ac_try;;
5074 esac
5075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5076 (eval "$ac_compile") 2>conftest.er1
5077 ac_status=$?
5078 grep -v '^ *+' conftest.er1 >conftest.err
5079 rm -f conftest.er1
5080 cat conftest.err >&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); } && {
5083 test -z "$ac_c_werror_flag" ||
5084 test ! -s conftest.err
5085 } && test -s conftest.$ac_objext; then
5086 ac_header_compiler=yes
5087 else
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5090
5091 ac_header_compiler=no
5092 fi
5093
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5096 echo "${ECHO_T}$ac_header_compiler" >&6; }
5097
5098 # Is the header present?
5099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5101 cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h. */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5107 #include <$ac_header>
5108 _ACEOF
5109 if { (ac_try="$ac_cpp conftest.$ac_ext"
5110 case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113 esac
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5116 ac_status=$?
5117 grep -v '^ *+' conftest.er1 >conftest.err
5118 rm -f conftest.er1
5119 cat conftest.err >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } >/dev/null && {
5122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5123 test ! -s conftest.err
5124 }; then
5125 ac_header_preproc=yes
5126 else
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5129
5130 ac_header_preproc=no
5131 fi
5132
5133 rm -f conftest.err conftest.$ac_ext
5134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5135 echo "${ECHO_T}$ac_header_preproc" >&6; }
5136
5137 # So? What about this header?
5138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5139 yes:no: )
5140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5144 ac_header_preproc=yes
5145 ;;
5146 no:yes:* )
5147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5159 ( cat <<\_ASBOX
5160 ## ---------------------------------------------------------------------- ##
5161 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5162 ## ---------------------------------------------------------------------- ##
5163 _ASBOX
5164 ) | sed "s/^/$as_me: WARNING: /" >&2
5165 ;;
5166 esac
5167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 eval "$as_ac_Header=\$ac_header_preproc"
5173 fi
5174 ac_res=`eval echo '${'$as_ac_Header'}'`
5175 { echo "$as_me:$LINENO: result: $ac_res" >&5
5176 echo "${ECHO_T}$ac_res" >&6; }
5177
5178 fi
5179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5180 cat >>confdefs.h <<_ACEOF
5181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182 _ACEOF
5183
5184 fi
5185
5186 done
5187
5188 ac_ext=cpp
5189 ac_cpp='$CXXCPP $CPPFLAGS'
5190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5193 if test -z "$CXX"; then
5194 if test -n "$CCC"; then
5195 CXX=$CCC
5196 else
5197 if test -n "$ac_tool_prefix"; then
5198 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5199 do
5200 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5201 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_prog_CXX+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 if test -n "$CXX"; then
5208 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 CXX=$ac_cv_prog_CXX
5228 if test -n "$CXX"; then
5229 { echo "$as_me:$LINENO: result: $CXX" >&5
5230 echo "${ECHO_T}$CXX" >&6; }
5231 else
5232 { echo "$as_me:$LINENO: result: no" >&5
5233 echo "${ECHO_T}no" >&6; }
5234 fi
5235
5236
5237 test -n "$CXX" && break
5238 done
5239 fi
5240 if test -z "$CXX"; then
5241 ac_ct_CXX=$CXX
5242 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5243 do
5244 # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5248 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251 if test -n "$ac_ct_CXX"; then
5252 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5256 do
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_ac_ct_CXX="$ac_prog"
5262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5264 fi
5265 done
5266 done
5267 IFS=$as_save_IFS
5268
5269 fi
5270 fi
5271 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5272 if test -n "$ac_ct_CXX"; then
5273 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5274 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5275 else
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5278 fi
5279
5280
5281 test -n "$ac_ct_CXX" && break
5282 done
5283
5284 if test "x$ac_ct_CXX" = x; then
5285 CXX="g++"
5286 else
5287 case $cross_compiling:$ac_tool_warned in
5288 yes:)
5289 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5290 whose name does not start with the host triplet. If you think this
5291 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5292 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5293 whose name does not start with the host triplet. If you think this
5294 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5295 ac_tool_warned=yes ;;
5296 esac
5297 CXX=$ac_ct_CXX
5298 fi
5299 fi
5300
5301 fi
5302 fi
5303 # Provide some information about the compiler.
5304 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5305 ac_compiler=`set X $ac_compile; echo $2`
5306 { (ac_try="$ac_compiler --version >&5"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compiler --version >&5") 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }
5316 { (ac_try="$ac_compiler -v >&5"
5317 case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_compiler -v >&5") 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }
5326 { (ac_try="$ac_compiler -V >&5"
5327 case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330 esac
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_compiler -V >&5") 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }
5336
5337 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5338 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5339 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348
5349 int
5350 main ()
5351 {
5352 #ifndef __GNUC__
5353 choke me
5354 #endif
5355
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 rm -f conftest.$ac_objext
5361 if { (ac_try="$ac_compile"
5362 case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_compile") 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && {
5374 test -z "$ac_cxx_werror_flag" ||
5375 test ! -s conftest.err
5376 } && test -s conftest.$ac_objext; then
5377 ac_compiler_gnu=yes
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 ac_compiler_gnu=no
5383 fi
5384
5385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5387
5388 fi
5389 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5390 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5391 GXX=`test $ac_compiler_gnu = yes && echo yes`
5392 ac_test_CXXFLAGS=${CXXFLAGS+set}
5393 ac_save_CXXFLAGS=$CXXFLAGS
5394 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5395 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5396 if test "${ac_cv_prog_cxx_g+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5400 ac_cxx_werror_flag=yes
5401 ac_cv_prog_cxx_g=no
5402 CXXFLAGS="-g"
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409
5410 int
5411 main ()
5412 {
5413
5414 ;
5415 return 0;
5416 }
5417 _ACEOF
5418 rm -f conftest.$ac_objext
5419 if { (ac_try="$ac_compile"
5420 case "(($ac_try" in
5421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422 *) ac_try_echo=$ac_try;;
5423 esac
5424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5425 (eval "$ac_compile") 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } && {
5432 test -z "$ac_cxx_werror_flag" ||
5433 test ! -s conftest.err
5434 } && test -s conftest.$ac_objext; then
5435 ac_cv_prog_cxx_g=yes
5436 else
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440 CXXFLAGS=""
5441 cat >conftest.$ac_ext <<_ACEOF
5442 /* confdefs.h. */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447
5448 int
5449 main ()
5450 {
5451
5452 ;
5453 return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5458 case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5461 esac
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compile") 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_cxx_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest.$ac_objext; then
5473 :
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5479 CXXFLAGS="-g"
5480 cat >conftest.$ac_ext <<_ACEOF
5481 /* confdefs.h. */
5482 _ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486
5487 int
5488 main ()
5489 {
5490
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5497 case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500 esac
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
5512 ac_cv_prog_cxx_g=yes
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5516
5517
5518 fi
5519
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 fi
5522
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 fi
5525
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5528 fi
5529 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5530 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5531 if test "$ac_test_CXXFLAGS" = set; then
5532 CXXFLAGS=$ac_save_CXXFLAGS
5533 elif test $ac_cv_prog_cxx_g = yes; then
5534 if test "$GXX" = yes; then
5535 CXXFLAGS="-g -O2"
5536 else
5537 CXXFLAGS="-g"
5538 fi
5539 else
5540 if test "$GXX" = yes; then
5541 CXXFLAGS="-O2"
5542 else
5543 CXXFLAGS=
5544 fi
5545 fi
5546 ac_ext=cpp
5547 ac_cpp='$CXXCPP $CPPFLAGS'
5548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5551
5552 depcc="$CXX" am_compiler_list=
5553
5554 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5555 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5556 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 else
5559 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5560 # We make a subdir and do the tests there. Otherwise we can end up
5561 # making bogus files that we don't know about and never remove. For
5562 # instance it was reported that on HP-UX the gcc test will end up
5563 # making a dummy file named `D' -- because `-MD' means `put the output
5564 # in D'.
5565 mkdir conftest.dir
5566 # Copy depcomp to subdir because otherwise we won't find it if we're
5567 # using a relative directory.
5568 cp "$am_depcomp" conftest.dir
5569 cd conftest.dir
5570 # We will build objects and dependencies in a subdirectory because
5571 # it helps to detect inapplicable dependency modes. For instance
5572 # both Tru64's cc and ICC support -MD to output dependencies as a
5573 # side effect of compilation, but ICC will put the dependencies in
5574 # the current directory while Tru64 will put them in the object
5575 # directory.
5576 mkdir sub
5577
5578 am_cv_CXX_dependencies_compiler_type=none
5579 if test "$am_compiler_list" = ""; then
5580 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5581 fi
5582 for depmode in $am_compiler_list; do
5583 # Setup a source with many dependencies, because some compilers
5584 # like to wrap large dependency lists on column 80 (with \), and
5585 # we should not choose a depcomp mode which is confused by this.
5586 #
5587 # We need to recreate these files for each test, as the compiler may
5588 # overwrite some of them when testing with obscure command lines.
5589 # This happens at least with the AIX C compiler.
5590 : > sub/conftest.c
5591 for i in 1 2 3 4 5 6; do
5592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5594 # Solaris 8's {/usr,}/bin/sh.
5595 touch sub/conftst$i.h
5596 done
5597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5598
5599 case $depmode in
5600 nosideeffect)
5601 # after this tag, mechanisms are not by side-effect, so they'll
5602 # only be used when explicitly requested
5603 if test "x$enable_dependency_tracking" = xyes; then
5604 continue
5605 else
5606 break
5607 fi
5608 ;;
5609 none) break ;;
5610 esac
5611 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5612 # mode. It turns out that the SunPro C++ compiler does not properly
5613 # handle `-M -o', and we need to detect this.
5614 if depmode=$depmode \
5615 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5618 >/dev/null 2>conftest.err &&
5619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5621 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5623 # icc doesn't choke on unknown options, it will just issue warnings
5624 # or remarks (even with -Werror). So we grep stderr for any message
5625 # that says an option was ignored or not supported.
5626 # When given -MP, icc 7.0 and 7.1 complain thusly:
5627 # icc: Command line warning: ignoring option '-M'; no argument required
5628 # The diagnosis changed in icc 8.0:
5629 # icc: Command line remark: option '-MP' not supported
5630 if (grep 'ignoring option' conftest.err ||
5631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5632 am_cv_CXX_dependencies_compiler_type=$depmode
5633 break
5634 fi
5635 fi
5636 done
5637
5638 cd ..
5639 rm -rf conftest.dir
5640 else
5641 am_cv_CXX_dependencies_compiler_type=none
5642 fi
5643
5644 fi
5645 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5646 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5647 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5648
5649 if
5650 test "x$enable_dependency_tracking" != xno \
5651 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5652 am__fastdepCXX_TRUE=
5653 am__fastdepCXX_FALSE='#'
5654 else
5655 am__fastdepCXX_TRUE='#'
5656 am__fastdepCXX_FALSE=
5657 fi
5658
5659
5660
5661
5662 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5663 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5664 (test "X$CXX" != "Xg++"))) ; then
5665 ac_ext=cpp
5666 ac_cpp='$CXXCPP $CPPFLAGS'
5667 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5670 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5671 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5672 if test -z "$CXXCPP"; then
5673 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 # Double quotes because CXXCPP needs to be expanded
5677 for CXXCPP in "$CXX -E" "/lib/cpp"
5678 do
5679 ac_preproc_ok=false
5680 for ac_cxx_preproc_warn_flag in '' yes
5681 do
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat >conftest.$ac_ext <<_ACEOF
5689 /* confdefs.h. */
5690 _ACEOF
5691 cat confdefs.h >>conftest.$ac_ext
5692 cat >>conftest.$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5694 #ifdef __STDC__
5695 # include <limits.h>
5696 #else
5697 # include <assert.h>
5698 #endif
5699 Syntax error
5700 _ACEOF
5701 if { (ac_try="$ac_cpp conftest.$ac_ext"
5702 case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } >/dev/null && {
5714 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5715 test ! -s conftest.err
5716 }; then
5717 :
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5721
5722 # Broken: fails on valid input.
5723 continue
5724 fi
5725
5726 rm -f conftest.err conftest.$ac_ext
5727
5728 # OK, works on sane cases. Now check whether nonexistent headers
5729 # can be detected and how.
5730 cat >conftest.$ac_ext <<_ACEOF
5731 /* confdefs.h. */
5732 _ACEOF
5733 cat confdefs.h >>conftest.$ac_ext
5734 cat >>conftest.$ac_ext <<_ACEOF
5735 /* end confdefs.h. */
5736 #include <ac_nonexistent.h>
5737 _ACEOF
5738 if { (ac_try="$ac_cpp conftest.$ac_ext"
5739 case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null && {
5751 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 }; then
5754 # Broken: success on invalid input.
5755 continue
5756 else
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 # Passes both tests.
5761 ac_preproc_ok=:
5762 break
5763 fi
5764
5765 rm -f conftest.err conftest.$ac_ext
5766
5767 done
5768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5769 rm -f conftest.err conftest.$ac_ext
5770 if $ac_preproc_ok; then
5771 break
5772 fi
5773
5774 done
5775 ac_cv_prog_CXXCPP=$CXXCPP
5776
5777 fi
5778 CXXCPP=$ac_cv_prog_CXXCPP
5779 else
5780 ac_cv_prog_CXXCPP=$CXXCPP
5781 fi
5782 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5783 echo "${ECHO_T}$CXXCPP" >&6; }
5784 ac_preproc_ok=false
5785 for ac_cxx_preproc_warn_flag in '' yes
5786 do
5787 # Use a header file that comes with gcc, so configuring glibc
5788 # with a fresh cross-compiler works.
5789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5790 # <limits.h> exists even on freestanding compilers.
5791 # On the NeXT, cc -E runs the code through the compiler's parser,
5792 # not just through cpp. "Syntax error" is here to catch this case.
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #ifdef __STDC__
5800 # include <limits.h>
5801 #else
5802 # include <assert.h>
5803 #endif
5804 Syntax error
5805 _ACEOF
5806 if { (ac_try="$ac_cpp conftest.$ac_ext"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } >/dev/null && {
5819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5820 test ! -s conftest.err
5821 }; then
5822 :
5823 else
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 # Broken: fails on valid input.
5828 continue
5829 fi
5830
5831 rm -f conftest.err conftest.$ac_ext
5832
5833 # OK, works on sane cases. Now check whether nonexistent headers
5834 # can be detected and how.
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5842 _ACEOF
5843 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null && {
5856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857 test ! -s conftest.err
5858 }; then
5859 # Broken: success on invalid input.
5860 continue
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 # Passes both tests.
5866 ac_preproc_ok=:
5867 break
5868 fi
5869
5870 rm -f conftest.err conftest.$ac_ext
5871
5872 done
5873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5874 rm -f conftest.err conftest.$ac_ext
5875 if $ac_preproc_ok; then
5876 :
5877 else
5878 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5879 See \`config.log' for more details." >&5
5880 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5881 See \`config.log' for more details." >&2;}
5882 { (exit 1); exit 1; }; }
5883 fi
5884
5885 ac_ext=cpp
5886 ac_cpp='$CXXCPP $CPPFLAGS'
5887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890
5891 fi
5892
5893
5894 ac_ext=f
5895 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5896 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5898 if test -n "$ac_tool_prefix"; then
5899 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
5900 do
5901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_F77+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908 if test -n "$F77"; then
5909 ac_cv_prog_F77="$F77" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 F77=$ac_cv_prog_F77
5929 if test -n "$F77"; then
5930 { echo "$as_me:$LINENO: result: $F77" >&5
5931 echo "${ECHO_T}$F77" >&6; }
5932 else
5933 { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5935 fi
5936
5937
5938 test -n "$F77" && break
5939 done
5940 fi
5941 if test -z "$F77"; then
5942 ac_ct_F77=$F77
5943 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
5944 do
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946 set dummy $ac_prog; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 if test -n "$ac_ct_F77"; then
5953 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_F77="$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5973 if test -n "$ac_ct_F77"; then
5974 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5975 echo "${ECHO_T}$ac_ct_F77" >&6; }
5976 else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 fi
5980
5981
5982 test -n "$ac_ct_F77" && break
5983 done
5984
5985 if test "x$ac_ct_F77" = x; then
5986 F77=""
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989 yes:)
5990 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5991 whose name does not start with the host triplet. If you think this
5992 configuration is useful to you, please write to autoconf@gnu.org." >&5
5993 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5994 whose name does not start with the host triplet. If you think this
5995 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 F77=$ac_ct_F77
5999 fi
6000 fi
6001
6002
6003 # Provide some information about the compiler.
6004 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6005 ac_compiler=`set X $ac_compile; echo $2`
6006 { (ac_try="$ac_compiler --version >&5"
6007 case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compiler --version >&5") 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }
6016 { (ac_try="$ac_compiler -v >&5"
6017 case "(($ac_try" in
6018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6020 esac
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compiler -v >&5") 2>&5
6023 ac_status=$?
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); }
6026 { (ac_try="$ac_compiler -V >&5"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6032 (eval "$ac_compiler -V >&5") 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }
6036 rm -f a.out
6037
6038 # If we don't use `.F' as extension, the preprocessor is not run on the
6039 # input file. (Note that this only needs to work for GNU compilers.)
6040 ac_save_ext=$ac_ext
6041 ac_ext=F
6042 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6043 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6044 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 cat >conftest.$ac_ext <<_ACEOF
6048 program main
6049 #ifndef __GNUC__
6050 choke me
6051 #endif
6052
6053 end
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060 esac
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_f77_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.$ac_objext; then
6072 ac_compiler_gnu=yes
6073 else
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_compiler_gnu=no
6078 fi
6079
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6082
6083 fi
6084 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6085 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6086 ac_ext=$ac_save_ext
6087 ac_test_FFLAGS=${FFLAGS+set}
6088 ac_save_FFLAGS=$FFLAGS
6089 FFLAGS=
6090 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6091 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6092 if test "${ac_cv_prog_f77_g+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 else
6095 FFLAGS=-g
6096 cat >conftest.$ac_ext <<_ACEOF
6097 program main
6098
6099 end
6100 _ACEOF
6101 rm -f conftest.$ac_objext
6102 if { (ac_try="$ac_compile"
6103 case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106 esac
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_compile") 2>conftest.er1
6109 ac_status=$?
6110 grep -v '^ *+' conftest.er1 >conftest.err
6111 rm -f conftest.er1
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_f77_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest.$ac_objext; then
6118 ac_cv_prog_f77_g=yes
6119 else
6120 echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_prog_f77_g=no
6124 fi
6125
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127
6128 fi
6129 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6130 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6131 if test "$ac_test_FFLAGS" = set; then
6132 FFLAGS=$ac_save_FFLAGS
6133 elif test $ac_cv_prog_f77_g = yes; then
6134 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6135 FFLAGS="-g -O2"
6136 else
6137 FFLAGS="-g"
6138 fi
6139 else
6140 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6141 FFLAGS="-O2"
6142 else
6143 FFLAGS=
6144 fi
6145 fi
6146
6147 G77=`test $ac_compiler_gnu = yes && echo yes`
6148 ac_ext=c
6149 ac_cpp='$CPP $CPPFLAGS'
6150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6153
6154
6155
6156 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6157
6158 # find the maximum length of command line arguments
6159 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6160 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6161 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 i=0
6165 teststring="ABCD"
6166
6167 case $build_os in
6168 msdosdjgpp*)
6169 # On DJGPP, this test can blow up pretty badly due to problems in libc
6170 # (any single argument exceeding 2000 bytes causes a buffer overrun
6171 # during glob expansion). Even if it were fixed, the result of this
6172 # check would be larger than it should be.
6173 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6174 ;;
6175
6176 gnu*)
6177 # Under GNU Hurd, this test is not required because there is
6178 # no limit to the length of command line arguments.
6179 # Libtool will interpret -1 as no limit whatsoever
6180 lt_cv_sys_max_cmd_len=-1;
6181 ;;
6182
6183 cygwin* | mingw*)
6184 # On Win9x/ME, this test blows up -- it succeeds, but takes
6185 # about 5 minutes as the teststring grows exponentially.
6186 # Worse, since 9x/ME are not pre-emptively multitasking,
6187 # you end up with a "frozen" computer, even though with patience
6188 # the test eventually succeeds (with a max line length of 256k).
6189 # Instead, let's just punt: use the minimum linelength reported by
6190 # all of the supported platforms: 8192 (on NT/2K/XP).
6191 lt_cv_sys_max_cmd_len=8192;
6192 ;;
6193
6194 amigaos*)
6195 # On AmigaOS with pdksh, this test takes hours, literally.
6196 # So we just punt and use a minimum line length of 8192.
6197 lt_cv_sys_max_cmd_len=8192;
6198 ;;
6199
6200 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6201 # This has been around since 386BSD, at least. Likely further.
6202 if test -x /sbin/sysctl; then
6203 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6204 elif test -x /usr/sbin/sysctl; then
6205 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6206 else
6207 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6208 fi
6209 # And add a safety zone
6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6212 ;;
6213
6214 interix*)
6215 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6216 lt_cv_sys_max_cmd_len=196608
6217 ;;
6218
6219 osf*)
6220 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6221 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6222 # nice to cause kernel panics so lets avoid the loop below.
6223 # First set a reasonable default.
6224 lt_cv_sys_max_cmd_len=16384
6225 #
6226 if test -x /sbin/sysconfig; then
6227 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6228 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6229 esac
6230 fi
6231 ;;
6232 sco3.2v5*)
6233 lt_cv_sys_max_cmd_len=102400
6234 ;;
6235 sysv5* | sco5v6* | sysv4.2uw2*)
6236 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6237 if test -n "$kargmax"; then
6238 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6239 else
6240 lt_cv_sys_max_cmd_len=32768
6241 fi
6242 ;;
6243 *)
6244 # If test is not a shell built-in, we'll probably end up computing a
6245 # maximum length that is only half of the actual maximum length, but
6246 # we can't tell.
6247 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6249 = "XX$teststring") >/dev/null 2>&1 &&
6250 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6251 lt_cv_sys_max_cmd_len=$new_result &&
6252 test $i != 17 # 1/2 MB should be enough
6253 do
6254 i=`expr $i + 1`
6255 teststring=$teststring$teststring
6256 done
6257 teststring=
6258 # Add a significant safety factor because C++ compilers can tack on massive
6259 # amounts of additional arguments before passing them to the linker.
6260 # It appears as though 1/2 is a usable value.
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6262 ;;
6263 esac
6264
6265 fi
6266
6267 if test -n $lt_cv_sys_max_cmd_len ; then
6268 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6269 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6270 else
6271 { echo "$as_me:$LINENO: result: none" >&5
6272 echo "${ECHO_T}none" >&6; }
6273 fi
6274
6275
6276
6277
6278 # Check for command to grab the raw symbol name followed by C symbol from nm.
6279 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6280 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6281 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284
6285 # These are sane defaults that work on at least a few old systems.
6286 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6287
6288 # Character class describing NM global symbol codes.
6289 symcode='[BCDEGRST]'
6290
6291 # Regexp to match symbols that can be accessed directly from C.
6292 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6293
6294 # Transform an extracted symbol line into a proper C declaration
6295 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6296
6297 # Transform an extracted symbol line into symbol name and symbol address
6298 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'"
6299
6300 # Define system-specific variables.
6301 case $host_os in
6302 aix*)
6303 symcode='[BCDT]'
6304 ;;
6305 cygwin* | mingw* | pw32*)
6306 symcode='[ABCDGISTW]'
6307 ;;
6308 hpux*) # Its linker distinguishes data from code symbols
6309 if test "$host_cpu" = ia64; then
6310 symcode='[ABCDEGRST]'
6311 fi
6312 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6313 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'"
6314 ;;
6315 linux*)
6316 if test "$host_cpu" = ia64; then
6317 symcode='[ABCDGIRSTW]'
6318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6319 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'"
6320 fi
6321 ;;
6322 irix* | nonstopux*)
6323 symcode='[BCDEGRST]'
6324 ;;
6325 osf*)
6326 symcode='[BCDEGQRST]'
6327 ;;
6328 solaris*)
6329 symcode='[BDRT]'
6330 ;;
6331 sco3.2v5*)
6332 symcode='[DT]'
6333 ;;
6334 sysv4.2uw2*)
6335 symcode='[DT]'
6336 ;;
6337 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6338 symcode='[ABDT]'
6339 ;;
6340 sysv4)
6341 symcode='[DFNSTU]'
6342 ;;
6343 esac
6344
6345 # Handle CRLF in mingw tool chain
6346 opt_cr=
6347 case $build_os in
6348 mingw*)
6349 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6350 ;;
6351 esac
6352
6353 # If we're using GNU nm, then use its standard symbol codes.
6354 case `$NM -V 2>&1` in
6355 *GNU* | *'with BFD'*)
6356 symcode='[ABCDGIRSTW]' ;;
6357 esac
6358
6359 # Try without a prefix undercore, then with it.
6360 for ac_symprfx in "" "_"; do
6361
6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6363 symxfrm="\\1 $ac_symprfx\\2 \\2"
6364
6365 # Write the raw and C identifiers.
6366 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6367
6368 # Check to see that the pipe works correctly.
6369 pipe_works=no
6370
6371 rm -f conftest*
6372 cat > conftest.$ac_ext <<EOF
6373 #ifdef __cplusplus
6374 extern "C" {
6375 #endif
6376 char nm_test_var;
6377 void nm_test_func(){}
6378 #ifdef __cplusplus
6379 }
6380 #endif
6381 int main(){nm_test_var='a';nm_test_func();return(0);}
6382 EOF
6383
6384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6385 (eval $ac_compile) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; then
6389 # Now try to grab the symbols.
6390 nlist=conftest.nm
6391 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6392 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && test -s "$nlist"; then
6396 # Try sorting and uniquifying the output.
6397 if sort "$nlist" | uniq > "$nlist"T; then
6398 mv -f "$nlist"T "$nlist"
6399 else
6400 rm -f "$nlist"T
6401 fi
6402
6403 # Make sure that we snagged all the symbols we need.
6404 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6405 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6406 cat <<EOF > conftest.$ac_ext
6407 #ifdef __cplusplus
6408 extern "C" {
6409 #endif
6410
6411 EOF
6412 # Now generate the symbol file.
6413 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6414
6415 cat <<EOF >> conftest.$ac_ext
6416 #if defined (__STDC__) && __STDC__
6417 # define lt_ptr_t void *
6418 #else
6419 # define lt_ptr_t char *
6420 # define const
6421 #endif
6422
6423 /* The mapping between symbol names and symbols. */
6424 const struct {
6425 const char *name;
6426 lt_ptr_t address;
6427 }
6428 lt_preloaded_symbols[] =
6429 {
6430 EOF
6431 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6432 cat <<\EOF >> conftest.$ac_ext
6433 {0, (lt_ptr_t) 0}
6434 };
6435
6436 #ifdef __cplusplus
6437 }
6438 #endif
6439 EOF
6440 # Now try linking the two files.
6441 mv conftest.$ac_objext conftstm.$ac_objext
6442 lt_save_LIBS="$LIBS"
6443 lt_save_CFLAGS="$CFLAGS"
6444 LIBS="conftstm.$ac_objext"
6445 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447 (eval $ac_link) 2>&5
6448 ac_status=$?
6449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6451 pipe_works=yes
6452 fi
6453 LIBS="$lt_save_LIBS"
6454 CFLAGS="$lt_save_CFLAGS"
6455 else
6456 echo "cannot find nm_test_func in $nlist" >&5
6457 fi
6458 else
6459 echo "cannot find nm_test_var in $nlist" >&5
6460 fi
6461 else
6462 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6463 fi
6464 else
6465 echo "$progname: failed program was:" >&5
6466 cat conftest.$ac_ext >&5
6467 fi
6468 rm -f conftest* conftst*
6469
6470 # Do not use the global_symbol_pipe unless it works.
6471 if test "$pipe_works" = yes; then
6472 break
6473 else
6474 lt_cv_sys_global_symbol_pipe=
6475 fi
6476 done
6477
6478 fi
6479
6480 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6481 lt_cv_sys_global_symbol_to_cdecl=
6482 fi
6483 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6484 { echo "$as_me:$LINENO: result: failed" >&5
6485 echo "${ECHO_T}failed" >&6; }
6486 else
6487 { echo "$as_me:$LINENO: result: ok" >&5
6488 echo "${ECHO_T}ok" >&6; }
6489 fi
6490
6491 { echo "$as_me:$LINENO: checking for objdir" >&5
6492 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6493 if test "${lt_cv_objdir+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 rm -f .libs 2>/dev/null
6497 mkdir .libs 2>/dev/null
6498 if test -d .libs; then
6499 lt_cv_objdir=.libs
6500 else
6501 # MS-DOS does not allow filenames that begin with a dot.
6502 lt_cv_objdir=_libs
6503 fi
6504 rmdir .libs 2>/dev/null
6505 fi
6506 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6507 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6508 objdir=$lt_cv_objdir
6509
6510
6511
6512
6513
6514 case $host_os in
6515 aix3*)
6516 # AIX sometimes has problems with the GCC collect2 program. For some
6517 # reason, if we set the COLLECT_NAMES environment variable, the problems
6518 # vanish in a puff of smoke.
6519 if test "X${COLLECT_NAMES+set}" != Xset; then
6520 COLLECT_NAMES=
6521 export COLLECT_NAMES
6522 fi
6523 ;;
6524 esac
6525
6526 # Sed substitution that helps us do robust quoting. It backslashifies
6527 # metacharacters that are still active within double-quoted strings.
6528 Xsed='sed -e 1s/^X//'
6529 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6530
6531 # Same as above, but do not quote variable references.
6532 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6533
6534 # Sed substitution to delay expansion of an escaped shell variable in a
6535 # double_quote_subst'ed string.
6536 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6537
6538 # Sed substitution to avoid accidental globbing in evaled expressions
6539 no_glob_subst='s/\*/\\\*/g'
6540
6541 # Constants:
6542 rm="rm -f"
6543
6544 # Global variables:
6545 default_ofile=libtool
6546 can_build_shared=yes
6547
6548 # All known linkers require a `.a' archive for static linking (except MSVC,
6549 # which needs '.lib').
6550 libext=a
6551 ltmain="$ac_aux_dir/ltmain.sh"
6552 ofile="$default_ofile"
6553 with_gnu_ld="$lt_cv_prog_gnu_ld"
6554
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}ar; ac_word=$2
6558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6560 if test "${ac_cv_prog_AR+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 if test -n "$AR"; then
6564 ac_cv_prog_AR="$AR" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6568 do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6573 ac_cv_prog_AR="${ac_tool_prefix}ar"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577 done
6578 done
6579 IFS=$as_save_IFS
6580
6581 fi
6582 fi
6583 AR=$ac_cv_prog_AR
6584 if test -n "$AR"; then
6585 { echo "$as_me:$LINENO: result: $AR" >&5
6586 echo "${ECHO_T}$AR" >&6; }
6587 else
6588 { echo "$as_me:$LINENO: result: no" >&5
6589 echo "${ECHO_T}no" >&6; }
6590 fi
6591
6592
6593 fi
6594 if test -z "$ac_cv_prog_AR"; then
6595 ac_ct_AR=$AR
6596 # Extract the first word of "ar", so it can be a program name with args.
6597 set dummy ar; ac_word=$2
6598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 if test -n "$ac_ct_AR"; then
6604 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605 else
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6613 ac_cv_prog_ac_ct_AR="ar"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621 fi
6622 fi
6623 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624 if test -n "$ac_ct_AR"; then
6625 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6626 echo "${ECHO_T}$ac_ct_AR" >&6; }
6627 else
6628 { echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6; }
6630 fi
6631
6632 if test "x$ac_ct_AR" = x; then
6633 AR="false"
6634 else
6635 case $cross_compiling:$ac_tool_warned in
6636 yes:)
6637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6638 whose name does not start with the host triplet. If you think this
6639 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6641 whose name does not start with the host triplet. If you think this
6642 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6643 ac_tool_warned=yes ;;
6644 esac
6645 AR=$ac_ct_AR
6646 fi
6647 else
6648 AR="$ac_cv_prog_AR"
6649 fi
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656 if test "${ac_cv_prog_RANLIB+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 if test -n "$RANLIB"; then
6660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 RANLIB=$ac_cv_prog_RANLIB
6680 if test -n "$RANLIB"; then
6681 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6682 echo "${ECHO_T}$RANLIB" >&6; }
6683 else
6684 { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_RANLIB"; then
6691 ac_ct_RANLIB=$RANLIB
6692 # Extract the first word of "ranlib", so it can be a program name with args.
6693 set dummy ranlib; ac_word=$2
6694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6696 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 if test -n "$ac_ct_RANLIB"; then
6700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_prog_ac_ct_RANLIB="ranlib"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6720 if test -n "$ac_ct_RANLIB"; then
6721 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6722 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6723 else
6724 { echo "$as_me:$LINENO: result: no" >&5
6725 echo "${ECHO_T}no" >&6; }
6726 fi
6727
6728 if test "x$ac_ct_RANLIB" = x; then
6729 RANLIB=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6734 whose name does not start with the host triplet. If you think this
6735 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6736 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6737 whose name does not start with the host triplet. If you think this
6738 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6739 ac_tool_warned=yes ;;
6740 esac
6741 RANLIB=$ac_ct_RANLIB
6742 fi
6743 else
6744 RANLIB="$ac_cv_prog_RANLIB"
6745 fi
6746
6747 if test -n "$ac_tool_prefix"; then
6748 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6749 set dummy ${ac_tool_prefix}strip; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_prog_STRIP+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 if test -n "$STRIP"; then
6756 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6757 else
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761 IFS=$as_save_IFS
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 break 2
6768 fi
6769 done
6770 done
6771 IFS=$as_save_IFS
6772
6773 fi
6774 fi
6775 STRIP=$ac_cv_prog_STRIP
6776 if test -n "$STRIP"; then
6777 { echo "$as_me:$LINENO: result: $STRIP" >&5
6778 echo "${ECHO_T}$STRIP" >&6; }
6779 else
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6782 fi
6783
6784
6785 fi
6786 if test -z "$ac_cv_prog_STRIP"; then
6787 ac_ct_STRIP=$STRIP
6788 # Extract the first word of "strip", so it can be a program name with args.
6789 set dummy strip; ac_word=$2
6790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6792 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 if test -n "$ac_ct_STRIP"; then
6796 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6797 else
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_exec_ext in '' $ac_executable_extensions; do
6804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6805 ac_cv_prog_ac_ct_STRIP="strip"
6806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 break 2
6808 fi
6809 done
6810 done
6811 IFS=$as_save_IFS
6812
6813 fi
6814 fi
6815 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6816 if test -n "$ac_ct_STRIP"; then
6817 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6818 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6819 else
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6822 fi
6823
6824 if test "x$ac_ct_STRIP" = x; then
6825 STRIP=":"
6826 else
6827 case $cross_compiling:$ac_tool_warned in
6828 yes:)
6829 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6830 whose name does not start with the host triplet. If you think this
6831 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6832 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6833 whose name does not start with the host triplet. If you think this
6834 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6835 ac_tool_warned=yes ;;
6836 esac
6837 STRIP=$ac_ct_STRIP
6838 fi
6839 else
6840 STRIP="$ac_cv_prog_STRIP"
6841 fi
6842
6843
6844 old_CC="$CC"
6845 old_CFLAGS="$CFLAGS"
6846
6847 # Set sane defaults for various variables
6848 test -z "$AR" && AR=ar
6849 test -z "$AR_FLAGS" && AR_FLAGS=cru
6850 test -z "$AS" && AS=as
6851 test -z "$CC" && CC=cc
6852 test -z "$LTCC" && LTCC=$CC
6853 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6854 test -z "$DLLTOOL" && DLLTOOL=dlltool
6855 test -z "$LD" && LD=ld
6856 test -z "$LN_S" && LN_S="ln -s"
6857 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6858 test -z "$NM" && NM=nm
6859 test -z "$SED" && SED=sed
6860 test -z "$OBJDUMP" && OBJDUMP=objdump
6861 test -z "$RANLIB" && RANLIB=:
6862 test -z "$STRIP" && STRIP=:
6863 test -z "$ac_objext" && ac_objext=o
6864
6865 # Determine commands to create old-style static archives.
6866 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6867 old_postinstall_cmds='chmod 644 $oldlib'
6868 old_postuninstall_cmds=
6869
6870 if test -n "$RANLIB"; then
6871 case $host_os in
6872 openbsd*)
6873 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6874 ;;
6875 *)
6876 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6877 ;;
6878 esac
6879 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6880 fi
6881
6882 for cc_temp in $compiler""; do
6883 case $cc_temp in
6884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6886 \-*) ;;
6887 *) break;;
6888 esac
6889 done
6890 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6891
6892
6893 # Only perform the check for file, if the check method requires it
6894 case $deplibs_check_method in
6895 file_magic*)
6896 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6897 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6898 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6899 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902 case $MAGIC_CMD in
6903 [\\/*] | ?:[\\/]*)
6904 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 lt_save_MAGIC_CMD="$MAGIC_CMD"
6908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6909 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6910 for ac_dir in $ac_dummy; do
6911 IFS="$lt_save_ifs"
6912 test -z "$ac_dir" && ac_dir=.
6913 if test -f $ac_dir/${ac_tool_prefix}file; then
6914 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6915 if test -n "$file_magic_test_file"; then
6916 case $deplibs_check_method in
6917 "file_magic "*)
6918 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6919 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6920 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6921 $EGREP "$file_magic_regex" > /dev/null; then
6922 :
6923 else
6924 cat <<EOF 1>&2
6925
6926 *** Warning: the command libtool uses to detect shared libraries,
6927 *** $file_magic_cmd, produces output that libtool cannot recognize.
6928 *** The result is that libtool may fail to recognize shared libraries
6929 *** as such. This will affect the creation of libtool libraries that
6930 *** depend on shared libraries, but programs linked with such libtool
6931 *** libraries will work regardless of this problem. Nevertheless, you
6932 *** may want to report the problem to your system manager and/or to
6933 *** bug-libtool@gnu.org
6934
6935 EOF
6936 fi ;;
6937 esac
6938 fi
6939 break
6940 fi
6941 done
6942 IFS="$lt_save_ifs"
6943 MAGIC_CMD="$lt_save_MAGIC_CMD"
6944 ;;
6945 esac
6946 fi
6947
6948 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6949 if test -n "$MAGIC_CMD"; then
6950 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6951 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6952 else
6953 { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6955 fi
6956
6957 if test -z "$lt_cv_path_MAGIC_CMD"; then
6958 if test -n "$ac_tool_prefix"; then
6959 { echo "$as_me:$LINENO: checking for file" >&5
6960 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 case $MAGIC_CMD in
6965 [\\/*] | ?:[\\/]*)
6966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6967 ;;
6968 *)
6969 lt_save_MAGIC_CMD="$MAGIC_CMD"
6970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6972 for ac_dir in $ac_dummy; do
6973 IFS="$lt_save_ifs"
6974 test -z "$ac_dir" && ac_dir=.
6975 if test -f $ac_dir/file; then
6976 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6977 if test -n "$file_magic_test_file"; then
6978 case $deplibs_check_method in
6979 "file_magic "*)
6980 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6983 $EGREP "$file_magic_regex" > /dev/null; then
6984 :
6985 else
6986 cat <<EOF 1>&2
6987
6988 *** Warning: the command libtool uses to detect shared libraries,
6989 *** $file_magic_cmd, produces output that libtool cannot recognize.
6990 *** The result is that libtool may fail to recognize shared libraries
6991 *** as such. This will affect the creation of libtool libraries that
6992 *** depend on shared libraries, but programs linked with such libtool
6993 *** libraries will work regardless of this problem. Nevertheless, you
6994 *** may want to report the problem to your system manager and/or to
6995 *** bug-libtool@gnu.org
6996
6997 EOF
6998 fi ;;
6999 esac
7000 fi
7001 break
7002 fi
7003 done
7004 IFS="$lt_save_ifs"
7005 MAGIC_CMD="$lt_save_MAGIC_CMD"
7006 ;;
7007 esac
7008 fi
7009
7010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7011 if test -n "$MAGIC_CMD"; then
7012 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7013 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7014 else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016 echo "${ECHO_T}no" >&6; }
7017 fi
7018
7019 else
7020 MAGIC_CMD=:
7021 fi
7022 fi
7023
7024 fi
7025 ;;
7026 esac
7027
7028 enable_dlopen=no
7029 enable_win32_dll=no
7030
7031 # Check whether --enable-libtool-lock was given.
7032 if test "${enable_libtool_lock+set}" = set; then
7033 enableval=$enable_libtool_lock;
7034 fi
7035
7036 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7037
7038
7039 # Check whether --with-pic was given.
7040 if test "${with_pic+set}" = set; then
7041 withval=$with_pic; pic_mode="$withval"
7042 else
7043 pic_mode=default
7044 fi
7045
7046 test -z "$pic_mode" && pic_mode=default
7047
7048 # Use C for the default configuration in the libtool script
7049 tagname=
7050 lt_save_CC="$CC"
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057
7058 # Source file extension for C test sources.
7059 ac_ext=c
7060
7061 # Object file extension for compiled C test sources.
7062 objext=o
7063 objext=$objext
7064
7065 # Code to be used in simple compile tests
7066 lt_simple_compile_test_code="int some_variable = 0;\n"
7067
7068 # Code to be used in simple link tests
7069 lt_simple_link_test_code='int main(){return(0);}\n'
7070
7071
7072 # If no C compiler was specified, use CC.
7073 LTCC=${LTCC-"$CC"}
7074
7075 # If no C compiler flags were specified, use CFLAGS.
7076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7077
7078 # Allow CC to be a program name with arguments.
7079 compiler=$CC
7080
7081
7082 # save warnings/boilerplate of simple test code
7083 ac_outfile=conftest.$ac_objext
7084 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7086 _lt_compiler_boilerplate=`cat conftest.err`
7087 $rm conftest*
7088
7089 ac_outfile=conftest.$ac_objext
7090 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7092 _lt_linker_boilerplate=`cat conftest.err`
7093 $rm conftest*
7094
7095
7096
7097 lt_prog_compiler_no_builtin_flag=
7098
7099 if test "$GCC" = yes; then
7100 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7101
7102
7103 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7104 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7105 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108 lt_cv_prog_compiler_rtti_exceptions=no
7109 ac_outfile=conftest.$ac_objext
7110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7111 lt_compiler_flag="-fno-rtti -fno-exceptions"
7112 # Insert the option either (1) after the last *FLAGS variable, or
7113 # (2) before a word containing "conftest.", or (3) at the end.
7114 # Note that $ac_compile itself does not contain backslashes and begins
7115 # with a dollar sign (not a hyphen), so the echo should work correctly.
7116 # The option is referenced via a variable to avoid confusing sed.
7117 lt_compile=`echo "$ac_compile" | $SED \
7118 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7120 -e 's:$: $lt_compiler_flag:'`
7121 (eval echo "\"\$as_me:7121: $lt_compile\"" >&5)
7122 (eval "$lt_compile" 2>conftest.err)
7123 ac_status=$?
7124 cat conftest.err >&5
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 if (exit $ac_status) && test -s "$ac_outfile"; then
7127 # The compiler can only warn and ignore the option if not recognized
7128 # So say no if there are warnings other than the usual output.
7129 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7131 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7132 lt_cv_prog_compiler_rtti_exceptions=yes
7133 fi
7134 fi
7135 $rm conftest*
7136
7137 fi
7138 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7139 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7140
7141 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7142 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7143 else
7144 :
7145 fi
7146
7147 fi
7148
7149 lt_prog_compiler_wl=
7150 lt_prog_compiler_pic=
7151 lt_prog_compiler_static=
7152
7153 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7154 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7155
7156 if test "$GCC" = yes; then
7157 lt_prog_compiler_wl='-Wl,'
7158 lt_prog_compiler_static='-static'
7159
7160 case $host_os in
7161 aix*)
7162 # All AIX code is PIC.
7163 if test "$host_cpu" = ia64; then
7164 # AIX 5 now supports IA64 processor
7165 lt_prog_compiler_static='-Bstatic'
7166 fi
7167 ;;
7168
7169 amigaos*)
7170 # FIXME: we need at least 68020 code to build shared libraries, but
7171 # adding the `-m68020' flag to GCC prevents building anything better,
7172 # like `-m68040'.
7173 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7174 ;;
7175
7176 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7177 # PIC is the default for these OSes.
7178 ;;
7179
7180 mingw* | pw32* | os2*)
7181 # This hack is so that the source file can tell whether it is being
7182 # built for inclusion in a dll (and should export symbols for example).
7183 lt_prog_compiler_pic='-DDLL_EXPORT'
7184 ;;
7185
7186 darwin* | rhapsody*)
7187 # PIC is the default on this platform
7188 # Common symbols not allowed in MH_DYLIB files
7189 lt_prog_compiler_pic='-fno-common'
7190 ;;
7191
7192 interix3*)
7193 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7194 # Instead, we relocate shared libraries at runtime.
7195 ;;
7196
7197 msdosdjgpp*)
7198 # Just because we use GCC doesn't mean we suddenly get shared libraries
7199 # on systems that don't support them.
7200 lt_prog_compiler_can_build_shared=no
7201 enable_shared=no
7202 ;;
7203
7204 sysv4*MP*)
7205 if test -d /usr/nec; then
7206 lt_prog_compiler_pic=-Kconform_pic
7207 fi
7208 ;;
7209
7210 hpux*)
7211 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7212 # not for PA HP-UX.
7213 case $host_cpu in
7214 hppa*64*|ia64*)
7215 # +Z the default
7216 ;;
7217 *)
7218 lt_prog_compiler_pic='-fPIC'
7219 ;;
7220 esac
7221 ;;
7222
7223 *)
7224 lt_prog_compiler_pic='-fPIC'
7225 ;;
7226 esac
7227 else
7228 # PORTME Check for flag to pass linker flags through the system compiler.
7229 case $host_os in
7230 aix*)
7231 lt_prog_compiler_wl='-Wl,'
7232 if test "$host_cpu" = ia64; then
7233 # AIX 5 now supports IA64 processor
7234 lt_prog_compiler_static='-Bstatic'
7235 else
7236 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7237 fi
7238 ;;
7239 darwin*)
7240 # PIC is the default on this platform
7241 # Common symbols not allowed in MH_DYLIB files
7242 case $cc_basename in
7243 xlc*)
7244 lt_prog_compiler_pic='-qnocommon'
7245 lt_prog_compiler_wl='-Wl,'
7246 ;;
7247 esac
7248 ;;
7249
7250 mingw* | pw32* | os2*)
7251 # This hack is so that the source file can tell whether it is being
7252 # built for inclusion in a dll (and should export symbols for example).
7253 lt_prog_compiler_pic='-DDLL_EXPORT'
7254 ;;
7255
7256 hpux9* | hpux10* | hpux11*)
7257 lt_prog_compiler_wl='-Wl,'
7258 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7259 # not for PA HP-UX.
7260 case $host_cpu in
7261 hppa*64*|ia64*)
7262 # +Z the default
7263 ;;
7264 *)
7265 lt_prog_compiler_pic='+Z'
7266 ;;
7267 esac
7268 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7269 lt_prog_compiler_static='${wl}-a ${wl}archive'
7270 ;;
7271
7272 irix5* | irix6* | nonstopux*)
7273 lt_prog_compiler_wl='-Wl,'
7274 # PIC (with -KPIC) is the default.
7275 lt_prog_compiler_static='-non_shared'
7276 ;;
7277
7278 newsos6)
7279 lt_prog_compiler_pic='-KPIC'
7280 lt_prog_compiler_static='-Bstatic'
7281 ;;
7282
7283 linux*)
7284 case $cc_basename in
7285 icc* | ecc*)
7286 lt_prog_compiler_wl='-Wl,'
7287 lt_prog_compiler_pic='-KPIC'
7288 lt_prog_compiler_static='-static'
7289 ;;
7290 pgcc* | pgf77* | pgf90* | pgf95*)
7291 # Portland Group compilers (*not* the Pentium gcc compiler,
7292 # which looks to be a dead project)
7293 lt_prog_compiler_wl='-Wl,'
7294 lt_prog_compiler_pic='-fpic'
7295 lt_prog_compiler_static='-Bstatic'
7296 ;;
7297 ccc*)
7298 lt_prog_compiler_wl='-Wl,'
7299 # All Alpha code is PIC.
7300 lt_prog_compiler_static='-non_shared'
7301 ;;
7302 esac
7303 ;;
7304
7305 osf3* | osf4* | osf5*)
7306 lt_prog_compiler_wl='-Wl,'
7307 # All OSF/1 code is PIC.
7308 lt_prog_compiler_static='-non_shared'
7309 ;;
7310
7311 solaris*)
7312 lt_prog_compiler_pic='-KPIC'
7313 lt_prog_compiler_static='-Bstatic'
7314 case $cc_basename in
7315 f77* | f90* | f95*)
7316 lt_prog_compiler_wl='-Qoption ld ';;
7317 *)
7318 lt_prog_compiler_wl='-Wl,';;
7319 esac
7320 ;;
7321
7322 sunos4*)
7323 lt_prog_compiler_wl='-Qoption ld '
7324 lt_prog_compiler_pic='-PIC'
7325 lt_prog_compiler_static='-Bstatic'
7326 ;;
7327
7328 sysv4 | sysv4.2uw2* | sysv4.3*)
7329 lt_prog_compiler_wl='-Wl,'
7330 lt_prog_compiler_pic='-KPIC'
7331 lt_prog_compiler_static='-Bstatic'
7332 ;;
7333
7334 sysv4*MP*)
7335 if test -d /usr/nec ;then
7336 lt_prog_compiler_pic='-Kconform_pic'
7337 lt_prog_compiler_static='-Bstatic'
7338 fi
7339 ;;
7340
7341 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7342 lt_prog_compiler_wl='-Wl,'
7343 lt_prog_compiler_pic='-KPIC'
7344 lt_prog_compiler_static='-Bstatic'
7345 ;;
7346
7347 unicos*)
7348 lt_prog_compiler_wl='-Wl,'
7349 lt_prog_compiler_can_build_shared=no
7350 ;;
7351
7352 uts4*)
7353 lt_prog_compiler_pic='-pic'
7354 lt_prog_compiler_static='-Bstatic'
7355 ;;
7356
7357 *)
7358 lt_prog_compiler_can_build_shared=no
7359 ;;
7360 esac
7361 fi
7362
7363 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7364 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7365
7366 #
7367 # Check to make sure the PIC flag actually works.
7368 #
7369 if test -n "$lt_prog_compiler_pic"; then
7370
7371 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7372 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7373 if test "${lt_prog_compiler_pic_works+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376 lt_prog_compiler_pic_works=no
7377 ac_outfile=conftest.$ac_objext
7378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7379 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7380 # Insert the option either (1) after the last *FLAGS variable, or
7381 # (2) before a word containing "conftest.", or (3) at the end.
7382 # Note that $ac_compile itself does not contain backslashes and begins
7383 # with a dollar sign (not a hyphen), so the echo should work correctly.
7384 # The option is referenced via a variable to avoid confusing sed.
7385 lt_compile=`echo "$ac_compile" | $SED \
7386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7388 -e 's:$: $lt_compiler_flag:'`
7389 (eval echo "\"\$as_me:7389: $lt_compile\"" >&5)
7390 (eval "$lt_compile" 2>conftest.err)
7391 ac_status=$?
7392 cat conftest.err >&5
7393 echo "$as_me:7393: \$? = $ac_status" >&5
7394 if (exit $ac_status) && test -s "$ac_outfile"; then
7395 # The compiler can only warn and ignore the option if not recognized
7396 # So say no if there are warnings other than the usual output.
7397 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7398 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7399 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7400 lt_prog_compiler_pic_works=yes
7401 fi
7402 fi
7403 $rm conftest*
7404
7405 fi
7406 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7407 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7408
7409 if test x"$lt_prog_compiler_pic_works" = xyes; then
7410 case $lt_prog_compiler_pic in
7411 "" | " "*) ;;
7412 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7413 esac
7414 else
7415 lt_prog_compiler_pic=
7416 lt_prog_compiler_can_build_shared=no
7417 fi
7418
7419 fi
7420 case $host_os in
7421 # For platforms which do not support PIC, -DPIC is meaningless:
7422 *djgpp*)
7423 lt_prog_compiler_pic=
7424 ;;
7425 *)
7426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7427 ;;
7428 esac
7429
7430 #
7431 # Check to make sure the static flag actually works.
7432 #
7433 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7434 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7435 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7436 if test "${lt_prog_compiler_static_works+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439 lt_prog_compiler_static_works=no
7440 save_LDFLAGS="$LDFLAGS"
7441 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7442 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7444 # The linker can only warn and ignore the option if not recognized
7445 # So say no if there are warnings
7446 if test -s conftest.err; then
7447 # Append any errors to the config.log.
7448 cat conftest.err 1>&5
7449 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7451 if diff conftest.exp conftest.er2 >/dev/null; then
7452 lt_prog_compiler_static_works=yes
7453 fi
7454 else
7455 lt_prog_compiler_static_works=yes
7456 fi
7457 fi
7458 $rm conftest*
7459 LDFLAGS="$save_LDFLAGS"
7460
7461 fi
7462 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7463 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7464
7465 if test x"$lt_prog_compiler_static_works" = xyes; then
7466 :
7467 else
7468 lt_prog_compiler_static=
7469 fi
7470
7471
7472 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7473 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7474 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477 lt_cv_prog_compiler_c_o=no
7478 $rm -r conftest 2>/dev/null
7479 mkdir conftest
7480 cd conftest
7481 mkdir out
7482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7483
7484 lt_compiler_flag="-o out/conftest2.$ac_objext"
7485 # Insert the option either (1) after the last *FLAGS variable, or
7486 # (2) before a word containing "conftest.", or (3) at the end.
7487 # Note that $ac_compile itself does not contain backslashes and begins
7488 # with a dollar sign (not a hyphen), so the echo should work correctly.
7489 lt_compile=`echo "$ac_compile" | $SED \
7490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7492 -e 's:$: $lt_compiler_flag:'`
7493 (eval echo "\"\$as_me:7493: $lt_compile\"" >&5)
7494 (eval "$lt_compile" 2>out/conftest.err)
7495 ac_status=$?
7496 cat out/conftest.err >&5
7497 echo "$as_me:7497: \$? = $ac_status" >&5
7498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7499 then
7500 # The compiler can only warn and ignore the option if not recognized
7501 # So say no if there are warnings
7502 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7505 lt_cv_prog_compiler_c_o=yes
7506 fi
7507 fi
7508 chmod u+w . 2>&5
7509 $rm conftest*
7510 # SGI C++ compiler will create directory out/ii_files/ for
7511 # template instantiation
7512 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7513 $rm out/* && rmdir out
7514 cd ..
7515 rmdir conftest
7516 $rm conftest*
7517
7518 fi
7519 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7520 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7521
7522
7523 hard_links="nottested"
7524 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7525 # do not overwrite the value of need_locks provided by the user
7526 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7527 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7528 hard_links=yes
7529 $rm conftest*
7530 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7531 touch conftest.a
7532 ln conftest.a conftest.b 2>&5 || hard_links=no
7533 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7534 { echo "$as_me:$LINENO: result: $hard_links" >&5
7535 echo "${ECHO_T}$hard_links" >&6; }
7536 if test "$hard_links" = no; then
7537 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7538 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7539 need_locks=warn
7540 fi
7541 else
7542 need_locks=no
7543 fi
7544
7545 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7546 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7547
7548 runpath_var=
7549 allow_undefined_flag=
7550 enable_shared_with_static_runtimes=no
7551 archive_cmds=
7552 archive_expsym_cmds=
7553 old_archive_From_new_cmds=
7554 old_archive_from_expsyms_cmds=
7555 export_dynamic_flag_spec=
7556 whole_archive_flag_spec=
7557 thread_safe_flag_spec=
7558 hardcode_libdir_flag_spec=
7559 hardcode_libdir_flag_spec_ld=
7560 hardcode_libdir_separator=
7561 hardcode_direct=no
7562 hardcode_minus_L=no
7563 hardcode_shlibpath_var=unsupported
7564 link_all_deplibs=unknown
7565 hardcode_automatic=no
7566 module_cmds=
7567 module_expsym_cmds=
7568 always_export_symbols=no
7569 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7570 # include_expsyms should be a list of space-separated symbols to be *always*
7571 # included in the symbol list
7572 include_expsyms=
7573 # exclude_expsyms can be an extended regexp of symbols to exclude
7574 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7575 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7576 # as well as any symbol that contains `d'.
7577 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7578 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7579 # platforms (ab)use it in PIC code, but their linkers get confused if
7580 # the symbol is explicitly referenced. Since portable code cannot
7581 # rely on this symbol name, it's probably fine to never include it in
7582 # preloaded symbol tables.
7583 extract_expsyms_cmds=
7584 # Just being paranoid about ensuring that cc_basename is set.
7585 for cc_temp in $compiler""; do
7586 case $cc_temp in
7587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7589 \-*) ;;
7590 *) break;;
7591 esac
7592 done
7593 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7594
7595 case $host_os in
7596 cygwin* | mingw* | pw32*)
7597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7598 # When not using gcc, we currently assume that we are using
7599 # Microsoft Visual C++.
7600 if test "$GCC" != yes; then
7601 with_gnu_ld=no
7602 fi
7603 ;;
7604 interix*)
7605 # we just hope/assume this is gcc and not c89 (= MSVC++)
7606 with_gnu_ld=yes
7607 ;;
7608 openbsd*)
7609 with_gnu_ld=no
7610 ;;
7611 esac
7612
7613 ld_shlibs=yes
7614 if test "$with_gnu_ld" = yes; then
7615 # If archive_cmds runs LD, not CC, wlarc should be empty
7616 wlarc='${wl}'
7617
7618 # Set some defaults for GNU ld with shared library support. These
7619 # are reset later if shared libraries are not supported. Putting them
7620 # here allows them to be overridden if necessary.
7621 runpath_var=LD_RUN_PATH
7622 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7623 export_dynamic_flag_spec='${wl}--export-dynamic'
7624 # ancient GNU ld didn't support --whole-archive et. al.
7625 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7627 else
7628 whole_archive_flag_spec=
7629 fi
7630 supports_anon_versioning=no
7631 case `$LD -v 2>/dev/null` in
7632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7635 *\ 2.11.*) ;; # other 2.11 versions
7636 *) supports_anon_versioning=yes ;;
7637 esac
7638
7639 # See if GNU ld supports shared libraries.
7640 case $host_os in
7641 aix3* | aix4* | aix5*)
7642 # On AIX/PPC, the GNU linker is very broken
7643 if test "$host_cpu" != ia64; then
7644 ld_shlibs=no
7645 cat <<EOF 1>&2
7646
7647 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7648 *** to be unable to reliably create shared libraries on AIX.
7649 *** Therefore, libtool is disabling shared libraries support. If you
7650 *** really care for shared libraries, you may want to modify your PATH
7651 *** so that a non-GNU linker is found, and then restart.
7652
7653 EOF
7654 fi
7655 ;;
7656
7657 amigaos*)
7658 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)'
7659 hardcode_libdir_flag_spec='-L$libdir'
7660 hardcode_minus_L=yes
7661
7662 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7663 # that the semantics of dynamic libraries on AmigaOS, at least up
7664 # to version 4, is to share data among multiple programs linked
7665 # with the same dynamic library. Since this doesn't match the
7666 # behavior of shared libraries on other platforms, we can't use
7667 # them.
7668 ld_shlibs=no
7669 ;;
7670
7671 beos*)
7672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7673 allow_undefined_flag=unsupported
7674 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7675 # support --undefined. This deserves some investigation. FIXME
7676 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7677 else
7678 ld_shlibs=no
7679 fi
7680 ;;
7681
7682 cygwin* | mingw* | pw32*)
7683 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7684 # as there is no search path for DLLs.
7685 hardcode_libdir_flag_spec='-L$libdir'
7686 allow_undefined_flag=unsupported
7687 always_export_symbols=no
7688 enable_shared_with_static_runtimes=yes
7689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7690
7691 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7692 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7693 # If the export-symbols file already is a .def file (1st line
7694 # is EXPORTS), use it as is; otherwise, prepend...
7695 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7696 cp $export_symbols $output_objdir/$soname.def;
7697 else
7698 echo EXPORTS > $output_objdir/$soname.def;
7699 cat $export_symbols >> $output_objdir/$soname.def;
7700 fi~
7701 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7702 else
7703 ld_shlibs=no
7704 fi
7705 ;;
7706
7707 interix3*)
7708 hardcode_direct=no
7709 hardcode_shlibpath_var=no
7710 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7711 export_dynamic_flag_spec='${wl}-E'
7712 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7713 # Instead, shared libraries are loaded at an image base (0x10000000 by
7714 # default) and relocated if they conflict, which is a slow very memory
7715 # consuming and fragmenting process. To avoid this, we pick a random,
7716 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7717 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7719 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'
7720 ;;
7721
7722 linux*)
7723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7724 tmp_addflag=
7725 case $cc_basename,$host_cpu in
7726 pgcc*) # Portland Group C compiler
7727 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'
7728 tmp_addflag=' $pic_flag'
7729 ;;
7730 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7731 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'
7732 tmp_addflag=' $pic_flag -Mnomain' ;;
7733 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7734 tmp_addflag=' -i_dynamic' ;;
7735 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7736 tmp_addflag=' -i_dynamic -nofor_main' ;;
7737 ifc* | ifort*) # Intel Fortran compiler
7738 tmp_addflag=' -nofor_main' ;;
7739 esac
7740 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7741
7742 if test $supports_anon_versioning = yes; then
7743 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7745 $echo "local: *; };" >> $output_objdir/$libname.ver~
7746 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7747 fi
7748 else
7749 ld_shlibs=no
7750 fi
7751 ;;
7752
7753 netbsd*)
7754 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7755 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7756 wlarc=
7757 else
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7760 fi
7761 ;;
7762
7763 solaris*)
7764 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7765 ld_shlibs=no
7766 cat <<EOF 1>&2
7767
7768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7769 *** create shared libraries on Solaris systems. Therefore, libtool
7770 *** is disabling shared libraries support. We urge you to upgrade GNU
7771 *** binutils to release 2.9.1 or newer. Another option is to modify
7772 *** your PATH or compiler configuration so that the native linker is
7773 *** used, and then restart.
7774
7775 EOF
7776 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7779 else
7780 ld_shlibs=no
7781 fi
7782 ;;
7783
7784 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7785 case `$LD -v 2>&1` in
7786 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7787 ld_shlibs=no
7788 cat <<_LT_EOF 1>&2
7789
7790 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7791 *** reliably create shared libraries on SCO systems. Therefore, libtool
7792 *** is disabling shared libraries support. We urge you to upgrade GNU
7793 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7794 *** your PATH or compiler configuration so that the native linker is
7795 *** used, and then restart.
7796
7797 _LT_EOF
7798 ;;
7799 *)
7800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7801 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7804 else
7805 ld_shlibs=no
7806 fi
7807 ;;
7808 esac
7809 ;;
7810
7811 sunos4*)
7812 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7813 wlarc=
7814 hardcode_direct=yes
7815 hardcode_shlibpath_var=no
7816 ;;
7817
7818 *)
7819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7822 else
7823 ld_shlibs=no
7824 fi
7825 ;;
7826 esac
7827
7828 if test "$ld_shlibs" = no; then
7829 runpath_var=
7830 hardcode_libdir_flag_spec=
7831 export_dynamic_flag_spec=
7832 whole_archive_flag_spec=
7833 fi
7834 else
7835 # PORTME fill in a description of your system's linker (not GNU ld)
7836 case $host_os in
7837 aix3*)
7838 allow_undefined_flag=unsupported
7839 always_export_symbols=yes
7840 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'
7841 # Note: this linker hardcodes the directories in LIBPATH if there
7842 # are no directories specified by -L.
7843 hardcode_minus_L=yes
7844 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7845 # Neither direct hardcoding nor static linking is supported with a
7846 # broken collect2.
7847 hardcode_direct=unsupported
7848 fi
7849 ;;
7850
7851 aix4* | aix5*)
7852 if test "$host_cpu" = ia64; then
7853 # On IA64, the linker does run time linking by default, so we don't
7854 # have to do anything special.
7855 aix_use_runtimelinking=no
7856 exp_sym_flag='-Bexport'
7857 no_entry_flag=""
7858 else
7859 # If we're using GNU nm, then we don't want the "-C" option.
7860 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7861 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7862 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'
7863 else
7864 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'
7865 fi
7866 aix_use_runtimelinking=no
7867
7868 # Test if we are trying to use run time linking or normal
7869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7870 # need to do runtime linking.
7871 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7872 for ld_flag in $LDFLAGS; do
7873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7874 aix_use_runtimelinking=yes
7875 break
7876 fi
7877 done
7878 ;;
7879 esac
7880
7881 exp_sym_flag='-bexport'
7882 no_entry_flag='-bnoentry'
7883 fi
7884
7885 # When large executables or shared objects are built, AIX ld can
7886 # have problems creating the table of contents. If linking a library
7887 # or program results in "error TOC overflow" add -mminimal-toc to
7888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7890
7891 archive_cmds=''
7892 hardcode_direct=yes
7893 hardcode_libdir_separator=':'
7894 link_all_deplibs=yes
7895
7896 if test "$GCC" = yes; then
7897 case $host_os in aix4.[012]|aix4.[012].*)
7898 # We only want to do this on AIX 4.2 and lower, the check
7899 # below for broken collect2 doesn't work under 4.3+
7900 collect2name=`${CC} -print-prog-name=collect2`
7901 if test -f "$collect2name" && \
7902 strings "$collect2name" | grep resolve_lib_name >/dev/null
7903 then
7904 # We have reworked collect2
7905 hardcode_direct=yes
7906 else
7907 # We have old collect2
7908 hardcode_direct=unsupported
7909 # It fails to find uninstalled libraries when the uninstalled
7910 # path is not listed in the libpath. Setting hardcode_minus_L
7911 # to unsupported forces relinking
7912 hardcode_minus_L=yes
7913 hardcode_libdir_flag_spec='-L$libdir'
7914 hardcode_libdir_separator=
7915 fi
7916 ;;
7917 esac
7918 shared_flag='-shared'
7919 if test "$aix_use_runtimelinking" = yes; then
7920 shared_flag="$shared_flag "'${wl}-G'
7921 fi
7922 else
7923 # not using gcc
7924 if test "$host_cpu" = ia64; then
7925 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7926 # chokes on -Wl,-G. The following line is correct:
7927 shared_flag='-G'
7928 else
7929 if test "$aix_use_runtimelinking" = yes; then
7930 shared_flag='${wl}-G'
7931 else
7932 shared_flag='${wl}-bM:SRE'
7933 fi
7934 fi
7935 fi
7936
7937 # It seems that -bexpall does not export symbols beginning with
7938 # underscore (_), so it is better to generate a list of symbols to export.
7939 always_export_symbols=yes
7940 if test "$aix_use_runtimelinking" = yes; then
7941 # Warning - without using the other runtime loading flags (-brtl),
7942 # -berok will link without error, but may produce a broken library.
7943 allow_undefined_flag='-berok'
7944 # Determine the default libpath from the value encoded in an empty executable.
7945 cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h. */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951
7952 int
7953 main ()
7954 {
7955
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (ac_try="$ac_link"
7962 case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_link") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest$ac_exeext &&
7977 $as_test_x conftest$ac_exeext; then
7978
7979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7980 }'`
7981 # Check for a 64-bit object if we didn't find anything.
7982 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7983 }'`; fi
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988
7989 fi
7990
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7993 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7994
7995 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7996 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"
7997 else
7998 if test "$host_cpu" = ia64; then
7999 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8000 allow_undefined_flag="-z nodefs"
8001 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"
8002 else
8003 # Determine the default libpath from the value encoded in an empty executable.
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010
8011 int
8012 main ()
8013 {
8014
8015 ;
8016 return 0;
8017 }
8018 _ACEOF
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (ac_try="$ac_link"
8021 case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024 esac
8025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8026 (eval "$ac_link") 2>conftest.er1
8027 ac_status=$?
8028 grep -v '^ *+' conftest.er1 >conftest.err
8029 rm -f conftest.er1
8030 cat conftest.err >&5
8031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032 (exit $ac_status); } && {
8033 test -z "$ac_c_werror_flag" ||
8034 test ! -s conftest.err
8035 } && test -s conftest$ac_exeext &&
8036 $as_test_x conftest$ac_exeext; then
8037
8038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8039 }'`
8040 # Check for a 64-bit object if we didn't find anything.
8041 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8042 }'`; fi
8043 else
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047
8048 fi
8049
8050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8051 conftest$ac_exeext conftest.$ac_ext
8052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8053
8054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8055 # Warning - without using the other run time loading flags,
8056 # -berok will link without error, but may produce a broken library.
8057 no_undefined_flag=' ${wl}-bernotok'
8058 allow_undefined_flag=' ${wl}-berok'
8059 # Exported symbols can be pulled into shared objects from archives
8060 whole_archive_flag_spec='$convenience'
8061 archive_cmds_need_lc=yes
8062 # This is similar to how AIX traditionally builds its shared libraries.
8063 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'
8064 fi
8065 fi
8066 ;;
8067
8068 amigaos*)
8069 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)'
8070 hardcode_libdir_flag_spec='-L$libdir'
8071 hardcode_minus_L=yes
8072 # see comment about different semantics on the GNU ld section
8073 ld_shlibs=no
8074 ;;
8075
8076 bsdi[45]*)
8077 export_dynamic_flag_spec=-rdynamic
8078 ;;
8079
8080 cygwin* | mingw* | pw32*)
8081 # When not using gcc, we currently assume that we are using
8082 # Microsoft Visual C++.
8083 # hardcode_libdir_flag_spec is actually meaningless, as there is
8084 # no search path for DLLs.
8085 hardcode_libdir_flag_spec=' '
8086 allow_undefined_flag=unsupported
8087 # Tell ltmain to make .lib files, not .a files.
8088 libext=lib
8089 # Tell ltmain to make .dll files, not .so files.
8090 shrext_cmds=".dll"
8091 # FIXME: Setting linknames here is a bad hack.
8092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8093 # The linker will automatically build a .lib file if we build a DLL.
8094 old_archive_From_new_cmds='true'
8095 # FIXME: Should let the user specify the lib program.
8096 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8097 fix_srcfile_path='`cygpath -w "$srcfile"`'
8098 enable_shared_with_static_runtimes=yes
8099 ;;
8100
8101 darwin* | rhapsody*)
8102 case $host_os in
8103 rhapsody* | darwin1.[012])
8104 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8105 ;;
8106 *) # Darwin 1.3 on
8107 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8108 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8109 else
8110 case ${MACOSX_DEPLOYMENT_TARGET} in
8111 10.[012])
8112 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8113 ;;
8114 10.*)
8115 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8116 ;;
8117 esac
8118 fi
8119 ;;
8120 esac
8121 archive_cmds_need_lc=no
8122 hardcode_direct=no
8123 hardcode_automatic=yes
8124 hardcode_shlibpath_var=unsupported
8125 whole_archive_flag_spec=''
8126 link_all_deplibs=yes
8127 if test "$GCC" = yes ; then
8128 output_verbose_link_cmd='echo'
8129 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8130 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8132 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8133 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}'
8134 else
8135 case $cc_basename in
8136 xlc*)
8137 output_verbose_link_cmd='echo'
8138 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8139 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8140 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8141 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8142 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}'
8143 ;;
8144 *)
8145 ld_shlibs=no
8146 ;;
8147 esac
8148 fi
8149 ;;
8150
8151 dgux*)
8152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8153 hardcode_libdir_flag_spec='-L$libdir'
8154 hardcode_shlibpath_var=no
8155 ;;
8156
8157 freebsd1*)
8158 ld_shlibs=no
8159 ;;
8160
8161 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8162 # support. Future versions do this automatically, but an explicit c++rt0.o
8163 # does not break anything, and helps significantly (at the cost of a little
8164 # extra space).
8165 freebsd2.2*)
8166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8167 hardcode_libdir_flag_spec='-R$libdir'
8168 hardcode_direct=yes
8169 hardcode_shlibpath_var=no
8170 ;;
8171
8172 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8173 freebsd2*)
8174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8175 hardcode_direct=yes
8176 hardcode_minus_L=yes
8177 hardcode_shlibpath_var=no
8178 ;;
8179
8180 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8181 freebsd* | kfreebsd*-gnu | dragonfly*)
8182 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8183 hardcode_libdir_flag_spec='-R$libdir'
8184 hardcode_direct=yes
8185 hardcode_shlibpath_var=no
8186 ;;
8187
8188 hpux9*)
8189 if test "$GCC" = yes; then
8190 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'
8191 else
8192 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'
8193 fi
8194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8195 hardcode_libdir_separator=:
8196 hardcode_direct=yes
8197
8198 # hardcode_minus_L: Not really in the search PATH,
8199 # but as the default location of the library.
8200 hardcode_minus_L=yes
8201 export_dynamic_flag_spec='${wl}-E'
8202 ;;
8203
8204 hpux10*)
8205 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8206 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8207 else
8208 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8209 fi
8210 if test "$with_gnu_ld" = no; then
8211 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8212 hardcode_libdir_separator=:
8213
8214 hardcode_direct=yes
8215 export_dynamic_flag_spec='${wl}-E'
8216
8217 # hardcode_minus_L: Not really in the search PATH,
8218 # but as the default location of the library.
8219 hardcode_minus_L=yes
8220 fi
8221 ;;
8222
8223 hpux11*)
8224 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8225 case $host_cpu in
8226 hppa*64*)
8227 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8228 ;;
8229 ia64*)
8230 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8231 ;;
8232 *)
8233 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8234 ;;
8235 esac
8236 else
8237 case $host_cpu in
8238 hppa*64*)
8239 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8240 ;;
8241 ia64*)
8242 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8243 ;;
8244 *)
8245 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8246 ;;
8247 esac
8248 fi
8249 if test "$with_gnu_ld" = no; then
8250 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8251 hardcode_libdir_separator=:
8252
8253 case $host_cpu in
8254 hppa*64*|ia64*)
8255 hardcode_libdir_flag_spec_ld='+b $libdir'
8256 hardcode_direct=no
8257 hardcode_shlibpath_var=no
8258 ;;
8259 *)
8260 hardcode_direct=yes
8261 export_dynamic_flag_spec='${wl}-E'
8262
8263 # hardcode_minus_L: Not really in the search PATH,
8264 # but as the default location of the library.
8265 hardcode_minus_L=yes
8266 ;;
8267 esac
8268 fi
8269 ;;
8270
8271 irix5* | irix6* | nonstopux*)
8272 if test "$GCC" = yes; then
8273 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'
8274 else
8275 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'
8276 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8277 fi
8278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8279 hardcode_libdir_separator=:
8280 link_all_deplibs=yes
8281 ;;
8282
8283 netbsd*)
8284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8285 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8286 else
8287 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8288 fi
8289 hardcode_libdir_flag_spec='-R$libdir'
8290 hardcode_direct=yes
8291 hardcode_shlibpath_var=no
8292 ;;
8293
8294 newsos6)
8295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8296 hardcode_direct=yes
8297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298 hardcode_libdir_separator=:
8299 hardcode_shlibpath_var=no
8300 ;;
8301
8302 openbsd*)
8303 hardcode_direct=yes
8304 hardcode_shlibpath_var=no
8305 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8306 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8307 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8308 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8309 export_dynamic_flag_spec='${wl}-E'
8310 else
8311 case $host_os in
8312 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8314 hardcode_libdir_flag_spec='-R$libdir'
8315 ;;
8316 *)
8317 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8318 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8319 ;;
8320 esac
8321 fi
8322 ;;
8323
8324 os2*)
8325 hardcode_libdir_flag_spec='-L$libdir'
8326 hardcode_minus_L=yes
8327 allow_undefined_flag=unsupported
8328 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'
8329 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8330 ;;
8331
8332 osf3*)
8333 if test "$GCC" = yes; then
8334 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8335 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'
8336 else
8337 allow_undefined_flag=' -expect_unresolved \*'
8338 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'
8339 fi
8340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8341 hardcode_libdir_separator=:
8342 ;;
8343
8344 osf4* | osf5*) # as osf3* with the addition of -msym flag
8345 if test "$GCC" = yes; then
8346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8347 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'
8348 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8349 else
8350 allow_undefined_flag=' -expect_unresolved \*'
8351 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'
8352 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8353 $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'
8354
8355 # Both c and cxx compiler support -rpath directly
8356 hardcode_libdir_flag_spec='-rpath $libdir'
8357 fi
8358 hardcode_libdir_separator=:
8359 ;;
8360
8361 solaris*)
8362 no_undefined_flag=' -z text'
8363 if test "$GCC" = yes; then
8364 wlarc='${wl}'
8365 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8366 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8367 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8368 else
8369 wlarc=''
8370 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8371 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8373 fi
8374 hardcode_libdir_flag_spec='-R$libdir'
8375 hardcode_shlibpath_var=no
8376 case $host_os in
8377 solaris2.[0-5] | solaris2.[0-5].*) ;;
8378 *)
8379 # The compiler driver will combine linker options so we
8380 # cannot just pass the convience library names through
8381 # without $wl, iff we do not link with $LD.
8382 # Luckily, gcc supports the same syntax we need for Sun Studio.
8383 # Supported since Solaris 2.6 (maybe 2.5.1?)
8384 case $wlarc in
8385 '')
8386 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8387 *)
8388 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8389 esac ;;
8390 esac
8391 link_all_deplibs=yes
8392 ;;
8393
8394 sunos4*)
8395 if test "x$host_vendor" = xsequent; then
8396 # Use $CC to link under sequent, because it throws in some extra .o
8397 # files that make .init and .fini sections work.
8398 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8399 else
8400 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8401 fi
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_direct=yes
8404 hardcode_minus_L=yes
8405 hardcode_shlibpath_var=no
8406 ;;
8407
8408 sysv4)
8409 case $host_vendor in
8410 sni)
8411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_direct=yes # is this really true???
8413 ;;
8414 siemens)
8415 ## LD is ld it makes a PLAMLIB
8416 ## CC just makes a GrossModule.
8417 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8418 reload_cmds='$CC -r -o $output$reload_objs'
8419 hardcode_direct=no
8420 ;;
8421 motorola)
8422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8423 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8424 ;;
8425 esac
8426 runpath_var='LD_RUN_PATH'
8427 hardcode_shlibpath_var=no
8428 ;;
8429
8430 sysv4.3*)
8431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8432 hardcode_shlibpath_var=no
8433 export_dynamic_flag_spec='-Bexport'
8434 ;;
8435
8436 sysv4*MP*)
8437 if test -d /usr/nec; then
8438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439 hardcode_shlibpath_var=no
8440 runpath_var=LD_RUN_PATH
8441 hardcode_runpath_var=yes
8442 ld_shlibs=yes
8443 fi
8444 ;;
8445
8446 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8447 no_undefined_flag='${wl}-z,text'
8448 archive_cmds_need_lc=no
8449 hardcode_shlibpath_var=no
8450 runpath_var='LD_RUN_PATH'
8451
8452 if test "$GCC" = yes; then
8453 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8455 else
8456 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8457 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8458 fi
8459 ;;
8460
8461 sysv5* | sco3.2v5* | sco5v6*)
8462 # Note: We can NOT use -z defs as we might desire, because we do not
8463 # link with -lc, and that would cause any symbols used from libc to
8464 # always be unresolved, which means just about no library would
8465 # ever link correctly. If we're not using GNU ld we use -z text
8466 # though, which does catch some bad symbols but isn't as heavy-handed
8467 # as -z defs.
8468 no_undefined_flag='${wl}-z,text'
8469 allow_undefined_flag='${wl}-z,nodefs'
8470 archive_cmds_need_lc=no
8471 hardcode_shlibpath_var=no
8472 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8473 hardcode_libdir_separator=':'
8474 link_all_deplibs=yes
8475 export_dynamic_flag_spec='${wl}-Bexport'
8476 runpath_var='LD_RUN_PATH'
8477
8478 if test "$GCC" = yes; then
8479 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8480 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8481 else
8482 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8483 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8484 fi
8485 ;;
8486
8487 uts4*)
8488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8489 hardcode_libdir_flag_spec='-L$libdir'
8490 hardcode_shlibpath_var=no
8491 ;;
8492
8493 *)
8494 ld_shlibs=no
8495 ;;
8496 esac
8497 fi
8498
8499 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8500 echo "${ECHO_T}$ld_shlibs" >&6; }
8501 test "$ld_shlibs" = no && can_build_shared=no
8502
8503 #
8504 # Do we need to explicitly link libc?
8505 #
8506 case "x$archive_cmds_need_lc" in
8507 x|xyes)
8508 # Assume -lc should be added
8509 archive_cmds_need_lc=yes
8510
8511 if test "$enable_shared" = yes && test "$GCC" = yes; then
8512 case $archive_cmds in
8513 *'~'*)
8514 # FIXME: we may have to deal with multi-command sequences.
8515 ;;
8516 '$CC '*)
8517 # Test whether the compiler implicitly links with -lc since on some
8518 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8519 # to ld, don't add -lc before -lgcc.
8520 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8521 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8522 $rm conftest*
8523 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8524
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } 2>conftest.err; then
8530 soname=conftest
8531 lib=conftest
8532 libobjs=conftest.$ac_objext
8533 deplibs=
8534 wl=$lt_prog_compiler_wl
8535 pic_flag=$lt_prog_compiler_pic
8536 compiler_flags=-v
8537 linker_flags=-v
8538 verstring=
8539 output_objdir=.
8540 libname=conftest
8541 lt_save_allow_undefined_flag=$allow_undefined_flag
8542 allow_undefined_flag=
8543 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8544 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }
8548 then
8549 archive_cmds_need_lc=no
8550 else
8551 archive_cmds_need_lc=yes
8552 fi
8553 allow_undefined_flag=$lt_save_allow_undefined_flag
8554 else
8555 cat conftest.err 1>&5
8556 fi
8557 $rm conftest*
8558 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8559 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8560 ;;
8561 esac
8562 fi
8563 ;;
8564 esac
8565
8566 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8567 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8568 library_names_spec=
8569 libname_spec='lib$name'
8570 soname_spec=
8571 shrext_cmds=".so"
8572 postinstall_cmds=
8573 postuninstall_cmds=
8574 finish_cmds=
8575 finish_eval=
8576 shlibpath_var=
8577 shlibpath_overrides_runpath=unknown
8578 version_type=none
8579 dynamic_linker="$host_os ld.so"
8580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8581 if test "$GCC" = yes; then
8582 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8583 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8584 # if the path contains ";" then we assume it to be the separator
8585 # otherwise default to the standard path separator (i.e. ":") - it is
8586 # assumed that no part of a normal pathname contains ";" but that should
8587 # okay in the real world where ";" in dirpaths is itself problematic.
8588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8589 else
8590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8591 fi
8592 else
8593 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8594 fi
8595 need_lib_prefix=unknown
8596 hardcode_into_libs=no
8597
8598 # when you set need_version to no, make sure it does not cause -set_version
8599 # flags to be left without arguments
8600 need_version=unknown
8601
8602 case $host_os in
8603 aix3*)
8604 version_type=linux
8605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8606 shlibpath_var=LIBPATH
8607
8608 # AIX 3 has no versioning support, so we append a major version to the name.
8609 soname_spec='${libname}${release}${shared_ext}$major'
8610 ;;
8611
8612 aix4* | aix5*)
8613 version_type=linux
8614 need_lib_prefix=no
8615 need_version=no
8616 hardcode_into_libs=yes
8617 if test "$host_cpu" = ia64; then
8618 # AIX 5 supports IA64
8619 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 else
8622 # With GCC up to 2.95.x, collect2 would create an import file
8623 # for dependence libraries. The import file would start with
8624 # the line `#! .'. This would cause the generated library to
8625 # depend on `.', always an invalid library. This was fixed in
8626 # development snapshots of GCC prior to 3.0.
8627 case $host_os in
8628 aix4 | aix4.[01] | aix4.[01].*)
8629 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8630 echo ' yes '
8631 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8632 :
8633 else
8634 can_build_shared=no
8635 fi
8636 ;;
8637 esac
8638 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8639 # soname into executable. Probably we can add versioning support to
8640 # collect2, so additional links can be useful in future.
8641 if test "$aix_use_runtimelinking" = yes; then
8642 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8643 # instead of lib<name>.a to let people know that these are not
8644 # typical AIX shared libraries.
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646 else
8647 # We preserve .a as extension for shared libraries through AIX4.2
8648 # and later when we are not doing run time linking.
8649 library_names_spec='${libname}${release}.a $libname.a'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 fi
8652 shlibpath_var=LIBPATH
8653 fi
8654 ;;
8655
8656 amigaos*)
8657 library_names_spec='$libname.ixlibrary $libname.a'
8658 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8659 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'
8660 ;;
8661
8662 beos*)
8663 library_names_spec='${libname}${shared_ext}'
8664 dynamic_linker="$host_os ld.so"
8665 shlibpath_var=LIBRARY_PATH
8666 ;;
8667
8668 bsdi[45]*)
8669 version_type=linux
8670 need_version=no
8671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8672 soname_spec='${libname}${release}${shared_ext}$major'
8673 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8674 shlibpath_var=LD_LIBRARY_PATH
8675 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8676 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8677 # the default ld.so.conf also contains /usr/contrib/lib and
8678 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8679 # libtool to hard-code these into programs
8680 ;;
8681
8682 cygwin* | mingw* | pw32*)
8683 version_type=windows
8684 shrext_cmds=".dll"
8685 need_version=no
8686 need_lib_prefix=no
8687
8688 case $GCC,$host_os in
8689 yes,cygwin* | yes,mingw* | yes,pw32*)
8690 library_names_spec='$libname.dll.a'
8691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8692 postinstall_cmds='base_file=`basename \${file}`~
8693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8694 dldir=$destdir/`dirname \$dlpath`~
8695 test -d \$dldir || mkdir -p \$dldir~
8696 $install_prog $dir/$dlname \$dldir/$dlname~
8697 chmod a+x \$dldir/$dlname'
8698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8699 dlpath=$dir/\$dldll~
8700 $rm \$dlpath'
8701 shlibpath_overrides_runpath=yes
8702
8703 case $host_os in
8704 cygwin*)
8705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8708 ;;
8709 mingw*)
8710 # MinGW DLLs use traditional 'lib' prefix
8711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8714 # It is most probably a Windows format PATH printed by
8715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8716 # path with ; separators, and with drive letters. We can handle the
8717 # drive letters (cygwin fileutils understands them), so leave them,
8718 # especially as we might pass files found there to a mingw objdump,
8719 # which wouldn't understand a cygwinified path. Ahh.
8720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8721 else
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8723 fi
8724 ;;
8725 pw32*)
8726 # pw32 DLLs use 'pw' prefix rather than 'lib'
8727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8728 ;;
8729 esac
8730 ;;
8731
8732 *)
8733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8734 ;;
8735 esac
8736 dynamic_linker='Win32 ld.exe'
8737 # FIXME: first we should search . and the directory the executable is in
8738 shlibpath_var=PATH
8739 ;;
8740
8741 darwin* | rhapsody*)
8742 dynamic_linker="$host_os dyld"
8743 version_type=darwin
8744 need_lib_prefix=no
8745 need_version=no
8746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8747 soname_spec='${libname}${release}${major}$shared_ext'
8748 shlibpath_overrides_runpath=yes
8749 shlibpath_var=DYLD_LIBRARY_PATH
8750 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8752 if test "$GCC" = yes; then
8753 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8754 else
8755 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8756 fi
8757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8758 ;;
8759
8760 dgux*)
8761 version_type=linux
8762 need_lib_prefix=no
8763 need_version=no
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8767 ;;
8768
8769 freebsd1*)
8770 dynamic_linker=no
8771 ;;
8772
8773 kfreebsd*-gnu)
8774 version_type=linux
8775 need_lib_prefix=no
8776 need_version=no
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 shlibpath_var=LD_LIBRARY_PATH
8780 shlibpath_overrides_runpath=no
8781 hardcode_into_libs=yes
8782 dynamic_linker='GNU ld.so'
8783 ;;
8784
8785 freebsd* | dragonfly*)
8786 # DragonFly does not have aout. When/if they implement a new
8787 # versioning mechanism, adjust this.
8788 if test -x /usr/bin/objformat; then
8789 objformat=`/usr/bin/objformat`
8790 else
8791 case $host_os in
8792 freebsd[123]*) objformat=aout ;;
8793 *) objformat=elf ;;
8794 esac
8795 fi
8796 version_type=freebsd-$objformat
8797 case $version_type in
8798 freebsd-elf*)
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8800 need_version=no
8801 need_lib_prefix=no
8802 ;;
8803 freebsd-*)
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8805 need_version=yes
8806 ;;
8807 esac
8808 shlibpath_var=LD_LIBRARY_PATH
8809 case $host_os in
8810 freebsd2*)
8811 shlibpath_overrides_runpath=yes
8812 ;;
8813 freebsd3.[01]* | freebsdelf3.[01]*)
8814 shlibpath_overrides_runpath=yes
8815 hardcode_into_libs=yes
8816 ;;
8817 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8818 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8819 shlibpath_overrides_runpath=no
8820 hardcode_into_libs=yes
8821 ;;
8822 freebsd*) # from 4.6 on
8823 shlibpath_overrides_runpath=yes
8824 hardcode_into_libs=yes
8825 ;;
8826 esac
8827 ;;
8828
8829 gnu*)
8830 version_type=linux
8831 need_lib_prefix=no
8832 need_version=no
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8834 soname_spec='${libname}${release}${shared_ext}$major'
8835 shlibpath_var=LD_LIBRARY_PATH
8836 hardcode_into_libs=yes
8837 ;;
8838
8839 hpux9* | hpux10* | hpux11*)
8840 # Give a soname corresponding to the major version so that dld.sl refuses to
8841 # link against other versions.
8842 version_type=sunos
8843 need_lib_prefix=no
8844 need_version=no
8845 case $host_cpu in
8846 ia64*)
8847 shrext_cmds='.so'
8848 hardcode_into_libs=yes
8849 dynamic_linker="$host_os dld.so"
8850 shlibpath_var=LD_LIBRARY_PATH
8851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8853 soname_spec='${libname}${release}${shared_ext}$major'
8854 if test "X$HPUX_IA64_MODE" = X32; then
8855 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8856 else
8857 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8858 fi
8859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8860 ;;
8861 hppa*64*)
8862 shrext_cmds='.sl'
8863 hardcode_into_libs=yes
8864 dynamic_linker="$host_os dld.sl"
8865 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8871 ;;
8872 *)
8873 shrext_cmds='.sl'
8874 dynamic_linker="$host_os dld.sl"
8875 shlibpath_var=SHLIB_PATH
8876 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
8879 ;;
8880 esac
8881 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8882 postinstall_cmds='chmod 555 $lib'
8883 ;;
8884
8885 interix3*)
8886 version_type=linux
8887 need_lib_prefix=no
8888 need_version=no
8889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8890 soname_spec='${libname}${release}${shared_ext}$major'
8891 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8892 shlibpath_var=LD_LIBRARY_PATH
8893 shlibpath_overrides_runpath=no
8894 hardcode_into_libs=yes
8895 ;;
8896
8897 irix5* | irix6* | nonstopux*)
8898 case $host_os in
8899 nonstopux*) version_type=nonstopux ;;
8900 *)
8901 if test "$lt_cv_prog_gnu_ld" = yes; then
8902 version_type=linux
8903 else
8904 version_type=irix
8905 fi ;;
8906 esac
8907 need_lib_prefix=no
8908 need_version=no
8909 soname_spec='${libname}${release}${shared_ext}$major'
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8911 case $host_os in
8912 irix5* | nonstopux*)
8913 libsuff= shlibsuff=
8914 ;;
8915 *)
8916 case $LD in # libtool.m4 will add one of these switches to LD
8917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8918 libsuff= shlibsuff= libmagic=32-bit;;
8919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8920 libsuff=32 shlibsuff=N32 libmagic=N32;;
8921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8923 *) libsuff= shlibsuff= libmagic=never-match;;
8924 esac
8925 ;;
8926 esac
8927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8928 shlibpath_overrides_runpath=no
8929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8931 hardcode_into_libs=yes
8932 ;;
8933
8934 # No shared lib support for Linux oldld, aout, or coff.
8935 linux*oldld* | linux*aout* | linux*coff*)
8936 dynamic_linker=no
8937 ;;
8938
8939 # This must be Linux ELF.
8940 linux*)
8941 version_type=linux
8942 need_lib_prefix=no
8943 need_version=no
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=no
8949 # This implies no fast_install, which is unacceptable.
8950 # Some rework will be needed to allow for fast_install
8951 # before this can be enabled.
8952 hardcode_into_libs=yes
8953
8954 # Append ld.so.conf contents to the search path
8955 if test -f /etc/ld.so.conf; then
8956 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8958 fi
8959
8960 # We used to test for /lib/ld.so.1 and disable shared libraries on
8961 # powerpc, because MkLinux only supported shared libraries with the
8962 # GNU dynamic linker. Since this was broken with cross compilers,
8963 # most powerpc-linux boxes support dynamic linking these days and
8964 # people can always --disable-shared, the test was removed, and we
8965 # assume the GNU/Linux dynamic linker is in use.
8966 dynamic_linker='GNU/Linux ld.so'
8967 ;;
8968
8969 knetbsd*-gnu)
8970 version_type=linux
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=no
8977 hardcode_into_libs=yes
8978 dynamic_linker='GNU ld.so'
8979 ;;
8980
8981 netbsd*)
8982 version_type=sunos
8983 need_lib_prefix=no
8984 need_version=no
8985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8988 dynamic_linker='NetBSD (a.out) ld.so'
8989 else
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8991 soname_spec='${libname}${release}${shared_ext}$major'
8992 dynamic_linker='NetBSD ld.elf_so'
8993 fi
8994 shlibpath_var=LD_LIBRARY_PATH
8995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
8997 ;;
8998
8999 newsos6)
9000 version_type=linux
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 ;;
9005
9006 nto-qnx*)
9007 version_type=linux
9008 need_lib_prefix=no
9009 need_version=no
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 shlibpath_overrides_runpath=yes
9014 ;;
9015
9016 openbsd*)
9017 version_type=sunos
9018 sys_lib_dlsearch_path_spec="/usr/lib"
9019 need_lib_prefix=no
9020 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9021 case $host_os in
9022 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9023 *) need_version=no ;;
9024 esac
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9027 shlibpath_var=LD_LIBRARY_PATH
9028 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9029 case $host_os in
9030 openbsd2.[89] | openbsd2.[89].*)
9031 shlibpath_overrides_runpath=no
9032 ;;
9033 *)
9034 shlibpath_overrides_runpath=yes
9035 ;;
9036 esac
9037 else
9038 shlibpath_overrides_runpath=yes
9039 fi
9040 ;;
9041
9042 os2*)
9043 libname_spec='$name'
9044 shrext_cmds=".dll"
9045 need_lib_prefix=no
9046 library_names_spec='$libname${shared_ext} $libname.a'
9047 dynamic_linker='OS/2 ld.exe'
9048 shlibpath_var=LIBPATH
9049 ;;
9050
9051 osf3* | osf4* | osf5*)
9052 version_type=osf
9053 need_lib_prefix=no
9054 need_version=no
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9059 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9060 ;;
9061
9062 solaris*)
9063 version_type=linux
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9070 hardcode_into_libs=yes
9071 # ldd complains unless libraries are executable
9072 postinstall_cmds='chmod +x $lib'
9073 ;;
9074
9075 sunos4*)
9076 version_type=sunos
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9079 shlibpath_var=LD_LIBRARY_PATH
9080 shlibpath_overrides_runpath=yes
9081 if test "$with_gnu_ld" = yes; then
9082 need_lib_prefix=no
9083 fi
9084 need_version=yes
9085 ;;
9086
9087 sysv4 | sysv4.3*)
9088 version_type=linux
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 case $host_vendor in
9093 sni)
9094 shlibpath_overrides_runpath=no
9095 need_lib_prefix=no
9096 export_dynamic_flag_spec='${wl}-Blargedynsym'
9097 runpath_var=LD_RUN_PATH
9098 ;;
9099 siemens)
9100 need_lib_prefix=no
9101 ;;
9102 motorola)
9103 need_lib_prefix=no
9104 need_version=no
9105 shlibpath_overrides_runpath=no
9106 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9107 ;;
9108 esac
9109 ;;
9110
9111 sysv4*MP*)
9112 if test -d /usr/nec ;then
9113 version_type=linux
9114 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9115 soname_spec='$libname${shared_ext}.$major'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 fi
9118 ;;
9119
9120 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9121 version_type=freebsd-elf
9122 need_lib_prefix=no
9123 need_version=no
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 hardcode_into_libs=yes
9128 if test "$with_gnu_ld" = yes; then
9129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9130 shlibpath_overrides_runpath=no
9131 else
9132 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9133 shlibpath_overrides_runpath=yes
9134 case $host_os in
9135 sco3.2v5*)
9136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9137 ;;
9138 esac
9139 fi
9140 sys_lib_dlsearch_path_spec='/usr/lib'
9141 ;;
9142
9143 uts4*)
9144 version_type=linux
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 ;;
9149
9150 *)
9151 dynamic_linker=no
9152 ;;
9153 esac
9154 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9155 echo "${ECHO_T}$dynamic_linker" >&6; }
9156 test "$dynamic_linker" = no && can_build_shared=no
9157
9158 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9159 if test "$GCC" = yes; then
9160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9161 fi
9162
9163 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9164 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9165 hardcode_action=
9166 if test -n "$hardcode_libdir_flag_spec" || \
9167 test -n "$runpath_var" || \
9168 test "X$hardcode_automatic" = "Xyes" ; then
9169
9170 # We can hardcode non-existant directories.
9171 if test "$hardcode_direct" != no &&
9172 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9173 # have to relink, otherwise we might link with an installed library
9174 # when we should be linking with a yet-to-be-installed one
9175 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9176 test "$hardcode_minus_L" != no; then
9177 # Linking always hardcodes the temporary library directory.
9178 hardcode_action=relink
9179 else
9180 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9181 hardcode_action=immediate
9182 fi
9183 else
9184 # We cannot hardcode anything, or else we can only hardcode existing
9185 # directories.
9186 hardcode_action=unsupported
9187 fi
9188 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9189 echo "${ECHO_T}$hardcode_action" >&6; }
9190
9191 if test "$hardcode_action" = relink; then
9192 # Fast installation is not supported
9193 enable_fast_install=no
9194 elif test "$shlibpath_overrides_runpath" = yes ||
9195 test "$enable_shared" = no; then
9196 # Fast installation is not necessary
9197 enable_fast_install=needless
9198 fi
9199
9200 striplib=
9201 old_striplib=
9202 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9203 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9204 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9205 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9206 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9207 { echo "$as_me:$LINENO: result: yes" >&5
9208 echo "${ECHO_T}yes" >&6; }
9209 else
9210 # FIXME - insert some real tests, host_os isn't really good enough
9211 case $host_os in
9212 darwin*)
9213 if test -n "$STRIP" ; then
9214 striplib="$STRIP -x"
9215 { echo "$as_me:$LINENO: result: yes" >&5
9216 echo "${ECHO_T}yes" >&6; }
9217 else
9218 { echo "$as_me:$LINENO: result: no" >&5
9219 echo "${ECHO_T}no" >&6; }
9220 fi
9221 ;;
9222 *)
9223 { echo "$as_me:$LINENO: result: no" >&5
9224 echo "${ECHO_T}no" >&6; }
9225 ;;
9226 esac
9227 fi
9228
9229 if test "x$enable_dlopen" != xyes; then
9230 enable_dlopen=unknown
9231 enable_dlopen_self=unknown
9232 enable_dlopen_self_static=unknown
9233 else
9234 lt_cv_dlopen=no
9235 lt_cv_dlopen_libs=
9236
9237 case $host_os in
9238 beos*)
9239 lt_cv_dlopen="load_add_on"
9240 lt_cv_dlopen_libs=
9241 lt_cv_dlopen_self=yes
9242 ;;
9243
9244 mingw* | pw32*)
9245 lt_cv_dlopen="LoadLibrary"
9246 lt_cv_dlopen_libs=
9247 ;;
9248
9249 cygwin*)
9250 lt_cv_dlopen="dlopen"
9251 lt_cv_dlopen_libs=
9252 ;;
9253
9254 darwin*)
9255 # if libdl is installed we need to link against it
9256 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9259 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261 ac_check_lib_save_LIBS=$LIBS
9262 LIBS="-ldl $LIBS"
9263 cat >conftest.$ac_ext <<_ACEOF
9264 /* confdefs.h. */
9265 _ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269
9270 /* Override any GCC internal prototype to avoid an error.
9271 Use char because int might match the return type of a GCC
9272 builtin and then its argument prototype would still apply. */
9273 #ifdef __cplusplus
9274 extern "C"
9275 #endif
9276 char dlopen ();
9277 int
9278 main ()
9279 {
9280 return dlopen ();
9281 ;
9282 return 0;
9283 }
9284 _ACEOF
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (ac_try="$ac_link"
9287 case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_link") 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && {
9299 test -z "$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 } && test -s conftest$ac_exeext &&
9302 $as_test_x conftest$ac_exeext; then
9303 ac_cv_lib_dl_dlopen=yes
9304 else
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 ac_cv_lib_dl_dlopen=no
9309 fi
9310
9311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9312 conftest$ac_exeext conftest.$ac_ext
9313 LIBS=$ac_check_lib_save_LIBS
9314 fi
9315 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9317 if test $ac_cv_lib_dl_dlopen = yes; then
9318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9319 else
9320
9321 lt_cv_dlopen="dyld"
9322 lt_cv_dlopen_libs=
9323 lt_cv_dlopen_self=yes
9324
9325 fi
9326
9327 ;;
9328
9329 *)
9330 { echo "$as_me:$LINENO: checking for shl_load" >&5
9331 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9332 if test "${ac_cv_func_shl_load+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 else
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h. */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h. */
9341 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9343 #define shl_load innocuous_shl_load
9344
9345 /* System header to define __stub macros and hopefully few prototypes,
9346 which can conflict with char shl_load (); below.
9347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9348 <limits.h> exists even on freestanding compilers. */
9349
9350 #ifdef __STDC__
9351 # include <limits.h>
9352 #else
9353 # include <assert.h>
9354 #endif
9355
9356 #undef shl_load
9357
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char shl_load ();
9365 /* The GNU C library defines this for functions which it implements
9366 to always fail with ENOSYS. Some functions are actually named
9367 something starting with __ and the normal name is an alias. */
9368 #if defined __stub_shl_load || defined __stub___shl_load
9369 choke me
9370 #endif
9371
9372 int
9373 main ()
9374 {
9375 return shl_load ();
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 rm -f conftest.$ac_objext conftest$ac_exeext
9381 if { (ac_try="$ac_link"
9382 case "(($ac_try" in
9383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9385 esac
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_link") 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest$ac_exeext &&
9397 $as_test_x conftest$ac_exeext; then
9398 ac_cv_func_shl_load=yes
9399 else
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9402
9403 ac_cv_func_shl_load=no
9404 fi
9405
9406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9407 conftest$ac_exeext conftest.$ac_ext
9408 fi
9409 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9410 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9411 if test $ac_cv_func_shl_load = yes; then
9412 lt_cv_dlopen="shl_load"
9413 else
9414 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9415 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9416 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 ac_check_lib_save_LIBS=$LIBS
9420 LIBS="-ldld $LIBS"
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char shl_load ();
9435 int
9436 main ()
9437 {
9438 return shl_load ();
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (ac_try="$ac_link"
9445 case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448 esac
9449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_link") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest$ac_exeext &&
9460 $as_test_x conftest$ac_exeext; then
9461 ac_cv_lib_dld_shl_load=yes
9462 else
9463 echo "$as_me: failed program was:" >&5
9464 sed 's/^/| /' conftest.$ac_ext >&5
9465
9466 ac_cv_lib_dld_shl_load=no
9467 fi
9468
9469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_lib_save_LIBS
9472 fi
9473 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9474 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9475 if test $ac_cv_lib_dld_shl_load = yes; then
9476 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9477 else
9478 { echo "$as_me:$LINENO: checking for dlopen" >&5
9479 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9480 if test "${ac_cv_func_dlopen+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483 cat >conftest.$ac_ext <<_ACEOF
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9491 #define dlopen innocuous_dlopen
9492
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char dlopen (); below.
9495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9496 <limits.h> exists even on freestanding compilers. */
9497
9498 #ifdef __STDC__
9499 # include <limits.h>
9500 #else
9501 # include <assert.h>
9502 #endif
9503
9504 #undef dlopen
9505
9506 /* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
9509 #ifdef __cplusplus
9510 extern "C"
9511 #endif
9512 char dlopen ();
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined __stub_dlopen || defined __stub___dlopen
9517 choke me
9518 #endif
9519
9520 int
9521 main ()
9522 {
9523 return dlopen ();
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 rm -f conftest.$ac_objext conftest$ac_exeext
9529 if { (ac_try="$ac_link"
9530 case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_link") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest$ac_exeext &&
9545 $as_test_x conftest$ac_exeext; then
9546 ac_cv_func_dlopen=yes
9547 else
9548 echo "$as_me: failed program was:" >&5
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 ac_cv_func_dlopen=no
9552 fi
9553
9554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9555 conftest$ac_exeext conftest.$ac_ext
9556 fi
9557 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9558 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9559 if test $ac_cv_func_dlopen = yes; then
9560 lt_cv_dlopen="dlopen"
9561 else
9562 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9563 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9564 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 ac_check_lib_save_LIBS=$LIBS
9568 LIBS="-ldl $LIBS"
9569 cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h. */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h. */
9575
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 char dlopen ();
9583 int
9584 main ()
9585 {
9586 return dlopen ();
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (ac_try="$ac_link"
9593 case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596 esac
9597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_link") 2>conftest.er1
9599 ac_status=$?
9600 grep -v '^ *+' conftest.er1 >conftest.err
9601 rm -f conftest.er1
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } && {
9605 test -z "$ac_c_werror_flag" ||
9606 test ! -s conftest.err
9607 } && test -s conftest$ac_exeext &&
9608 $as_test_x conftest$ac_exeext; then
9609 ac_cv_lib_dl_dlopen=yes
9610 else
9611 echo "$as_me: failed program was:" >&5
9612 sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 ac_cv_lib_dl_dlopen=no
9615 fi
9616
9617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9618 conftest$ac_exeext conftest.$ac_ext
9619 LIBS=$ac_check_lib_save_LIBS
9620 fi
9621 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9622 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9623 if test $ac_cv_lib_dl_dlopen = yes; then
9624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9625 else
9626 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9627 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9628 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-lsvld $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h. */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char dlopen ();
9647 int
9648 main ()
9649 {
9650 return dlopen ();
9651 ;
9652 return 0;
9653 }
9654 _ACEOF
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9657 case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9660 esac
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest$ac_exeext &&
9672 $as_test_x conftest$ac_exeext; then
9673 ac_cv_lib_svld_dlopen=yes
9674 else
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9677
9678 ac_cv_lib_svld_dlopen=no
9679 fi
9680
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9684 fi
9685 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9686 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9687 if test $ac_cv_lib_svld_dlopen = yes; then
9688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9689 else
9690 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9691 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9692 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 else
9695 ac_check_lib_save_LIBS=$LIBS
9696 LIBS="-ldld $LIBS"
9697 cat >conftest.$ac_ext <<_ACEOF
9698 /* confdefs.h. */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 char dld_link ();
9711 int
9712 main ()
9713 {
9714 return dld_link ();
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9721 case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 ac_cv_lib_dld_dld_link=yes
9738 else
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9741
9742 ac_cv_lib_dld_dld_link=no
9743 fi
9744
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9748 fi
9749 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9750 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9751 if test $ac_cv_lib_dld_dld_link = yes; then
9752 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9753 fi
9754
9755
9756 fi
9757
9758
9759 fi
9760
9761
9762 fi
9763
9764
9765 fi
9766
9767
9768 fi
9769
9770 ;;
9771 esac
9772
9773 if test "x$lt_cv_dlopen" != xno; then
9774 enable_dlopen=yes
9775 else
9776 enable_dlopen=no
9777 fi
9778
9779 case $lt_cv_dlopen in
9780 dlopen)
9781 save_CPPFLAGS="$CPPFLAGS"
9782 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9783
9784 save_LDFLAGS="$LDFLAGS"
9785 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9786
9787 save_LIBS="$LIBS"
9788 LIBS="$lt_cv_dlopen_libs $LIBS"
9789
9790 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9791 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9792 if test "${lt_cv_dlopen_self+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794 else
9795 if test "$cross_compiling" = yes; then :
9796 lt_cv_dlopen_self=cross
9797 else
9798 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9799 lt_status=$lt_dlunknown
9800 cat > conftest.$ac_ext <<EOF
9801 #line 9801 "configure"
9802 #include "confdefs.h"
9803
9804 #if HAVE_DLFCN_H
9805 #include <dlfcn.h>
9806 #endif
9807
9808 #include <stdio.h>
9809
9810 #ifdef RTLD_GLOBAL
9811 # define LT_DLGLOBAL RTLD_GLOBAL
9812 #else
9813 # ifdef DL_GLOBAL
9814 # define LT_DLGLOBAL DL_GLOBAL
9815 # else
9816 # define LT_DLGLOBAL 0
9817 # endif
9818 #endif
9819
9820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9821 find out it does not work in some platform. */
9822 #ifndef LT_DLLAZY_OR_NOW
9823 # ifdef RTLD_LAZY
9824 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9825 # else
9826 # ifdef DL_LAZY
9827 # define LT_DLLAZY_OR_NOW DL_LAZY
9828 # else
9829 # ifdef RTLD_NOW
9830 # define LT_DLLAZY_OR_NOW RTLD_NOW
9831 # else
9832 # ifdef DL_NOW
9833 # define LT_DLLAZY_OR_NOW DL_NOW
9834 # else
9835 # define LT_DLLAZY_OR_NOW 0
9836 # endif
9837 # endif
9838 # endif
9839 # endif
9840 #endif
9841
9842 #ifdef __cplusplus
9843 extern "C" void exit (int);
9844 #endif
9845
9846 void fnord() { int i=42;}
9847 int main ()
9848 {
9849 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9850 int status = $lt_dlunknown;
9851
9852 if (self)
9853 {
9854 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9855 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9856 /* dlclose (self); */
9857 }
9858 else
9859 puts (dlerror ());
9860
9861 exit (status);
9862 }
9863 EOF
9864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9865 (eval $ac_link) 2>&5
9866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9869 (./conftest; exit; ) >&5 2>/dev/null
9870 lt_status=$?
9871 case x$lt_status in
9872 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9873 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9874 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9875 esac
9876 else :
9877 # compilation failed
9878 lt_cv_dlopen_self=no
9879 fi
9880 fi
9881 rm -fr conftest*
9882
9883
9884 fi
9885 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9886 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9887
9888 if test "x$lt_cv_dlopen_self" = xyes; then
9889 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9890 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9891 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9892 if test "${lt_cv_dlopen_self_static+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9894 else
9895 if test "$cross_compiling" = yes; then :
9896 lt_cv_dlopen_self_static=cross
9897 else
9898 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9899 lt_status=$lt_dlunknown
9900 cat > conftest.$ac_ext <<EOF
9901 #line 9901 "configure"
9902 #include "confdefs.h"
9903
9904 #if HAVE_DLFCN_H
9905 #include <dlfcn.h>
9906 #endif
9907
9908 #include <stdio.h>
9909
9910 #ifdef RTLD_GLOBAL
9911 # define LT_DLGLOBAL RTLD_GLOBAL
9912 #else
9913 # ifdef DL_GLOBAL
9914 # define LT_DLGLOBAL DL_GLOBAL
9915 # else
9916 # define LT_DLGLOBAL 0
9917 # endif
9918 #endif
9919
9920 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9921 find out it does not work in some platform. */
9922 #ifndef LT_DLLAZY_OR_NOW
9923 # ifdef RTLD_LAZY
9924 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9925 # else
9926 # ifdef DL_LAZY
9927 # define LT_DLLAZY_OR_NOW DL_LAZY
9928 # else
9929 # ifdef RTLD_NOW
9930 # define LT_DLLAZY_OR_NOW RTLD_NOW
9931 # else
9932 # ifdef DL_NOW
9933 # define LT_DLLAZY_OR_NOW DL_NOW
9934 # else
9935 # define LT_DLLAZY_OR_NOW 0
9936 # endif
9937 # endif
9938 # endif
9939 # endif
9940 #endif
9941
9942 #ifdef __cplusplus
9943 extern "C" void exit (int);
9944 #endif
9945
9946 void fnord() { int i=42;}
9947 int main ()
9948 {
9949 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9950 int status = $lt_dlunknown;
9951
9952 if (self)
9953 {
9954 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9955 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9956 /* dlclose (self); */
9957 }
9958 else
9959 puts (dlerror ());
9960
9961 exit (status);
9962 }
9963 EOF
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>&5
9966 ac_status=$?
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9969 (./conftest; exit; ) >&5 2>/dev/null
9970 lt_status=$?
9971 case x$lt_status in
9972 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9973 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9974 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9975 esac
9976 else :
9977 # compilation failed
9978 lt_cv_dlopen_self_static=no
9979 fi
9980 fi
9981 rm -fr conftest*
9982
9983
9984 fi
9985 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9986 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9987 fi
9988
9989 CPPFLAGS="$save_CPPFLAGS"
9990 LDFLAGS="$save_LDFLAGS"
9991 LIBS="$save_LIBS"
9992 ;;
9993 esac
9994
9995 case $lt_cv_dlopen_self in
9996 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9997 *) enable_dlopen_self=unknown ;;
9998 esac
9999
10000 case $lt_cv_dlopen_self_static in
10001 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10002 *) enable_dlopen_self_static=unknown ;;
10003 esac
10004 fi
10005
10006
10007 # Report which library types will actually be built
10008 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10009 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10010 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10011 echo "${ECHO_T}$can_build_shared" >&6; }
10012
10013 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10014 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10015 test "$can_build_shared" = "no" && enable_shared=no
10016
10017 # On AIX, shared libraries and static libraries use the same namespace, and
10018 # are all built from PIC.
10019 case $host_os in
10020 aix3*)
10021 test "$enable_shared" = yes && enable_static=no
10022 if test -n "$RANLIB"; then
10023 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10024 postinstall_cmds='$RANLIB $lib'
10025 fi
10026 ;;
10027
10028 aix4* | aix5*)
10029 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10030 test "$enable_shared" = yes && enable_static=no
10031 fi
10032 ;;
10033 esac
10034 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10035 echo "${ECHO_T}$enable_shared" >&6; }
10036
10037 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10038 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10039 # Make sure either enable_shared or enable_static is yes.
10040 test "$enable_shared" = yes || enable_static=yes
10041 { echo "$as_me:$LINENO: result: $enable_static" >&5
10042 echo "${ECHO_T}$enable_static" >&6; }
10043
10044 # The else clause should only fire when bootstrapping the
10045 # libtool distribution, otherwise you forgot to ship ltmain.sh
10046 # with your package, and you will get complaints that there are
10047 # no rules to generate ltmain.sh.
10048 if test -f "$ltmain"; then
10049 # See if we are running on zsh, and set the options which allow our commands through
10050 # without removal of \ escapes.
10051 if test -n "${ZSH_VERSION+set}" ; then
10052 setopt NO_GLOB_SUBST
10053 fi
10054 # Now quote all the things that may contain metacharacters while being
10055 # careful not to overquote the AC_SUBSTed values. We take copies of the
10056 # variables and quote the copies for generation of the libtool script.
10057 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10058 SED SHELL STRIP \
10059 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10060 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10061 deplibs_check_method reload_flag reload_cmds need_locks \
10062 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10063 lt_cv_sys_global_symbol_to_c_name_address \
10064 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10065 old_postinstall_cmds old_postuninstall_cmds \
10066 compiler \
10067 CC \
10068 LD \
10069 lt_prog_compiler_wl \
10070 lt_prog_compiler_pic \
10071 lt_prog_compiler_static \
10072 lt_prog_compiler_no_builtin_flag \
10073 export_dynamic_flag_spec \
10074 thread_safe_flag_spec \
10075 whole_archive_flag_spec \
10076 enable_shared_with_static_runtimes \
10077 old_archive_cmds \
10078 old_archive_from_new_cmds \
10079 predep_objects \
10080 postdep_objects \
10081 predeps \
10082 postdeps \
10083 compiler_lib_search_path \
10084 archive_cmds \
10085 archive_expsym_cmds \
10086 postinstall_cmds \
10087 postuninstall_cmds \
10088 old_archive_from_expsyms_cmds \
10089 allow_undefined_flag \
10090 no_undefined_flag \
10091 export_symbols_cmds \
10092 hardcode_libdir_flag_spec \
10093 hardcode_libdir_flag_spec_ld \
10094 hardcode_libdir_separator \
10095 hardcode_automatic \
10096 module_cmds \
10097 module_expsym_cmds \
10098 lt_cv_prog_compiler_c_o \
10099 exclude_expsyms \
10100 include_expsyms; do
10101
10102 case $var in
10103 old_archive_cmds | \
10104 old_archive_from_new_cmds | \
10105 archive_cmds | \
10106 archive_expsym_cmds | \
10107 module_cmds | \
10108 module_expsym_cmds | \
10109 old_archive_from_expsyms_cmds | \
10110 export_symbols_cmds | \
10111 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10112 postinstall_cmds | postuninstall_cmds | \
10113 old_postinstall_cmds | old_postuninstall_cmds | \
10114 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10115 # Double-quote double-evaled strings.
10116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10117 ;;
10118 *)
10119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10120 ;;
10121 esac
10122 done
10123
10124 case $lt_echo in
10125 *'\$0 --fallback-echo"')
10126 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10127 ;;
10128 esac
10129
10130 cfgfile="${ofile}T"
10131 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10132 $rm -f "$cfgfile"
10133 { echo "$as_me:$LINENO: creating $ofile" >&5
10134 echo "$as_me: creating $ofile" >&6;}
10135
10136 cat <<__EOF__ >> "$cfgfile"
10137 #! $SHELL
10138
10139 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10140 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10141 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10142 #
10143 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10144 # Free Software Foundation, Inc.
10145 #
10146 # This file is part of GNU Libtool:
10147 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10148 #
10149 # This program is free software; you can redistribute it and/or modify
10150 # it under the terms of the GNU General Public License as published by
10151 # the Free Software Foundation; either version 2 of the License, or
10152 # (at your option) any later version.
10153 #
10154 # This program is distributed in the hope that it will be useful, but
10155 # WITHOUT ANY WARRANTY; without even the implied warranty of
10156 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10157 # General Public License for more details.
10158 #
10159 # You should have received a copy of the GNU General Public License
10160 # along with this program; if not, write to the Free Software
10161 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10162 #
10163 # As a special exception to the GNU General Public License, if you
10164 # distribute this file as part of a program that contains a
10165 # configuration script generated by Autoconf, you may include it under
10166 # the same distribution terms that you use for the rest of that program.
10167
10168 # A sed program that does not truncate output.
10169 SED=$lt_SED
10170
10171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10172 Xsed="$SED -e 1s/^X//"
10173
10174 # The HP-UX ksh and POSIX shell print the target directory to stdout
10175 # if CDPATH is set.
10176 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10177
10178 # The names of the tagged configurations supported by this script.
10179 available_tags=
10180
10181 # ### BEGIN LIBTOOL CONFIG
10182
10183 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10184
10185 # Shell to use when invoking shell scripts.
10186 SHELL=$lt_SHELL
10187
10188 # Whether or not to build shared libraries.
10189 build_libtool_libs=$enable_shared
10190
10191 # Whether or not to build static libraries.
10192 build_old_libs=$enable_static
10193
10194 # Whether or not to add -lc for building shared libraries.
10195 build_libtool_need_lc=$archive_cmds_need_lc
10196
10197 # Whether or not to disallow shared libs when runtime libs are static
10198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10199
10200 # Whether or not to optimize for fast installation.
10201 fast_install=$enable_fast_install
10202
10203 # The host system.
10204 host_alias=$host_alias
10205 host=$host
10206 host_os=$host_os
10207
10208 # The build system.
10209 build_alias=$build_alias
10210 build=$build
10211 build_os=$build_os
10212
10213 # An echo program that does not interpret backslashes.
10214 echo=$lt_echo
10215
10216 # The archiver.
10217 AR=$lt_AR
10218 AR_FLAGS=$lt_AR_FLAGS
10219
10220 # A C compiler.
10221 LTCC=$lt_LTCC
10222
10223 # LTCC compiler flags.
10224 LTCFLAGS=$lt_LTCFLAGS
10225
10226 # A language-specific compiler.
10227 CC=$lt_compiler
10228
10229 # Is the compiler the GNU C compiler?
10230 with_gcc=$GCC
10231
10232 # An ERE matcher.
10233 EGREP=$lt_EGREP
10234
10235 # The linker used to build libraries.
10236 LD=$lt_LD
10237
10238 # Whether we need hard or soft links.
10239 LN_S=$lt_LN_S
10240
10241 # A BSD-compatible nm program.
10242 NM=$lt_NM
10243
10244 # A symbol stripping program
10245 STRIP=$lt_STRIP
10246
10247 # Used to examine libraries when file_magic_cmd begins "file"
10248 MAGIC_CMD=$MAGIC_CMD
10249
10250 # Used on cygwin: DLL creation program.
10251 DLLTOOL="$DLLTOOL"
10252
10253 # Used on cygwin: object dumper.
10254 OBJDUMP="$OBJDUMP"
10255
10256 # Used on cygwin: assembler.
10257 AS="$AS"
10258
10259 # The name of the directory that contains temporary libtool files.
10260 objdir=$objdir
10261
10262 # How to create reloadable object files.
10263 reload_flag=$lt_reload_flag
10264 reload_cmds=$lt_reload_cmds
10265
10266 # How to pass a linker flag through the compiler.
10267 wl=$lt_lt_prog_compiler_wl
10268
10269 # Object file suffix (normally "o").
10270 objext="$ac_objext"
10271
10272 # Old archive suffix (normally "a").
10273 libext="$libext"
10274
10275 # Shared library suffix (normally ".so").
10276 shrext_cmds='$shrext_cmds'
10277
10278 # Executable file suffix (normally "").
10279 exeext="$exeext"
10280
10281 # Additional compiler flags for building library objects.
10282 pic_flag=$lt_lt_prog_compiler_pic
10283 pic_mode=$pic_mode
10284
10285 # What is the maximum length of a command?
10286 max_cmd_len=$lt_cv_sys_max_cmd_len
10287
10288 # Does compiler simultaneously support -c and -o options?
10289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10290
10291 # Must we lock files when doing compilation?
10292 need_locks=$lt_need_locks
10293
10294 # Do we need the lib prefix for modules?
10295 need_lib_prefix=$need_lib_prefix
10296
10297 # Do we need a version for libraries?
10298 need_version=$need_version
10299
10300 # Whether dlopen is supported.
10301 dlopen_support=$enable_dlopen
10302
10303 # Whether dlopen of programs is supported.
10304 dlopen_self=$enable_dlopen_self
10305
10306 # Whether dlopen of statically linked programs is supported.
10307 dlopen_self_static=$enable_dlopen_self_static
10308
10309 # Compiler flag to prevent dynamic linking.
10310 link_static_flag=$lt_lt_prog_compiler_static
10311
10312 # Compiler flag to turn off builtin functions.
10313 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10314
10315 # Compiler flag to allow reflexive dlopens.
10316 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10317
10318 # Compiler flag to generate shared objects directly from archives.
10319 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10320
10321 # Compiler flag to generate thread-safe objects.
10322 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10323
10324 # Library versioning type.
10325 version_type=$version_type
10326
10327 # Format of library name prefix.
10328 libname_spec=$lt_libname_spec
10329
10330 # List of archive names. First name is the real one, the rest are links.
10331 # The last name is the one that the linker finds with -lNAME.
10332 library_names_spec=$lt_library_names_spec
10333
10334 # The coded name of the library, if different from the real name.
10335 soname_spec=$lt_soname_spec
10336
10337 # Commands used to build and install an old-style archive.
10338 RANLIB=$lt_RANLIB
10339 old_archive_cmds=$lt_old_archive_cmds
10340 old_postinstall_cmds=$lt_old_postinstall_cmds
10341 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10342
10343 # Create an old-style archive from a shared archive.
10344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10345
10346 # Create a temporary old-style archive to link instead of a shared archive.
10347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10348
10349 # Commands used to build and install a shared archive.
10350 archive_cmds=$lt_archive_cmds
10351 archive_expsym_cmds=$lt_archive_expsym_cmds
10352 postinstall_cmds=$lt_postinstall_cmds
10353 postuninstall_cmds=$lt_postuninstall_cmds
10354
10355 # Commands used to build a loadable module (assumed same as above if empty)
10356 module_cmds=$lt_module_cmds
10357 module_expsym_cmds=$lt_module_expsym_cmds
10358
10359 # Commands to strip libraries.
10360 old_striplib=$lt_old_striplib
10361 striplib=$lt_striplib
10362
10363 # Dependencies to place before the objects being linked to create a
10364 # shared library.
10365 predep_objects=$lt_predep_objects
10366
10367 # Dependencies to place after the objects being linked to create a
10368 # shared library.
10369 postdep_objects=$lt_postdep_objects
10370
10371 # Dependencies to place before the objects being linked to create a
10372 # shared library.
10373 predeps=$lt_predeps
10374
10375 # Dependencies to place after the objects being linked to create a
10376 # shared library.
10377 postdeps=$lt_postdeps
10378
10379 # The library search path used internally by the compiler when linking
10380 # a shared library.
10381 compiler_lib_search_path=$lt_compiler_lib_search_path
10382
10383 # Method to check whether dependent libraries are shared objects.
10384 deplibs_check_method=$lt_deplibs_check_method
10385
10386 # Command to use when deplibs_check_method == file_magic.
10387 file_magic_cmd=$lt_file_magic_cmd
10388
10389 # Flag that allows shared libraries with undefined symbols to be built.
10390 allow_undefined_flag=$lt_allow_undefined_flag
10391
10392 # Flag that forces no undefined symbols.
10393 no_undefined_flag=$lt_no_undefined_flag
10394
10395 # Commands used to finish a libtool library installation in a directory.
10396 finish_cmds=$lt_finish_cmds
10397
10398 # Same as above, but a single script fragment to be evaled but not shown.
10399 finish_eval=$lt_finish_eval
10400
10401 # Take the output of nm and produce a listing of raw symbols and C names.
10402 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10403
10404 # Transform the output of nm in a proper C declaration
10405 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10406
10407 # Transform the output of nm in a C name address pair
10408 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10409
10410 # This is the shared library runtime path variable.
10411 runpath_var=$runpath_var
10412
10413 # This is the shared library path variable.
10414 shlibpath_var=$shlibpath_var
10415
10416 # Is shlibpath searched before the hard-coded library search path?
10417 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10418
10419 # How to hardcode a shared library path into an executable.
10420 hardcode_action=$hardcode_action
10421
10422 # Whether we should hardcode library paths into libraries.
10423 hardcode_into_libs=$hardcode_into_libs
10424
10425 # Flag to hardcode \$libdir into a binary during linking.
10426 # This must work even if \$libdir does not exist.
10427 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10428
10429 # If ld is used when linking, flag to hardcode \$libdir into
10430 # a binary during linking. This must work even if \$libdir does
10431 # not exist.
10432 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10433
10434 # Whether we need a single -rpath flag with a separated argument.
10435 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10436
10437 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10438 # resulting binary.
10439 hardcode_direct=$hardcode_direct
10440
10441 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10442 # resulting binary.
10443 hardcode_minus_L=$hardcode_minus_L
10444
10445 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10446 # the resulting binary.
10447 hardcode_shlibpath_var=$hardcode_shlibpath_var
10448
10449 # Set to yes if building a shared library automatically hardcodes DIR into the library
10450 # and all subsequent libraries and executables linked against it.
10451 hardcode_automatic=$hardcode_automatic
10452
10453 # Variables whose values should be saved in libtool wrapper scripts and
10454 # restored at relink time.
10455 variables_saved_for_relink="$variables_saved_for_relink"
10456
10457 # Whether libtool must link a program against all its dependency libraries.
10458 link_all_deplibs=$link_all_deplibs
10459
10460 # Compile-time system search path for libraries
10461 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10462
10463 # Run-time system search path for libraries
10464 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10465
10466 # Fix the shell variable \$srcfile for the compiler.
10467 fix_srcfile_path="$fix_srcfile_path"
10468
10469 # Set to yes if exported symbols are required.
10470 always_export_symbols=$always_export_symbols
10471
10472 # The commands to list exported symbols.
10473 export_symbols_cmds=$lt_export_symbols_cmds
10474
10475 # The commands to extract the exported symbol list from a shared archive.
10476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10477
10478 # Symbols that should not be listed in the preloaded symbols.
10479 exclude_expsyms=$lt_exclude_expsyms
10480
10481 # Symbols that must always be exported.
10482 include_expsyms=$lt_include_expsyms
10483
10484 # ### END LIBTOOL CONFIG
10485
10486 __EOF__
10487
10488
10489 case $host_os in
10490 aix3*)
10491 cat <<\EOF >> "$cfgfile"
10492
10493 # AIX sometimes has problems with the GCC collect2 program. For some
10494 # reason, if we set the COLLECT_NAMES environment variable, the problems
10495 # vanish in a puff of smoke.
10496 if test "X${COLLECT_NAMES+set}" != Xset; then
10497 COLLECT_NAMES=
10498 export COLLECT_NAMES
10499 fi
10500 EOF
10501 ;;
10502 esac
10503
10504 # We use sed instead of cat because bash on DJGPP gets confused if
10505 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10506 # text mode, it properly converts lines to CR/LF. This bash problem
10507 # is reportedly fixed, but why not run on old versions too?
10508 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10509
10510 mv -f "$cfgfile" "$ofile" || \
10511 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10512 chmod +x "$ofile"
10513
10514 else
10515 # If there is no Makefile yet, we rely on a make rule to execute
10516 # `config.status --recheck' to rerun these tests and create the
10517 # libtool script then.
10518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10519 if test -f "$ltmain_in"; then
10520 test -f Makefile && make "$ltmain"
10521 fi
10522 fi
10523
10524
10525 ac_ext=c
10526 ac_cpp='$CPP $CPPFLAGS'
10527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10530
10531 CC="$lt_save_CC"
10532
10533
10534 # Check whether --with-tags was given.
10535 if test "${with_tags+set}" = set; then
10536 withval=$with_tags; tagnames="$withval"
10537 fi
10538
10539
10540 if test -f "$ltmain" && test -n "$tagnames"; then
10541 if test ! -f "${ofile}"; then
10542 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10543 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10544 fi
10545
10546 if test -z "$LTCC"; then
10547 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10548 if test -z "$LTCC"; then
10549 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10550 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10551 else
10552 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10553 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10554 fi
10555 fi
10556 if test -z "$LTCFLAGS"; then
10557 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10558 fi
10559
10560 # Extract list of available tagged configurations in $ofile.
10561 # Note that this assumes the entire list is on one line.
10562 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10563
10564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10565 for tagname in $tagnames; do
10566 IFS="$lt_save_ifs"
10567 # Check whether tagname contains only valid characters
10568 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10569 "") ;;
10570 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10571 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10572 { (exit 1); exit 1; }; }
10573 ;;
10574 esac
10575
10576 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10577 then
10578 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10579 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10580 { (exit 1); exit 1; }; }
10581 fi
10582
10583 # Update the list of available tags.
10584 if test -n "$tagname"; then
10585 echo appending configuration tag \"$tagname\" to $ofile
10586
10587 case $tagname in
10588 CXX)
10589 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10590 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10591 (test "X$CXX" != "Xg++"))) ; then
10592 ac_ext=cpp
10593 ac_cpp='$CXXCPP $CPPFLAGS'
10594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10597
10598
10599
10600
10601 archive_cmds_need_lc_CXX=no
10602 allow_undefined_flag_CXX=
10603 always_export_symbols_CXX=no
10604 archive_expsym_cmds_CXX=
10605 export_dynamic_flag_spec_CXX=
10606 hardcode_direct_CXX=no
10607 hardcode_libdir_flag_spec_CXX=
10608 hardcode_libdir_flag_spec_ld_CXX=
10609 hardcode_libdir_separator_CXX=
10610 hardcode_minus_L_CXX=no
10611 hardcode_shlibpath_var_CXX=unsupported
10612 hardcode_automatic_CXX=no
10613 module_cmds_CXX=
10614 module_expsym_cmds_CXX=
10615 link_all_deplibs_CXX=unknown
10616 old_archive_cmds_CXX=$old_archive_cmds
10617 no_undefined_flag_CXX=
10618 whole_archive_flag_spec_CXX=
10619 enable_shared_with_static_runtimes_CXX=no
10620
10621 # Dependencies to place before and after the object being linked:
10622 predep_objects_CXX=
10623 postdep_objects_CXX=
10624 predeps_CXX=
10625 postdeps_CXX=
10626 compiler_lib_search_path_CXX=
10627
10628 # Source file extension for C++ test sources.
10629 ac_ext=cpp
10630
10631 # Object file extension for compiled C++ test sources.
10632 objext=o
10633 objext_CXX=$objext
10634
10635 # Code to be used in simple compile tests
10636 lt_simple_compile_test_code="int some_variable = 0;\n"
10637
10638 # Code to be used in simple link tests
10639 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10640
10641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10642
10643 # If no C compiler was specified, use CC.
10644 LTCC=${LTCC-"$CC"}
10645
10646 # If no C compiler flags were specified, use CFLAGS.
10647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10648
10649 # Allow CC to be a program name with arguments.
10650 compiler=$CC
10651
10652
10653 # save warnings/boilerplate of simple test code
10654 ac_outfile=conftest.$ac_objext
10655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10657 _lt_compiler_boilerplate=`cat conftest.err`
10658 $rm conftest*
10659
10660 ac_outfile=conftest.$ac_objext
10661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10663 _lt_linker_boilerplate=`cat conftest.err`
10664 $rm conftest*
10665
10666
10667 # Allow CC to be a program name with arguments.
10668 lt_save_CC=$CC
10669 lt_save_LD=$LD
10670 lt_save_GCC=$GCC
10671 GCC=$GXX
10672 lt_save_with_gnu_ld=$with_gnu_ld
10673 lt_save_path_LD=$lt_cv_path_LD
10674 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10675 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10676 else
10677 $as_unset lt_cv_prog_gnu_ld
10678 fi
10679 if test -n "${lt_cv_path_LDCXX+set}"; then
10680 lt_cv_path_LD=$lt_cv_path_LDCXX
10681 else
10682 $as_unset lt_cv_path_LD
10683 fi
10684 test -z "${LDCXX+set}" || LD=$LDCXX
10685 CC=${CXX-"c++"}
10686 compiler=$CC
10687 compiler_CXX=$CC
10688 for cc_temp in $compiler""; do
10689 case $cc_temp in
10690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10692 \-*) ;;
10693 *) break;;
10694 esac
10695 done
10696 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10697
10698
10699 # We don't want -fno-exception wen compiling C++ code, so set the
10700 # no_builtin_flag separately
10701 if test "$GXX" = yes; then
10702 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10703 else
10704 lt_prog_compiler_no_builtin_flag_CXX=
10705 fi
10706
10707 if test "$GXX" = yes; then
10708 # Set up default GNU C++ configuration
10709
10710
10711 # Check whether --with-gnu-ld was given.
10712 if test "${with_gnu_ld+set}" = set; then
10713 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10714 else
10715 with_gnu_ld=no
10716 fi
10717
10718 ac_prog=ld
10719 if test "$GCC" = yes; then
10720 # Check if gcc -print-prog-name=ld gives a path.
10721 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10722 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10723 case $host in
10724 *-*-mingw*)
10725 # gcc leaves a trailing carriage return which upsets mingw
10726 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10727 *)
10728 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10729 esac
10730 case $ac_prog in
10731 # Accept absolute paths.
10732 [\\/]* | ?:[\\/]*)
10733 re_direlt='/[^/][^/]*/\.\./'
10734 # Canonicalize the pathname of ld
10735 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10736 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10737 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10738 done
10739 test -z "$LD" && LD="$ac_prog"
10740 ;;
10741 "")
10742 # If it fails, then pretend we aren't using GCC.
10743 ac_prog=ld
10744 ;;
10745 *)
10746 # If it is relative, then search for the first ld in PATH.
10747 with_gnu_ld=unknown
10748 ;;
10749 esac
10750 elif test "$with_gnu_ld" = yes; then
10751 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10752 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10753 else
10754 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10755 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10756 fi
10757 if test "${lt_cv_path_LD+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760 if test -z "$LD"; then
10761 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10762 for ac_dir in $PATH; do
10763 IFS="$lt_save_ifs"
10764 test -z "$ac_dir" && ac_dir=.
10765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10766 lt_cv_path_LD="$ac_dir/$ac_prog"
10767 # Check to see if the program is GNU ld. I'd rather use --version,
10768 # but apparently some variants of GNU ld only accept -v.
10769 # Break only if it was the GNU/non-GNU ld that we prefer.
10770 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10771 *GNU* | *'with BFD'*)
10772 test "$with_gnu_ld" != no && break
10773 ;;
10774 *)
10775 test "$with_gnu_ld" != yes && break
10776 ;;
10777 esac
10778 fi
10779 done
10780 IFS="$lt_save_ifs"
10781 else
10782 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10783 fi
10784 fi
10785
10786 LD="$lt_cv_path_LD"
10787 if test -n "$LD"; then
10788 { echo "$as_me:$LINENO: result: $LD" >&5
10789 echo "${ECHO_T}$LD" >&6; }
10790 else
10791 { echo "$as_me:$LINENO: result: no" >&5
10792 echo "${ECHO_T}no" >&6; }
10793 fi
10794 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10795 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10796 { (exit 1); exit 1; }; }
10797 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10798 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10799 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10800 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10803 case `$LD -v 2>&1 </dev/null` in
10804 *GNU* | *'with BFD'*)
10805 lt_cv_prog_gnu_ld=yes
10806 ;;
10807 *)
10808 lt_cv_prog_gnu_ld=no
10809 ;;
10810 esac
10811 fi
10812 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10813 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10814 with_gnu_ld=$lt_cv_prog_gnu_ld
10815
10816
10817
10818 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10819 # archiving commands below assume that GNU ld is being used.
10820 if test "$with_gnu_ld" = yes; then
10821 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10822 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'
10823
10824 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10825 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10826
10827 # If archive_cmds runs LD, not CC, wlarc should be empty
10828 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10829 # investigate it a little bit more. (MM)
10830 wlarc='${wl}'
10831
10832 # ancient GNU ld didn't support --whole-archive et. al.
10833 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10834 grep 'no-whole-archive' > /dev/null; then
10835 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10836 else
10837 whole_archive_flag_spec_CXX=
10838 fi
10839 else
10840 with_gnu_ld=no
10841 wlarc=
10842
10843 # A generic and very simple default shared library creation
10844 # command for GNU C++ for the case where it uses the native
10845 # linker, instead of GNU ld. If possible, this setting should
10846 # overridden to take advantage of the native linker features on
10847 # the platform it is being used on.
10848 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10849 fi
10850
10851 # Commands to make compiler produce verbose output that lists
10852 # what "hidden" libraries, object files and flags are used when
10853 # linking a shared library.
10854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10855
10856 else
10857 GXX=no
10858 with_gnu_ld=no
10859 wlarc=
10860 fi
10861
10862 # PORTME: fill in a description of your system's C++ link characteristics
10863 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10864 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10865 ld_shlibs_CXX=yes
10866 case $host_os in
10867 aix3*)
10868 # FIXME: insert proper C++ library support
10869 ld_shlibs_CXX=no
10870 ;;
10871 aix4* | aix5*)
10872 if test "$host_cpu" = ia64; then
10873 # On IA64, the linker does run time linking by default, so we don't
10874 # have to do anything special.
10875 aix_use_runtimelinking=no
10876 exp_sym_flag='-Bexport'
10877 no_entry_flag=""
10878 else
10879 aix_use_runtimelinking=no
10880
10881 # Test if we are trying to use run time linking or normal
10882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10883 # need to do runtime linking.
10884 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10885 for ld_flag in $LDFLAGS; do
10886 case $ld_flag in
10887 *-brtl*)
10888 aix_use_runtimelinking=yes
10889 break
10890 ;;
10891 esac
10892 done
10893 ;;
10894 esac
10895
10896 exp_sym_flag='-bexport'
10897 no_entry_flag='-bnoentry'
10898 fi
10899
10900 # When large executables or shared objects are built, AIX ld can
10901 # have problems creating the table of contents. If linking a library
10902 # or program results in "error TOC overflow" add -mminimal-toc to
10903 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10904 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10905
10906 archive_cmds_CXX=''
10907 hardcode_direct_CXX=yes
10908 hardcode_libdir_separator_CXX=':'
10909 link_all_deplibs_CXX=yes
10910
10911 if test "$GXX" = yes; then
10912 case $host_os in aix4.[012]|aix4.[012].*)
10913 # We only want to do this on AIX 4.2 and lower, the check
10914 # below for broken collect2 doesn't work under 4.3+
10915 collect2name=`${CC} -print-prog-name=collect2`
10916 if test -f "$collect2name" && \
10917 strings "$collect2name" | grep resolve_lib_name >/dev/null
10918 then
10919 # We have reworked collect2
10920 hardcode_direct_CXX=yes
10921 else
10922 # We have old collect2
10923 hardcode_direct_CXX=unsupported
10924 # It fails to find uninstalled libraries when the uninstalled
10925 # path is not listed in the libpath. Setting hardcode_minus_L
10926 # to unsupported forces relinking
10927 hardcode_minus_L_CXX=yes
10928 hardcode_libdir_flag_spec_CXX='-L$libdir'
10929 hardcode_libdir_separator_CXX=
10930 fi
10931 ;;
10932 esac
10933 shared_flag='-shared'
10934 if test "$aix_use_runtimelinking" = yes; then
10935 shared_flag="$shared_flag "'${wl}-G'
10936 fi
10937 else
10938 # not using gcc
10939 if test "$host_cpu" = ia64; then
10940 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10941 # chokes on -Wl,-G. The following line is correct:
10942 shared_flag='-G'
10943 else
10944 if test "$aix_use_runtimelinking" = yes; then
10945 shared_flag='${wl}-G'
10946 else
10947 shared_flag='${wl}-bM:SRE'
10948 fi
10949 fi
10950 fi
10951
10952 # It seems that -bexpall does not export symbols beginning with
10953 # underscore (_), so it is better to generate a list of symbols to export.
10954 always_export_symbols_CXX=yes
10955 if test "$aix_use_runtimelinking" = yes; then
10956 # Warning - without using the other runtime loading flags (-brtl),
10957 # -berok will link without error, but may produce a broken library.
10958 allow_undefined_flag_CXX='-berok'
10959 # Determine the default libpath from the value encoded in an empty executable.
10960 cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h. */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h. */
10966
10967 int
10968 main ()
10969 {
10970
10971 ;
10972 return 0;
10973 }
10974 _ACEOF
10975 rm -f conftest.$ac_objext conftest$ac_exeext
10976 if { (ac_try="$ac_link"
10977 case "(($ac_try" in
10978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979 *) ac_try_echo=$ac_try;;
10980 esac
10981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982 (eval "$ac_link") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && {
10989 test -z "$ac_cxx_werror_flag" ||
10990 test ! -s conftest.err
10991 } && test -s conftest$ac_exeext &&
10992 $as_test_x conftest$ac_exeext; then
10993
10994 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10995 }'`
10996 # Check for a 64-bit object if we didn't find anything.
10997 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10998 }'`; fi
10999 else
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11002
11003
11004 fi
11005
11006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11007 conftest$ac_exeext conftest.$ac_ext
11008 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11009
11010 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11011
11012 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"
11013 else
11014 if test "$host_cpu" = ia64; then
11015 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11016 allow_undefined_flag_CXX="-z nodefs"
11017 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"
11018 else
11019 # Determine the default libpath from the value encoded in an empty executable.
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h. */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11026
11027 int
11028 main ()
11029 {
11030
11031 ;
11032 return 0;
11033 }
11034 _ACEOF
11035 rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (ac_try="$ac_link"
11037 case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_link") 2>conftest.er1
11043 ac_status=$?
11044 grep -v '^ *+' conftest.er1 >conftest.err
11045 rm -f conftest.er1
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } && {
11049 test -z "$ac_cxx_werror_flag" ||
11050 test ! -s conftest.err
11051 } && test -s conftest$ac_exeext &&
11052 $as_test_x conftest$ac_exeext; then
11053
11054 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11055 }'`
11056 # Check for a 64-bit object if we didn't find anything.
11057 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11058 }'`; fi
11059 else
11060 echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063
11064 fi
11065
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11069
11070 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11071 # Warning - without using the other run time loading flags,
11072 # -berok will link without error, but may produce a broken library.
11073 no_undefined_flag_CXX=' ${wl}-bernotok'
11074 allow_undefined_flag_CXX=' ${wl}-berok'
11075 # Exported symbols can be pulled into shared objects from archives
11076 whole_archive_flag_spec_CXX='$convenience'
11077 archive_cmds_need_lc_CXX=yes
11078 # This is similar to how AIX traditionally builds its shared libraries.
11079 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'
11080 fi
11081 fi
11082 ;;
11083
11084 beos*)
11085 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11086 allow_undefined_flag_CXX=unsupported
11087 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11088 # support --undefined. This deserves some investigation. FIXME
11089 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090 else
11091 ld_shlibs_CXX=no
11092 fi
11093 ;;
11094
11095 chorus*)
11096 case $cc_basename in
11097 *)
11098 # FIXME: insert proper C++ library support
11099 ld_shlibs_CXX=no
11100 ;;
11101 esac
11102 ;;
11103
11104 cygwin* | mingw* | pw32*)
11105 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11106 # as there is no search path for DLLs.
11107 hardcode_libdir_flag_spec_CXX='-L$libdir'
11108 allow_undefined_flag_CXX=unsupported
11109 always_export_symbols_CXX=no
11110 enable_shared_with_static_runtimes_CXX=yes
11111
11112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11113 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'
11114 # If the export-symbols file already is a .def file (1st line
11115 # is EXPORTS), use it as is; otherwise, prepend...
11116 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11117 cp $export_symbols $output_objdir/$soname.def;
11118 else
11119 echo EXPORTS > $output_objdir/$soname.def;
11120 cat $export_symbols >> $output_objdir/$soname.def;
11121 fi~
11122 $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'
11123 else
11124 ld_shlibs_CXX=no
11125 fi
11126 ;;
11127 darwin* | rhapsody*)
11128 case $host_os in
11129 rhapsody* | darwin1.[012])
11130 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11131 ;;
11132 *) # Darwin 1.3 on
11133 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11134 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11135 else
11136 case ${MACOSX_DEPLOYMENT_TARGET} in
11137 10.[012])
11138 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11139 ;;
11140 10.*)
11141 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11142 ;;
11143 esac
11144 fi
11145 ;;
11146 esac
11147 archive_cmds_need_lc_CXX=no
11148 hardcode_direct_CXX=no
11149 hardcode_automatic_CXX=yes
11150 hardcode_shlibpath_var_CXX=unsupported
11151 whole_archive_flag_spec_CXX=''
11152 link_all_deplibs_CXX=yes
11153
11154 if test "$GXX" = yes ; then
11155 lt_int_apple_cc_single_mod=no
11156 output_verbose_link_cmd='echo'
11157 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11158 lt_int_apple_cc_single_mod=yes
11159 fi
11160 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11161 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11162 else
11163 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'
11164 fi
11165 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11166 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11167 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11168 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11169 else
11170 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11171 fi
11172 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}'
11173 else
11174 case $cc_basename in
11175 xlc*)
11176 output_verbose_link_cmd='echo'
11177 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11178 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11180 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11181 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}'
11182 ;;
11183 *)
11184 ld_shlibs_CXX=no
11185 ;;
11186 esac
11187 fi
11188 ;;
11189
11190 dgux*)
11191 case $cc_basename in
11192 ec++*)
11193 # FIXME: insert proper C++ library support
11194 ld_shlibs_CXX=no
11195 ;;
11196 ghcx*)
11197 # Green Hills C++ Compiler
11198 # FIXME: insert proper C++ library support
11199 ld_shlibs_CXX=no
11200 ;;
11201 *)
11202 # FIXME: insert proper C++ library support
11203 ld_shlibs_CXX=no
11204 ;;
11205 esac
11206 ;;
11207 freebsd[12]*)
11208 # C++ shared libraries reported to be fairly broken before switch to ELF
11209 ld_shlibs_CXX=no
11210 ;;
11211 freebsd-elf*)
11212 archive_cmds_need_lc_CXX=no
11213 ;;
11214 freebsd* | kfreebsd*-gnu | dragonfly*)
11215 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11216 # conventions
11217 ld_shlibs_CXX=yes
11218 ;;
11219 gnu*)
11220 ;;
11221 hpux9*)
11222 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11223 hardcode_libdir_separator_CXX=:
11224 export_dynamic_flag_spec_CXX='${wl}-E'
11225 hardcode_direct_CXX=yes
11226 hardcode_minus_L_CXX=yes # Not in the search PATH,
11227 # but as the default
11228 # location of the library.
11229
11230 case $cc_basename in
11231 CC*)
11232 # FIXME: insert proper C++ library support
11233 ld_shlibs_CXX=no
11234 ;;
11235 aCC*)
11236 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'
11237 # Commands to make compiler produce verbose output that lists
11238 # what "hidden" libraries, object files and flags are used when
11239 # linking a shared library.
11240 #
11241 # There doesn't appear to be a way to prevent this compiler from
11242 # explicitly linking system object files so we need to strip them
11243 # from the output so that they don't get included in the library
11244 # dependencies.
11245 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'
11246 ;;
11247 *)
11248 if test "$GXX" = yes; then
11249 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'
11250 else
11251 # FIXME: insert proper C++ library support
11252 ld_shlibs_CXX=no
11253 fi
11254 ;;
11255 esac
11256 ;;
11257 hpux10*|hpux11*)
11258 if test $with_gnu_ld = no; then
11259 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11260 hardcode_libdir_separator_CXX=:
11261
11262 case $host_cpu in
11263 hppa*64*|ia64*)
11264 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11265 ;;
11266 *)
11267 export_dynamic_flag_spec_CXX='${wl}-E'
11268 ;;
11269 esac
11270 fi
11271 case $host_cpu in
11272 hppa*64*|ia64*)
11273 hardcode_direct_CXX=no
11274 hardcode_shlibpath_var_CXX=no
11275 ;;
11276 *)
11277 hardcode_direct_CXX=yes
11278 hardcode_minus_L_CXX=yes # Not in the search PATH,
11279 # but as the default
11280 # location of the library.
11281 ;;
11282 esac
11283
11284 case $cc_basename in
11285 CC*)
11286 # FIXME: insert proper C++ library support
11287 ld_shlibs_CXX=no
11288 ;;
11289 aCC*)
11290 case $host_cpu in
11291 hppa*64*)
11292 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11293 ;;
11294 ia64*)
11295 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11296 ;;
11297 *)
11298 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11299 ;;
11300 esac
11301 # Commands to make compiler produce verbose output that lists
11302 # what "hidden" libraries, object files and flags are used when
11303 # linking a shared library.
11304 #
11305 # There doesn't appear to be a way to prevent this compiler from
11306 # explicitly linking system object files so we need to strip them
11307 # from the output so that they don't get included in the library
11308 # dependencies.
11309 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'
11310 ;;
11311 *)
11312 if test "$GXX" = yes; then
11313 if test $with_gnu_ld = no; then
11314 case $host_cpu in
11315 hppa*64*)
11316 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317 ;;
11318 ia64*)
11319 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11320 ;;
11321 *)
11322 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'
11323 ;;
11324 esac
11325 fi
11326 else
11327 # FIXME: insert proper C++ library support
11328 ld_shlibs_CXX=no
11329 fi
11330 ;;
11331 esac
11332 ;;
11333 interix3*)
11334 hardcode_direct_CXX=no
11335 hardcode_shlibpath_var_CXX=no
11336 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11337 export_dynamic_flag_spec_CXX='${wl}-E'
11338 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11339 # Instead, shared libraries are loaded at an image base (0x10000000 by
11340 # default) and relocated if they conflict, which is a slow very memory
11341 # consuming and fragmenting process. To avoid this, we pick a random,
11342 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11343 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11344 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'
11345 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'
11346 ;;
11347 irix5* | irix6*)
11348 case $cc_basename in
11349 CC*)
11350 # SGI C++
11351 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'
11352
11353 # Archives containing C++ object files must be created using
11354 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11355 # necessary to make sure instantiated templates are included
11356 # in the archive.
11357 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11358 ;;
11359 *)
11360 if test "$GXX" = yes; then
11361 if test "$with_gnu_ld" = no; then
11362 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'
11363 else
11364 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'
11365 fi
11366 fi
11367 link_all_deplibs_CXX=yes
11368 ;;
11369 esac
11370 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11371 hardcode_libdir_separator_CXX=:
11372 ;;
11373 linux*)
11374 case $cc_basename in
11375 KCC*)
11376 # Kuck and Associates, Inc. (KAI) C++ Compiler
11377
11378 # KCC will only create a shared library if the output file
11379 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11380 # to its proper name (with version) after linking.
11381 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'
11382 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'
11383 # Commands to make compiler produce verbose output that lists
11384 # what "hidden" libraries, object files and flags are used when
11385 # linking a shared library.
11386 #
11387 # There doesn't appear to be a way to prevent this compiler from
11388 # explicitly linking system object files so we need to strip them
11389 # from the output so that they don't get included in the library
11390 # dependencies.
11391 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'
11392
11393 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11394 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11395
11396 # Archives containing C++ object files must be created using
11397 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11398 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11399 ;;
11400 icpc*)
11401 # Intel C++
11402 with_gnu_ld=yes
11403 # version 8.0 and above of icpc choke on multiply defined symbols
11404 # if we add $predep_objects and $postdep_objects, however 7.1 and
11405 # earlier do not add the objects themselves.
11406 case `$CC -V 2>&1` in
11407 *"Version 7."*)
11408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11409 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'
11410 ;;
11411 *) # Version 8.0 or newer
11412 tmp_idyn=
11413 case $host_cpu in
11414 ia64*) tmp_idyn=' -i_dynamic';;
11415 esac
11416 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11417 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'
11418 ;;
11419 esac
11420 archive_cmds_need_lc_CXX=no
11421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11423 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11424 ;;
11425 pgCC*)
11426 # Portland Group C++ compiler
11427 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11428 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'
11429
11430 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11431 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11432 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'
11433 ;;
11434 cxx*)
11435 # Compaq C++
11436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437 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'
11438
11439 runpath_var=LD_RUN_PATH
11440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11441 hardcode_libdir_separator_CXX=:
11442
11443 # Commands to make compiler produce verbose output that lists
11444 # what "hidden" libraries, object files and flags are used when
11445 # linking a shared library.
11446 #
11447 # There doesn't appear to be a way to prevent this compiler from
11448 # explicitly linking system object files so we need to strip them
11449 # from the output so that they don't get included in the library
11450 # dependencies.
11451 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'
11452 ;;
11453 esac
11454 ;;
11455 lynxos*)
11456 # FIXME: insert proper C++ library support
11457 ld_shlibs_CXX=no
11458 ;;
11459 m88k*)
11460 # FIXME: insert proper C++ library support
11461 ld_shlibs_CXX=no
11462 ;;
11463 mvs*)
11464 case $cc_basename in
11465 cxx*)
11466 # FIXME: insert proper C++ library support
11467 ld_shlibs_CXX=no
11468 ;;
11469 *)
11470 # FIXME: insert proper C++ library support
11471 ld_shlibs_CXX=no
11472 ;;
11473 esac
11474 ;;
11475 netbsd*)
11476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11477 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11478 wlarc=
11479 hardcode_libdir_flag_spec_CXX='-R$libdir'
11480 hardcode_direct_CXX=yes
11481 hardcode_shlibpath_var_CXX=no
11482 fi
11483 # Workaround some broken pre-1.5 toolchains
11484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11485 ;;
11486 openbsd2*)
11487 # C++ shared libraries are fairly broken
11488 ld_shlibs_CXX=no
11489 ;;
11490 openbsd*)
11491 hardcode_direct_CXX=yes
11492 hardcode_shlibpath_var_CXX=no
11493 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11494 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11496 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11497 export_dynamic_flag_spec_CXX='${wl}-E'
11498 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11499 fi
11500 output_verbose_link_cmd='echo'
11501 ;;
11502 osf3*)
11503 case $cc_basename in
11504 KCC*)
11505 # Kuck and Associates, Inc. (KAI) C++ Compiler
11506
11507 # KCC will only create a shared library if the output file
11508 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11509 # to its proper name (with version) after linking.
11510 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'
11511
11512 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11513 hardcode_libdir_separator_CXX=:
11514
11515 # Archives containing C++ object files must be created using
11516 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11517 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11518
11519 ;;
11520 RCC*)
11521 # Rational C++ 2.4.1
11522 # FIXME: insert proper C++ library support
11523 ld_shlibs_CXX=no
11524 ;;
11525 cxx*)
11526 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11527 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'
11528
11529 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11530 hardcode_libdir_separator_CXX=:
11531
11532 # Commands to make compiler produce verbose output that lists
11533 # what "hidden" libraries, object files and flags are used when
11534 # linking a shared library.
11535 #
11536 # There doesn't appear to be a way to prevent this compiler from
11537 # explicitly linking system object files so we need to strip them
11538 # from the output so that they don't get included in the library
11539 # dependencies.
11540 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'
11541 ;;
11542 *)
11543 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11544 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11545 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'
11546
11547 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11548 hardcode_libdir_separator_CXX=:
11549
11550 # Commands to make compiler produce verbose output that lists
11551 # what "hidden" libraries, object files and flags are used when
11552 # linking a shared library.
11553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11554
11555 else
11556 # FIXME: insert proper C++ library support
11557 ld_shlibs_CXX=no
11558 fi
11559 ;;
11560 esac
11561 ;;
11562 osf4* | osf5*)
11563 case $cc_basename in
11564 KCC*)
11565 # Kuck and Associates, Inc. (KAI) C++ Compiler
11566
11567 # KCC will only create a shared library if the output file
11568 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11569 # to its proper name (with version) after linking.
11570 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'
11571
11572 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11573 hardcode_libdir_separator_CXX=:
11574
11575 # Archives containing C++ object files must be created using
11576 # the KAI C++ compiler.
11577 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11578 ;;
11579 RCC*)
11580 # Rational C++ 2.4.1
11581 # FIXME: insert proper C++ library support
11582 ld_shlibs_CXX=no
11583 ;;
11584 cxx*)
11585 allow_undefined_flag_CXX=' -expect_unresolved \*'
11586 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'
11587 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11588 echo "-hidden">> $lib.exp~
11589 $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~
11590 $rm $lib.exp'
11591
11592 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11593 hardcode_libdir_separator_CXX=:
11594
11595 # Commands to make compiler produce verbose output that lists
11596 # what "hidden" libraries, object files and flags are used when
11597 # linking a shared library.
11598 #
11599 # There doesn't appear to be a way to prevent this compiler from
11600 # explicitly linking system object files so we need to strip them
11601 # from the output so that they don't get included in the library
11602 # dependencies.
11603 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'
11604 ;;
11605 *)
11606 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11607 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11608 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'
11609
11610 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11611 hardcode_libdir_separator_CXX=:
11612
11613 # Commands to make compiler produce verbose output that lists
11614 # what "hidden" libraries, object files and flags are used when
11615 # linking a shared library.
11616 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11617
11618 else
11619 # FIXME: insert proper C++ library support
11620 ld_shlibs_CXX=no
11621 fi
11622 ;;
11623 esac
11624 ;;
11625 psos*)
11626 # FIXME: insert proper C++ library support
11627 ld_shlibs_CXX=no
11628 ;;
11629 sunos4*)
11630 case $cc_basename in
11631 CC*)
11632 # Sun C++ 4.x
11633 # FIXME: insert proper C++ library support
11634 ld_shlibs_CXX=no
11635 ;;
11636 lcc*)
11637 # Lucid
11638 # FIXME: insert proper C++ library support
11639 ld_shlibs_CXX=no
11640 ;;
11641 *)
11642 # FIXME: insert proper C++ library support
11643 ld_shlibs_CXX=no
11644 ;;
11645 esac
11646 ;;
11647 solaris*)
11648 case $cc_basename in
11649 CC*)
11650 # Sun C++ 4.2, 5.x and Centerline C++
11651 archive_cmds_need_lc_CXX=yes
11652 no_undefined_flag_CXX=' -zdefs'
11653 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11654 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11655 $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'
11656
11657 hardcode_libdir_flag_spec_CXX='-R$libdir'
11658 hardcode_shlibpath_var_CXX=no
11659 case $host_os in
11660 solaris2.[0-5] | solaris2.[0-5].*) ;;
11661 *)
11662 # The C++ compiler is used as linker so we must use $wl
11663 # flag to pass the commands to the underlying system
11664 # linker. We must also pass each convience library through
11665 # to the system linker between allextract/defaultextract.
11666 # The C++ compiler will combine linker options so we
11667 # cannot just pass the convience library names through
11668 # without $wl.
11669 # Supported since Solaris 2.6 (maybe 2.5.1?)
11670 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11671 ;;
11672 esac
11673 link_all_deplibs_CXX=yes
11674
11675 output_verbose_link_cmd='echo'
11676
11677 # Archives containing C++ object files must be created using
11678 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11679 # necessary to make sure instantiated templates are included
11680 # in the archive.
11681 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11682 ;;
11683 gcx*)
11684 # Green Hills C++ Compiler
11685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11686
11687 # The C++ compiler must be used to create the archive.
11688 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11689 ;;
11690 *)
11691 # GNU C++ compiler with Solaris linker
11692 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11693 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11694 if $CC --version | grep -v '^2\.7' > /dev/null; then
11695 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11696 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11697 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11698
11699 # Commands to make compiler produce verbose output that lists
11700 # what "hidden" libraries, object files and flags are used when
11701 # linking a shared library.
11702 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11703 else
11704 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11705 # platform.
11706 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11707 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11708 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11709
11710 # Commands to make compiler produce verbose output that lists
11711 # what "hidden" libraries, object files and flags are used when
11712 # linking a shared library.
11713 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11714 fi
11715
11716 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11717 fi
11718 ;;
11719 esac
11720 ;;
11721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11722 no_undefined_flag_CXX='${wl}-z,text'
11723 archive_cmds_need_lc_CXX=no
11724 hardcode_shlibpath_var_CXX=no
11725 runpath_var='LD_RUN_PATH'
11726
11727 case $cc_basename in
11728 CC*)
11729 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11730 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11731 ;;
11732 *)
11733 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11734 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11735 ;;
11736 esac
11737 ;;
11738 sysv5* | sco3.2v5* | sco5v6*)
11739 # Note: We can NOT use -z defs as we might desire, because we do not
11740 # link with -lc, and that would cause any symbols used from libc to
11741 # always be unresolved, which means just about no library would
11742 # ever link correctly. If we're not using GNU ld we use -z text
11743 # though, which does catch some bad symbols but isn't as heavy-handed
11744 # as -z defs.
11745 # For security reasons, it is highly recommended that you always
11746 # use absolute paths for naming shared libraries, and exclude the
11747 # DT_RUNPATH tag from executables and libraries. But doing so
11748 # requires that you compile everything twice, which is a pain.
11749 # So that behaviour is only enabled if SCOABSPATH is set to a
11750 # non-empty value in the environment. Most likely only useful for
11751 # creating official distributions of packages.
11752 # This is a hack until libtool officially supports absolute path
11753 # names for shared libraries.
11754 no_undefined_flag_CXX='${wl}-z,text'
11755 allow_undefined_flag_CXX='${wl}-z,nodefs'
11756 archive_cmds_need_lc_CXX=no
11757 hardcode_shlibpath_var_CXX=no
11758 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11759 hardcode_libdir_separator_CXX=':'
11760 link_all_deplibs_CXX=yes
11761 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11762 runpath_var='LD_RUN_PATH'
11763
11764 case $cc_basename in
11765 CC*)
11766 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11767 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11768 ;;
11769 *)
11770 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11771 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11772 ;;
11773 esac
11774 ;;
11775 tandem*)
11776 case $cc_basename in
11777 NCC*)
11778 # NonStop-UX NCC 3.20
11779 # FIXME: insert proper C++ library support
11780 ld_shlibs_CXX=no
11781 ;;
11782 *)
11783 # FIXME: insert proper C++ library support
11784 ld_shlibs_CXX=no
11785 ;;
11786 esac
11787 ;;
11788 vxworks*)
11789 # FIXME: insert proper C++ library support
11790 ld_shlibs_CXX=no
11791 ;;
11792 *)
11793 # FIXME: insert proper C++ library support
11794 ld_shlibs_CXX=no
11795 ;;
11796 esac
11797 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11798 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11799 test "$ld_shlibs_CXX" = no && can_build_shared=no
11800
11801 GCC_CXX="$GXX"
11802 LD_CXX="$LD"
11803
11804
11805 cat > conftest.$ac_ext <<EOF
11806 class Foo
11807 {
11808 public:
11809 Foo (void) { a = 0; }
11810 private:
11811 int a;
11812 };
11813 EOF
11814
11815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>&5
11817 ac_status=$?
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); }; then
11820 # Parse the compiler output and extract the necessary
11821 # objects, libraries and library flags.
11822
11823 # Sentinel used to keep track of whether or not we are before
11824 # the conftest object file.
11825 pre_test_object_deps_done=no
11826
11827 # The `*' in the case matches for architectures that use `case' in
11828 # $output_verbose_cmd can trigger glob expansion during the loop
11829 # eval without this substitution.
11830 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11831
11832 for p in `eval $output_verbose_link_cmd`; do
11833 case $p in
11834
11835 -L* | -R* | -l*)
11836 # Some compilers place space between "-{L,R}" and the path.
11837 # Remove the space.
11838 if test $p = "-L" \
11839 || test $p = "-R"; then
11840 prev=$p
11841 continue
11842 else
11843 prev=
11844 fi
11845
11846 if test "$pre_test_object_deps_done" = no; then
11847 case $p in
11848 -L* | -R*)
11849 # Internal compiler library paths should come after those
11850 # provided the user. The postdeps already come after the
11851 # user supplied libs so there is no need to process them.
11852 if test -z "$compiler_lib_search_path_CXX"; then
11853 compiler_lib_search_path_CXX="${prev}${p}"
11854 else
11855 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11856 fi
11857 ;;
11858 # The "-l" case would never come before the object being
11859 # linked, so don't bother handling this case.
11860 esac
11861 else
11862 if test -z "$postdeps_CXX"; then
11863 postdeps_CXX="${prev}${p}"
11864 else
11865 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11866 fi
11867 fi
11868 ;;
11869
11870 *.$objext)
11871 # This assumes that the test object file only shows up
11872 # once in the compiler output.
11873 if test "$p" = "conftest.$objext"; then
11874 pre_test_object_deps_done=yes
11875 continue
11876 fi
11877
11878 if test "$pre_test_object_deps_done" = no; then
11879 if test -z "$predep_objects_CXX"; then
11880 predep_objects_CXX="$p"
11881 else
11882 predep_objects_CXX="$predep_objects_CXX $p"
11883 fi
11884 else
11885 if test -z "$postdep_objects_CXX"; then
11886 postdep_objects_CXX="$p"
11887 else
11888 postdep_objects_CXX="$postdep_objects_CXX $p"
11889 fi
11890 fi
11891 ;;
11892
11893 *) ;; # Ignore the rest.
11894
11895 esac
11896 done
11897
11898 # Clean up.
11899 rm -f a.out a.exe
11900 else
11901 echo "libtool.m4: error: problem compiling CXX test program"
11902 fi
11903
11904 $rm -f confest.$objext
11905
11906 # PORTME: override above test on systems where it is broken
11907 case $host_os in
11908 interix3*)
11909 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11910 # hack all around it, let's just trust "g++" to DTRT.
11911 predep_objects_CXX=
11912 postdep_objects_CXX=
11913 postdeps_CXX=
11914 ;;
11915
11916 solaris*)
11917 case $cc_basename in
11918 CC*)
11919 # Adding this requires a known-good setup of shared libraries for
11920 # Sun compiler versions before 5.6, else PIC objects from an old
11921 # archive will be linked into the output, leading to subtle bugs.
11922 postdeps_CXX='-lCstd -lCrun'
11923 ;;
11924 esac
11925 ;;
11926 esac
11927
11928
11929 case " $postdeps_CXX " in
11930 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11931 esac
11932
11933 lt_prog_compiler_wl_CXX=
11934 lt_prog_compiler_pic_CXX=
11935 lt_prog_compiler_static_CXX=
11936
11937 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11938 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11939
11940 # C++ specific cases for pic, static, wl, etc.
11941 if test "$GXX" = yes; then
11942 lt_prog_compiler_wl_CXX='-Wl,'
11943 lt_prog_compiler_static_CXX='-static'
11944
11945 case $host_os in
11946 aix*)
11947 # All AIX code is PIC.
11948 if test "$host_cpu" = ia64; then
11949 # AIX 5 now supports IA64 processor
11950 lt_prog_compiler_static_CXX='-Bstatic'
11951 fi
11952 ;;
11953 amigaos*)
11954 # FIXME: we need at least 68020 code to build shared libraries, but
11955 # adding the `-m68020' flag to GCC prevents building anything better,
11956 # like `-m68040'.
11957 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11958 ;;
11959 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11960 # PIC is the default for these OSes.
11961 ;;
11962 mingw* | os2* | pw32*)
11963 # This hack is so that the source file can tell whether it is being
11964 # built for inclusion in a dll (and should export symbols for example).
11965 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11966 ;;
11967 darwin* | rhapsody*)
11968 # PIC is the default on this platform
11969 # Common symbols not allowed in MH_DYLIB files
11970 lt_prog_compiler_pic_CXX='-fno-common'
11971 ;;
11972 *djgpp*)
11973 # DJGPP does not support shared libraries at all
11974 lt_prog_compiler_pic_CXX=
11975 ;;
11976 interix3*)
11977 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11978 # Instead, we relocate shared libraries at runtime.
11979 ;;
11980 sysv4*MP*)
11981 if test -d /usr/nec; then
11982 lt_prog_compiler_pic_CXX=-Kconform_pic
11983 fi
11984 ;;
11985 hpux*)
11986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11987 # not for PA HP-UX.
11988 case $host_cpu in
11989 hppa*64*|ia64*)
11990 ;;
11991 *)
11992 lt_prog_compiler_pic_CXX='-fPIC'
11993 ;;
11994 esac
11995 ;;
11996 *)
11997 lt_prog_compiler_pic_CXX='-fPIC'
11998 ;;
11999 esac
12000 else
12001 case $host_os in
12002 aix4* | aix5*)
12003 # All AIX code is PIC.
12004 if test "$host_cpu" = ia64; then
12005 # AIX 5 now supports IA64 processor
12006 lt_prog_compiler_static_CXX='-Bstatic'
12007 else
12008 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12009 fi
12010 ;;
12011 chorus*)
12012 case $cc_basename in
12013 cxch68*)
12014 # Green Hills C++ Compiler
12015 # _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"
12016 ;;
12017 esac
12018 ;;
12019 darwin*)
12020 # PIC is the default on this platform
12021 # Common symbols not allowed in MH_DYLIB files
12022 case $cc_basename in
12023 xlc*)
12024 lt_prog_compiler_pic_CXX='-qnocommon'
12025 lt_prog_compiler_wl_CXX='-Wl,'
12026 ;;
12027 esac
12028 ;;
12029 dgux*)
12030 case $cc_basename in
12031 ec++*)
12032 lt_prog_compiler_pic_CXX='-KPIC'
12033 ;;
12034 ghcx*)
12035 # Green Hills C++ Compiler
12036 lt_prog_compiler_pic_CXX='-pic'
12037 ;;
12038 *)
12039 ;;
12040 esac
12041 ;;
12042 freebsd* | kfreebsd*-gnu | dragonfly*)
12043 # FreeBSD uses GNU C++
12044 ;;
12045 hpux9* | hpux10* | hpux11*)
12046 case $cc_basename in
12047 CC*)
12048 lt_prog_compiler_wl_CXX='-Wl,'
12049 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12050 if test "$host_cpu" != ia64; then
12051 lt_prog_compiler_pic_CXX='+Z'
12052 fi
12053 ;;
12054 aCC*)
12055 lt_prog_compiler_wl_CXX='-Wl,'
12056 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12057 case $host_cpu in
12058 hppa*64*|ia64*)
12059 # +Z the default
12060 ;;
12061 *)
12062 lt_prog_compiler_pic_CXX='+Z'
12063 ;;
12064 esac
12065 ;;
12066 *)
12067 ;;
12068 esac
12069 ;;
12070 interix*)
12071 # This is c89, which is MS Visual C++ (no shared libs)
12072 # Anyone wants to do a port?
12073 ;;
12074 irix5* | irix6* | nonstopux*)
12075 case $cc_basename in
12076 CC*)
12077 lt_prog_compiler_wl_CXX='-Wl,'
12078 lt_prog_compiler_static_CXX='-non_shared'
12079 # CC pic flag -KPIC is the default.
12080 ;;
12081 *)
12082 ;;
12083 esac
12084 ;;
12085 linux*)
12086 case $cc_basename in
12087 KCC*)
12088 # KAI C++ Compiler
12089 lt_prog_compiler_wl_CXX='--backend -Wl,'
12090 lt_prog_compiler_pic_CXX='-fPIC'
12091 ;;
12092 icpc* | ecpc*)
12093 # Intel C++
12094 lt_prog_compiler_wl_CXX='-Wl,'
12095 lt_prog_compiler_pic_CXX='-KPIC'
12096 lt_prog_compiler_static_CXX='-static'
12097 ;;
12098 pgCC*)
12099 # Portland Group C++ compiler.
12100 lt_prog_compiler_wl_CXX='-Wl,'
12101 lt_prog_compiler_pic_CXX='-fpic'
12102 lt_prog_compiler_static_CXX='-Bstatic'
12103 ;;
12104 cxx*)
12105 # Compaq C++
12106 # Make sure the PIC flag is empty. It appears that all Alpha
12107 # Linux and Compaq Tru64 Unix objects are PIC.
12108 lt_prog_compiler_pic_CXX=
12109 lt_prog_compiler_static_CXX='-non_shared'
12110 ;;
12111 *)
12112 ;;
12113 esac
12114 ;;
12115 lynxos*)
12116 ;;
12117 m88k*)
12118 ;;
12119 mvs*)
12120 case $cc_basename in
12121 cxx*)
12122 lt_prog_compiler_pic_CXX='-W c,exportall'
12123 ;;
12124 *)
12125 ;;
12126 esac
12127 ;;
12128 netbsd*)
12129 ;;
12130 osf3* | osf4* | osf5*)
12131 case $cc_basename in
12132 KCC*)
12133 lt_prog_compiler_wl_CXX='--backend -Wl,'
12134 ;;
12135 RCC*)
12136 # Rational C++ 2.4.1
12137 lt_prog_compiler_pic_CXX='-pic'
12138 ;;
12139 cxx*)
12140 # Digital/Compaq C++
12141 lt_prog_compiler_wl_CXX='-Wl,'
12142 # Make sure the PIC flag is empty. It appears that all Alpha
12143 # Linux and Compaq Tru64 Unix objects are PIC.
12144 lt_prog_compiler_pic_CXX=
12145 lt_prog_compiler_static_CXX='-non_shared'
12146 ;;
12147 *)
12148 ;;
12149 esac
12150 ;;
12151 psos*)
12152 ;;
12153 solaris*)
12154 case $cc_basename in
12155 CC*)
12156 # Sun C++ 4.2, 5.x and Centerline C++
12157 lt_prog_compiler_pic_CXX='-KPIC'
12158 lt_prog_compiler_static_CXX='-Bstatic'
12159 lt_prog_compiler_wl_CXX='-Qoption ld '
12160 ;;
12161 gcx*)
12162 # Green Hills C++ Compiler
12163 lt_prog_compiler_pic_CXX='-PIC'
12164 ;;
12165 *)
12166 ;;
12167 esac
12168 ;;
12169 sunos4*)
12170 case $cc_basename in
12171 CC*)
12172 # Sun C++ 4.x
12173 lt_prog_compiler_pic_CXX='-pic'
12174 lt_prog_compiler_static_CXX='-Bstatic'
12175 ;;
12176 lcc*)
12177 # Lucid
12178 lt_prog_compiler_pic_CXX='-pic'
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 tandem*)
12185 case $cc_basename in
12186 NCC*)
12187 # NonStop-UX NCC 3.20
12188 lt_prog_compiler_pic_CXX='-KPIC'
12189 ;;
12190 *)
12191 ;;
12192 esac
12193 ;;
12194 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12195 case $cc_basename in
12196 CC*)
12197 lt_prog_compiler_wl_CXX='-Wl,'
12198 lt_prog_compiler_pic_CXX='-KPIC'
12199 lt_prog_compiler_static_CXX='-Bstatic'
12200 ;;
12201 esac
12202 ;;
12203 vxworks*)
12204 ;;
12205 *)
12206 lt_prog_compiler_can_build_shared_CXX=no
12207 ;;
12208 esac
12209 fi
12210
12211 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12212 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12213
12214 #
12215 # Check to make sure the PIC flag actually works.
12216 #
12217 if test -n "$lt_prog_compiler_pic_CXX"; then
12218
12219 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12220 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12221 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12222 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 else
12224 lt_prog_compiler_pic_works_CXX=no
12225 ac_outfile=conftest.$ac_objext
12226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12227 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12228 # Insert the option either (1) after the last *FLAGS variable, or
12229 # (2) before a word containing "conftest.", or (3) at the end.
12230 # Note that $ac_compile itself does not contain backslashes and begins
12231 # with a dollar sign (not a hyphen), so the echo should work correctly.
12232 # The option is referenced via a variable to avoid confusing sed.
12233 lt_compile=`echo "$ac_compile" | $SED \
12234 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12236 -e 's:$: $lt_compiler_flag:'`
12237 (eval echo "\"\$as_me:12237: $lt_compile\"" >&5)
12238 (eval "$lt_compile" 2>conftest.err)
12239 ac_status=$?
12240 cat conftest.err >&5
12241 echo "$as_me:12241: \$? = $ac_status" >&5
12242 if (exit $ac_status) && test -s "$ac_outfile"; then
12243 # The compiler can only warn and ignore the option if not recognized
12244 # So say no if there are warnings other than the usual output.
12245 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12247 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12248 lt_prog_compiler_pic_works_CXX=yes
12249 fi
12250 fi
12251 $rm conftest*
12252
12253 fi
12254 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12255 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12256
12257 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12258 case $lt_prog_compiler_pic_CXX in
12259 "" | " "*) ;;
12260 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12261 esac
12262 else
12263 lt_prog_compiler_pic_CXX=
12264 lt_prog_compiler_can_build_shared_CXX=no
12265 fi
12266
12267 fi
12268 case $host_os in
12269 # For platforms which do not support PIC, -DPIC is meaningless:
12270 *djgpp*)
12271 lt_prog_compiler_pic_CXX=
12272 ;;
12273 *)
12274 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12275 ;;
12276 esac
12277
12278 #
12279 # Check to make sure the static flag actually works.
12280 #
12281 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12282 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12283 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12284 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287 lt_prog_compiler_static_works_CXX=no
12288 save_LDFLAGS="$LDFLAGS"
12289 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12290 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12292 # The linker can only warn and ignore the option if not recognized
12293 # So say no if there are warnings
12294 if test -s conftest.err; then
12295 # Append any errors to the config.log.
12296 cat conftest.err 1>&5
12297 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12299 if diff conftest.exp conftest.er2 >/dev/null; then
12300 lt_prog_compiler_static_works_CXX=yes
12301 fi
12302 else
12303 lt_prog_compiler_static_works_CXX=yes
12304 fi
12305 fi
12306 $rm conftest*
12307 LDFLAGS="$save_LDFLAGS"
12308
12309 fi
12310 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12311 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12312
12313 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12314 :
12315 else
12316 lt_prog_compiler_static_CXX=
12317 fi
12318
12319
12320 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12322 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325 lt_cv_prog_compiler_c_o_CXX=no
12326 $rm -r conftest 2>/dev/null
12327 mkdir conftest
12328 cd conftest
12329 mkdir out
12330 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12331
12332 lt_compiler_flag="-o out/conftest2.$ac_objext"
12333 # Insert the option either (1) after the last *FLAGS variable, or
12334 # (2) before a word containing "conftest.", or (3) at the end.
12335 # Note that $ac_compile itself does not contain backslashes and begins
12336 # with a dollar sign (not a hyphen), so the echo should work correctly.
12337 lt_compile=`echo "$ac_compile" | $SED \
12338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12340 -e 's:$: $lt_compiler_flag:'`
12341 (eval echo "\"\$as_me:12341: $lt_compile\"" >&5)
12342 (eval "$lt_compile" 2>out/conftest.err)
12343 ac_status=$?
12344 cat out/conftest.err >&5
12345 echo "$as_me:12345: \$? = $ac_status" >&5
12346 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12347 then
12348 # The compiler can only warn and ignore the option if not recognized
12349 # So say no if there are warnings
12350 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12351 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12352 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12353 lt_cv_prog_compiler_c_o_CXX=yes
12354 fi
12355 fi
12356 chmod u+w . 2>&5
12357 $rm conftest*
12358 # SGI C++ compiler will create directory out/ii_files/ for
12359 # template instantiation
12360 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12361 $rm out/* && rmdir out
12362 cd ..
12363 rmdir conftest
12364 $rm conftest*
12365
12366 fi
12367 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12368 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12369
12370
12371 hard_links="nottested"
12372 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12373 # do not overwrite the value of need_locks provided by the user
12374 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12375 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12376 hard_links=yes
12377 $rm conftest*
12378 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12379 touch conftest.a
12380 ln conftest.a conftest.b 2>&5 || hard_links=no
12381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12382 { echo "$as_me:$LINENO: result: $hard_links" >&5
12383 echo "${ECHO_T}$hard_links" >&6; }
12384 if test "$hard_links" = no; then
12385 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12386 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12387 need_locks=warn
12388 fi
12389 else
12390 need_locks=no
12391 fi
12392
12393 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12394 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12395
12396 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12397 case $host_os in
12398 aix4* | aix5*)
12399 # If we're using GNU nm, then we don't want the "-C" option.
12400 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12401 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12402 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'
12403 else
12404 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'
12405 fi
12406 ;;
12407 pw32*)
12408 export_symbols_cmds_CXX="$ltdll_cmds"
12409 ;;
12410 cygwin* | mingw*)
12411 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'
12412 ;;
12413 *)
12414 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12415 ;;
12416 esac
12417
12418 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12419 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12420 test "$ld_shlibs_CXX" = no && can_build_shared=no
12421
12422 #
12423 # Do we need to explicitly link libc?
12424 #
12425 case "x$archive_cmds_need_lc_CXX" in
12426 x|xyes)
12427 # Assume -lc should be added
12428 archive_cmds_need_lc_CXX=yes
12429
12430 if test "$enable_shared" = yes && test "$GCC" = yes; then
12431 case $archive_cmds_CXX in
12432 *'~'*)
12433 # FIXME: we may have to deal with multi-command sequences.
12434 ;;
12435 '$CC '*)
12436 # Test whether the compiler implicitly links with -lc since on some
12437 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12438 # to ld, don't add -lc before -lgcc.
12439 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12440 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12441 $rm conftest*
12442 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12443
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } 2>conftest.err; then
12449 soname=conftest
12450 lib=conftest
12451 libobjs=conftest.$ac_objext
12452 deplibs=
12453 wl=$lt_prog_compiler_wl_CXX
12454 pic_flag=$lt_prog_compiler_pic_CXX
12455 compiler_flags=-v
12456 linker_flags=-v
12457 verstring=
12458 output_objdir=.
12459 libname=conftest
12460 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12461 allow_undefined_flag_CXX=
12462 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12463 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }
12467 then
12468 archive_cmds_need_lc_CXX=no
12469 else
12470 archive_cmds_need_lc_CXX=yes
12471 fi
12472 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12473 else
12474 cat conftest.err 1>&5
12475 fi
12476 $rm conftest*
12477 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12478 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12479 ;;
12480 esac
12481 fi
12482 ;;
12483 esac
12484
12485 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12486 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12487 library_names_spec=
12488 libname_spec='lib$name'
12489 soname_spec=
12490 shrext_cmds=".so"
12491 postinstall_cmds=
12492 postuninstall_cmds=
12493 finish_cmds=
12494 finish_eval=
12495 shlibpath_var=
12496 shlibpath_overrides_runpath=unknown
12497 version_type=none
12498 dynamic_linker="$host_os ld.so"
12499 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12500 if test "$GCC" = yes; then
12501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12502 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12503 # if the path contains ";" then we assume it to be the separator
12504 # otherwise default to the standard path separator (i.e. ":") - it is
12505 # assumed that no part of a normal pathname contains ";" but that should
12506 # okay in the real world where ";" in dirpaths is itself problematic.
12507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12508 else
12509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12510 fi
12511 else
12512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12513 fi
12514 need_lib_prefix=unknown
12515 hardcode_into_libs=no
12516
12517 # when you set need_version to no, make sure it does not cause -set_version
12518 # flags to be left without arguments
12519 need_version=unknown
12520
12521 case $host_os in
12522 aix3*)
12523 version_type=linux
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12525 shlibpath_var=LIBPATH
12526
12527 # AIX 3 has no versioning support, so we append a major version to the name.
12528 soname_spec='${libname}${release}${shared_ext}$major'
12529 ;;
12530
12531 aix4* | aix5*)
12532 version_type=linux
12533 need_lib_prefix=no
12534 need_version=no
12535 hardcode_into_libs=yes
12536 if test "$host_cpu" = ia64; then
12537 # AIX 5 supports IA64
12538 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12539 shlibpath_var=LD_LIBRARY_PATH
12540 else
12541 # With GCC up to 2.95.x, collect2 would create an import file
12542 # for dependence libraries. The import file would start with
12543 # the line `#! .'. This would cause the generated library to
12544 # depend on `.', always an invalid library. This was fixed in
12545 # development snapshots of GCC prior to 3.0.
12546 case $host_os in
12547 aix4 | aix4.[01] | aix4.[01].*)
12548 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12549 echo ' yes '
12550 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12551 :
12552 else
12553 can_build_shared=no
12554 fi
12555 ;;
12556 esac
12557 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12558 # soname into executable. Probably we can add versioning support to
12559 # collect2, so additional links can be useful in future.
12560 if test "$aix_use_runtimelinking" = yes; then
12561 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12562 # instead of lib<name>.a to let people know that these are not
12563 # typical AIX shared libraries.
12564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565 else
12566 # We preserve .a as extension for shared libraries through AIX4.2
12567 # and later when we are not doing run time linking.
12568 library_names_spec='${libname}${release}.a $libname.a'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12570 fi
12571 shlibpath_var=LIBPATH
12572 fi
12573 ;;
12574
12575 amigaos*)
12576 library_names_spec='$libname.ixlibrary $libname.a'
12577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12578 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'
12579 ;;
12580
12581 beos*)
12582 library_names_spec='${libname}${shared_ext}'
12583 dynamic_linker="$host_os ld.so"
12584 shlibpath_var=LIBRARY_PATH
12585 ;;
12586
12587 bsdi[45]*)
12588 version_type=linux
12589 need_version=no
12590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12591 soname_spec='${libname}${release}${shared_ext}$major'
12592 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12593 shlibpath_var=LD_LIBRARY_PATH
12594 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12595 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12596 # the default ld.so.conf also contains /usr/contrib/lib and
12597 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12598 # libtool to hard-code these into programs
12599 ;;
12600
12601 cygwin* | mingw* | pw32*)
12602 version_type=windows
12603 shrext_cmds=".dll"
12604 need_version=no
12605 need_lib_prefix=no
12606
12607 case $GCC,$host_os in
12608 yes,cygwin* | yes,mingw* | yes,pw32*)
12609 library_names_spec='$libname.dll.a'
12610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12611 postinstall_cmds='base_file=`basename \${file}`~
12612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12613 dldir=$destdir/`dirname \$dlpath`~
12614 test -d \$dldir || mkdir -p \$dldir~
12615 $install_prog $dir/$dlname \$dldir/$dlname~
12616 chmod a+x \$dldir/$dlname'
12617 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12618 dlpath=$dir/\$dldll~
12619 $rm \$dlpath'
12620 shlibpath_overrides_runpath=yes
12621
12622 case $host_os in
12623 cygwin*)
12624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12625 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12626 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12627 ;;
12628 mingw*)
12629 # MinGW DLLs use traditional 'lib' prefix
12630 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12631 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12632 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12633 # It is most probably a Windows format PATH printed by
12634 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12635 # path with ; separators, and with drive letters. We can handle the
12636 # drive letters (cygwin fileutils understands them), so leave them,
12637 # especially as we might pass files found there to a mingw objdump,
12638 # which wouldn't understand a cygwinified path. Ahh.
12639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12640 else
12641 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12642 fi
12643 ;;
12644 pw32*)
12645 # pw32 DLLs use 'pw' prefix rather than 'lib'
12646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12647 ;;
12648 esac
12649 ;;
12650
12651 *)
12652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12653 ;;
12654 esac
12655 dynamic_linker='Win32 ld.exe'
12656 # FIXME: first we should search . and the directory the executable is in
12657 shlibpath_var=PATH
12658 ;;
12659
12660 darwin* | rhapsody*)
12661 dynamic_linker="$host_os dyld"
12662 version_type=darwin
12663 need_lib_prefix=no
12664 need_version=no
12665 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12666 soname_spec='${libname}${release}${major}$shared_ext'
12667 shlibpath_overrides_runpath=yes
12668 shlibpath_var=DYLD_LIBRARY_PATH
12669 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12670 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12671 if test "$GCC" = yes; then
12672 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12673 else
12674 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12675 fi
12676 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12677 ;;
12678
12679 dgux*)
12680 version_type=linux
12681 need_lib_prefix=no
12682 need_version=no
12683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12684 soname_spec='${libname}${release}${shared_ext}$major'
12685 shlibpath_var=LD_LIBRARY_PATH
12686 ;;
12687
12688 freebsd1*)
12689 dynamic_linker=no
12690 ;;
12691
12692 kfreebsd*-gnu)
12693 version_type=linux
12694 need_lib_prefix=no
12695 need_version=no
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 shlibpath_var=LD_LIBRARY_PATH
12699 shlibpath_overrides_runpath=no
12700 hardcode_into_libs=yes
12701 dynamic_linker='GNU ld.so'
12702 ;;
12703
12704 freebsd* | dragonfly*)
12705 # DragonFly does not have aout. When/if they implement a new
12706 # versioning mechanism, adjust this.
12707 if test -x /usr/bin/objformat; then
12708 objformat=`/usr/bin/objformat`
12709 else
12710 case $host_os in
12711 freebsd[123]*) objformat=aout ;;
12712 *) objformat=elf ;;
12713 esac
12714 fi
12715 version_type=freebsd-$objformat
12716 case $version_type in
12717 freebsd-elf*)
12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12719 need_version=no
12720 need_lib_prefix=no
12721 ;;
12722 freebsd-*)
12723 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12724 need_version=yes
12725 ;;
12726 esac
12727 shlibpath_var=LD_LIBRARY_PATH
12728 case $host_os in
12729 freebsd2*)
12730 shlibpath_overrides_runpath=yes
12731 ;;
12732 freebsd3.[01]* | freebsdelf3.[01]*)
12733 shlibpath_overrides_runpath=yes
12734 hardcode_into_libs=yes
12735 ;;
12736 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12737 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12738 shlibpath_overrides_runpath=no
12739 hardcode_into_libs=yes
12740 ;;
12741 freebsd*) # from 4.6 on
12742 shlibpath_overrides_runpath=yes
12743 hardcode_into_libs=yes
12744 ;;
12745 esac
12746 ;;
12747
12748 gnu*)
12749 version_type=linux
12750 need_lib_prefix=no
12751 need_version=no
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 shlibpath_var=LD_LIBRARY_PATH
12755 hardcode_into_libs=yes
12756 ;;
12757
12758 hpux9* | hpux10* | hpux11*)
12759 # Give a soname corresponding to the major version so that dld.sl refuses to
12760 # link against other versions.
12761 version_type=sunos
12762 need_lib_prefix=no
12763 need_version=no
12764 case $host_cpu in
12765 ia64*)
12766 shrext_cmds='.so'
12767 hardcode_into_libs=yes
12768 dynamic_linker="$host_os dld.so"
12769 shlibpath_var=LD_LIBRARY_PATH
12770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 if test "X$HPUX_IA64_MODE" = X32; then
12774 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12775 else
12776 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12777 fi
12778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12779 ;;
12780 hppa*64*)
12781 shrext_cmds='.sl'
12782 hardcode_into_libs=yes
12783 dynamic_linker="$host_os dld.sl"
12784 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 soname_spec='${libname}${release}${shared_ext}$major'
12788 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12789 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12790 ;;
12791 *)
12792 shrext_cmds='.sl'
12793 dynamic_linker="$host_os dld.sl"
12794 shlibpath_var=SHLIB_PATH
12795 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797 soname_spec='${libname}${release}${shared_ext}$major'
12798 ;;
12799 esac
12800 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12801 postinstall_cmds='chmod 555 $lib'
12802 ;;
12803
12804 interix3*)
12805 version_type=linux
12806 need_lib_prefix=no
12807 need_version=no
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12809 soname_spec='${libname}${release}${shared_ext}$major'
12810 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 shlibpath_overrides_runpath=no
12813 hardcode_into_libs=yes
12814 ;;
12815
12816 irix5* | irix6* | nonstopux*)
12817 case $host_os in
12818 nonstopux*) version_type=nonstopux ;;
12819 *)
12820 if test "$lt_cv_prog_gnu_ld" = yes; then
12821 version_type=linux
12822 else
12823 version_type=irix
12824 fi ;;
12825 esac
12826 need_lib_prefix=no
12827 need_version=no
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12830 case $host_os in
12831 irix5* | nonstopux*)
12832 libsuff= shlibsuff=
12833 ;;
12834 *)
12835 case $LD in # libtool.m4 will add one of these switches to LD
12836 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12837 libsuff= shlibsuff= libmagic=32-bit;;
12838 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12839 libsuff=32 shlibsuff=N32 libmagic=N32;;
12840 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12841 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12842 *) libsuff= shlibsuff= libmagic=never-match;;
12843 esac
12844 ;;
12845 esac
12846 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12847 shlibpath_overrides_runpath=no
12848 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12849 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12850 hardcode_into_libs=yes
12851 ;;
12852
12853 # No shared lib support for Linux oldld, aout, or coff.
12854 linux*oldld* | linux*aout* | linux*coff*)
12855 dynamic_linker=no
12856 ;;
12857
12858 # This must be Linux ELF.
12859 linux*)
12860 version_type=linux
12861 need_lib_prefix=no
12862 need_version=no
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 shlibpath_overrides_runpath=no
12868 # This implies no fast_install, which is unacceptable.
12869 # Some rework will be needed to allow for fast_install
12870 # before this can be enabled.
12871 hardcode_into_libs=yes
12872
12873 # Append ld.so.conf contents to the search path
12874 if test -f /etc/ld.so.conf; then
12875 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12877 fi
12878
12879 # We used to test for /lib/ld.so.1 and disable shared libraries on
12880 # powerpc, because MkLinux only supported shared libraries with the
12881 # GNU dynamic linker. Since this was broken with cross compilers,
12882 # most powerpc-linux boxes support dynamic linking these days and
12883 # people can always --disable-shared, the test was removed, and we
12884 # assume the GNU/Linux dynamic linker is in use.
12885 dynamic_linker='GNU/Linux ld.so'
12886 ;;
12887
12888 knetbsd*-gnu)
12889 version_type=linux
12890 need_lib_prefix=no
12891 need_version=no
12892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12893 soname_spec='${libname}${release}${shared_ext}$major'
12894 shlibpath_var=LD_LIBRARY_PATH
12895 shlibpath_overrides_runpath=no
12896 hardcode_into_libs=yes
12897 dynamic_linker='GNU ld.so'
12898 ;;
12899
12900 netbsd*)
12901 version_type=sunos
12902 need_lib_prefix=no
12903 need_version=no
12904 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12907 dynamic_linker='NetBSD (a.out) ld.so'
12908 else
12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12910 soname_spec='${libname}${release}${shared_ext}$major'
12911 dynamic_linker='NetBSD ld.elf_so'
12912 fi
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=yes
12915 hardcode_into_libs=yes
12916 ;;
12917
12918 newsos6)
12919 version_type=linux
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=yes
12923 ;;
12924
12925 nto-qnx*)
12926 version_type=linux
12927 need_lib_prefix=no
12928 need_version=no
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12930 soname_spec='${libname}${release}${shared_ext}$major'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 shlibpath_overrides_runpath=yes
12933 ;;
12934
12935 openbsd*)
12936 version_type=sunos
12937 sys_lib_dlsearch_path_spec="/usr/lib"
12938 need_lib_prefix=no
12939 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12940 case $host_os in
12941 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12942 *) need_version=no ;;
12943 esac
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12948 case $host_os in
12949 openbsd2.[89] | openbsd2.[89].*)
12950 shlibpath_overrides_runpath=no
12951 ;;
12952 *)
12953 shlibpath_overrides_runpath=yes
12954 ;;
12955 esac
12956 else
12957 shlibpath_overrides_runpath=yes
12958 fi
12959 ;;
12960
12961 os2*)
12962 libname_spec='$name'
12963 shrext_cmds=".dll"
12964 need_lib_prefix=no
12965 library_names_spec='$libname${shared_ext} $libname.a'
12966 dynamic_linker='OS/2 ld.exe'
12967 shlibpath_var=LIBPATH
12968 ;;
12969
12970 osf3* | osf4* | osf5*)
12971 version_type=osf
12972 need_lib_prefix=no
12973 need_version=no
12974 soname_spec='${libname}${release}${shared_ext}$major'
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12978 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12979 ;;
12980
12981 solaris*)
12982 version_type=linux
12983 need_lib_prefix=no
12984 need_version=no
12985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12986 soname_spec='${libname}${release}${shared_ext}$major'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 shlibpath_overrides_runpath=yes
12989 hardcode_into_libs=yes
12990 # ldd complains unless libraries are executable
12991 postinstall_cmds='chmod +x $lib'
12992 ;;
12993
12994 sunos4*)
12995 version_type=sunos
12996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12998 shlibpath_var=LD_LIBRARY_PATH
12999 shlibpath_overrides_runpath=yes
13000 if test "$with_gnu_ld" = yes; then
13001 need_lib_prefix=no
13002 fi
13003 need_version=yes
13004 ;;
13005
13006 sysv4 | sysv4.3*)
13007 version_type=linux
13008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13009 soname_spec='${libname}${release}${shared_ext}$major'
13010 shlibpath_var=LD_LIBRARY_PATH
13011 case $host_vendor in
13012 sni)
13013 shlibpath_overrides_runpath=no
13014 need_lib_prefix=no
13015 export_dynamic_flag_spec='${wl}-Blargedynsym'
13016 runpath_var=LD_RUN_PATH
13017 ;;
13018 siemens)
13019 need_lib_prefix=no
13020 ;;
13021 motorola)
13022 need_lib_prefix=no
13023 need_version=no
13024 shlibpath_overrides_runpath=no
13025 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13026 ;;
13027 esac
13028 ;;
13029
13030 sysv4*MP*)
13031 if test -d /usr/nec ;then
13032 version_type=linux
13033 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13034 soname_spec='$libname${shared_ext}.$major'
13035 shlibpath_var=LD_LIBRARY_PATH
13036 fi
13037 ;;
13038
13039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13040 version_type=freebsd-elf
13041 need_lib_prefix=no
13042 need_version=no
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13044 soname_spec='${libname}${release}${shared_ext}$major'
13045 shlibpath_var=LD_LIBRARY_PATH
13046 hardcode_into_libs=yes
13047 if test "$with_gnu_ld" = yes; then
13048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13049 shlibpath_overrides_runpath=no
13050 else
13051 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13052 shlibpath_overrides_runpath=yes
13053 case $host_os in
13054 sco3.2v5*)
13055 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13056 ;;
13057 esac
13058 fi
13059 sys_lib_dlsearch_path_spec='/usr/lib'
13060 ;;
13061
13062 uts4*)
13063 version_type=linux
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 ;;
13068
13069 *)
13070 dynamic_linker=no
13071 ;;
13072 esac
13073 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13074 echo "${ECHO_T}$dynamic_linker" >&6; }
13075 test "$dynamic_linker" = no && can_build_shared=no
13076
13077 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13078 if test "$GCC" = yes; then
13079 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13080 fi
13081
13082 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13084 hardcode_action_CXX=
13085 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13086 test -n "$runpath_var_CXX" || \
13087 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13088
13089 # We can hardcode non-existant directories.
13090 if test "$hardcode_direct_CXX" != no &&
13091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13092 # have to relink, otherwise we might link with an installed library
13093 # when we should be linking with a yet-to-be-installed one
13094 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13095 test "$hardcode_minus_L_CXX" != no; then
13096 # Linking always hardcodes the temporary library directory.
13097 hardcode_action_CXX=relink
13098 else
13099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13100 hardcode_action_CXX=immediate
13101 fi
13102 else
13103 # We cannot hardcode anything, or else we can only hardcode existing
13104 # directories.
13105 hardcode_action_CXX=unsupported
13106 fi
13107 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13108 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13109
13110 if test "$hardcode_action_CXX" = relink; then
13111 # Fast installation is not supported
13112 enable_fast_install=no
13113 elif test "$shlibpath_overrides_runpath" = yes ||
13114 test "$enable_shared" = no; then
13115 # Fast installation is not necessary
13116 enable_fast_install=needless
13117 fi
13118
13119
13120 # The else clause should only fire when bootstrapping the
13121 # libtool distribution, otherwise you forgot to ship ltmain.sh
13122 # with your package, and you will get complaints that there are
13123 # no rules to generate ltmain.sh.
13124 if test -f "$ltmain"; then
13125 # See if we are running on zsh, and set the options which allow our commands through
13126 # without removal of \ escapes.
13127 if test -n "${ZSH_VERSION+set}" ; then
13128 setopt NO_GLOB_SUBST
13129 fi
13130 # Now quote all the things that may contain metacharacters while being
13131 # careful not to overquote the AC_SUBSTed values. We take copies of the
13132 # variables and quote the copies for generation of the libtool script.
13133 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13134 SED SHELL STRIP \
13135 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13136 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13137 deplibs_check_method reload_flag reload_cmds need_locks \
13138 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13139 lt_cv_sys_global_symbol_to_c_name_address \
13140 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13141 old_postinstall_cmds old_postuninstall_cmds \
13142 compiler_CXX \
13143 CC_CXX \
13144 LD_CXX \
13145 lt_prog_compiler_wl_CXX \
13146 lt_prog_compiler_pic_CXX \
13147 lt_prog_compiler_static_CXX \
13148 lt_prog_compiler_no_builtin_flag_CXX \
13149 export_dynamic_flag_spec_CXX \
13150 thread_safe_flag_spec_CXX \
13151 whole_archive_flag_spec_CXX \
13152 enable_shared_with_static_runtimes_CXX \
13153 old_archive_cmds_CXX \
13154 old_archive_from_new_cmds_CXX \
13155 predep_objects_CXX \
13156 postdep_objects_CXX \
13157 predeps_CXX \
13158 postdeps_CXX \
13159 compiler_lib_search_path_CXX \
13160 archive_cmds_CXX \
13161 archive_expsym_cmds_CXX \
13162 postinstall_cmds_CXX \
13163 postuninstall_cmds_CXX \
13164 old_archive_from_expsyms_cmds_CXX \
13165 allow_undefined_flag_CXX \
13166 no_undefined_flag_CXX \
13167 export_symbols_cmds_CXX \
13168 hardcode_libdir_flag_spec_CXX \
13169 hardcode_libdir_flag_spec_ld_CXX \
13170 hardcode_libdir_separator_CXX \
13171 hardcode_automatic_CXX \
13172 module_cmds_CXX \
13173 module_expsym_cmds_CXX \
13174 lt_cv_prog_compiler_c_o_CXX \
13175 exclude_expsyms_CXX \
13176 include_expsyms_CXX; do
13177
13178 case $var in
13179 old_archive_cmds_CXX | \
13180 old_archive_from_new_cmds_CXX | \
13181 archive_cmds_CXX | \
13182 archive_expsym_cmds_CXX | \
13183 module_cmds_CXX | \
13184 module_expsym_cmds_CXX | \
13185 old_archive_from_expsyms_cmds_CXX | \
13186 export_symbols_cmds_CXX | \
13187 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13188 postinstall_cmds | postuninstall_cmds | \
13189 old_postinstall_cmds | old_postuninstall_cmds | \
13190 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13191 # Double-quote double-evaled strings.
13192 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13193 ;;
13194 *)
13195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13196 ;;
13197 esac
13198 done
13199
13200 case $lt_echo in
13201 *'\$0 --fallback-echo"')
13202 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13203 ;;
13204 esac
13205
13206 cfgfile="$ofile"
13207
13208 cat <<__EOF__ >> "$cfgfile"
13209 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13210
13211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13212
13213 # Shell to use when invoking shell scripts.
13214 SHELL=$lt_SHELL
13215
13216 # Whether or not to build shared libraries.
13217 build_libtool_libs=$enable_shared
13218
13219 # Whether or not to build static libraries.
13220 build_old_libs=$enable_static
13221
13222 # Whether or not to add -lc for building shared libraries.
13223 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13224
13225 # Whether or not to disallow shared libs when runtime libs are static
13226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13227
13228 # Whether or not to optimize for fast installation.
13229 fast_install=$enable_fast_install
13230
13231 # The host system.
13232 host_alias=$host_alias
13233 host=$host
13234 host_os=$host_os
13235
13236 # The build system.
13237 build_alias=$build_alias
13238 build=$build
13239 build_os=$build_os
13240
13241 # An echo program that does not interpret backslashes.
13242 echo=$lt_echo
13243
13244 # The archiver.
13245 AR=$lt_AR
13246 AR_FLAGS=$lt_AR_FLAGS
13247
13248 # A C compiler.
13249 LTCC=$lt_LTCC
13250
13251 # LTCC compiler flags.
13252 LTCFLAGS=$lt_LTCFLAGS
13253
13254 # A language-specific compiler.
13255 CC=$lt_compiler_CXX
13256
13257 # Is the compiler the GNU C compiler?
13258 with_gcc=$GCC_CXX
13259
13260 # An ERE matcher.
13261 EGREP=$lt_EGREP
13262
13263 # The linker used to build libraries.
13264 LD=$lt_LD_CXX
13265
13266 # Whether we need hard or soft links.
13267 LN_S=$lt_LN_S
13268
13269 # A BSD-compatible nm program.
13270 NM=$lt_NM
13271
13272 # A symbol stripping program
13273 STRIP=$lt_STRIP
13274
13275 # Used to examine libraries when file_magic_cmd begins "file"
13276 MAGIC_CMD=$MAGIC_CMD
13277
13278 # Used on cygwin: DLL creation program.
13279 DLLTOOL="$DLLTOOL"
13280
13281 # Used on cygwin: object dumper.
13282 OBJDUMP="$OBJDUMP"
13283
13284 # Used on cygwin: assembler.
13285 AS="$AS"
13286
13287 # The name of the directory that contains temporary libtool files.
13288 objdir=$objdir
13289
13290 # How to create reloadable object files.
13291 reload_flag=$lt_reload_flag
13292 reload_cmds=$lt_reload_cmds
13293
13294 # How to pass a linker flag through the compiler.
13295 wl=$lt_lt_prog_compiler_wl_CXX
13296
13297 # Object file suffix (normally "o").
13298 objext="$ac_objext"
13299
13300 # Old archive suffix (normally "a").
13301 libext="$libext"
13302
13303 # Shared library suffix (normally ".so").
13304 shrext_cmds='$shrext_cmds'
13305
13306 # Executable file suffix (normally "").
13307 exeext="$exeext"
13308
13309 # Additional compiler flags for building library objects.
13310 pic_flag=$lt_lt_prog_compiler_pic_CXX
13311 pic_mode=$pic_mode
13312
13313 # What is the maximum length of a command?
13314 max_cmd_len=$lt_cv_sys_max_cmd_len
13315
13316 # Does compiler simultaneously support -c and -o options?
13317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13318
13319 # Must we lock files when doing compilation?
13320 need_locks=$lt_need_locks
13321
13322 # Do we need the lib prefix for modules?
13323 need_lib_prefix=$need_lib_prefix
13324
13325 # Do we need a version for libraries?
13326 need_version=$need_version
13327
13328 # Whether dlopen is supported.
13329 dlopen_support=$enable_dlopen
13330
13331 # Whether dlopen of programs is supported.
13332 dlopen_self=$enable_dlopen_self
13333
13334 # Whether dlopen of statically linked programs is supported.
13335 dlopen_self_static=$enable_dlopen_self_static
13336
13337 # Compiler flag to prevent dynamic linking.
13338 link_static_flag=$lt_lt_prog_compiler_static_CXX
13339
13340 # Compiler flag to turn off builtin functions.
13341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13342
13343 # Compiler flag to allow reflexive dlopens.
13344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13345
13346 # Compiler flag to generate shared objects directly from archives.
13347 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13348
13349 # Compiler flag to generate thread-safe objects.
13350 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13351
13352 # Library versioning type.
13353 version_type=$version_type
13354
13355 # Format of library name prefix.
13356 libname_spec=$lt_libname_spec
13357
13358 # List of archive names. First name is the real one, the rest are links.
13359 # The last name is the one that the linker finds with -lNAME.
13360 library_names_spec=$lt_library_names_spec
13361
13362 # The coded name of the library, if different from the real name.
13363 soname_spec=$lt_soname_spec
13364
13365 # Commands used to build and install an old-style archive.
13366 RANLIB=$lt_RANLIB
13367 old_archive_cmds=$lt_old_archive_cmds_CXX
13368 old_postinstall_cmds=$lt_old_postinstall_cmds
13369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13370
13371 # Create an old-style archive from a shared archive.
13372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13373
13374 # Create a temporary old-style archive to link instead of a shared archive.
13375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13376
13377 # Commands used to build and install a shared archive.
13378 archive_cmds=$lt_archive_cmds_CXX
13379 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13380 postinstall_cmds=$lt_postinstall_cmds
13381 postuninstall_cmds=$lt_postuninstall_cmds
13382
13383 # Commands used to build a loadable module (assumed same as above if empty)
13384 module_cmds=$lt_module_cmds_CXX
13385 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13386
13387 # Commands to strip libraries.
13388 old_striplib=$lt_old_striplib
13389 striplib=$lt_striplib
13390
13391 # Dependencies to place before the objects being linked to create a
13392 # shared library.
13393 predep_objects=$lt_predep_objects_CXX
13394
13395 # Dependencies to place after the objects being linked to create a
13396 # shared library.
13397 postdep_objects=$lt_postdep_objects_CXX
13398
13399 # Dependencies to place before the objects being linked to create a
13400 # shared library.
13401 predeps=$lt_predeps_CXX
13402
13403 # Dependencies to place after the objects being linked to create a
13404 # shared library.
13405 postdeps=$lt_postdeps_CXX
13406
13407 # The library search path used internally by the compiler when linking
13408 # a shared library.
13409 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13410
13411 # Method to check whether dependent libraries are shared objects.
13412 deplibs_check_method=$lt_deplibs_check_method
13413
13414 # Command to use when deplibs_check_method == file_magic.
13415 file_magic_cmd=$lt_file_magic_cmd
13416
13417 # Flag that allows shared libraries with undefined symbols to be built.
13418 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13419
13420 # Flag that forces no undefined symbols.
13421 no_undefined_flag=$lt_no_undefined_flag_CXX
13422
13423 # Commands used to finish a libtool library installation in a directory.
13424 finish_cmds=$lt_finish_cmds
13425
13426 # Same as above, but a single script fragment to be evaled but not shown.
13427 finish_eval=$lt_finish_eval
13428
13429 # Take the output of nm and produce a listing of raw symbols and C names.
13430 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13431
13432 # Transform the output of nm in a proper C declaration
13433 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13434
13435 # Transform the output of nm in a C name address pair
13436 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13437
13438 # This is the shared library runtime path variable.
13439 runpath_var=$runpath_var
13440
13441 # This is the shared library path variable.
13442 shlibpath_var=$shlibpath_var
13443
13444 # Is shlibpath searched before the hard-coded library search path?
13445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13446
13447 # How to hardcode a shared library path into an executable.
13448 hardcode_action=$hardcode_action_CXX
13449
13450 # Whether we should hardcode library paths into libraries.
13451 hardcode_into_libs=$hardcode_into_libs
13452
13453 # Flag to hardcode \$libdir into a binary during linking.
13454 # This must work even if \$libdir does not exist.
13455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13456
13457 # If ld is used when linking, flag to hardcode \$libdir into
13458 # a binary during linking. This must work even if \$libdir does
13459 # not exist.
13460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13461
13462 # Whether we need a single -rpath flag with a separated argument.
13463 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13464
13465 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13466 # resulting binary.
13467 hardcode_direct=$hardcode_direct_CXX
13468
13469 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13470 # resulting binary.
13471 hardcode_minus_L=$hardcode_minus_L_CXX
13472
13473 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13474 # the resulting binary.
13475 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13476
13477 # Set to yes if building a shared library automatically hardcodes DIR into the library
13478 # and all subsequent libraries and executables linked against it.
13479 hardcode_automatic=$hardcode_automatic_CXX
13480
13481 # Variables whose values should be saved in libtool wrapper scripts and
13482 # restored at relink time.
13483 variables_saved_for_relink="$variables_saved_for_relink"
13484
13485 # Whether libtool must link a program against all its dependency libraries.
13486 link_all_deplibs=$link_all_deplibs_CXX
13487
13488 # Compile-time system search path for libraries
13489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13490
13491 # Run-time system search path for libraries
13492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13493
13494 # Fix the shell variable \$srcfile for the compiler.
13495 fix_srcfile_path="$fix_srcfile_path_CXX"
13496
13497 # Set to yes if exported symbols are required.
13498 always_export_symbols=$always_export_symbols_CXX
13499
13500 # The commands to list exported symbols.
13501 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13502
13503 # The commands to extract the exported symbol list from a shared archive.
13504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13505
13506 # Symbols that should not be listed in the preloaded symbols.
13507 exclude_expsyms=$lt_exclude_expsyms_CXX
13508
13509 # Symbols that must always be exported.
13510 include_expsyms=$lt_include_expsyms_CXX
13511
13512 # ### END LIBTOOL TAG CONFIG: $tagname
13513
13514 __EOF__
13515
13516
13517 else
13518 # If there is no Makefile yet, we rely on a make rule to execute
13519 # `config.status --recheck' to rerun these tests and create the
13520 # libtool script then.
13521 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13522 if test -f "$ltmain_in"; then
13523 test -f Makefile && make "$ltmain"
13524 fi
13525 fi
13526
13527
13528 ac_ext=c
13529 ac_cpp='$CPP $CPPFLAGS'
13530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13533
13534 CC=$lt_save_CC
13535 LDCXX=$LD
13536 LD=$lt_save_LD
13537 GCC=$lt_save_GCC
13538 with_gnu_ldcxx=$with_gnu_ld
13539 with_gnu_ld=$lt_save_with_gnu_ld
13540 lt_cv_path_LDCXX=$lt_cv_path_LD
13541 lt_cv_path_LD=$lt_save_path_LD
13542 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13543 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13544
13545 else
13546 tagname=""
13547 fi
13548 ;;
13549
13550 F77)
13551 if test -n "$F77" && test "X$F77" != "Xno"; then
13552
13553 ac_ext=f
13554 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13555 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13556 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13557
13558
13559 archive_cmds_need_lc_F77=no
13560 allow_undefined_flag_F77=
13561 always_export_symbols_F77=no
13562 archive_expsym_cmds_F77=
13563 export_dynamic_flag_spec_F77=
13564 hardcode_direct_F77=no
13565 hardcode_libdir_flag_spec_F77=
13566 hardcode_libdir_flag_spec_ld_F77=
13567 hardcode_libdir_separator_F77=
13568 hardcode_minus_L_F77=no
13569 hardcode_automatic_F77=no
13570 module_cmds_F77=
13571 module_expsym_cmds_F77=
13572 link_all_deplibs_F77=unknown
13573 old_archive_cmds_F77=$old_archive_cmds
13574 no_undefined_flag_F77=
13575 whole_archive_flag_spec_F77=
13576 enable_shared_with_static_runtimes_F77=no
13577
13578 # Source file extension for f77 test sources.
13579 ac_ext=f
13580
13581 # Object file extension for compiled f77 test sources.
13582 objext=o
13583 objext_F77=$objext
13584
13585 # Code to be used in simple compile tests
13586 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13587
13588 # Code to be used in simple link tests
13589 lt_simple_link_test_code=" program t\n end\n"
13590
13591 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13592
13593 # If no C compiler was specified, use CC.
13594 LTCC=${LTCC-"$CC"}
13595
13596 # If no C compiler flags were specified, use CFLAGS.
13597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13598
13599 # Allow CC to be a program name with arguments.
13600 compiler=$CC
13601
13602
13603 # save warnings/boilerplate of simple test code
13604 ac_outfile=conftest.$ac_objext
13605 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13606 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13607 _lt_compiler_boilerplate=`cat conftest.err`
13608 $rm conftest*
13609
13610 ac_outfile=conftest.$ac_objext
13611 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13612 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13613 _lt_linker_boilerplate=`cat conftest.err`
13614 $rm conftest*
13615
13616
13617 # Allow CC to be a program name with arguments.
13618 lt_save_CC="$CC"
13619 CC=${F77-"f77"}
13620 compiler=$CC
13621 compiler_F77=$CC
13622 for cc_temp in $compiler""; do
13623 case $cc_temp in
13624 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13625 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13626 \-*) ;;
13627 *) break;;
13628 esac
13629 done
13630 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13631
13632
13633 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13634 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13635 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13636 echo "${ECHO_T}$can_build_shared" >&6; }
13637
13638 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13639 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13640 test "$can_build_shared" = "no" && enable_shared=no
13641
13642 # On AIX, shared libraries and static libraries use the same namespace, and
13643 # are all built from PIC.
13644 case $host_os in
13645 aix3*)
13646 test "$enable_shared" = yes && enable_static=no
13647 if test -n "$RANLIB"; then
13648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13649 postinstall_cmds='$RANLIB $lib'
13650 fi
13651 ;;
13652 aix4* | aix5*)
13653 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13654 test "$enable_shared" = yes && enable_static=no
13655 fi
13656 ;;
13657 esac
13658 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13659 echo "${ECHO_T}$enable_shared" >&6; }
13660
13661 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13662 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13663 # Make sure either enable_shared or enable_static is yes.
13664 test "$enable_shared" = yes || enable_static=yes
13665 { echo "$as_me:$LINENO: result: $enable_static" >&5
13666 echo "${ECHO_T}$enable_static" >&6; }
13667
13668 GCC_F77="$G77"
13669 LD_F77="$LD"
13670
13671 lt_prog_compiler_wl_F77=
13672 lt_prog_compiler_pic_F77=
13673 lt_prog_compiler_static_F77=
13674
13675 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13676 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13677
13678 if test "$GCC" = yes; then
13679 lt_prog_compiler_wl_F77='-Wl,'
13680 lt_prog_compiler_static_F77='-static'
13681
13682 case $host_os in
13683 aix*)
13684 # All AIX code is PIC.
13685 if test "$host_cpu" = ia64; then
13686 # AIX 5 now supports IA64 processor
13687 lt_prog_compiler_static_F77='-Bstatic'
13688 fi
13689 ;;
13690
13691 amigaos*)
13692 # FIXME: we need at least 68020 code to build shared libraries, but
13693 # adding the `-m68020' flag to GCC prevents building anything better,
13694 # like `-m68040'.
13695 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13696 ;;
13697
13698 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13699 # PIC is the default for these OSes.
13700 ;;
13701
13702 mingw* | pw32* | os2*)
13703 # This hack is so that the source file can tell whether it is being
13704 # built for inclusion in a dll (and should export symbols for example).
13705 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13706 ;;
13707
13708 darwin* | rhapsody*)
13709 # PIC is the default on this platform
13710 # Common symbols not allowed in MH_DYLIB files
13711 lt_prog_compiler_pic_F77='-fno-common'
13712 ;;
13713
13714 interix3*)
13715 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13716 # Instead, we relocate shared libraries at runtime.
13717 ;;
13718
13719 msdosdjgpp*)
13720 # Just because we use GCC doesn't mean we suddenly get shared libraries
13721 # on systems that don't support them.
13722 lt_prog_compiler_can_build_shared_F77=no
13723 enable_shared=no
13724 ;;
13725
13726 sysv4*MP*)
13727 if test -d /usr/nec; then
13728 lt_prog_compiler_pic_F77=-Kconform_pic
13729 fi
13730 ;;
13731
13732 hpux*)
13733 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13734 # not for PA HP-UX.
13735 case $host_cpu in
13736 hppa*64*|ia64*)
13737 # +Z the default
13738 ;;
13739 *)
13740 lt_prog_compiler_pic_F77='-fPIC'
13741 ;;
13742 esac
13743 ;;
13744
13745 *)
13746 lt_prog_compiler_pic_F77='-fPIC'
13747 ;;
13748 esac
13749 else
13750 # PORTME Check for flag to pass linker flags through the system compiler.
13751 case $host_os in
13752 aix*)
13753 lt_prog_compiler_wl_F77='-Wl,'
13754 if test "$host_cpu" = ia64; then
13755 # AIX 5 now supports IA64 processor
13756 lt_prog_compiler_static_F77='-Bstatic'
13757 else
13758 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13759 fi
13760 ;;
13761 darwin*)
13762 # PIC is the default on this platform
13763 # Common symbols not allowed in MH_DYLIB files
13764 case $cc_basename in
13765 xlc*)
13766 lt_prog_compiler_pic_F77='-qnocommon'
13767 lt_prog_compiler_wl_F77='-Wl,'
13768 ;;
13769 esac
13770 ;;
13771
13772 mingw* | pw32* | os2*)
13773 # This hack is so that the source file can tell whether it is being
13774 # built for inclusion in a dll (and should export symbols for example).
13775 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13776 ;;
13777
13778 hpux9* | hpux10* | hpux11*)
13779 lt_prog_compiler_wl_F77='-Wl,'
13780 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13781 # not for PA HP-UX.
13782 case $host_cpu in
13783 hppa*64*|ia64*)
13784 # +Z the default
13785 ;;
13786 *)
13787 lt_prog_compiler_pic_F77='+Z'
13788 ;;
13789 esac
13790 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13791 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13792 ;;
13793
13794 irix5* | irix6* | nonstopux*)
13795 lt_prog_compiler_wl_F77='-Wl,'
13796 # PIC (with -KPIC) is the default.
13797 lt_prog_compiler_static_F77='-non_shared'
13798 ;;
13799
13800 newsos6)
13801 lt_prog_compiler_pic_F77='-KPIC'
13802 lt_prog_compiler_static_F77='-Bstatic'
13803 ;;
13804
13805 linux*)
13806 case $cc_basename in
13807 icc* | ecc*)
13808 lt_prog_compiler_wl_F77='-Wl,'
13809 lt_prog_compiler_pic_F77='-KPIC'
13810 lt_prog_compiler_static_F77='-static'
13811 ;;
13812 pgcc* | pgf77* | pgf90* | pgf95*)
13813 # Portland Group compilers (*not* the Pentium gcc compiler,
13814 # which looks to be a dead project)
13815 lt_prog_compiler_wl_F77='-Wl,'
13816 lt_prog_compiler_pic_F77='-fpic'
13817 lt_prog_compiler_static_F77='-Bstatic'
13818 ;;
13819 ccc*)
13820 lt_prog_compiler_wl_F77='-Wl,'
13821 # All Alpha code is PIC.
13822 lt_prog_compiler_static_F77='-non_shared'
13823 ;;
13824 esac
13825 ;;
13826
13827 osf3* | osf4* | osf5*)
13828 lt_prog_compiler_wl_F77='-Wl,'
13829 # All OSF/1 code is PIC.
13830 lt_prog_compiler_static_F77='-non_shared'
13831 ;;
13832
13833 solaris*)
13834 lt_prog_compiler_pic_F77='-KPIC'
13835 lt_prog_compiler_static_F77='-Bstatic'
13836 case $cc_basename in
13837 f77* | f90* | f95*)
13838 lt_prog_compiler_wl_F77='-Qoption ld ';;
13839 *)
13840 lt_prog_compiler_wl_F77='-Wl,';;
13841 esac
13842 ;;
13843
13844 sunos4*)
13845 lt_prog_compiler_wl_F77='-Qoption ld '
13846 lt_prog_compiler_pic_F77='-PIC'
13847 lt_prog_compiler_static_F77='-Bstatic'
13848 ;;
13849
13850 sysv4 | sysv4.2uw2* | sysv4.3*)
13851 lt_prog_compiler_wl_F77='-Wl,'
13852 lt_prog_compiler_pic_F77='-KPIC'
13853 lt_prog_compiler_static_F77='-Bstatic'
13854 ;;
13855
13856 sysv4*MP*)
13857 if test -d /usr/nec ;then
13858 lt_prog_compiler_pic_F77='-Kconform_pic'
13859 lt_prog_compiler_static_F77='-Bstatic'
13860 fi
13861 ;;
13862
13863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_pic_F77='-KPIC'
13866 lt_prog_compiler_static_F77='-Bstatic'
13867 ;;
13868
13869 unicos*)
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_can_build_shared_F77=no
13872 ;;
13873
13874 uts4*)
13875 lt_prog_compiler_pic_F77='-pic'
13876 lt_prog_compiler_static_F77='-Bstatic'
13877 ;;
13878
13879 *)
13880 lt_prog_compiler_can_build_shared_F77=no
13881 ;;
13882 esac
13883 fi
13884
13885 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13886 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13887
13888 #
13889 # Check to make sure the PIC flag actually works.
13890 #
13891 if test -n "$lt_prog_compiler_pic_F77"; then
13892
13893 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13894 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13895 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 lt_prog_compiler_pic_works_F77=no
13899 ac_outfile=conftest.$ac_objext
13900 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13901 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13902 # Insert the option either (1) after the last *FLAGS variable, or
13903 # (2) before a word containing "conftest.", or (3) at the end.
13904 # Note that $ac_compile itself does not contain backslashes and begins
13905 # with a dollar sign (not a hyphen), so the echo should work correctly.
13906 # The option is referenced via a variable to avoid confusing sed.
13907 lt_compile=`echo "$ac_compile" | $SED \
13908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13910 -e 's:$: $lt_compiler_flag:'`
13911 (eval echo "\"\$as_me:13911: $lt_compile\"" >&5)
13912 (eval "$lt_compile" 2>conftest.err)
13913 ac_status=$?
13914 cat conftest.err >&5
13915 echo "$as_me:13915: \$? = $ac_status" >&5
13916 if (exit $ac_status) && test -s "$ac_outfile"; then
13917 # The compiler can only warn and ignore the option if not recognized
13918 # So say no if there are warnings other than the usual output.
13919 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13920 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13921 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13922 lt_prog_compiler_pic_works_F77=yes
13923 fi
13924 fi
13925 $rm conftest*
13926
13927 fi
13928 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13929 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13930
13931 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13932 case $lt_prog_compiler_pic_F77 in
13933 "" | " "*) ;;
13934 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13935 esac
13936 else
13937 lt_prog_compiler_pic_F77=
13938 lt_prog_compiler_can_build_shared_F77=no
13939 fi
13940
13941 fi
13942 case $host_os in
13943 # For platforms which do not support PIC, -DPIC is meaningless:
13944 *djgpp*)
13945 lt_prog_compiler_pic_F77=
13946 ;;
13947 *)
13948 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13949 ;;
13950 esac
13951
13952 #
13953 # Check to make sure the static flag actually works.
13954 #
13955 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13956 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13957 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13958 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 else
13961 lt_prog_compiler_static_works_F77=no
13962 save_LDFLAGS="$LDFLAGS"
13963 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13964 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13965 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13966 # The linker can only warn and ignore the option if not recognized
13967 # So say no if there are warnings
13968 if test -s conftest.err; then
13969 # Append any errors to the config.log.
13970 cat conftest.err 1>&5
13971 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13973 if diff conftest.exp conftest.er2 >/dev/null; then
13974 lt_prog_compiler_static_works_F77=yes
13975 fi
13976 else
13977 lt_prog_compiler_static_works_F77=yes
13978 fi
13979 fi
13980 $rm conftest*
13981 LDFLAGS="$save_LDFLAGS"
13982
13983 fi
13984 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13985 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13986
13987 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13988 :
13989 else
13990 lt_prog_compiler_static_F77=
13991 fi
13992
13993
13994 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13995 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13996 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 else
13999 lt_cv_prog_compiler_c_o_F77=no
14000 $rm -r conftest 2>/dev/null
14001 mkdir conftest
14002 cd conftest
14003 mkdir out
14004 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14005
14006 lt_compiler_flag="-o out/conftest2.$ac_objext"
14007 # Insert the option either (1) after the last *FLAGS variable, or
14008 # (2) before a word containing "conftest.", or (3) at the end.
14009 # Note that $ac_compile itself does not contain backslashes and begins
14010 # with a dollar sign (not a hyphen), so the echo should work correctly.
14011 lt_compile=`echo "$ac_compile" | $SED \
14012 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14013 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14014 -e 's:$: $lt_compiler_flag:'`
14015 (eval echo "\"\$as_me:14015: $lt_compile\"" >&5)
14016 (eval "$lt_compile" 2>out/conftest.err)
14017 ac_status=$?
14018 cat out/conftest.err >&5
14019 echo "$as_me:14019: \$? = $ac_status" >&5
14020 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14021 then
14022 # The compiler can only warn and ignore the option if not recognized
14023 # So say no if there are warnings
14024 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14025 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14026 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14027 lt_cv_prog_compiler_c_o_F77=yes
14028 fi
14029 fi
14030 chmod u+w . 2>&5
14031 $rm conftest*
14032 # SGI C++ compiler will create directory out/ii_files/ for
14033 # template instantiation
14034 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14035 $rm out/* && rmdir out
14036 cd ..
14037 rmdir conftest
14038 $rm conftest*
14039
14040 fi
14041 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14042 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14043
14044
14045 hard_links="nottested"
14046 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14047 # do not overwrite the value of need_locks provided by the user
14048 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14049 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14050 hard_links=yes
14051 $rm conftest*
14052 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14053 touch conftest.a
14054 ln conftest.a conftest.b 2>&5 || hard_links=no
14055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14056 { echo "$as_me:$LINENO: result: $hard_links" >&5
14057 echo "${ECHO_T}$hard_links" >&6; }
14058 if test "$hard_links" = no; then
14059 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14060 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14061 need_locks=warn
14062 fi
14063 else
14064 need_locks=no
14065 fi
14066
14067 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14068 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14069
14070 runpath_var=
14071 allow_undefined_flag_F77=
14072 enable_shared_with_static_runtimes_F77=no
14073 archive_cmds_F77=
14074 archive_expsym_cmds_F77=
14075 old_archive_From_new_cmds_F77=
14076 old_archive_from_expsyms_cmds_F77=
14077 export_dynamic_flag_spec_F77=
14078 whole_archive_flag_spec_F77=
14079 thread_safe_flag_spec_F77=
14080 hardcode_libdir_flag_spec_F77=
14081 hardcode_libdir_flag_spec_ld_F77=
14082 hardcode_libdir_separator_F77=
14083 hardcode_direct_F77=no
14084 hardcode_minus_L_F77=no
14085 hardcode_shlibpath_var_F77=unsupported
14086 link_all_deplibs_F77=unknown
14087 hardcode_automatic_F77=no
14088 module_cmds_F77=
14089 module_expsym_cmds_F77=
14090 always_export_symbols_F77=no
14091 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14092 # include_expsyms should be a list of space-separated symbols to be *always*
14093 # included in the symbol list
14094 include_expsyms_F77=
14095 # exclude_expsyms can be an extended regexp of symbols to exclude
14096 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14097 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14098 # as well as any symbol that contains `d'.
14099 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14100 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14101 # platforms (ab)use it in PIC code, but their linkers get confused if
14102 # the symbol is explicitly referenced. Since portable code cannot
14103 # rely on this symbol name, it's probably fine to never include it in
14104 # preloaded symbol tables.
14105 extract_expsyms_cmds=
14106 # Just being paranoid about ensuring that cc_basename is set.
14107 for cc_temp in $compiler""; do
14108 case $cc_temp in
14109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14111 \-*) ;;
14112 *) break;;
14113 esac
14114 done
14115 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14116
14117 case $host_os in
14118 cygwin* | mingw* | pw32*)
14119 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14120 # When not using gcc, we currently assume that we are using
14121 # Microsoft Visual C++.
14122 if test "$GCC" != yes; then
14123 with_gnu_ld=no
14124 fi
14125 ;;
14126 interix*)
14127 # we just hope/assume this is gcc and not c89 (= MSVC++)
14128 with_gnu_ld=yes
14129 ;;
14130 openbsd*)
14131 with_gnu_ld=no
14132 ;;
14133 esac
14134
14135 ld_shlibs_F77=yes
14136 if test "$with_gnu_ld" = yes; then
14137 # If archive_cmds runs LD, not CC, wlarc should be empty
14138 wlarc='${wl}'
14139
14140 # Set some defaults for GNU ld with shared library support. These
14141 # are reset later if shared libraries are not supported. Putting them
14142 # here allows them to be overridden if necessary.
14143 runpath_var=LD_RUN_PATH
14144 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14145 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14146 # ancient GNU ld didn't support --whole-archive et. al.
14147 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14148 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14149 else
14150 whole_archive_flag_spec_F77=
14151 fi
14152 supports_anon_versioning=no
14153 case `$LD -v 2>/dev/null` in
14154 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14155 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14156 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14157 *\ 2.11.*) ;; # other 2.11 versions
14158 *) supports_anon_versioning=yes ;;
14159 esac
14160
14161 # See if GNU ld supports shared libraries.
14162 case $host_os in
14163 aix3* | aix4* | aix5*)
14164 # On AIX/PPC, the GNU linker is very broken
14165 if test "$host_cpu" != ia64; then
14166 ld_shlibs_F77=no
14167 cat <<EOF 1>&2
14168
14169 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14170 *** to be unable to reliably create shared libraries on AIX.
14171 *** Therefore, libtool is disabling shared libraries support. If you
14172 *** really care for shared libraries, you may want to modify your PATH
14173 *** so that a non-GNU linker is found, and then restart.
14174
14175 EOF
14176 fi
14177 ;;
14178
14179 amigaos*)
14180 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)'
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_minus_L_F77=yes
14183
14184 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14185 # that the semantics of dynamic libraries on AmigaOS, at least up
14186 # to version 4, is to share data among multiple programs linked
14187 # with the same dynamic library. Since this doesn't match the
14188 # behavior of shared libraries on other platforms, we can't use
14189 # them.
14190 ld_shlibs_F77=no
14191 ;;
14192
14193 beos*)
14194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14195 allow_undefined_flag_F77=unsupported
14196 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14197 # support --undefined. This deserves some investigation. FIXME
14198 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14199 else
14200 ld_shlibs_F77=no
14201 fi
14202 ;;
14203
14204 cygwin* | mingw* | pw32*)
14205 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14206 # as there is no search path for DLLs.
14207 hardcode_libdir_flag_spec_F77='-L$libdir'
14208 allow_undefined_flag_F77=unsupported
14209 always_export_symbols_F77=no
14210 enable_shared_with_static_runtimes_F77=yes
14211 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14212
14213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14215 # If the export-symbols file already is a .def file (1st line
14216 # is EXPORTS), use it as is; otherwise, prepend...
14217 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14218 cp $export_symbols $output_objdir/$soname.def;
14219 else
14220 echo EXPORTS > $output_objdir/$soname.def;
14221 cat $export_symbols >> $output_objdir/$soname.def;
14222 fi~
14223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14224 else
14225 ld_shlibs_F77=no
14226 fi
14227 ;;
14228
14229 interix3*)
14230 hardcode_direct_F77=no
14231 hardcode_shlibpath_var_F77=no
14232 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14233 export_dynamic_flag_spec_F77='${wl}-E'
14234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14235 # Instead, shared libraries are loaded at an image base (0x10000000 by
14236 # default) and relocated if they conflict, which is a slow very memory
14237 # consuming and fragmenting process. To avoid this, we pick a random,
14238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14240 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'
14241 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'
14242 ;;
14243
14244 linux*)
14245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14246 tmp_addflag=
14247 case $cc_basename,$host_cpu in
14248 pgcc*) # Portland Group C compiler
14249 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'
14250 tmp_addflag=' $pic_flag'
14251 ;;
14252 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14253 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'
14254 tmp_addflag=' $pic_flag -Mnomain' ;;
14255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14256 tmp_addflag=' -i_dynamic' ;;
14257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14258 tmp_addflag=' -i_dynamic -nofor_main' ;;
14259 ifc* | ifort*) # Intel Fortran compiler
14260 tmp_addflag=' -nofor_main' ;;
14261 esac
14262 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14263
14264 if test $supports_anon_versioning = yes; then
14265 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14266 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14267 $echo "local: *; };" >> $output_objdir/$libname.ver~
14268 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14269 fi
14270 else
14271 ld_shlibs_F77=no
14272 fi
14273 ;;
14274
14275 netbsd*)
14276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14277 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14278 wlarc=
14279 else
14280 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14281 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14282 fi
14283 ;;
14284
14285 solaris*)
14286 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14287 ld_shlibs_F77=no
14288 cat <<EOF 1>&2
14289
14290 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14291 *** create shared libraries on Solaris systems. Therefore, libtool
14292 *** is disabling shared libraries support. We urge you to upgrade GNU
14293 *** binutils to release 2.9.1 or newer. Another option is to modify
14294 *** your PATH or compiler configuration so that the native linker is
14295 *** used, and then restart.
14296
14297 EOF
14298 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14301 else
14302 ld_shlibs_F77=no
14303 fi
14304 ;;
14305
14306 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14307 case `$LD -v 2>&1` in
14308 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14309 ld_shlibs_F77=no
14310 cat <<_LT_EOF 1>&2
14311
14312 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14313 *** reliably create shared libraries on SCO systems. Therefore, libtool
14314 *** is disabling shared libraries support. We urge you to upgrade GNU
14315 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14316 *** your PATH or compiler configuration so that the native linker is
14317 *** used, and then restart.
14318
14319 _LT_EOF
14320 ;;
14321 *)
14322 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14323 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14324 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14325 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14326 else
14327 ld_shlibs_F77=no
14328 fi
14329 ;;
14330 esac
14331 ;;
14332
14333 sunos4*)
14334 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14335 wlarc=
14336 hardcode_direct_F77=yes
14337 hardcode_shlibpath_var_F77=no
14338 ;;
14339
14340 *)
14341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14342 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14343 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14344 else
14345 ld_shlibs_F77=no
14346 fi
14347 ;;
14348 esac
14349
14350 if test "$ld_shlibs_F77" = no; then
14351 runpath_var=
14352 hardcode_libdir_flag_spec_F77=
14353 export_dynamic_flag_spec_F77=
14354 whole_archive_flag_spec_F77=
14355 fi
14356 else
14357 # PORTME fill in a description of your system's linker (not GNU ld)
14358 case $host_os in
14359 aix3*)
14360 allow_undefined_flag_F77=unsupported
14361 always_export_symbols_F77=yes
14362 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'
14363 # Note: this linker hardcodes the directories in LIBPATH if there
14364 # are no directories specified by -L.
14365 hardcode_minus_L_F77=yes
14366 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14367 # Neither direct hardcoding nor static linking is supported with a
14368 # broken collect2.
14369 hardcode_direct_F77=unsupported
14370 fi
14371 ;;
14372
14373 aix4* | aix5*)
14374 if test "$host_cpu" = ia64; then
14375 # On IA64, the linker does run time linking by default, so we don't
14376 # have to do anything special.
14377 aix_use_runtimelinking=no
14378 exp_sym_flag='-Bexport'
14379 no_entry_flag=""
14380 else
14381 # If we're using GNU nm, then we don't want the "-C" option.
14382 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14383 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14384 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'
14385 else
14386 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'
14387 fi
14388 aix_use_runtimelinking=no
14389
14390 # Test if we are trying to use run time linking or normal
14391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14392 # need to do runtime linking.
14393 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14394 for ld_flag in $LDFLAGS; do
14395 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14396 aix_use_runtimelinking=yes
14397 break
14398 fi
14399 done
14400 ;;
14401 esac
14402
14403 exp_sym_flag='-bexport'
14404 no_entry_flag='-bnoentry'
14405 fi
14406
14407 # When large executables or shared objects are built, AIX ld can
14408 # have problems creating the table of contents. If linking a library
14409 # or program results in "error TOC overflow" add -mminimal-toc to
14410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14412
14413 archive_cmds_F77=''
14414 hardcode_direct_F77=yes
14415 hardcode_libdir_separator_F77=':'
14416 link_all_deplibs_F77=yes
14417
14418 if test "$GCC" = yes; then
14419 case $host_os in aix4.[012]|aix4.[012].*)
14420 # We only want to do this on AIX 4.2 and lower, the check
14421 # below for broken collect2 doesn't work under 4.3+
14422 collect2name=`${CC} -print-prog-name=collect2`
14423 if test -f "$collect2name" && \
14424 strings "$collect2name" | grep resolve_lib_name >/dev/null
14425 then
14426 # We have reworked collect2
14427 hardcode_direct_F77=yes
14428 else
14429 # We have old collect2
14430 hardcode_direct_F77=unsupported
14431 # It fails to find uninstalled libraries when the uninstalled
14432 # path is not listed in the libpath. Setting hardcode_minus_L
14433 # to unsupported forces relinking
14434 hardcode_minus_L_F77=yes
14435 hardcode_libdir_flag_spec_F77='-L$libdir'
14436 hardcode_libdir_separator_F77=
14437 fi
14438 ;;
14439 esac
14440 shared_flag='-shared'
14441 if test "$aix_use_runtimelinking" = yes; then
14442 shared_flag="$shared_flag "'${wl}-G'
14443 fi
14444 else
14445 # not using gcc
14446 if test "$host_cpu" = ia64; then
14447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14448 # chokes on -Wl,-G. The following line is correct:
14449 shared_flag='-G'
14450 else
14451 if test "$aix_use_runtimelinking" = yes; then
14452 shared_flag='${wl}-G'
14453 else
14454 shared_flag='${wl}-bM:SRE'
14455 fi
14456 fi
14457 fi
14458
14459 # It seems that -bexpall does not export symbols beginning with
14460 # underscore (_), so it is better to generate a list of symbols to export.
14461 always_export_symbols_F77=yes
14462 if test "$aix_use_runtimelinking" = yes; then
14463 # Warning - without using the other runtime loading flags (-brtl),
14464 # -berok will link without error, but may produce a broken library.
14465 allow_undefined_flag_F77='-berok'
14466 # Determine the default libpath from the value encoded in an empty executable.
14467 cat >conftest.$ac_ext <<_ACEOF
14468 program main
14469
14470 end
14471 _ACEOF
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (ac_try="$ac_link"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477 esac
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_link") 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_f77_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest$ac_exeext &&
14489 $as_test_x conftest$ac_exeext; then
14490
14491 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14492 }'`
14493 # Check for a 64-bit object if we didn't find anything.
14494 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14495 }'`; fi
14496 else
14497 echo "$as_me: failed program was:" >&5
14498 sed 's/^/| /' conftest.$ac_ext >&5
14499
14500
14501 fi
14502
14503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14504 conftest$ac_exeext conftest.$ac_ext
14505 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14506
14507 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14508 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"
14509 else
14510 if test "$host_cpu" = ia64; then
14511 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14512 allow_undefined_flag_F77="-z nodefs"
14513 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"
14514 else
14515 # Determine the default libpath from the value encoded in an empty executable.
14516 cat >conftest.$ac_ext <<_ACEOF
14517 program main
14518
14519 end
14520 _ACEOF
14521 rm -f conftest.$ac_objext conftest$ac_exeext
14522 if { (ac_try="$ac_link"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14526 esac
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_link") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } && {
14535 test -z "$ac_f77_werror_flag" ||
14536 test ! -s conftest.err
14537 } && test -s conftest$ac_exeext &&
14538 $as_test_x conftest$ac_exeext; then
14539
14540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14541 }'`
14542 # Check for a 64-bit object if we didn't find anything.
14543 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14544 }'`; fi
14545 else
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549
14550 fi
14551
14552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14553 conftest$ac_exeext conftest.$ac_ext
14554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14555
14556 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14557 # Warning - without using the other run time loading flags,
14558 # -berok will link without error, but may produce a broken library.
14559 no_undefined_flag_F77=' ${wl}-bernotok'
14560 allow_undefined_flag_F77=' ${wl}-berok'
14561 # Exported symbols can be pulled into shared objects from archives
14562 whole_archive_flag_spec_F77='$convenience'
14563 archive_cmds_need_lc_F77=yes
14564 # This is similar to how AIX traditionally builds its shared libraries.
14565 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'
14566 fi
14567 fi
14568 ;;
14569
14570 amigaos*)
14571 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)'
14572 hardcode_libdir_flag_spec_F77='-L$libdir'
14573 hardcode_minus_L_F77=yes
14574 # see comment about different semantics on the GNU ld section
14575 ld_shlibs_F77=no
14576 ;;
14577
14578 bsdi[45]*)
14579 export_dynamic_flag_spec_F77=-rdynamic
14580 ;;
14581
14582 cygwin* | mingw* | pw32*)
14583 # When not using gcc, we currently assume that we are using
14584 # Microsoft Visual C++.
14585 # hardcode_libdir_flag_spec is actually meaningless, as there is
14586 # no search path for DLLs.
14587 hardcode_libdir_flag_spec_F77=' '
14588 allow_undefined_flag_F77=unsupported
14589 # Tell ltmain to make .lib files, not .a files.
14590 libext=lib
14591 # Tell ltmain to make .dll files, not .so files.
14592 shrext_cmds=".dll"
14593 # FIXME: Setting linknames here is a bad hack.
14594 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14595 # The linker will automatically build a .lib file if we build a DLL.
14596 old_archive_From_new_cmds_F77='true'
14597 # FIXME: Should let the user specify the lib program.
14598 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14599 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14600 enable_shared_with_static_runtimes_F77=yes
14601 ;;
14602
14603 darwin* | rhapsody*)
14604 case $host_os in
14605 rhapsody* | darwin1.[012])
14606 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14607 ;;
14608 *) # Darwin 1.3 on
14609 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14610 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14611 else
14612 case ${MACOSX_DEPLOYMENT_TARGET} in
14613 10.[012])
14614 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14615 ;;
14616 10.*)
14617 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14618 ;;
14619 esac
14620 fi
14621 ;;
14622 esac
14623 archive_cmds_need_lc_F77=no
14624 hardcode_direct_F77=no
14625 hardcode_automatic_F77=yes
14626 hardcode_shlibpath_var_F77=unsupported
14627 whole_archive_flag_spec_F77=''
14628 link_all_deplibs_F77=yes
14629 if test "$GCC" = yes ; then
14630 output_verbose_link_cmd='echo'
14631 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14632 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14633 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14634 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14635 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}'
14636 else
14637 case $cc_basename in
14638 xlc*)
14639 output_verbose_link_cmd='echo'
14640 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14641 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14642 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14643 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14644 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}'
14645 ;;
14646 *)
14647 ld_shlibs_F77=no
14648 ;;
14649 esac
14650 fi
14651 ;;
14652
14653 dgux*)
14654 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655 hardcode_libdir_flag_spec_F77='-L$libdir'
14656 hardcode_shlibpath_var_F77=no
14657 ;;
14658
14659 freebsd1*)
14660 ld_shlibs_F77=no
14661 ;;
14662
14663 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14664 # support. Future versions do this automatically, but an explicit c++rt0.o
14665 # does not break anything, and helps significantly (at the cost of a little
14666 # extra space).
14667 freebsd2.2*)
14668 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14669 hardcode_libdir_flag_spec_F77='-R$libdir'
14670 hardcode_direct_F77=yes
14671 hardcode_shlibpath_var_F77=no
14672 ;;
14673
14674 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14675 freebsd2*)
14676 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_direct_F77=yes
14678 hardcode_minus_L_F77=yes
14679 hardcode_shlibpath_var_F77=no
14680 ;;
14681
14682 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14683 freebsd* | kfreebsd*-gnu | dragonfly*)
14684 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14685 hardcode_libdir_flag_spec_F77='-R$libdir'
14686 hardcode_direct_F77=yes
14687 hardcode_shlibpath_var_F77=no
14688 ;;
14689
14690 hpux9*)
14691 if test "$GCC" = yes; then
14692 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'
14693 else
14694 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'
14695 fi
14696 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14697 hardcode_libdir_separator_F77=:
14698 hardcode_direct_F77=yes
14699
14700 # hardcode_minus_L: Not really in the search PATH,
14701 # but as the default location of the library.
14702 hardcode_minus_L_F77=yes
14703 export_dynamic_flag_spec_F77='${wl}-E'
14704 ;;
14705
14706 hpux10*)
14707 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14708 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14709 else
14710 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14711 fi
14712 if test "$with_gnu_ld" = no; then
14713 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14714 hardcode_libdir_separator_F77=:
14715
14716 hardcode_direct_F77=yes
14717 export_dynamic_flag_spec_F77='${wl}-E'
14718
14719 # hardcode_minus_L: Not really in the search PATH,
14720 # but as the default location of the library.
14721 hardcode_minus_L_F77=yes
14722 fi
14723 ;;
14724
14725 hpux11*)
14726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14727 case $host_cpu in
14728 hppa*64*)
14729 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14730 ;;
14731 ia64*)
14732 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14733 ;;
14734 *)
14735 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14736 ;;
14737 esac
14738 else
14739 case $host_cpu in
14740 hppa*64*)
14741 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14742 ;;
14743 ia64*)
14744 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14745 ;;
14746 *)
14747 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14748 ;;
14749 esac
14750 fi
14751 if test "$with_gnu_ld" = no; then
14752 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14753 hardcode_libdir_separator_F77=:
14754
14755 case $host_cpu in
14756 hppa*64*|ia64*)
14757 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14758 hardcode_direct_F77=no
14759 hardcode_shlibpath_var_F77=no
14760 ;;
14761 *)
14762 hardcode_direct_F77=yes
14763 export_dynamic_flag_spec_F77='${wl}-E'
14764
14765 # hardcode_minus_L: Not really in the search PATH,
14766 # but as the default location of the library.
14767 hardcode_minus_L_F77=yes
14768 ;;
14769 esac
14770 fi
14771 ;;
14772
14773 irix5* | irix6* | nonstopux*)
14774 if test "$GCC" = yes; then
14775 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'
14776 else
14777 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'
14778 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14779 fi
14780 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14781 hardcode_libdir_separator_F77=:
14782 link_all_deplibs_F77=yes
14783 ;;
14784
14785 netbsd*)
14786 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14787 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14788 else
14789 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14790 fi
14791 hardcode_libdir_flag_spec_F77='-R$libdir'
14792 hardcode_direct_F77=yes
14793 hardcode_shlibpath_var_F77=no
14794 ;;
14795
14796 newsos6)
14797 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14798 hardcode_direct_F77=yes
14799 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14800 hardcode_libdir_separator_F77=:
14801 hardcode_shlibpath_var_F77=no
14802 ;;
14803
14804 openbsd*)
14805 hardcode_direct_F77=yes
14806 hardcode_shlibpath_var_F77=no
14807 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14808 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14809 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14810 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14811 export_dynamic_flag_spec_F77='${wl}-E'
14812 else
14813 case $host_os in
14814 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14815 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816 hardcode_libdir_flag_spec_F77='-R$libdir'
14817 ;;
14818 *)
14819 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14820 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14821 ;;
14822 esac
14823 fi
14824 ;;
14825
14826 os2*)
14827 hardcode_libdir_flag_spec_F77='-L$libdir'
14828 hardcode_minus_L_F77=yes
14829 allow_undefined_flag_F77=unsupported
14830 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'
14831 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14832 ;;
14833
14834 osf3*)
14835 if test "$GCC" = yes; then
14836 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14837 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'
14838 else
14839 allow_undefined_flag_F77=' -expect_unresolved \*'
14840 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'
14841 fi
14842 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14843 hardcode_libdir_separator_F77=:
14844 ;;
14845
14846 osf4* | osf5*) # as osf3* with the addition of -msym flag
14847 if test "$GCC" = yes; then
14848 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14849 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'
14850 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14851 else
14852 allow_undefined_flag_F77=' -expect_unresolved \*'
14853 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'
14854 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~
14855 $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'
14856
14857 # Both c and cxx compiler support -rpath directly
14858 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14859 fi
14860 hardcode_libdir_separator_F77=:
14861 ;;
14862
14863 solaris*)
14864 no_undefined_flag_F77=' -z text'
14865 if test "$GCC" = yes; then
14866 wlarc='${wl}'
14867 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14868 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14869 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14870 else
14871 wlarc=''
14872 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14875 fi
14876 hardcode_libdir_flag_spec_F77='-R$libdir'
14877 hardcode_shlibpath_var_F77=no
14878 case $host_os in
14879 solaris2.[0-5] | solaris2.[0-5].*) ;;
14880 *)
14881 # The compiler driver will combine linker options so we
14882 # cannot just pass the convience library names through
14883 # without $wl, iff we do not link with $LD.
14884 # Luckily, gcc supports the same syntax we need for Sun Studio.
14885 # Supported since Solaris 2.6 (maybe 2.5.1?)
14886 case $wlarc in
14887 '')
14888 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14889 *)
14890 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14891 esac ;;
14892 esac
14893 link_all_deplibs_F77=yes
14894 ;;
14895
14896 sunos4*)
14897 if test "x$host_vendor" = xsequent; then
14898 # Use $CC to link under sequent, because it throws in some extra .o
14899 # files that make .init and .fini sections work.
14900 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14901 else
14902 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14903 fi
14904 hardcode_libdir_flag_spec_F77='-L$libdir'
14905 hardcode_direct_F77=yes
14906 hardcode_minus_L_F77=yes
14907 hardcode_shlibpath_var_F77=no
14908 ;;
14909
14910 sysv4)
14911 case $host_vendor in
14912 sni)
14913 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14914 hardcode_direct_F77=yes # is this really true???
14915 ;;
14916 siemens)
14917 ## LD is ld it makes a PLAMLIB
14918 ## CC just makes a GrossModule.
14919 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14920 reload_cmds_F77='$CC -r -o $output$reload_objs'
14921 hardcode_direct_F77=no
14922 ;;
14923 motorola)
14924 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14925 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14926 ;;
14927 esac
14928 runpath_var='LD_RUN_PATH'
14929 hardcode_shlibpath_var_F77=no
14930 ;;
14931
14932 sysv4.3*)
14933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934 hardcode_shlibpath_var_F77=no
14935 export_dynamic_flag_spec_F77='-Bexport'
14936 ;;
14937
14938 sysv4*MP*)
14939 if test -d /usr/nec; then
14940 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14941 hardcode_shlibpath_var_F77=no
14942 runpath_var=LD_RUN_PATH
14943 hardcode_runpath_var=yes
14944 ld_shlibs_F77=yes
14945 fi
14946 ;;
14947
14948 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14949 no_undefined_flag_F77='${wl}-z,text'
14950 archive_cmds_need_lc_F77=no
14951 hardcode_shlibpath_var_F77=no
14952 runpath_var='LD_RUN_PATH'
14953
14954 if test "$GCC" = yes; then
14955 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14957 else
14958 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 fi
14961 ;;
14962
14963 sysv5* | sco3.2v5* | sco5v6*)
14964 # Note: We can NOT use -z defs as we might desire, because we do not
14965 # link with -lc, and that would cause any symbols used from libc to
14966 # always be unresolved, which means just about no library would
14967 # ever link correctly. If we're not using GNU ld we use -z text
14968 # though, which does catch some bad symbols but isn't as heavy-handed
14969 # as -z defs.
14970 no_undefined_flag_F77='${wl}-z,text'
14971 allow_undefined_flag_F77='${wl}-z,nodefs'
14972 archive_cmds_need_lc_F77=no
14973 hardcode_shlibpath_var_F77=no
14974 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14975 hardcode_libdir_separator_F77=':'
14976 link_all_deplibs_F77=yes
14977 export_dynamic_flag_spec_F77='${wl}-Bexport'
14978 runpath_var='LD_RUN_PATH'
14979
14980 if test "$GCC" = yes; then
14981 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14983 else
14984 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 fi
14987 ;;
14988
14989 uts4*)
14990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_libdir_flag_spec_F77='-L$libdir'
14992 hardcode_shlibpath_var_F77=no
14993 ;;
14994
14995 *)
14996 ld_shlibs_F77=no
14997 ;;
14998 esac
14999 fi
15000
15001 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15002 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15003 test "$ld_shlibs_F77" = no && can_build_shared=no
15004
15005 #
15006 # Do we need to explicitly link libc?
15007 #
15008 case "x$archive_cmds_need_lc_F77" in
15009 x|xyes)
15010 # Assume -lc should be added
15011 archive_cmds_need_lc_F77=yes
15012
15013 if test "$enable_shared" = yes && test "$GCC" = yes; then
15014 case $archive_cmds_F77 in
15015 *'~'*)
15016 # FIXME: we may have to deal with multi-command sequences.
15017 ;;
15018 '$CC '*)
15019 # Test whether the compiler implicitly links with -lc since on some
15020 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15021 # to ld, don't add -lc before -lgcc.
15022 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15023 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15024 $rm conftest*
15025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15026
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028 (eval $ac_compile) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); } 2>conftest.err; then
15032 soname=conftest
15033 lib=conftest
15034 libobjs=conftest.$ac_objext
15035 deplibs=
15036 wl=$lt_prog_compiler_wl_F77
15037 pic_flag=$lt_prog_compiler_pic_F77
15038 compiler_flags=-v
15039 linker_flags=-v
15040 verstring=
15041 output_objdir=.
15042 libname=conftest
15043 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15044 allow_undefined_flag_F77=
15045 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15046 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15047 ac_status=$?
15048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049 (exit $ac_status); }
15050 then
15051 archive_cmds_need_lc_F77=no
15052 else
15053 archive_cmds_need_lc_F77=yes
15054 fi
15055 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15056 else
15057 cat conftest.err 1>&5
15058 fi
15059 $rm conftest*
15060 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15061 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15062 ;;
15063 esac
15064 fi
15065 ;;
15066 esac
15067
15068 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15069 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15070 library_names_spec=
15071 libname_spec='lib$name'
15072 soname_spec=
15073 shrext_cmds=".so"
15074 postinstall_cmds=
15075 postuninstall_cmds=
15076 finish_cmds=
15077 finish_eval=
15078 shlibpath_var=
15079 shlibpath_overrides_runpath=unknown
15080 version_type=none
15081 dynamic_linker="$host_os ld.so"
15082 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15083 if test "$GCC" = yes; then
15084 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15085 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15086 # if the path contains ";" then we assume it to be the separator
15087 # otherwise default to the standard path separator (i.e. ":") - it is
15088 # assumed that no part of a normal pathname contains ";" but that should
15089 # okay in the real world where ";" in dirpaths is itself problematic.
15090 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15091 else
15092 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15093 fi
15094 else
15095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15096 fi
15097 need_lib_prefix=unknown
15098 hardcode_into_libs=no
15099
15100 # when you set need_version to no, make sure it does not cause -set_version
15101 # flags to be left without arguments
15102 need_version=unknown
15103
15104 case $host_os in
15105 aix3*)
15106 version_type=linux
15107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15108 shlibpath_var=LIBPATH
15109
15110 # AIX 3 has no versioning support, so we append a major version to the name.
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 ;;
15113
15114 aix4* | aix5*)
15115 version_type=linux
15116 need_lib_prefix=no
15117 need_version=no
15118 hardcode_into_libs=yes
15119 if test "$host_cpu" = ia64; then
15120 # AIX 5 supports IA64
15121 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15122 shlibpath_var=LD_LIBRARY_PATH
15123 else
15124 # With GCC up to 2.95.x, collect2 would create an import file
15125 # for dependence libraries. The import file would start with
15126 # the line `#! .'. This would cause the generated library to
15127 # depend on `.', always an invalid library. This was fixed in
15128 # development snapshots of GCC prior to 3.0.
15129 case $host_os in
15130 aix4 | aix4.[01] | aix4.[01].*)
15131 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15132 echo ' yes '
15133 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15134 :
15135 else
15136 can_build_shared=no
15137 fi
15138 ;;
15139 esac
15140 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15141 # soname into executable. Probably we can add versioning support to
15142 # collect2, so additional links can be useful in future.
15143 if test "$aix_use_runtimelinking" = yes; then
15144 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15145 # instead of lib<name>.a to let people know that these are not
15146 # typical AIX shared libraries.
15147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15148 else
15149 # We preserve .a as extension for shared libraries through AIX4.2
15150 # and later when we are not doing run time linking.
15151 library_names_spec='${libname}${release}.a $libname.a'
15152 soname_spec='${libname}${release}${shared_ext}$major'
15153 fi
15154 shlibpath_var=LIBPATH
15155 fi
15156 ;;
15157
15158 amigaos*)
15159 library_names_spec='$libname.ixlibrary $libname.a'
15160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15161 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'
15162 ;;
15163
15164 beos*)
15165 library_names_spec='${libname}${shared_ext}'
15166 dynamic_linker="$host_os ld.so"
15167 shlibpath_var=LIBRARY_PATH
15168 ;;
15169
15170 bsdi[45]*)
15171 version_type=linux
15172 need_version=no
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 soname_spec='${libname}${release}${shared_ext}$major'
15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15179 # the default ld.so.conf also contains /usr/contrib/lib and
15180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15181 # libtool to hard-code these into programs
15182 ;;
15183
15184 cygwin* | mingw* | pw32*)
15185 version_type=windows
15186 shrext_cmds=".dll"
15187 need_version=no
15188 need_lib_prefix=no
15189
15190 case $GCC,$host_os in
15191 yes,cygwin* | yes,mingw* | yes,pw32*)
15192 library_names_spec='$libname.dll.a'
15193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15194 postinstall_cmds='base_file=`basename \${file}`~
15195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15196 dldir=$destdir/`dirname \$dlpath`~
15197 test -d \$dldir || mkdir -p \$dldir~
15198 $install_prog $dir/$dlname \$dldir/$dlname~
15199 chmod a+x \$dldir/$dlname'
15200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15201 dlpath=$dir/\$dldll~
15202 $rm \$dlpath'
15203 shlibpath_overrides_runpath=yes
15204
15205 case $host_os in
15206 cygwin*)
15207 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15208 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15209 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15210 ;;
15211 mingw*)
15212 # MinGW DLLs use traditional 'lib' prefix
15213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15214 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15215 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15216 # It is most probably a Windows format PATH printed by
15217 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15218 # path with ; separators, and with drive letters. We can handle the
15219 # drive letters (cygwin fileutils understands them), so leave them,
15220 # especially as we might pass files found there to a mingw objdump,
15221 # which wouldn't understand a cygwinified path. Ahh.
15222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15223 else
15224 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15225 fi
15226 ;;
15227 pw32*)
15228 # pw32 DLLs use 'pw' prefix rather than 'lib'
15229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15230 ;;
15231 esac
15232 ;;
15233
15234 *)
15235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15236 ;;
15237 esac
15238 dynamic_linker='Win32 ld.exe'
15239 # FIXME: first we should search . and the directory the executable is in
15240 shlibpath_var=PATH
15241 ;;
15242
15243 darwin* | rhapsody*)
15244 dynamic_linker="$host_os dyld"
15245 version_type=darwin
15246 need_lib_prefix=no
15247 need_version=no
15248 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15249 soname_spec='${libname}${release}${major}$shared_ext'
15250 shlibpath_overrides_runpath=yes
15251 shlibpath_var=DYLD_LIBRARY_PATH
15252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15253 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15254 if test "$GCC" = yes; then
15255 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15256 else
15257 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15258 fi
15259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15260 ;;
15261
15262 dgux*)
15263 version_type=linux
15264 need_lib_prefix=no
15265 need_version=no
15266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15267 soname_spec='${libname}${release}${shared_ext}$major'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 ;;
15270
15271 freebsd1*)
15272 dynamic_linker=no
15273 ;;
15274
15275 kfreebsd*-gnu)
15276 version_type=linux
15277 need_lib_prefix=no
15278 need_version=no
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=no
15283 hardcode_into_libs=yes
15284 dynamic_linker='GNU ld.so'
15285 ;;
15286
15287 freebsd* | dragonfly*)
15288 # DragonFly does not have aout. When/if they implement a new
15289 # versioning mechanism, adjust this.
15290 if test -x /usr/bin/objformat; then
15291 objformat=`/usr/bin/objformat`
15292 else
15293 case $host_os in
15294 freebsd[123]*) objformat=aout ;;
15295 *) objformat=elf ;;
15296 esac
15297 fi
15298 version_type=freebsd-$objformat
15299 case $version_type in
15300 freebsd-elf*)
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15302 need_version=no
15303 need_lib_prefix=no
15304 ;;
15305 freebsd-*)
15306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15307 need_version=yes
15308 ;;
15309 esac
15310 shlibpath_var=LD_LIBRARY_PATH
15311 case $host_os in
15312 freebsd2*)
15313 shlibpath_overrides_runpath=yes
15314 ;;
15315 freebsd3.[01]* | freebsdelf3.[01]*)
15316 shlibpath_overrides_runpath=yes
15317 hardcode_into_libs=yes
15318 ;;
15319 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15320 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15321 shlibpath_overrides_runpath=no
15322 hardcode_into_libs=yes
15323 ;;
15324 freebsd*) # from 4.6 on
15325 shlibpath_overrides_runpath=yes
15326 hardcode_into_libs=yes
15327 ;;
15328 esac
15329 ;;
15330
15331 gnu*)
15332 version_type=linux
15333 need_lib_prefix=no
15334 need_version=no
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 hardcode_into_libs=yes
15339 ;;
15340
15341 hpux9* | hpux10* | hpux11*)
15342 # Give a soname corresponding to the major version so that dld.sl refuses to
15343 # link against other versions.
15344 version_type=sunos
15345 need_lib_prefix=no
15346 need_version=no
15347 case $host_cpu in
15348 ia64*)
15349 shrext_cmds='.so'
15350 hardcode_into_libs=yes
15351 dynamic_linker="$host_os dld.so"
15352 shlibpath_var=LD_LIBRARY_PATH
15353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355 soname_spec='${libname}${release}${shared_ext}$major'
15356 if test "X$HPUX_IA64_MODE" = X32; then
15357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15358 else
15359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15360 fi
15361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15362 ;;
15363 hppa*64*)
15364 shrext_cmds='.sl'
15365 hardcode_into_libs=yes
15366 dynamic_linker="$host_os dld.sl"
15367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15373 ;;
15374 *)
15375 shrext_cmds='.sl'
15376 dynamic_linker="$host_os dld.sl"
15377 shlibpath_var=SHLIB_PATH
15378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 ;;
15382 esac
15383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15384 postinstall_cmds='chmod 555 $lib'
15385 ;;
15386
15387 interix3*)
15388 version_type=linux
15389 need_lib_prefix=no
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 shlibpath_overrides_runpath=no
15396 hardcode_into_libs=yes
15397 ;;
15398
15399 irix5* | irix6* | nonstopux*)
15400 case $host_os in
15401 nonstopux*) version_type=nonstopux ;;
15402 *)
15403 if test "$lt_cv_prog_gnu_ld" = yes; then
15404 version_type=linux
15405 else
15406 version_type=irix
15407 fi ;;
15408 esac
15409 need_lib_prefix=no
15410 need_version=no
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15413 case $host_os in
15414 irix5* | nonstopux*)
15415 libsuff= shlibsuff=
15416 ;;
15417 *)
15418 case $LD in # libtool.m4 will add one of these switches to LD
15419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15420 libsuff= shlibsuff= libmagic=32-bit;;
15421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15422 libsuff=32 shlibsuff=N32 libmagic=N32;;
15423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15425 *) libsuff= shlibsuff= libmagic=never-match;;
15426 esac
15427 ;;
15428 esac
15429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15430 shlibpath_overrides_runpath=no
15431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15433 hardcode_into_libs=yes
15434 ;;
15435
15436 # No shared lib support for Linux oldld, aout, or coff.
15437 linux*oldld* | linux*aout* | linux*coff*)
15438 dynamic_linker=no
15439 ;;
15440
15441 # This must be Linux ELF.
15442 linux*)
15443 version_type=linux
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15447 soname_spec='${libname}${release}${shared_ext}$major'
15448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15449 shlibpath_var=LD_LIBRARY_PATH
15450 shlibpath_overrides_runpath=no
15451 # This implies no fast_install, which is unacceptable.
15452 # Some rework will be needed to allow for fast_install
15453 # before this can be enabled.
15454 hardcode_into_libs=yes
15455
15456 # Append ld.so.conf contents to the search path
15457 if test -f /etc/ld.so.conf; then
15458 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15460 fi
15461
15462 # We used to test for /lib/ld.so.1 and disable shared libraries on
15463 # powerpc, because MkLinux only supported shared libraries with the
15464 # GNU dynamic linker. Since this was broken with cross compilers,
15465 # most powerpc-linux boxes support dynamic linking these days and
15466 # people can always --disable-shared, the test was removed, and we
15467 # assume the GNU/Linux dynamic linker is in use.
15468 dynamic_linker='GNU/Linux ld.so'
15469 ;;
15470
15471 knetbsd*-gnu)
15472 version_type=linux
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15480 dynamic_linker='GNU ld.so'
15481 ;;
15482
15483 netbsd*)
15484 version_type=sunos
15485 need_lib_prefix=no
15486 need_version=no
15487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15490 dynamic_linker='NetBSD (a.out) ld.so'
15491 else
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 dynamic_linker='NetBSD ld.elf_so'
15495 fi
15496 shlibpath_var=LD_LIBRARY_PATH
15497 shlibpath_overrides_runpath=yes
15498 hardcode_into_libs=yes
15499 ;;
15500
15501 newsos6)
15502 version_type=linux
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 shlibpath_overrides_runpath=yes
15506 ;;
15507
15508 nto-qnx*)
15509 version_type=linux
15510 need_lib_prefix=no
15511 need_version=no
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 shlibpath_overrides_runpath=yes
15516 ;;
15517
15518 openbsd*)
15519 version_type=sunos
15520 sys_lib_dlsearch_path_spec="/usr/lib"
15521 need_lib_prefix=no
15522 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15523 case $host_os in
15524 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15525 *) need_version=no ;;
15526 esac
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15529 shlibpath_var=LD_LIBRARY_PATH
15530 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15531 case $host_os in
15532 openbsd2.[89] | openbsd2.[89].*)
15533 shlibpath_overrides_runpath=no
15534 ;;
15535 *)
15536 shlibpath_overrides_runpath=yes
15537 ;;
15538 esac
15539 else
15540 shlibpath_overrides_runpath=yes
15541 fi
15542 ;;
15543
15544 os2*)
15545 libname_spec='$name'
15546 shrext_cmds=".dll"
15547 need_lib_prefix=no
15548 library_names_spec='$libname${shared_ext} $libname.a'
15549 dynamic_linker='OS/2 ld.exe'
15550 shlibpath_var=LIBPATH
15551 ;;
15552
15553 osf3* | osf4* | osf5*)
15554 version_type=osf
15555 need_lib_prefix=no
15556 need_version=no
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15561 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15562 ;;
15563
15564 solaris*)
15565 version_type=linux
15566 need_lib_prefix=no
15567 need_version=no
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 hardcode_into_libs=yes
15573 # ldd complains unless libraries are executable
15574 postinstall_cmds='chmod +x $lib'
15575 ;;
15576
15577 sunos4*)
15578 version_type=sunos
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15580 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=yes
15583 if test "$with_gnu_ld" = yes; then
15584 need_lib_prefix=no
15585 fi
15586 need_version=yes
15587 ;;
15588
15589 sysv4 | sysv4.3*)
15590 version_type=linux
15591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 case $host_vendor in
15595 sni)
15596 shlibpath_overrides_runpath=no
15597 need_lib_prefix=no
15598 export_dynamic_flag_spec='${wl}-Blargedynsym'
15599 runpath_var=LD_RUN_PATH
15600 ;;
15601 siemens)
15602 need_lib_prefix=no
15603 ;;
15604 motorola)
15605 need_lib_prefix=no
15606 need_version=no
15607 shlibpath_overrides_runpath=no
15608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15609 ;;
15610 esac
15611 ;;
15612
15613 sysv4*MP*)
15614 if test -d /usr/nec ;then
15615 version_type=linux
15616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15617 soname_spec='$libname${shared_ext}.$major'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 fi
15620 ;;
15621
15622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15623 version_type=freebsd-elf
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 hardcode_into_libs=yes
15630 if test "$with_gnu_ld" = yes; then
15631 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15632 shlibpath_overrides_runpath=no
15633 else
15634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15635 shlibpath_overrides_runpath=yes
15636 case $host_os in
15637 sco3.2v5*)
15638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15639 ;;
15640 esac
15641 fi
15642 sys_lib_dlsearch_path_spec='/usr/lib'
15643 ;;
15644
15645 uts4*)
15646 version_type=linux
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 shlibpath_var=LD_LIBRARY_PATH
15650 ;;
15651
15652 *)
15653 dynamic_linker=no
15654 ;;
15655 esac
15656 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15657 echo "${ECHO_T}$dynamic_linker" >&6; }
15658 test "$dynamic_linker" = no && can_build_shared=no
15659
15660 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15661 if test "$GCC" = yes; then
15662 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15663 fi
15664
15665 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15666 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15667 hardcode_action_F77=
15668 if test -n "$hardcode_libdir_flag_spec_F77" || \
15669 test -n "$runpath_var_F77" || \
15670 test "X$hardcode_automatic_F77" = "Xyes" ; then
15671
15672 # We can hardcode non-existant directories.
15673 if test "$hardcode_direct_F77" != no &&
15674 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15675 # have to relink, otherwise we might link with an installed library
15676 # when we should be linking with a yet-to-be-installed one
15677 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15678 test "$hardcode_minus_L_F77" != no; then
15679 # Linking always hardcodes the temporary library directory.
15680 hardcode_action_F77=relink
15681 else
15682 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15683 hardcode_action_F77=immediate
15684 fi
15685 else
15686 # We cannot hardcode anything, or else we can only hardcode existing
15687 # directories.
15688 hardcode_action_F77=unsupported
15689 fi
15690 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15691 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15692
15693 if test "$hardcode_action_F77" = relink; then
15694 # Fast installation is not supported
15695 enable_fast_install=no
15696 elif test "$shlibpath_overrides_runpath" = yes ||
15697 test "$enable_shared" = no; then
15698 # Fast installation is not necessary
15699 enable_fast_install=needless
15700 fi
15701
15702
15703 # The else clause should only fire when bootstrapping the
15704 # libtool distribution, otherwise you forgot to ship ltmain.sh
15705 # with your package, and you will get complaints that there are
15706 # no rules to generate ltmain.sh.
15707 if test -f "$ltmain"; then
15708 # See if we are running on zsh, and set the options which allow our commands through
15709 # without removal of \ escapes.
15710 if test -n "${ZSH_VERSION+set}" ; then
15711 setopt NO_GLOB_SUBST
15712 fi
15713 # Now quote all the things that may contain metacharacters while being
15714 # careful not to overquote the AC_SUBSTed values. We take copies of the
15715 # variables and quote the copies for generation of the libtool script.
15716 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15717 SED SHELL STRIP \
15718 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15719 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15720 deplibs_check_method reload_flag reload_cmds need_locks \
15721 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15722 lt_cv_sys_global_symbol_to_c_name_address \
15723 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15724 old_postinstall_cmds old_postuninstall_cmds \
15725 compiler_F77 \
15726 CC_F77 \
15727 LD_F77 \
15728 lt_prog_compiler_wl_F77 \
15729 lt_prog_compiler_pic_F77 \
15730 lt_prog_compiler_static_F77 \
15731 lt_prog_compiler_no_builtin_flag_F77 \
15732 export_dynamic_flag_spec_F77 \
15733 thread_safe_flag_spec_F77 \
15734 whole_archive_flag_spec_F77 \
15735 enable_shared_with_static_runtimes_F77 \
15736 old_archive_cmds_F77 \
15737 old_archive_from_new_cmds_F77 \
15738 predep_objects_F77 \
15739 postdep_objects_F77 \
15740 predeps_F77 \
15741 postdeps_F77 \
15742 compiler_lib_search_path_F77 \
15743 archive_cmds_F77 \
15744 archive_expsym_cmds_F77 \
15745 postinstall_cmds_F77 \
15746 postuninstall_cmds_F77 \
15747 old_archive_from_expsyms_cmds_F77 \
15748 allow_undefined_flag_F77 \
15749 no_undefined_flag_F77 \
15750 export_symbols_cmds_F77 \
15751 hardcode_libdir_flag_spec_F77 \
15752 hardcode_libdir_flag_spec_ld_F77 \
15753 hardcode_libdir_separator_F77 \
15754 hardcode_automatic_F77 \
15755 module_cmds_F77 \
15756 module_expsym_cmds_F77 \
15757 lt_cv_prog_compiler_c_o_F77 \
15758 exclude_expsyms_F77 \
15759 include_expsyms_F77; do
15760
15761 case $var in
15762 old_archive_cmds_F77 | \
15763 old_archive_from_new_cmds_F77 | \
15764 archive_cmds_F77 | \
15765 archive_expsym_cmds_F77 | \
15766 module_cmds_F77 | \
15767 module_expsym_cmds_F77 | \
15768 old_archive_from_expsyms_cmds_F77 | \
15769 export_symbols_cmds_F77 | \
15770 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15771 postinstall_cmds | postuninstall_cmds | \
15772 old_postinstall_cmds | old_postuninstall_cmds | \
15773 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15774 # Double-quote double-evaled strings.
15775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15776 ;;
15777 *)
15778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15779 ;;
15780 esac
15781 done
15782
15783 case $lt_echo in
15784 *'\$0 --fallback-echo"')
15785 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15786 ;;
15787 esac
15788
15789 cfgfile="$ofile"
15790
15791 cat <<__EOF__ >> "$cfgfile"
15792 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15793
15794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15795
15796 # Shell to use when invoking shell scripts.
15797 SHELL=$lt_SHELL
15798
15799 # Whether or not to build shared libraries.
15800 build_libtool_libs=$enable_shared
15801
15802 # Whether or not to build static libraries.
15803 build_old_libs=$enable_static
15804
15805 # Whether or not to add -lc for building shared libraries.
15806 build_libtool_need_lc=$archive_cmds_need_lc_F77
15807
15808 # Whether or not to disallow shared libs when runtime libs are static
15809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15810
15811 # Whether or not to optimize for fast installation.
15812 fast_install=$enable_fast_install
15813
15814 # The host system.
15815 host_alias=$host_alias
15816 host=$host
15817 host_os=$host_os
15818
15819 # The build system.
15820 build_alias=$build_alias
15821 build=$build
15822 build_os=$build_os
15823
15824 # An echo program that does not interpret backslashes.
15825 echo=$lt_echo
15826
15827 # The archiver.
15828 AR=$lt_AR
15829 AR_FLAGS=$lt_AR_FLAGS
15830
15831 # A C compiler.
15832 LTCC=$lt_LTCC
15833
15834 # LTCC compiler flags.
15835 LTCFLAGS=$lt_LTCFLAGS
15836
15837 # A language-specific compiler.
15838 CC=$lt_compiler_F77
15839
15840 # Is the compiler the GNU C compiler?
15841 with_gcc=$GCC_F77
15842
15843 # An ERE matcher.
15844 EGREP=$lt_EGREP
15845
15846 # The linker used to build libraries.
15847 LD=$lt_LD_F77
15848
15849 # Whether we need hard or soft links.
15850 LN_S=$lt_LN_S
15851
15852 # A BSD-compatible nm program.
15853 NM=$lt_NM
15854
15855 # A symbol stripping program
15856 STRIP=$lt_STRIP
15857
15858 # Used to examine libraries when file_magic_cmd begins "file"
15859 MAGIC_CMD=$MAGIC_CMD
15860
15861 # Used on cygwin: DLL creation program.
15862 DLLTOOL="$DLLTOOL"
15863
15864 # Used on cygwin: object dumper.
15865 OBJDUMP="$OBJDUMP"
15866
15867 # Used on cygwin: assembler.
15868 AS="$AS"
15869
15870 # The name of the directory that contains temporary libtool files.
15871 objdir=$objdir
15872
15873 # How to create reloadable object files.
15874 reload_flag=$lt_reload_flag
15875 reload_cmds=$lt_reload_cmds
15876
15877 # How to pass a linker flag through the compiler.
15878 wl=$lt_lt_prog_compiler_wl_F77
15879
15880 # Object file suffix (normally "o").
15881 objext="$ac_objext"
15882
15883 # Old archive suffix (normally "a").
15884 libext="$libext"
15885
15886 # Shared library suffix (normally ".so").
15887 shrext_cmds='$shrext_cmds'
15888
15889 # Executable file suffix (normally "").
15890 exeext="$exeext"
15891
15892 # Additional compiler flags for building library objects.
15893 pic_flag=$lt_lt_prog_compiler_pic_F77
15894 pic_mode=$pic_mode
15895
15896 # What is the maximum length of a command?
15897 max_cmd_len=$lt_cv_sys_max_cmd_len
15898
15899 # Does compiler simultaneously support -c and -o options?
15900 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15901
15902 # Must we lock files when doing compilation?
15903 need_locks=$lt_need_locks
15904
15905 # Do we need the lib prefix for modules?
15906 need_lib_prefix=$need_lib_prefix
15907
15908 # Do we need a version for libraries?
15909 need_version=$need_version
15910
15911 # Whether dlopen is supported.
15912 dlopen_support=$enable_dlopen
15913
15914 # Whether dlopen of programs is supported.
15915 dlopen_self=$enable_dlopen_self
15916
15917 # Whether dlopen of statically linked programs is supported.
15918 dlopen_self_static=$enable_dlopen_self_static
15919
15920 # Compiler flag to prevent dynamic linking.
15921 link_static_flag=$lt_lt_prog_compiler_static_F77
15922
15923 # Compiler flag to turn off builtin functions.
15924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15925
15926 # Compiler flag to allow reflexive dlopens.
15927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15928
15929 # Compiler flag to generate shared objects directly from archives.
15930 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15931
15932 # Compiler flag to generate thread-safe objects.
15933 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15934
15935 # Library versioning type.
15936 version_type=$version_type
15937
15938 # Format of library name prefix.
15939 libname_spec=$lt_libname_spec
15940
15941 # List of archive names. First name is the real one, the rest are links.
15942 # The last name is the one that the linker finds with -lNAME.
15943 library_names_spec=$lt_library_names_spec
15944
15945 # The coded name of the library, if different from the real name.
15946 soname_spec=$lt_soname_spec
15947
15948 # Commands used to build and install an old-style archive.
15949 RANLIB=$lt_RANLIB
15950 old_archive_cmds=$lt_old_archive_cmds_F77
15951 old_postinstall_cmds=$lt_old_postinstall_cmds
15952 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15953
15954 # Create an old-style archive from a shared archive.
15955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15956
15957 # Create a temporary old-style archive to link instead of a shared archive.
15958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15959
15960 # Commands used to build and install a shared archive.
15961 archive_cmds=$lt_archive_cmds_F77
15962 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15963 postinstall_cmds=$lt_postinstall_cmds
15964 postuninstall_cmds=$lt_postuninstall_cmds
15965
15966 # Commands used to build a loadable module (assumed same as above if empty)
15967 module_cmds=$lt_module_cmds_F77
15968 module_expsym_cmds=$lt_module_expsym_cmds_F77
15969
15970 # Commands to strip libraries.
15971 old_striplib=$lt_old_striplib
15972 striplib=$lt_striplib
15973
15974 # Dependencies to place before the objects being linked to create a
15975 # shared library.
15976 predep_objects=$lt_predep_objects_F77
15977
15978 # Dependencies to place after the objects being linked to create a
15979 # shared library.
15980 postdep_objects=$lt_postdep_objects_F77
15981
15982 # Dependencies to place before the objects being linked to create a
15983 # shared library.
15984 predeps=$lt_predeps_F77
15985
15986 # Dependencies to place after the objects being linked to create a
15987 # shared library.
15988 postdeps=$lt_postdeps_F77
15989
15990 # The library search path used internally by the compiler when linking
15991 # a shared library.
15992 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15993
15994 # Method to check whether dependent libraries are shared objects.
15995 deplibs_check_method=$lt_deplibs_check_method
15996
15997 # Command to use when deplibs_check_method == file_magic.
15998 file_magic_cmd=$lt_file_magic_cmd
15999
16000 # Flag that allows shared libraries with undefined symbols to be built.
16001 allow_undefined_flag=$lt_allow_undefined_flag_F77
16002
16003 # Flag that forces no undefined symbols.
16004 no_undefined_flag=$lt_no_undefined_flag_F77
16005
16006 # Commands used to finish a libtool library installation in a directory.
16007 finish_cmds=$lt_finish_cmds
16008
16009 # Same as above, but a single script fragment to be evaled but not shown.
16010 finish_eval=$lt_finish_eval
16011
16012 # Take the output of nm and produce a listing of raw symbols and C names.
16013 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16014
16015 # Transform the output of nm in a proper C declaration
16016 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16017
16018 # Transform the output of nm in a C name address pair
16019 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16020
16021 # This is the shared library runtime path variable.
16022 runpath_var=$runpath_var
16023
16024 # This is the shared library path variable.
16025 shlibpath_var=$shlibpath_var
16026
16027 # Is shlibpath searched before the hard-coded library search path?
16028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16029
16030 # How to hardcode a shared library path into an executable.
16031 hardcode_action=$hardcode_action_F77
16032
16033 # Whether we should hardcode library paths into libraries.
16034 hardcode_into_libs=$hardcode_into_libs
16035
16036 # Flag to hardcode \$libdir into a binary during linking.
16037 # This must work even if \$libdir does not exist.
16038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16039
16040 # If ld is used when linking, flag to hardcode \$libdir into
16041 # a binary during linking. This must work even if \$libdir does
16042 # not exist.
16043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16044
16045 # Whether we need a single -rpath flag with a separated argument.
16046 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16047
16048 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16049 # resulting binary.
16050 hardcode_direct=$hardcode_direct_F77
16051
16052 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16053 # resulting binary.
16054 hardcode_minus_L=$hardcode_minus_L_F77
16055
16056 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16057 # the resulting binary.
16058 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16059
16060 # Set to yes if building a shared library automatically hardcodes DIR into the library
16061 # and all subsequent libraries and executables linked against it.
16062 hardcode_automatic=$hardcode_automatic_F77
16063
16064 # Variables whose values should be saved in libtool wrapper scripts and
16065 # restored at relink time.
16066 variables_saved_for_relink="$variables_saved_for_relink"
16067
16068 # Whether libtool must link a program against all its dependency libraries.
16069 link_all_deplibs=$link_all_deplibs_F77
16070
16071 # Compile-time system search path for libraries
16072 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16073
16074 # Run-time system search path for libraries
16075 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16076
16077 # Fix the shell variable \$srcfile for the compiler.
16078 fix_srcfile_path="$fix_srcfile_path_F77"
16079
16080 # Set to yes if exported symbols are required.
16081 always_export_symbols=$always_export_symbols_F77
16082
16083 # The commands to list exported symbols.
16084 export_symbols_cmds=$lt_export_symbols_cmds_F77
16085
16086 # The commands to extract the exported symbol list from a shared archive.
16087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16088
16089 # Symbols that should not be listed in the preloaded symbols.
16090 exclude_expsyms=$lt_exclude_expsyms_F77
16091
16092 # Symbols that must always be exported.
16093 include_expsyms=$lt_include_expsyms_F77
16094
16095 # ### END LIBTOOL TAG CONFIG: $tagname
16096
16097 __EOF__
16098
16099
16100 else
16101 # If there is no Makefile yet, we rely on a make rule to execute
16102 # `config.status --recheck' to rerun these tests and create the
16103 # libtool script then.
16104 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16105 if test -f "$ltmain_in"; then
16106 test -f Makefile && make "$ltmain"
16107 fi
16108 fi
16109
16110
16111 ac_ext=c
16112 ac_cpp='$CPP $CPPFLAGS'
16113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16116
16117 CC="$lt_save_CC"
16118
16119 else
16120 tagname=""
16121 fi
16122 ;;
16123
16124 GCJ)
16125 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16126
16127
16128 # Source file extension for Java test sources.
16129 ac_ext=java
16130
16131 # Object file extension for compiled Java test sources.
16132 objext=o
16133 objext_GCJ=$objext
16134
16135 # Code to be used in simple compile tests
16136 lt_simple_compile_test_code="class foo {}\n"
16137
16138 # Code to be used in simple link tests
16139 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16140
16141 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16142
16143 # If no C compiler was specified, use CC.
16144 LTCC=${LTCC-"$CC"}
16145
16146 # If no C compiler flags were specified, use CFLAGS.
16147 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16148
16149 # Allow CC to be a program name with arguments.
16150 compiler=$CC
16151
16152
16153 # save warnings/boilerplate of simple test code
16154 ac_outfile=conftest.$ac_objext
16155 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16156 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16157 _lt_compiler_boilerplate=`cat conftest.err`
16158 $rm conftest*
16159
16160 ac_outfile=conftest.$ac_objext
16161 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16162 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16163 _lt_linker_boilerplate=`cat conftest.err`
16164 $rm conftest*
16165
16166
16167 # Allow CC to be a program name with arguments.
16168 lt_save_CC="$CC"
16169 CC=${GCJ-"gcj"}
16170 compiler=$CC
16171 compiler_GCJ=$CC
16172 for cc_temp in $compiler""; do
16173 case $cc_temp in
16174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16176 \-*) ;;
16177 *) break;;
16178 esac
16179 done
16180 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16181
16182
16183 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16184 archive_cmds_need_lc_GCJ=no
16185
16186 old_archive_cmds_GCJ=$old_archive_cmds
16187
16188
16189 lt_prog_compiler_no_builtin_flag_GCJ=
16190
16191 if test "$GCC" = yes; then
16192 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16193
16194
16195 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16196 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16197 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16198 echo $ECHO_N "(cached) $ECHO_C" >&6
16199 else
16200 lt_cv_prog_compiler_rtti_exceptions=no
16201 ac_outfile=conftest.$ac_objext
16202 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16203 lt_compiler_flag="-fno-rtti -fno-exceptions"
16204 # Insert the option either (1) after the last *FLAGS variable, or
16205 # (2) before a word containing "conftest.", or (3) at the end.
16206 # Note that $ac_compile itself does not contain backslashes and begins
16207 # with a dollar sign (not a hyphen), so the echo should work correctly.
16208 # The option is referenced via a variable to avoid confusing sed.
16209 lt_compile=`echo "$ac_compile" | $SED \
16210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16212 -e 's:$: $lt_compiler_flag:'`
16213 (eval echo "\"\$as_me:16213: $lt_compile\"" >&5)
16214 (eval "$lt_compile" 2>conftest.err)
16215 ac_status=$?
16216 cat conftest.err >&5
16217 echo "$as_me:16217: \$? = $ac_status" >&5
16218 if (exit $ac_status) && test -s "$ac_outfile"; then
16219 # The compiler can only warn and ignore the option if not recognized
16220 # So say no if there are warnings other than the usual output.
16221 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16224 lt_cv_prog_compiler_rtti_exceptions=yes
16225 fi
16226 fi
16227 $rm conftest*
16228
16229 fi
16230 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16231 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16232
16233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16234 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16235 else
16236 :
16237 fi
16238
16239 fi
16240
16241 lt_prog_compiler_wl_GCJ=
16242 lt_prog_compiler_pic_GCJ=
16243 lt_prog_compiler_static_GCJ=
16244
16245 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16246 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16247
16248 if test "$GCC" = yes; then
16249 lt_prog_compiler_wl_GCJ='-Wl,'
16250 lt_prog_compiler_static_GCJ='-static'
16251
16252 case $host_os in
16253 aix*)
16254 # All AIX code is PIC.
16255 if test "$host_cpu" = ia64; then
16256 # AIX 5 now supports IA64 processor
16257 lt_prog_compiler_static_GCJ='-Bstatic'
16258 fi
16259 ;;
16260
16261 amigaos*)
16262 # FIXME: we need at least 68020 code to build shared libraries, but
16263 # adding the `-m68020' flag to GCC prevents building anything better,
16264 # like `-m68040'.
16265 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16266 ;;
16267
16268 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16269 # PIC is the default for these OSes.
16270 ;;
16271
16272 mingw* | pw32* | os2*)
16273 # This hack is so that the source file can tell whether it is being
16274 # built for inclusion in a dll (and should export symbols for example).
16275 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16276 ;;
16277
16278 darwin* | rhapsody*)
16279 # PIC is the default on this platform
16280 # Common symbols not allowed in MH_DYLIB files
16281 lt_prog_compiler_pic_GCJ='-fno-common'
16282 ;;
16283
16284 interix3*)
16285 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16286 # Instead, we relocate shared libraries at runtime.
16287 ;;
16288
16289 msdosdjgpp*)
16290 # Just because we use GCC doesn't mean we suddenly get shared libraries
16291 # on systems that don't support them.
16292 lt_prog_compiler_can_build_shared_GCJ=no
16293 enable_shared=no
16294 ;;
16295
16296 sysv4*MP*)
16297 if test -d /usr/nec; then
16298 lt_prog_compiler_pic_GCJ=-Kconform_pic
16299 fi
16300 ;;
16301
16302 hpux*)
16303 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16304 # not for PA HP-UX.
16305 case $host_cpu in
16306 hppa*64*|ia64*)
16307 # +Z the default
16308 ;;
16309 *)
16310 lt_prog_compiler_pic_GCJ='-fPIC'
16311 ;;
16312 esac
16313 ;;
16314
16315 *)
16316 lt_prog_compiler_pic_GCJ='-fPIC'
16317 ;;
16318 esac
16319 else
16320 # PORTME Check for flag to pass linker flags through the system compiler.
16321 case $host_os in
16322 aix*)
16323 lt_prog_compiler_wl_GCJ='-Wl,'
16324 if test "$host_cpu" = ia64; then
16325 # AIX 5 now supports IA64 processor
16326 lt_prog_compiler_static_GCJ='-Bstatic'
16327 else
16328 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16329 fi
16330 ;;
16331 darwin*)
16332 # PIC is the default on this platform
16333 # Common symbols not allowed in MH_DYLIB files
16334 case $cc_basename in
16335 xlc*)
16336 lt_prog_compiler_pic_GCJ='-qnocommon'
16337 lt_prog_compiler_wl_GCJ='-Wl,'
16338 ;;
16339 esac
16340 ;;
16341
16342 mingw* | pw32* | os2*)
16343 # This hack is so that the source file can tell whether it is being
16344 # built for inclusion in a dll (and should export symbols for example).
16345 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16346 ;;
16347
16348 hpux9* | hpux10* | hpux11*)
16349 lt_prog_compiler_wl_GCJ='-Wl,'
16350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16351 # not for PA HP-UX.
16352 case $host_cpu in
16353 hppa*64*|ia64*)
16354 # +Z the default
16355 ;;
16356 *)
16357 lt_prog_compiler_pic_GCJ='+Z'
16358 ;;
16359 esac
16360 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16361 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16362 ;;
16363
16364 irix5* | irix6* | nonstopux*)
16365 lt_prog_compiler_wl_GCJ='-Wl,'
16366 # PIC (with -KPIC) is the default.
16367 lt_prog_compiler_static_GCJ='-non_shared'
16368 ;;
16369
16370 newsos6)
16371 lt_prog_compiler_pic_GCJ='-KPIC'
16372 lt_prog_compiler_static_GCJ='-Bstatic'
16373 ;;
16374
16375 linux*)
16376 case $cc_basename in
16377 icc* | ecc*)
16378 lt_prog_compiler_wl_GCJ='-Wl,'
16379 lt_prog_compiler_pic_GCJ='-KPIC'
16380 lt_prog_compiler_static_GCJ='-static'
16381 ;;
16382 pgcc* | pgf77* | pgf90* | pgf95*)
16383 # Portland Group compilers (*not* the Pentium gcc compiler,
16384 # which looks to be a dead project)
16385 lt_prog_compiler_wl_GCJ='-Wl,'
16386 lt_prog_compiler_pic_GCJ='-fpic'
16387 lt_prog_compiler_static_GCJ='-Bstatic'
16388 ;;
16389 ccc*)
16390 lt_prog_compiler_wl_GCJ='-Wl,'
16391 # All Alpha code is PIC.
16392 lt_prog_compiler_static_GCJ='-non_shared'
16393 ;;
16394 esac
16395 ;;
16396
16397 osf3* | osf4* | osf5*)
16398 lt_prog_compiler_wl_GCJ='-Wl,'
16399 # All OSF/1 code is PIC.
16400 lt_prog_compiler_static_GCJ='-non_shared'
16401 ;;
16402
16403 solaris*)
16404 lt_prog_compiler_pic_GCJ='-KPIC'
16405 lt_prog_compiler_static_GCJ='-Bstatic'
16406 case $cc_basename in
16407 f77* | f90* | f95*)
16408 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16409 *)
16410 lt_prog_compiler_wl_GCJ='-Wl,';;
16411 esac
16412 ;;
16413
16414 sunos4*)
16415 lt_prog_compiler_wl_GCJ='-Qoption ld '
16416 lt_prog_compiler_pic_GCJ='-PIC'
16417 lt_prog_compiler_static_GCJ='-Bstatic'
16418 ;;
16419
16420 sysv4 | sysv4.2uw2* | sysv4.3*)
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 lt_prog_compiler_pic_GCJ='-KPIC'
16423 lt_prog_compiler_static_GCJ='-Bstatic'
16424 ;;
16425
16426 sysv4*MP*)
16427 if test -d /usr/nec ;then
16428 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16429 lt_prog_compiler_static_GCJ='-Bstatic'
16430 fi
16431 ;;
16432
16433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16434 lt_prog_compiler_wl_GCJ='-Wl,'
16435 lt_prog_compiler_pic_GCJ='-KPIC'
16436 lt_prog_compiler_static_GCJ='-Bstatic'
16437 ;;
16438
16439 unicos*)
16440 lt_prog_compiler_wl_GCJ='-Wl,'
16441 lt_prog_compiler_can_build_shared_GCJ=no
16442 ;;
16443
16444 uts4*)
16445 lt_prog_compiler_pic_GCJ='-pic'
16446 lt_prog_compiler_static_GCJ='-Bstatic'
16447 ;;
16448
16449 *)
16450 lt_prog_compiler_can_build_shared_GCJ=no
16451 ;;
16452 esac
16453 fi
16454
16455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16456 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16457
16458 #
16459 # Check to make sure the PIC flag actually works.
16460 #
16461 if test -n "$lt_prog_compiler_pic_GCJ"; then
16462
16463 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16465 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16467 else
16468 lt_prog_compiler_pic_works_GCJ=no
16469 ac_outfile=conftest.$ac_objext
16470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16471 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16472 # Insert the option either (1) after the last *FLAGS variable, or
16473 # (2) before a word containing "conftest.", or (3) at the end.
16474 # Note that $ac_compile itself does not contain backslashes and begins
16475 # with a dollar sign (not a hyphen), so the echo should work correctly.
16476 # The option is referenced via a variable to avoid confusing sed.
16477 lt_compile=`echo "$ac_compile" | $SED \
16478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16480 -e 's:$: $lt_compiler_flag:'`
16481 (eval echo "\"\$as_me:16481: $lt_compile\"" >&5)
16482 (eval "$lt_compile" 2>conftest.err)
16483 ac_status=$?
16484 cat conftest.err >&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 if (exit $ac_status) && test -s "$ac_outfile"; then
16487 # The compiler can only warn and ignore the option if not recognized
16488 # So say no if there are warnings other than the usual output.
16489 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16492 lt_prog_compiler_pic_works_GCJ=yes
16493 fi
16494 fi
16495 $rm conftest*
16496
16497 fi
16498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16499 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16500
16501 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16502 case $lt_prog_compiler_pic_GCJ in
16503 "" | " "*) ;;
16504 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16505 esac
16506 else
16507 lt_prog_compiler_pic_GCJ=
16508 lt_prog_compiler_can_build_shared_GCJ=no
16509 fi
16510
16511 fi
16512 case $host_os in
16513 # For platforms which do not support PIC, -DPIC is meaningless:
16514 *djgpp*)
16515 lt_prog_compiler_pic_GCJ=
16516 ;;
16517 *)
16518 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16519 ;;
16520 esac
16521
16522 #
16523 # Check to make sure the static flag actually works.
16524 #
16525 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16526 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16527 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16528 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531 lt_prog_compiler_static_works_GCJ=no
16532 save_LDFLAGS="$LDFLAGS"
16533 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16534 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16536 # The linker can only warn and ignore the option if not recognized
16537 # So say no if there are warnings
16538 if test -s conftest.err; then
16539 # Append any errors to the config.log.
16540 cat conftest.err 1>&5
16541 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16543 if diff conftest.exp conftest.er2 >/dev/null; then
16544 lt_prog_compiler_static_works_GCJ=yes
16545 fi
16546 else
16547 lt_prog_compiler_static_works_GCJ=yes
16548 fi
16549 fi
16550 $rm conftest*
16551 LDFLAGS="$save_LDFLAGS"
16552
16553 fi
16554 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16555 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16556
16557 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16558 :
16559 else
16560 lt_prog_compiler_static_GCJ=
16561 fi
16562
16563
16564 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16565 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16566 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569 lt_cv_prog_compiler_c_o_GCJ=no
16570 $rm -r conftest 2>/dev/null
16571 mkdir conftest
16572 cd conftest
16573 mkdir out
16574 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16575
16576 lt_compiler_flag="-o out/conftest2.$ac_objext"
16577 # Insert the option either (1) after the last *FLAGS variable, or
16578 # (2) before a word containing "conftest.", or (3) at the end.
16579 # Note that $ac_compile itself does not contain backslashes and begins
16580 # with a dollar sign (not a hyphen), so the echo should work correctly.
16581 lt_compile=`echo "$ac_compile" | $SED \
16582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16584 -e 's:$: $lt_compiler_flag:'`
16585 (eval echo "\"\$as_me:16585: $lt_compile\"" >&5)
16586 (eval "$lt_compile" 2>out/conftest.err)
16587 ac_status=$?
16588 cat out/conftest.err >&5
16589 echo "$as_me:16589: \$? = $ac_status" >&5
16590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16591 then
16592 # The compiler can only warn and ignore the option if not recognized
16593 # So say no if there are warnings
16594 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16597 lt_cv_prog_compiler_c_o_GCJ=yes
16598 fi
16599 fi
16600 chmod u+w . 2>&5
16601 $rm conftest*
16602 # SGI C++ compiler will create directory out/ii_files/ for
16603 # template instantiation
16604 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16605 $rm out/* && rmdir out
16606 cd ..
16607 rmdir conftest
16608 $rm conftest*
16609
16610 fi
16611 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16612 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16613
16614
16615 hard_links="nottested"
16616 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16617 # do not overwrite the value of need_locks provided by the user
16618 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16619 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16620 hard_links=yes
16621 $rm conftest*
16622 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16623 touch conftest.a
16624 ln conftest.a conftest.b 2>&5 || hard_links=no
16625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16626 { echo "$as_me:$LINENO: result: $hard_links" >&5
16627 echo "${ECHO_T}$hard_links" >&6; }
16628 if test "$hard_links" = no; then
16629 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16630 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16631 need_locks=warn
16632 fi
16633 else
16634 need_locks=no
16635 fi
16636
16637 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16638 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16639
16640 runpath_var=
16641 allow_undefined_flag_GCJ=
16642 enable_shared_with_static_runtimes_GCJ=no
16643 archive_cmds_GCJ=
16644 archive_expsym_cmds_GCJ=
16645 old_archive_From_new_cmds_GCJ=
16646 old_archive_from_expsyms_cmds_GCJ=
16647 export_dynamic_flag_spec_GCJ=
16648 whole_archive_flag_spec_GCJ=
16649 thread_safe_flag_spec_GCJ=
16650 hardcode_libdir_flag_spec_GCJ=
16651 hardcode_libdir_flag_spec_ld_GCJ=
16652 hardcode_libdir_separator_GCJ=
16653 hardcode_direct_GCJ=no
16654 hardcode_minus_L_GCJ=no
16655 hardcode_shlibpath_var_GCJ=unsupported
16656 link_all_deplibs_GCJ=unknown
16657 hardcode_automatic_GCJ=no
16658 module_cmds_GCJ=
16659 module_expsym_cmds_GCJ=
16660 always_export_symbols_GCJ=no
16661 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16662 # include_expsyms should be a list of space-separated symbols to be *always*
16663 # included in the symbol list
16664 include_expsyms_GCJ=
16665 # exclude_expsyms can be an extended regexp of symbols to exclude
16666 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16667 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16668 # as well as any symbol that contains `d'.
16669 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16670 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16671 # platforms (ab)use it in PIC code, but their linkers get confused if
16672 # the symbol is explicitly referenced. Since portable code cannot
16673 # rely on this symbol name, it's probably fine to never include it in
16674 # preloaded symbol tables.
16675 extract_expsyms_cmds=
16676 # Just being paranoid about ensuring that cc_basename is set.
16677 for cc_temp in $compiler""; do
16678 case $cc_temp in
16679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16681 \-*) ;;
16682 *) break;;
16683 esac
16684 done
16685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16686
16687 case $host_os in
16688 cygwin* | mingw* | pw32*)
16689 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16690 # When not using gcc, we currently assume that we are using
16691 # Microsoft Visual C++.
16692 if test "$GCC" != yes; then
16693 with_gnu_ld=no
16694 fi
16695 ;;
16696 interix*)
16697 # we just hope/assume this is gcc and not c89 (= MSVC++)
16698 with_gnu_ld=yes
16699 ;;
16700 openbsd*)
16701 with_gnu_ld=no
16702 ;;
16703 esac
16704
16705 ld_shlibs_GCJ=yes
16706 if test "$with_gnu_ld" = yes; then
16707 # If archive_cmds runs LD, not CC, wlarc should be empty
16708 wlarc='${wl}'
16709
16710 # Set some defaults for GNU ld with shared library support. These
16711 # are reset later if shared libraries are not supported. Putting them
16712 # here allows them to be overridden if necessary.
16713 runpath_var=LD_RUN_PATH
16714 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16715 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16716 # ancient GNU ld didn't support --whole-archive et. al.
16717 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16718 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16719 else
16720 whole_archive_flag_spec_GCJ=
16721 fi
16722 supports_anon_versioning=no
16723 case `$LD -v 2>/dev/null` in
16724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16727 *\ 2.11.*) ;; # other 2.11 versions
16728 *) supports_anon_versioning=yes ;;
16729 esac
16730
16731 # See if GNU ld supports shared libraries.
16732 case $host_os in
16733 aix3* | aix4* | aix5*)
16734 # On AIX/PPC, the GNU linker is very broken
16735 if test "$host_cpu" != ia64; then
16736 ld_shlibs_GCJ=no
16737 cat <<EOF 1>&2
16738
16739 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16740 *** to be unable to reliably create shared libraries on AIX.
16741 *** Therefore, libtool is disabling shared libraries support. If you
16742 *** really care for shared libraries, you may want to modify your PATH
16743 *** so that a non-GNU linker is found, and then restart.
16744
16745 EOF
16746 fi
16747 ;;
16748
16749 amigaos*)
16750 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)'
16751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16752 hardcode_minus_L_GCJ=yes
16753
16754 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16755 # that the semantics of dynamic libraries on AmigaOS, at least up
16756 # to version 4, is to share data among multiple programs linked
16757 # with the same dynamic library. Since this doesn't match the
16758 # behavior of shared libraries on other platforms, we can't use
16759 # them.
16760 ld_shlibs_GCJ=no
16761 ;;
16762
16763 beos*)
16764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16765 allow_undefined_flag_GCJ=unsupported
16766 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16767 # support --undefined. This deserves some investigation. FIXME
16768 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16769 else
16770 ld_shlibs_GCJ=no
16771 fi
16772 ;;
16773
16774 cygwin* | mingw* | pw32*)
16775 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16776 # as there is no search path for DLLs.
16777 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16778 allow_undefined_flag_GCJ=unsupported
16779 always_export_symbols_GCJ=no
16780 enable_shared_with_static_runtimes_GCJ=yes
16781 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16782
16783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16784 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16785 # If the export-symbols file already is a .def file (1st line
16786 # is EXPORTS), use it as is; otherwise, prepend...
16787 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16788 cp $export_symbols $output_objdir/$soname.def;
16789 else
16790 echo EXPORTS > $output_objdir/$soname.def;
16791 cat $export_symbols >> $output_objdir/$soname.def;
16792 fi~
16793 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16794 else
16795 ld_shlibs_GCJ=no
16796 fi
16797 ;;
16798
16799 interix3*)
16800 hardcode_direct_GCJ=no
16801 hardcode_shlibpath_var_GCJ=no
16802 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16803 export_dynamic_flag_spec_GCJ='${wl}-E'
16804 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16805 # Instead, shared libraries are loaded at an image base (0x10000000 by
16806 # default) and relocated if they conflict, which is a slow very memory
16807 # consuming and fragmenting process. To avoid this, we pick a random,
16808 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16809 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16810 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'
16811 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'
16812 ;;
16813
16814 linux*)
16815 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16816 tmp_addflag=
16817 case $cc_basename,$host_cpu in
16818 pgcc*) # Portland Group C compiler
16819 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'
16820 tmp_addflag=' $pic_flag'
16821 ;;
16822 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16823 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'
16824 tmp_addflag=' $pic_flag -Mnomain' ;;
16825 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16826 tmp_addflag=' -i_dynamic' ;;
16827 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16828 tmp_addflag=' -i_dynamic -nofor_main' ;;
16829 ifc* | ifort*) # Intel Fortran compiler
16830 tmp_addflag=' -nofor_main' ;;
16831 esac
16832 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16833
16834 if test $supports_anon_versioning = yes; then
16835 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16836 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16837 $echo "local: *; };" >> $output_objdir/$libname.ver~
16838 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16839 fi
16840 else
16841 ld_shlibs_GCJ=no
16842 fi
16843 ;;
16844
16845 netbsd*)
16846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16847 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16848 wlarc=
16849 else
16850 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16851 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16852 fi
16853 ;;
16854
16855 solaris*)
16856 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16857 ld_shlibs_GCJ=no
16858 cat <<EOF 1>&2
16859
16860 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16861 *** create shared libraries on Solaris systems. Therefore, libtool
16862 *** is disabling shared libraries support. We urge you to upgrade GNU
16863 *** binutils to release 2.9.1 or newer. Another option is to modify
16864 *** your PATH or compiler configuration so that the native linker is
16865 *** used, and then restart.
16866
16867 EOF
16868 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16869 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16870 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16871 else
16872 ld_shlibs_GCJ=no
16873 fi
16874 ;;
16875
16876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16877 case `$LD -v 2>&1` in
16878 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16879 ld_shlibs_GCJ=no
16880 cat <<_LT_EOF 1>&2
16881
16882 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16883 *** reliably create shared libraries on SCO systems. Therefore, libtool
16884 *** is disabling shared libraries support. We urge you to upgrade GNU
16885 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16886 *** your PATH or compiler configuration so that the native linker is
16887 *** used, and then restart.
16888
16889 _LT_EOF
16890 ;;
16891 *)
16892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16893 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16894 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16895 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16896 else
16897 ld_shlibs_GCJ=no
16898 fi
16899 ;;
16900 esac
16901 ;;
16902
16903 sunos4*)
16904 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16905 wlarc=
16906 hardcode_direct_GCJ=yes
16907 hardcode_shlibpath_var_GCJ=no
16908 ;;
16909
16910 *)
16911 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16912 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16913 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16914 else
16915 ld_shlibs_GCJ=no
16916 fi
16917 ;;
16918 esac
16919
16920 if test "$ld_shlibs_GCJ" = no; then
16921 runpath_var=
16922 hardcode_libdir_flag_spec_GCJ=
16923 export_dynamic_flag_spec_GCJ=
16924 whole_archive_flag_spec_GCJ=
16925 fi
16926 else
16927 # PORTME fill in a description of your system's linker (not GNU ld)
16928 case $host_os in
16929 aix3*)
16930 allow_undefined_flag_GCJ=unsupported
16931 always_export_symbols_GCJ=yes
16932 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'
16933 # Note: this linker hardcodes the directories in LIBPATH if there
16934 # are no directories specified by -L.
16935 hardcode_minus_L_GCJ=yes
16936 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16937 # Neither direct hardcoding nor static linking is supported with a
16938 # broken collect2.
16939 hardcode_direct_GCJ=unsupported
16940 fi
16941 ;;
16942
16943 aix4* | aix5*)
16944 if test "$host_cpu" = ia64; then
16945 # On IA64, the linker does run time linking by default, so we don't
16946 # have to do anything special.
16947 aix_use_runtimelinking=no
16948 exp_sym_flag='-Bexport'
16949 no_entry_flag=""
16950 else
16951 # If we're using GNU nm, then we don't want the "-C" option.
16952 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16953 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16954 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'
16955 else
16956 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'
16957 fi
16958 aix_use_runtimelinking=no
16959
16960 # Test if we are trying to use run time linking or normal
16961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16962 # need to do runtime linking.
16963 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16964 for ld_flag in $LDFLAGS; do
16965 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16966 aix_use_runtimelinking=yes
16967 break
16968 fi
16969 done
16970 ;;
16971 esac
16972
16973 exp_sym_flag='-bexport'
16974 no_entry_flag='-bnoentry'
16975 fi
16976
16977 # When large executables or shared objects are built, AIX ld can
16978 # have problems creating the table of contents. If linking a library
16979 # or program results in "error TOC overflow" add -mminimal-toc to
16980 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16981 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16982
16983 archive_cmds_GCJ=''
16984 hardcode_direct_GCJ=yes
16985 hardcode_libdir_separator_GCJ=':'
16986 link_all_deplibs_GCJ=yes
16987
16988 if test "$GCC" = yes; then
16989 case $host_os in aix4.[012]|aix4.[012].*)
16990 # We only want to do this on AIX 4.2 and lower, the check
16991 # below for broken collect2 doesn't work under 4.3+
16992 collect2name=`${CC} -print-prog-name=collect2`
16993 if test -f "$collect2name" && \
16994 strings "$collect2name" | grep resolve_lib_name >/dev/null
16995 then
16996 # We have reworked collect2
16997 hardcode_direct_GCJ=yes
16998 else
16999 # We have old collect2
17000 hardcode_direct_GCJ=unsupported
17001 # It fails to find uninstalled libraries when the uninstalled
17002 # path is not listed in the libpath. Setting hardcode_minus_L
17003 # to unsupported forces relinking
17004 hardcode_minus_L_GCJ=yes
17005 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17006 hardcode_libdir_separator_GCJ=
17007 fi
17008 ;;
17009 esac
17010 shared_flag='-shared'
17011 if test "$aix_use_runtimelinking" = yes; then
17012 shared_flag="$shared_flag "'${wl}-G'
17013 fi
17014 else
17015 # not using gcc
17016 if test "$host_cpu" = ia64; then
17017 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17018 # chokes on -Wl,-G. The following line is correct:
17019 shared_flag='-G'
17020 else
17021 if test "$aix_use_runtimelinking" = yes; then
17022 shared_flag='${wl}-G'
17023 else
17024 shared_flag='${wl}-bM:SRE'
17025 fi
17026 fi
17027 fi
17028
17029 # It seems that -bexpall does not export symbols beginning with
17030 # underscore (_), so it is better to generate a list of symbols to export.
17031 always_export_symbols_GCJ=yes
17032 if test "$aix_use_runtimelinking" = yes; then
17033 # Warning - without using the other runtime loading flags (-brtl),
17034 # -berok will link without error, but may produce a broken library.
17035 allow_undefined_flag_GCJ='-berok'
17036 # Determine the default libpath from the value encoded in an empty executable.
17037 cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h. */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h. */
17043
17044 int
17045 main ()
17046 {
17047
17048 ;
17049 return 0;
17050 }
17051 _ACEOF
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest$ac_exeext &&
17069 $as_test_x conftest$ac_exeext; then
17070
17071 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17072 }'`
17073 # Check for a 64-bit object if we didn't find anything.
17074 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17075 }'`; fi
17076 else
17077 echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080
17081 fi
17082
17083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17084 conftest$ac_exeext conftest.$ac_ext
17085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17086
17087 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17088 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"
17089 else
17090 if test "$host_cpu" = ia64; then
17091 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17092 allow_undefined_flag_GCJ="-z nodefs"
17093 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"
17094 else
17095 # Determine the default libpath from the value encoded in an empty executable.
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102
17103 int
17104 main ()
17105 {
17106
17107 ;
17108 return 0;
17109 }
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (ac_try="$ac_link"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_link") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest$ac_exeext &&
17128 $as_test_x conftest$ac_exeext; then
17129
17130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17131 }'`
17132 # Check for a 64-bit object if we didn't find anything.
17133 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17134 }'`; fi
17135 else
17136 echo "$as_me: failed program was:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17138
17139
17140 fi
17141
17142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17143 conftest$ac_exeext conftest.$ac_ext
17144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17145
17146 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17147 # Warning - without using the other run time loading flags,
17148 # -berok will link without error, but may produce a broken library.
17149 no_undefined_flag_GCJ=' ${wl}-bernotok'
17150 allow_undefined_flag_GCJ=' ${wl}-berok'
17151 # Exported symbols can be pulled into shared objects from archives
17152 whole_archive_flag_spec_GCJ='$convenience'
17153 archive_cmds_need_lc_GCJ=yes
17154 # This is similar to how AIX traditionally builds its shared libraries.
17155 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'
17156 fi
17157 fi
17158 ;;
17159
17160 amigaos*)
17161 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)'
17162 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17163 hardcode_minus_L_GCJ=yes
17164 # see comment about different semantics on the GNU ld section
17165 ld_shlibs_GCJ=no
17166 ;;
17167
17168 bsdi[45]*)
17169 export_dynamic_flag_spec_GCJ=-rdynamic
17170 ;;
17171
17172 cygwin* | mingw* | pw32*)
17173 # When not using gcc, we currently assume that we are using
17174 # Microsoft Visual C++.
17175 # hardcode_libdir_flag_spec is actually meaningless, as there is
17176 # no search path for DLLs.
17177 hardcode_libdir_flag_spec_GCJ=' '
17178 allow_undefined_flag_GCJ=unsupported
17179 # Tell ltmain to make .lib files, not .a files.
17180 libext=lib
17181 # Tell ltmain to make .dll files, not .so files.
17182 shrext_cmds=".dll"
17183 # FIXME: Setting linknames here is a bad hack.
17184 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17185 # The linker will automatically build a .lib file if we build a DLL.
17186 old_archive_From_new_cmds_GCJ='true'
17187 # FIXME: Should let the user specify the lib program.
17188 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17189 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17190 enable_shared_with_static_runtimes_GCJ=yes
17191 ;;
17192
17193 darwin* | rhapsody*)
17194 case $host_os in
17195 rhapsody* | darwin1.[012])
17196 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17197 ;;
17198 *) # Darwin 1.3 on
17199 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17200 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17201 else
17202 case ${MACOSX_DEPLOYMENT_TARGET} in
17203 10.[012])
17204 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17205 ;;
17206 10.*)
17207 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17208 ;;
17209 esac
17210 fi
17211 ;;
17212 esac
17213 archive_cmds_need_lc_GCJ=no
17214 hardcode_direct_GCJ=no
17215 hardcode_automatic_GCJ=yes
17216 hardcode_shlibpath_var_GCJ=unsupported
17217 whole_archive_flag_spec_GCJ=''
17218 link_all_deplibs_GCJ=yes
17219 if test "$GCC" = yes ; then
17220 output_verbose_link_cmd='echo'
17221 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17222 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17223 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17224 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17225 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}'
17226 else
17227 case $cc_basename in
17228 xlc*)
17229 output_verbose_link_cmd='echo'
17230 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17231 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17233 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17234 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}'
17235 ;;
17236 *)
17237 ld_shlibs_GCJ=no
17238 ;;
17239 esac
17240 fi
17241 ;;
17242
17243 dgux*)
17244 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17246 hardcode_shlibpath_var_GCJ=no
17247 ;;
17248
17249 freebsd1*)
17250 ld_shlibs_GCJ=no
17251 ;;
17252
17253 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17254 # support. Future versions do this automatically, but an explicit c++rt0.o
17255 # does not break anything, and helps significantly (at the cost of a little
17256 # extra space).
17257 freebsd2.2*)
17258 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17259 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17260 hardcode_direct_GCJ=yes
17261 hardcode_shlibpath_var_GCJ=no
17262 ;;
17263
17264 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17265 freebsd2*)
17266 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17267 hardcode_direct_GCJ=yes
17268 hardcode_minus_L_GCJ=yes
17269 hardcode_shlibpath_var_GCJ=no
17270 ;;
17271
17272 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17273 freebsd* | kfreebsd*-gnu | dragonfly*)
17274 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17275 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17276 hardcode_direct_GCJ=yes
17277 hardcode_shlibpath_var_GCJ=no
17278 ;;
17279
17280 hpux9*)
17281 if test "$GCC" = yes; then
17282 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'
17283 else
17284 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'
17285 fi
17286 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17287 hardcode_libdir_separator_GCJ=:
17288 hardcode_direct_GCJ=yes
17289
17290 # hardcode_minus_L: Not really in the search PATH,
17291 # but as the default location of the library.
17292 hardcode_minus_L_GCJ=yes
17293 export_dynamic_flag_spec_GCJ='${wl}-E'
17294 ;;
17295
17296 hpux10*)
17297 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17298 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17299 else
17300 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17301 fi
17302 if test "$with_gnu_ld" = no; then
17303 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17304 hardcode_libdir_separator_GCJ=:
17305
17306 hardcode_direct_GCJ=yes
17307 export_dynamic_flag_spec_GCJ='${wl}-E'
17308
17309 # hardcode_minus_L: Not really in the search PATH,
17310 # but as the default location of the library.
17311 hardcode_minus_L_GCJ=yes
17312 fi
17313 ;;
17314
17315 hpux11*)
17316 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17317 case $host_cpu in
17318 hppa*64*)
17319 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17320 ;;
17321 ia64*)
17322 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17323 ;;
17324 *)
17325 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17326 ;;
17327 esac
17328 else
17329 case $host_cpu in
17330 hppa*64*)
17331 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17332 ;;
17333 ia64*)
17334 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17335 ;;
17336 *)
17337 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17338 ;;
17339 esac
17340 fi
17341 if test "$with_gnu_ld" = no; then
17342 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17343 hardcode_libdir_separator_GCJ=:
17344
17345 case $host_cpu in
17346 hppa*64*|ia64*)
17347 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17348 hardcode_direct_GCJ=no
17349 hardcode_shlibpath_var_GCJ=no
17350 ;;
17351 *)
17352 hardcode_direct_GCJ=yes
17353 export_dynamic_flag_spec_GCJ='${wl}-E'
17354
17355 # hardcode_minus_L: Not really in the search PATH,
17356 # but as the default location of the library.
17357 hardcode_minus_L_GCJ=yes
17358 ;;
17359 esac
17360 fi
17361 ;;
17362
17363 irix5* | irix6* | nonstopux*)
17364 if test "$GCC" = yes; then
17365 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'
17366 else
17367 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'
17368 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17369 fi
17370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17371 hardcode_libdir_separator_GCJ=:
17372 link_all_deplibs_GCJ=yes
17373 ;;
17374
17375 netbsd*)
17376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17378 else
17379 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17380 fi
17381 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17382 hardcode_direct_GCJ=yes
17383 hardcode_shlibpath_var_GCJ=no
17384 ;;
17385
17386 newsos6)
17387 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17388 hardcode_direct_GCJ=yes
17389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17390 hardcode_libdir_separator_GCJ=:
17391 hardcode_shlibpath_var_GCJ=no
17392 ;;
17393
17394 openbsd*)
17395 hardcode_direct_GCJ=yes
17396 hardcode_shlibpath_var_GCJ=no
17397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17398 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17399 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17400 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17401 export_dynamic_flag_spec_GCJ='${wl}-E'
17402 else
17403 case $host_os in
17404 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17405 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17406 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17407 ;;
17408 *)
17409 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17410 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17411 ;;
17412 esac
17413 fi
17414 ;;
17415
17416 os2*)
17417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17418 hardcode_minus_L_GCJ=yes
17419 allow_undefined_flag_GCJ=unsupported
17420 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'
17421 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17422 ;;
17423
17424 osf3*)
17425 if test "$GCC" = yes; then
17426 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17427 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'
17428 else
17429 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17430 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'
17431 fi
17432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17433 hardcode_libdir_separator_GCJ=:
17434 ;;
17435
17436 osf4* | osf5*) # as osf3* with the addition of -msym flag
17437 if test "$GCC" = yes; then
17438 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17439 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'
17440 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17441 else
17442 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17443 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'
17444 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~
17445 $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'
17446
17447 # Both c and cxx compiler support -rpath directly
17448 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17449 fi
17450 hardcode_libdir_separator_GCJ=:
17451 ;;
17452
17453 solaris*)
17454 no_undefined_flag_GCJ=' -z text'
17455 if test "$GCC" = yes; then
17456 wlarc='${wl}'
17457 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17458 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17459 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17460 else
17461 wlarc=''
17462 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17463 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17464 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17465 fi
17466 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17467 hardcode_shlibpath_var_GCJ=no
17468 case $host_os in
17469 solaris2.[0-5] | solaris2.[0-5].*) ;;
17470 *)
17471 # The compiler driver will combine linker options so we
17472 # cannot just pass the convience library names through
17473 # without $wl, iff we do not link with $LD.
17474 # Luckily, gcc supports the same syntax we need for Sun Studio.
17475 # Supported since Solaris 2.6 (maybe 2.5.1?)
17476 case $wlarc in
17477 '')
17478 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17479 *)
17480 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17481 esac ;;
17482 esac
17483 link_all_deplibs_GCJ=yes
17484 ;;
17485
17486 sunos4*)
17487 if test "x$host_vendor" = xsequent; then
17488 # Use $CC to link under sequent, because it throws in some extra .o
17489 # files that make .init and .fini sections work.
17490 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17491 else
17492 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17493 fi
17494 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17495 hardcode_direct_GCJ=yes
17496 hardcode_minus_L_GCJ=yes
17497 hardcode_shlibpath_var_GCJ=no
17498 ;;
17499
17500 sysv4)
17501 case $host_vendor in
17502 sni)
17503 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17504 hardcode_direct_GCJ=yes # is this really true???
17505 ;;
17506 siemens)
17507 ## LD is ld it makes a PLAMLIB
17508 ## CC just makes a GrossModule.
17509 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17510 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17511 hardcode_direct_GCJ=no
17512 ;;
17513 motorola)
17514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17515 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17516 ;;
17517 esac
17518 runpath_var='LD_RUN_PATH'
17519 hardcode_shlibpath_var_GCJ=no
17520 ;;
17521
17522 sysv4.3*)
17523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17524 hardcode_shlibpath_var_GCJ=no
17525 export_dynamic_flag_spec_GCJ='-Bexport'
17526 ;;
17527
17528 sysv4*MP*)
17529 if test -d /usr/nec; then
17530 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17531 hardcode_shlibpath_var_GCJ=no
17532 runpath_var=LD_RUN_PATH
17533 hardcode_runpath_var=yes
17534 ld_shlibs_GCJ=yes
17535 fi
17536 ;;
17537
17538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17539 no_undefined_flag_GCJ='${wl}-z,text'
17540 archive_cmds_need_lc_GCJ=no
17541 hardcode_shlibpath_var_GCJ=no
17542 runpath_var='LD_RUN_PATH'
17543
17544 if test "$GCC" = yes; then
17545 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17546 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17547 else
17548 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17549 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17550 fi
17551 ;;
17552
17553 sysv5* | sco3.2v5* | sco5v6*)
17554 # Note: We can NOT use -z defs as we might desire, because we do not
17555 # link with -lc, and that would cause any symbols used from libc to
17556 # always be unresolved, which means just about no library would
17557 # ever link correctly. If we're not using GNU ld we use -z text
17558 # though, which does catch some bad symbols but isn't as heavy-handed
17559 # as -z defs.
17560 no_undefined_flag_GCJ='${wl}-z,text'
17561 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17562 archive_cmds_need_lc_GCJ=no
17563 hardcode_shlibpath_var_GCJ=no
17564 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17565 hardcode_libdir_separator_GCJ=':'
17566 link_all_deplibs_GCJ=yes
17567 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17568 runpath_var='LD_RUN_PATH'
17569
17570 if test "$GCC" = yes; then
17571 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17572 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17573 else
17574 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17575 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17576 fi
17577 ;;
17578
17579 uts4*)
17580 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17581 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17582 hardcode_shlibpath_var_GCJ=no
17583 ;;
17584
17585 *)
17586 ld_shlibs_GCJ=no
17587 ;;
17588 esac
17589 fi
17590
17591 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17592 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17593 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17594
17595 #
17596 # Do we need to explicitly link libc?
17597 #
17598 case "x$archive_cmds_need_lc_GCJ" in
17599 x|xyes)
17600 # Assume -lc should be added
17601 archive_cmds_need_lc_GCJ=yes
17602
17603 if test "$enable_shared" = yes && test "$GCC" = yes; then
17604 case $archive_cmds_GCJ in
17605 *'~'*)
17606 # FIXME: we may have to deal with multi-command sequences.
17607 ;;
17608 '$CC '*)
17609 # Test whether the compiler implicitly links with -lc since on some
17610 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17611 # to ld, don't add -lc before -lgcc.
17612 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17613 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17614 $rm conftest*
17615 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17616
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>&5
17619 ac_status=$?
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } 2>conftest.err; then
17622 soname=conftest
17623 lib=conftest
17624 libobjs=conftest.$ac_objext
17625 deplibs=
17626 wl=$lt_prog_compiler_wl_GCJ
17627 pic_flag=$lt_prog_compiler_pic_GCJ
17628 compiler_flags=-v
17629 linker_flags=-v
17630 verstring=
17631 output_objdir=.
17632 libname=conftest
17633 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17634 allow_undefined_flag_GCJ=
17635 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17636 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }
17640 then
17641 archive_cmds_need_lc_GCJ=no
17642 else
17643 archive_cmds_need_lc_GCJ=yes
17644 fi
17645 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17646 else
17647 cat conftest.err 1>&5
17648 fi
17649 $rm conftest*
17650 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17651 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17652 ;;
17653 esac
17654 fi
17655 ;;
17656 esac
17657
17658 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17659 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17660 library_names_spec=
17661 libname_spec='lib$name'
17662 soname_spec=
17663 shrext_cmds=".so"
17664 postinstall_cmds=
17665 postuninstall_cmds=
17666 finish_cmds=
17667 finish_eval=
17668 shlibpath_var=
17669 shlibpath_overrides_runpath=unknown
17670 version_type=none
17671 dynamic_linker="$host_os ld.so"
17672 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17673 if test "$GCC" = yes; then
17674 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17675 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17676 # if the path contains ";" then we assume it to be the separator
17677 # otherwise default to the standard path separator (i.e. ":") - it is
17678 # assumed that no part of a normal pathname contains ";" but that should
17679 # okay in the real world where ";" in dirpaths is itself problematic.
17680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17681 else
17682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17683 fi
17684 else
17685 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17686 fi
17687 need_lib_prefix=unknown
17688 hardcode_into_libs=no
17689
17690 # when you set need_version to no, make sure it does not cause -set_version
17691 # flags to be left without arguments
17692 need_version=unknown
17693
17694 case $host_os in
17695 aix3*)
17696 version_type=linux
17697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17698 shlibpath_var=LIBPATH
17699
17700 # AIX 3 has no versioning support, so we append a major version to the name.
17701 soname_spec='${libname}${release}${shared_ext}$major'
17702 ;;
17703
17704 aix4* | aix5*)
17705 version_type=linux
17706 need_lib_prefix=no
17707 need_version=no
17708 hardcode_into_libs=yes
17709 if test "$host_cpu" = ia64; then
17710 # AIX 5 supports IA64
17711 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 else
17714 # With GCC up to 2.95.x, collect2 would create an import file
17715 # for dependence libraries. The import file would start with
17716 # the line `#! .'. This would cause the generated library to
17717 # depend on `.', always an invalid library. This was fixed in
17718 # development snapshots of GCC prior to 3.0.
17719 case $host_os in
17720 aix4 | aix4.[01] | aix4.[01].*)
17721 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17722 echo ' yes '
17723 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17724 :
17725 else
17726 can_build_shared=no
17727 fi
17728 ;;
17729 esac
17730 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17731 # soname into executable. Probably we can add versioning support to
17732 # collect2, so additional links can be useful in future.
17733 if test "$aix_use_runtimelinking" = yes; then
17734 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17735 # instead of lib<name>.a to let people know that these are not
17736 # typical AIX shared libraries.
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17738 else
17739 # We preserve .a as extension for shared libraries through AIX4.2
17740 # and later when we are not doing run time linking.
17741 library_names_spec='${libname}${release}.a $libname.a'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 fi
17744 shlibpath_var=LIBPATH
17745 fi
17746 ;;
17747
17748 amigaos*)
17749 library_names_spec='$libname.ixlibrary $libname.a'
17750 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17751 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'
17752 ;;
17753
17754 beos*)
17755 library_names_spec='${libname}${shared_ext}'
17756 dynamic_linker="$host_os ld.so"
17757 shlibpath_var=LIBRARY_PATH
17758 ;;
17759
17760 bsdi[45]*)
17761 version_type=linux
17762 need_version=no
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 soname_spec='${libname}${release}${shared_ext}$major'
17765 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17766 shlibpath_var=LD_LIBRARY_PATH
17767 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17768 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17769 # the default ld.so.conf also contains /usr/contrib/lib and
17770 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17771 # libtool to hard-code these into programs
17772 ;;
17773
17774 cygwin* | mingw* | pw32*)
17775 version_type=windows
17776 shrext_cmds=".dll"
17777 need_version=no
17778 need_lib_prefix=no
17779
17780 case $GCC,$host_os in
17781 yes,cygwin* | yes,mingw* | yes,pw32*)
17782 library_names_spec='$libname.dll.a'
17783 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17784 postinstall_cmds='base_file=`basename \${file}`~
17785 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17786 dldir=$destdir/`dirname \$dlpath`~
17787 test -d \$dldir || mkdir -p \$dldir~
17788 $install_prog $dir/$dlname \$dldir/$dlname~
17789 chmod a+x \$dldir/$dlname'
17790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17791 dlpath=$dir/\$dldll~
17792 $rm \$dlpath'
17793 shlibpath_overrides_runpath=yes
17794
17795 case $host_os in
17796 cygwin*)
17797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17798 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17799 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17800 ;;
17801 mingw*)
17802 # MinGW DLLs use traditional 'lib' prefix
17803 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17804 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17805 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17806 # It is most probably a Windows format PATH printed by
17807 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17808 # path with ; separators, and with drive letters. We can handle the
17809 # drive letters (cygwin fileutils understands them), so leave them,
17810 # especially as we might pass files found there to a mingw objdump,
17811 # which wouldn't understand a cygwinified path. Ahh.
17812 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17813 else
17814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17815 fi
17816 ;;
17817 pw32*)
17818 # pw32 DLLs use 'pw' prefix rather than 'lib'
17819 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17820 ;;
17821 esac
17822 ;;
17823
17824 *)
17825 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17826 ;;
17827 esac
17828 dynamic_linker='Win32 ld.exe'
17829 # FIXME: first we should search . and the directory the executable is in
17830 shlibpath_var=PATH
17831 ;;
17832
17833 darwin* | rhapsody*)
17834 dynamic_linker="$host_os dyld"
17835 version_type=darwin
17836 need_lib_prefix=no
17837 need_version=no
17838 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17839 soname_spec='${libname}${release}${major}$shared_ext'
17840 shlibpath_overrides_runpath=yes
17841 shlibpath_var=DYLD_LIBRARY_PATH
17842 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17843 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17844 if test "$GCC" = yes; then
17845 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17846 else
17847 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17848 fi
17849 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17850 ;;
17851
17852 dgux*)
17853 version_type=linux
17854 need_lib_prefix=no
17855 need_version=no
17856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17857 soname_spec='${libname}${release}${shared_ext}$major'
17858 shlibpath_var=LD_LIBRARY_PATH
17859 ;;
17860
17861 freebsd1*)
17862 dynamic_linker=no
17863 ;;
17864
17865 kfreebsd*-gnu)
17866 version_type=linux
17867 need_lib_prefix=no
17868 need_version=no
17869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17870 soname_spec='${libname}${release}${shared_ext}$major'
17871 shlibpath_var=LD_LIBRARY_PATH
17872 shlibpath_overrides_runpath=no
17873 hardcode_into_libs=yes
17874 dynamic_linker='GNU ld.so'
17875 ;;
17876
17877 freebsd* | dragonfly*)
17878 # DragonFly does not have aout. When/if they implement a new
17879 # versioning mechanism, adjust this.
17880 if test -x /usr/bin/objformat; then
17881 objformat=`/usr/bin/objformat`
17882 else
17883 case $host_os in
17884 freebsd[123]*) objformat=aout ;;
17885 *) objformat=elf ;;
17886 esac
17887 fi
17888 version_type=freebsd-$objformat
17889 case $version_type in
17890 freebsd-elf*)
17891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17892 need_version=no
17893 need_lib_prefix=no
17894 ;;
17895 freebsd-*)
17896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17897 need_version=yes
17898 ;;
17899 esac
17900 shlibpath_var=LD_LIBRARY_PATH
17901 case $host_os in
17902 freebsd2*)
17903 shlibpath_overrides_runpath=yes
17904 ;;
17905 freebsd3.[01]* | freebsdelf3.[01]*)
17906 shlibpath_overrides_runpath=yes
17907 hardcode_into_libs=yes
17908 ;;
17909 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17910 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17911 shlibpath_overrides_runpath=no
17912 hardcode_into_libs=yes
17913 ;;
17914 freebsd*) # from 4.6 on
17915 shlibpath_overrides_runpath=yes
17916 hardcode_into_libs=yes
17917 ;;
17918 esac
17919 ;;
17920
17921 gnu*)
17922 version_type=linux
17923 need_lib_prefix=no
17924 need_version=no
17925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17926 soname_spec='${libname}${release}${shared_ext}$major'
17927 shlibpath_var=LD_LIBRARY_PATH
17928 hardcode_into_libs=yes
17929 ;;
17930
17931 hpux9* | hpux10* | hpux11*)
17932 # Give a soname corresponding to the major version so that dld.sl refuses to
17933 # link against other versions.
17934 version_type=sunos
17935 need_lib_prefix=no
17936 need_version=no
17937 case $host_cpu in
17938 ia64*)
17939 shrext_cmds='.so'
17940 hardcode_into_libs=yes
17941 dynamic_linker="$host_os dld.so"
17942 shlibpath_var=LD_LIBRARY_PATH
17943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945 soname_spec='${libname}${release}${shared_ext}$major'
17946 if test "X$HPUX_IA64_MODE" = X32; then
17947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17948 else
17949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17950 fi
17951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17952 ;;
17953 hppa*64*)
17954 shrext_cmds='.sl'
17955 hardcode_into_libs=yes
17956 dynamic_linker="$host_os dld.sl"
17957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17963 ;;
17964 *)
17965 shrext_cmds='.sl'
17966 dynamic_linker="$host_os dld.sl"
17967 shlibpath_var=SHLIB_PATH
17968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17970 soname_spec='${libname}${release}${shared_ext}$major'
17971 ;;
17972 esac
17973 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17974 postinstall_cmds='chmod 555 $lib'
17975 ;;
17976
17977 interix3*)
17978 version_type=linux
17979 need_lib_prefix=no
17980 need_version=no
17981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17982 soname_spec='${libname}${release}${shared_ext}$major'
17983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17984 shlibpath_var=LD_LIBRARY_PATH
17985 shlibpath_overrides_runpath=no
17986 hardcode_into_libs=yes
17987 ;;
17988
17989 irix5* | irix6* | nonstopux*)
17990 case $host_os in
17991 nonstopux*) version_type=nonstopux ;;
17992 *)
17993 if test "$lt_cv_prog_gnu_ld" = yes; then
17994 version_type=linux
17995 else
17996 version_type=irix
17997 fi ;;
17998 esac
17999 need_lib_prefix=no
18000 need_version=no
18001 soname_spec='${libname}${release}${shared_ext}$major'
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18003 case $host_os in
18004 irix5* | nonstopux*)
18005 libsuff= shlibsuff=
18006 ;;
18007 *)
18008 case $LD in # libtool.m4 will add one of these switches to LD
18009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18010 libsuff= shlibsuff= libmagic=32-bit;;
18011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18012 libsuff=32 shlibsuff=N32 libmagic=N32;;
18013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18015 *) libsuff= shlibsuff= libmagic=never-match;;
18016 esac
18017 ;;
18018 esac
18019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18020 shlibpath_overrides_runpath=no
18021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18023 hardcode_into_libs=yes
18024 ;;
18025
18026 # No shared lib support for Linux oldld, aout, or coff.
18027 linux*oldld* | linux*aout* | linux*coff*)
18028 dynamic_linker=no
18029 ;;
18030
18031 # This must be Linux ELF.
18032 linux*)
18033 version_type=linux
18034 need_lib_prefix=no
18035 need_version=no
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18039 shlibpath_var=LD_LIBRARY_PATH
18040 shlibpath_overrides_runpath=no
18041 # This implies no fast_install, which is unacceptable.
18042 # Some rework will be needed to allow for fast_install
18043 # before this can be enabled.
18044 hardcode_into_libs=yes
18045
18046 # Append ld.so.conf contents to the search path
18047 if test -f /etc/ld.so.conf; then
18048 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18049 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18050 fi
18051
18052 # We used to test for /lib/ld.so.1 and disable shared libraries on
18053 # powerpc, because MkLinux only supported shared libraries with the
18054 # GNU dynamic linker. Since this was broken with cross compilers,
18055 # most powerpc-linux boxes support dynamic linking these days and
18056 # people can always --disable-shared, the test was removed, and we
18057 # assume the GNU/Linux dynamic linker is in use.
18058 dynamic_linker='GNU/Linux ld.so'
18059 ;;
18060
18061 knetbsd*-gnu)
18062 version_type=linux
18063 need_lib_prefix=no
18064 need_version=no
18065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18066 soname_spec='${libname}${release}${shared_ext}$major'
18067 shlibpath_var=LD_LIBRARY_PATH
18068 shlibpath_overrides_runpath=no
18069 hardcode_into_libs=yes
18070 dynamic_linker='GNU ld.so'
18071 ;;
18072
18073 netbsd*)
18074 version_type=sunos
18075 need_lib_prefix=no
18076 need_version=no
18077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18080 dynamic_linker='NetBSD (a.out) ld.so'
18081 else
18082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18083 soname_spec='${libname}${release}${shared_ext}$major'
18084 dynamic_linker='NetBSD ld.elf_so'
18085 fi
18086 shlibpath_var=LD_LIBRARY_PATH
18087 shlibpath_overrides_runpath=yes
18088 hardcode_into_libs=yes
18089 ;;
18090
18091 newsos6)
18092 version_type=linux
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18094 shlibpath_var=LD_LIBRARY_PATH
18095 shlibpath_overrides_runpath=yes
18096 ;;
18097
18098 nto-qnx*)
18099 version_type=linux
18100 need_lib_prefix=no
18101 need_version=no
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18103 soname_spec='${libname}${release}${shared_ext}$major'
18104 shlibpath_var=LD_LIBRARY_PATH
18105 shlibpath_overrides_runpath=yes
18106 ;;
18107
18108 openbsd*)
18109 version_type=sunos
18110 sys_lib_dlsearch_path_spec="/usr/lib"
18111 need_lib_prefix=no
18112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18113 case $host_os in
18114 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18115 *) need_version=no ;;
18116 esac
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18121 case $host_os in
18122 openbsd2.[89] | openbsd2.[89].*)
18123 shlibpath_overrides_runpath=no
18124 ;;
18125 *)
18126 shlibpath_overrides_runpath=yes
18127 ;;
18128 esac
18129 else
18130 shlibpath_overrides_runpath=yes
18131 fi
18132 ;;
18133
18134 os2*)
18135 libname_spec='$name'
18136 shrext_cmds=".dll"
18137 need_lib_prefix=no
18138 library_names_spec='$libname${shared_ext} $libname.a'
18139 dynamic_linker='OS/2 ld.exe'
18140 shlibpath_var=LIBPATH
18141 ;;
18142
18143 osf3* | osf4* | osf5*)
18144 version_type=osf
18145 need_lib_prefix=no
18146 need_version=no
18147 soname_spec='${libname}${release}${shared_ext}$major'
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 shlibpath_var=LD_LIBRARY_PATH
18150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18151 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18152 ;;
18153
18154 solaris*)
18155 version_type=linux
18156 need_lib_prefix=no
18157 need_version=no
18158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18159 soname_spec='${libname}${release}${shared_ext}$major'
18160 shlibpath_var=LD_LIBRARY_PATH
18161 shlibpath_overrides_runpath=yes
18162 hardcode_into_libs=yes
18163 # ldd complains unless libraries are executable
18164 postinstall_cmds='chmod +x $lib'
18165 ;;
18166
18167 sunos4*)
18168 version_type=sunos
18169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18171 shlibpath_var=LD_LIBRARY_PATH
18172 shlibpath_overrides_runpath=yes
18173 if test "$with_gnu_ld" = yes; then
18174 need_lib_prefix=no
18175 fi
18176 need_version=yes
18177 ;;
18178
18179 sysv4 | sysv4.3*)
18180 version_type=linux
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 shlibpath_var=LD_LIBRARY_PATH
18184 case $host_vendor in
18185 sni)
18186 shlibpath_overrides_runpath=no
18187 need_lib_prefix=no
18188 export_dynamic_flag_spec='${wl}-Blargedynsym'
18189 runpath_var=LD_RUN_PATH
18190 ;;
18191 siemens)
18192 need_lib_prefix=no
18193 ;;
18194 motorola)
18195 need_lib_prefix=no
18196 need_version=no
18197 shlibpath_overrides_runpath=no
18198 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18199 ;;
18200 esac
18201 ;;
18202
18203 sysv4*MP*)
18204 if test -d /usr/nec ;then
18205 version_type=linux
18206 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18207 soname_spec='$libname${shared_ext}.$major'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 fi
18210 ;;
18211
18212 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18213 version_type=freebsd-elf
18214 need_lib_prefix=no
18215 need_version=no
18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 hardcode_into_libs=yes
18220 if test "$with_gnu_ld" = yes; then
18221 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18222 shlibpath_overrides_runpath=no
18223 else
18224 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18225 shlibpath_overrides_runpath=yes
18226 case $host_os in
18227 sco3.2v5*)
18228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18229 ;;
18230 esac
18231 fi
18232 sys_lib_dlsearch_path_spec='/usr/lib'
18233 ;;
18234
18235 uts4*)
18236 version_type=linux
18237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 shlibpath_var=LD_LIBRARY_PATH
18240 ;;
18241
18242 *)
18243 dynamic_linker=no
18244 ;;
18245 esac
18246 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18247 echo "${ECHO_T}$dynamic_linker" >&6; }
18248 test "$dynamic_linker" = no && can_build_shared=no
18249
18250 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18251 if test "$GCC" = yes; then
18252 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18253 fi
18254
18255 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18256 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18257 hardcode_action_GCJ=
18258 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18259 test -n "$runpath_var_GCJ" || \
18260 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18261
18262 # We can hardcode non-existant directories.
18263 if test "$hardcode_direct_GCJ" != no &&
18264 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18265 # have to relink, otherwise we might link with an installed library
18266 # when we should be linking with a yet-to-be-installed one
18267 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18268 test "$hardcode_minus_L_GCJ" != no; then
18269 # Linking always hardcodes the temporary library directory.
18270 hardcode_action_GCJ=relink
18271 else
18272 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18273 hardcode_action_GCJ=immediate
18274 fi
18275 else
18276 # We cannot hardcode anything, or else we can only hardcode existing
18277 # directories.
18278 hardcode_action_GCJ=unsupported
18279 fi
18280 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18281 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18282
18283 if test "$hardcode_action_GCJ" = relink; then
18284 # Fast installation is not supported
18285 enable_fast_install=no
18286 elif test "$shlibpath_overrides_runpath" = yes ||
18287 test "$enable_shared" = no; then
18288 # Fast installation is not necessary
18289 enable_fast_install=needless
18290 fi
18291
18292
18293 # The else clause should only fire when bootstrapping the
18294 # libtool distribution, otherwise you forgot to ship ltmain.sh
18295 # with your package, and you will get complaints that there are
18296 # no rules to generate ltmain.sh.
18297 if test -f "$ltmain"; then
18298 # See if we are running on zsh, and set the options which allow our commands through
18299 # without removal of \ escapes.
18300 if test -n "${ZSH_VERSION+set}" ; then
18301 setopt NO_GLOB_SUBST
18302 fi
18303 # Now quote all the things that may contain metacharacters while being
18304 # careful not to overquote the AC_SUBSTed values. We take copies of the
18305 # variables and quote the copies for generation of the libtool script.
18306 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18307 SED SHELL STRIP \
18308 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18309 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18310 deplibs_check_method reload_flag reload_cmds need_locks \
18311 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18312 lt_cv_sys_global_symbol_to_c_name_address \
18313 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18314 old_postinstall_cmds old_postuninstall_cmds \
18315 compiler_GCJ \
18316 CC_GCJ \
18317 LD_GCJ \
18318 lt_prog_compiler_wl_GCJ \
18319 lt_prog_compiler_pic_GCJ \
18320 lt_prog_compiler_static_GCJ \
18321 lt_prog_compiler_no_builtin_flag_GCJ \
18322 export_dynamic_flag_spec_GCJ \
18323 thread_safe_flag_spec_GCJ \
18324 whole_archive_flag_spec_GCJ \
18325 enable_shared_with_static_runtimes_GCJ \
18326 old_archive_cmds_GCJ \
18327 old_archive_from_new_cmds_GCJ \
18328 predep_objects_GCJ \
18329 postdep_objects_GCJ \
18330 predeps_GCJ \
18331 postdeps_GCJ \
18332 compiler_lib_search_path_GCJ \
18333 archive_cmds_GCJ \
18334 archive_expsym_cmds_GCJ \
18335 postinstall_cmds_GCJ \
18336 postuninstall_cmds_GCJ \
18337 old_archive_from_expsyms_cmds_GCJ \
18338 allow_undefined_flag_GCJ \
18339 no_undefined_flag_GCJ \
18340 export_symbols_cmds_GCJ \
18341 hardcode_libdir_flag_spec_GCJ \
18342 hardcode_libdir_flag_spec_ld_GCJ \
18343 hardcode_libdir_separator_GCJ \
18344 hardcode_automatic_GCJ \
18345 module_cmds_GCJ \
18346 module_expsym_cmds_GCJ \
18347 lt_cv_prog_compiler_c_o_GCJ \
18348 exclude_expsyms_GCJ \
18349 include_expsyms_GCJ; do
18350
18351 case $var in
18352 old_archive_cmds_GCJ | \
18353 old_archive_from_new_cmds_GCJ | \
18354 archive_cmds_GCJ | \
18355 archive_expsym_cmds_GCJ | \
18356 module_cmds_GCJ | \
18357 module_expsym_cmds_GCJ | \
18358 old_archive_from_expsyms_cmds_GCJ | \
18359 export_symbols_cmds_GCJ | \
18360 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18361 postinstall_cmds | postuninstall_cmds | \
18362 old_postinstall_cmds | old_postuninstall_cmds | \
18363 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18364 # Double-quote double-evaled strings.
18365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18366 ;;
18367 *)
18368 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18369 ;;
18370 esac
18371 done
18372
18373 case $lt_echo in
18374 *'\$0 --fallback-echo"')
18375 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18376 ;;
18377 esac
18378
18379 cfgfile="$ofile"
18380
18381 cat <<__EOF__ >> "$cfgfile"
18382 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18383
18384 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18385
18386 # Shell to use when invoking shell scripts.
18387 SHELL=$lt_SHELL
18388
18389 # Whether or not to build shared libraries.
18390 build_libtool_libs=$enable_shared
18391
18392 # Whether or not to build static libraries.
18393 build_old_libs=$enable_static
18394
18395 # Whether or not to add -lc for building shared libraries.
18396 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18397
18398 # Whether or not to disallow shared libs when runtime libs are static
18399 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18400
18401 # Whether or not to optimize for fast installation.
18402 fast_install=$enable_fast_install
18403
18404 # The host system.
18405 host_alias=$host_alias
18406 host=$host
18407 host_os=$host_os
18408
18409 # The build system.
18410 build_alias=$build_alias
18411 build=$build
18412 build_os=$build_os
18413
18414 # An echo program that does not interpret backslashes.
18415 echo=$lt_echo
18416
18417 # The archiver.
18418 AR=$lt_AR
18419 AR_FLAGS=$lt_AR_FLAGS
18420
18421 # A C compiler.
18422 LTCC=$lt_LTCC
18423
18424 # LTCC compiler flags.
18425 LTCFLAGS=$lt_LTCFLAGS
18426
18427 # A language-specific compiler.
18428 CC=$lt_compiler_GCJ
18429
18430 # Is the compiler the GNU C compiler?
18431 with_gcc=$GCC_GCJ
18432
18433 # An ERE matcher.
18434 EGREP=$lt_EGREP
18435
18436 # The linker used to build libraries.
18437 LD=$lt_LD_GCJ
18438
18439 # Whether we need hard or soft links.
18440 LN_S=$lt_LN_S
18441
18442 # A BSD-compatible nm program.
18443 NM=$lt_NM
18444
18445 # A symbol stripping program
18446 STRIP=$lt_STRIP
18447
18448 # Used to examine libraries when file_magic_cmd begins "file"
18449 MAGIC_CMD=$MAGIC_CMD
18450
18451 # Used on cygwin: DLL creation program.
18452 DLLTOOL="$DLLTOOL"
18453
18454 # Used on cygwin: object dumper.
18455 OBJDUMP="$OBJDUMP"
18456
18457 # Used on cygwin: assembler.
18458 AS="$AS"
18459
18460 # The name of the directory that contains temporary libtool files.
18461 objdir=$objdir
18462
18463 # How to create reloadable object files.
18464 reload_flag=$lt_reload_flag
18465 reload_cmds=$lt_reload_cmds
18466
18467 # How to pass a linker flag through the compiler.
18468 wl=$lt_lt_prog_compiler_wl_GCJ
18469
18470 # Object file suffix (normally "o").
18471 objext="$ac_objext"
18472
18473 # Old archive suffix (normally "a").
18474 libext="$libext"
18475
18476 # Shared library suffix (normally ".so").
18477 shrext_cmds='$shrext_cmds'
18478
18479 # Executable file suffix (normally "").
18480 exeext="$exeext"
18481
18482 # Additional compiler flags for building library objects.
18483 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18484 pic_mode=$pic_mode
18485
18486 # What is the maximum length of a command?
18487 max_cmd_len=$lt_cv_sys_max_cmd_len
18488
18489 # Does compiler simultaneously support -c and -o options?
18490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18491
18492 # Must we lock files when doing compilation?
18493 need_locks=$lt_need_locks
18494
18495 # Do we need the lib prefix for modules?
18496 need_lib_prefix=$need_lib_prefix
18497
18498 # Do we need a version for libraries?
18499 need_version=$need_version
18500
18501 # Whether dlopen is supported.
18502 dlopen_support=$enable_dlopen
18503
18504 # Whether dlopen of programs is supported.
18505 dlopen_self=$enable_dlopen_self
18506
18507 # Whether dlopen of statically linked programs is supported.
18508 dlopen_self_static=$enable_dlopen_self_static
18509
18510 # Compiler flag to prevent dynamic linking.
18511 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18512
18513 # Compiler flag to turn off builtin functions.
18514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18515
18516 # Compiler flag to allow reflexive dlopens.
18517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18518
18519 # Compiler flag to generate shared objects directly from archives.
18520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18521
18522 # Compiler flag to generate thread-safe objects.
18523 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18524
18525 # Library versioning type.
18526 version_type=$version_type
18527
18528 # Format of library name prefix.
18529 libname_spec=$lt_libname_spec
18530
18531 # List of archive names. First name is the real one, the rest are links.
18532 # The last name is the one that the linker finds with -lNAME.
18533 library_names_spec=$lt_library_names_spec
18534
18535 # The coded name of the library, if different from the real name.
18536 soname_spec=$lt_soname_spec
18537
18538 # Commands used to build and install an old-style archive.
18539 RANLIB=$lt_RANLIB
18540 old_archive_cmds=$lt_old_archive_cmds_GCJ
18541 old_postinstall_cmds=$lt_old_postinstall_cmds
18542 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18543
18544 # Create an old-style archive from a shared archive.
18545 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18546
18547 # Create a temporary old-style archive to link instead of a shared archive.
18548 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18549
18550 # Commands used to build and install a shared archive.
18551 archive_cmds=$lt_archive_cmds_GCJ
18552 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18553 postinstall_cmds=$lt_postinstall_cmds
18554 postuninstall_cmds=$lt_postuninstall_cmds
18555
18556 # Commands used to build a loadable module (assumed same as above if empty)
18557 module_cmds=$lt_module_cmds_GCJ
18558 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18559
18560 # Commands to strip libraries.
18561 old_striplib=$lt_old_striplib
18562 striplib=$lt_striplib
18563
18564 # Dependencies to place before the objects being linked to create a
18565 # shared library.
18566 predep_objects=$lt_predep_objects_GCJ
18567
18568 # Dependencies to place after the objects being linked to create a
18569 # shared library.
18570 postdep_objects=$lt_postdep_objects_GCJ
18571
18572 # Dependencies to place before the objects being linked to create a
18573 # shared library.
18574 predeps=$lt_predeps_GCJ
18575
18576 # Dependencies to place after the objects being linked to create a
18577 # shared library.
18578 postdeps=$lt_postdeps_GCJ
18579
18580 # The library search path used internally by the compiler when linking
18581 # a shared library.
18582 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18583
18584 # Method to check whether dependent libraries are shared objects.
18585 deplibs_check_method=$lt_deplibs_check_method
18586
18587 # Command to use when deplibs_check_method == file_magic.
18588 file_magic_cmd=$lt_file_magic_cmd
18589
18590 # Flag that allows shared libraries with undefined symbols to be built.
18591 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18592
18593 # Flag that forces no undefined symbols.
18594 no_undefined_flag=$lt_no_undefined_flag_GCJ
18595
18596 # Commands used to finish a libtool library installation in a directory.
18597 finish_cmds=$lt_finish_cmds
18598
18599 # Same as above, but a single script fragment to be evaled but not shown.
18600 finish_eval=$lt_finish_eval
18601
18602 # Take the output of nm and produce a listing of raw symbols and C names.
18603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18604
18605 # Transform the output of nm in a proper C declaration
18606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18607
18608 # Transform the output of nm in a C name address pair
18609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18610
18611 # This is the shared library runtime path variable.
18612 runpath_var=$runpath_var
18613
18614 # This is the shared library path variable.
18615 shlibpath_var=$shlibpath_var
18616
18617 # Is shlibpath searched before the hard-coded library search path?
18618 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18619
18620 # How to hardcode a shared library path into an executable.
18621 hardcode_action=$hardcode_action_GCJ
18622
18623 # Whether we should hardcode library paths into libraries.
18624 hardcode_into_libs=$hardcode_into_libs
18625
18626 # Flag to hardcode \$libdir into a binary during linking.
18627 # This must work even if \$libdir does not exist.
18628 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18629
18630 # If ld is used when linking, flag to hardcode \$libdir into
18631 # a binary during linking. This must work even if \$libdir does
18632 # not exist.
18633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18634
18635 # Whether we need a single -rpath flag with a separated argument.
18636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18637
18638 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18639 # resulting binary.
18640 hardcode_direct=$hardcode_direct_GCJ
18641
18642 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18643 # resulting binary.
18644 hardcode_minus_L=$hardcode_minus_L_GCJ
18645
18646 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18647 # the resulting binary.
18648 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18649
18650 # Set to yes if building a shared library automatically hardcodes DIR into the library
18651 # and all subsequent libraries and executables linked against it.
18652 hardcode_automatic=$hardcode_automatic_GCJ
18653
18654 # Variables whose values should be saved in libtool wrapper scripts and
18655 # restored at relink time.
18656 variables_saved_for_relink="$variables_saved_for_relink"
18657
18658 # Whether libtool must link a program against all its dependency libraries.
18659 link_all_deplibs=$link_all_deplibs_GCJ
18660
18661 # Compile-time system search path for libraries
18662 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18663
18664 # Run-time system search path for libraries
18665 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18666
18667 # Fix the shell variable \$srcfile for the compiler.
18668 fix_srcfile_path="$fix_srcfile_path_GCJ"
18669
18670 # Set to yes if exported symbols are required.
18671 always_export_symbols=$always_export_symbols_GCJ
18672
18673 # The commands to list exported symbols.
18674 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18675
18676 # The commands to extract the exported symbol list from a shared archive.
18677 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18678
18679 # Symbols that should not be listed in the preloaded symbols.
18680 exclude_expsyms=$lt_exclude_expsyms_GCJ
18681
18682 # Symbols that must always be exported.
18683 include_expsyms=$lt_include_expsyms_GCJ
18684
18685 # ### END LIBTOOL TAG CONFIG: $tagname
18686
18687 __EOF__
18688
18689
18690 else
18691 # If there is no Makefile yet, we rely on a make rule to execute
18692 # `config.status --recheck' to rerun these tests and create the
18693 # libtool script then.
18694 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18695 if test -f "$ltmain_in"; then
18696 test -f Makefile && make "$ltmain"
18697 fi
18698 fi
18699
18700
18701 ac_ext=c
18702 ac_cpp='$CPP $CPPFLAGS'
18703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706
18707 CC="$lt_save_CC"
18708
18709 else
18710 tagname=""
18711 fi
18712 ;;
18713
18714 RC)
18715
18716
18717 # Source file extension for RC test sources.
18718 ac_ext=rc
18719
18720 # Object file extension for compiled RC test sources.
18721 objext=o
18722 objext_RC=$objext
18723
18724 # Code to be used in simple compile tests
18725 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18726
18727 # Code to be used in simple link tests
18728 lt_simple_link_test_code="$lt_simple_compile_test_code"
18729
18730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18731
18732 # If no C compiler was specified, use CC.
18733 LTCC=${LTCC-"$CC"}
18734
18735 # If no C compiler flags were specified, use CFLAGS.
18736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18737
18738 # Allow CC to be a program name with arguments.
18739 compiler=$CC
18740
18741
18742 # save warnings/boilerplate of simple test code
18743 ac_outfile=conftest.$ac_objext
18744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18746 _lt_compiler_boilerplate=`cat conftest.err`
18747 $rm conftest*
18748
18749 ac_outfile=conftest.$ac_objext
18750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18752 _lt_linker_boilerplate=`cat conftest.err`
18753 $rm conftest*
18754
18755
18756 # Allow CC to be a program name with arguments.
18757 lt_save_CC="$CC"
18758 CC=${RC-"windres"}
18759 compiler=$CC
18760 compiler_RC=$CC
18761 for cc_temp in $compiler""; do
18762 case $cc_temp in
18763 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18764 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18765 \-*) ;;
18766 *) break;;
18767 esac
18768 done
18769 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18770
18771 lt_cv_prog_compiler_c_o_RC=yes
18772
18773 # The else clause should only fire when bootstrapping the
18774 # libtool distribution, otherwise you forgot to ship ltmain.sh
18775 # with your package, and you will get complaints that there are
18776 # no rules to generate ltmain.sh.
18777 if test -f "$ltmain"; then
18778 # See if we are running on zsh, and set the options which allow our commands through
18779 # without removal of \ escapes.
18780 if test -n "${ZSH_VERSION+set}" ; then
18781 setopt NO_GLOB_SUBST
18782 fi
18783 # Now quote all the things that may contain metacharacters while being
18784 # careful not to overquote the AC_SUBSTed values. We take copies of the
18785 # variables and quote the copies for generation of the libtool script.
18786 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18787 SED SHELL STRIP \
18788 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18789 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18790 deplibs_check_method reload_flag reload_cmds need_locks \
18791 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18792 lt_cv_sys_global_symbol_to_c_name_address \
18793 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18794 old_postinstall_cmds old_postuninstall_cmds \
18795 compiler_RC \
18796 CC_RC \
18797 LD_RC \
18798 lt_prog_compiler_wl_RC \
18799 lt_prog_compiler_pic_RC \
18800 lt_prog_compiler_static_RC \
18801 lt_prog_compiler_no_builtin_flag_RC \
18802 export_dynamic_flag_spec_RC \
18803 thread_safe_flag_spec_RC \
18804 whole_archive_flag_spec_RC \
18805 enable_shared_with_static_runtimes_RC \
18806 old_archive_cmds_RC \
18807 old_archive_from_new_cmds_RC \
18808 predep_objects_RC \
18809 postdep_objects_RC \
18810 predeps_RC \
18811 postdeps_RC \
18812 compiler_lib_search_path_RC \
18813 archive_cmds_RC \
18814 archive_expsym_cmds_RC \
18815 postinstall_cmds_RC \
18816 postuninstall_cmds_RC \
18817 old_archive_from_expsyms_cmds_RC \
18818 allow_undefined_flag_RC \
18819 no_undefined_flag_RC \
18820 export_symbols_cmds_RC \
18821 hardcode_libdir_flag_spec_RC \
18822 hardcode_libdir_flag_spec_ld_RC \
18823 hardcode_libdir_separator_RC \
18824 hardcode_automatic_RC \
18825 module_cmds_RC \
18826 module_expsym_cmds_RC \
18827 lt_cv_prog_compiler_c_o_RC \
18828 exclude_expsyms_RC \
18829 include_expsyms_RC; do
18830
18831 case $var in
18832 old_archive_cmds_RC | \
18833 old_archive_from_new_cmds_RC | \
18834 archive_cmds_RC | \
18835 archive_expsym_cmds_RC | \
18836 module_cmds_RC | \
18837 module_expsym_cmds_RC | \
18838 old_archive_from_expsyms_cmds_RC | \
18839 export_symbols_cmds_RC | \
18840 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18841 postinstall_cmds | postuninstall_cmds | \
18842 old_postinstall_cmds | old_postuninstall_cmds | \
18843 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18844 # Double-quote double-evaled strings.
18845 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18846 ;;
18847 *)
18848 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18849 ;;
18850 esac
18851 done
18852
18853 case $lt_echo in
18854 *'\$0 --fallback-echo"')
18855 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18856 ;;
18857 esac
18858
18859 cfgfile="$ofile"
18860
18861 cat <<__EOF__ >> "$cfgfile"
18862 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18863
18864 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18865
18866 # Shell to use when invoking shell scripts.
18867 SHELL=$lt_SHELL
18868
18869 # Whether or not to build shared libraries.
18870 build_libtool_libs=$enable_shared
18871
18872 # Whether or not to build static libraries.
18873 build_old_libs=$enable_static
18874
18875 # Whether or not to add -lc for building shared libraries.
18876 build_libtool_need_lc=$archive_cmds_need_lc_RC
18877
18878 # Whether or not to disallow shared libs when runtime libs are static
18879 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18880
18881 # Whether or not to optimize for fast installation.
18882 fast_install=$enable_fast_install
18883
18884 # The host system.
18885 host_alias=$host_alias
18886 host=$host
18887 host_os=$host_os
18888
18889 # The build system.
18890 build_alias=$build_alias
18891 build=$build
18892 build_os=$build_os
18893
18894 # An echo program that does not interpret backslashes.
18895 echo=$lt_echo
18896
18897 # The archiver.
18898 AR=$lt_AR
18899 AR_FLAGS=$lt_AR_FLAGS
18900
18901 # A C compiler.
18902 LTCC=$lt_LTCC
18903
18904 # LTCC compiler flags.
18905 LTCFLAGS=$lt_LTCFLAGS
18906
18907 # A language-specific compiler.
18908 CC=$lt_compiler_RC
18909
18910 # Is the compiler the GNU C compiler?
18911 with_gcc=$GCC_RC
18912
18913 # An ERE matcher.
18914 EGREP=$lt_EGREP
18915
18916 # The linker used to build libraries.
18917 LD=$lt_LD_RC
18918
18919 # Whether we need hard or soft links.
18920 LN_S=$lt_LN_S
18921
18922 # A BSD-compatible nm program.
18923 NM=$lt_NM
18924
18925 # A symbol stripping program
18926 STRIP=$lt_STRIP
18927
18928 # Used to examine libraries when file_magic_cmd begins "file"
18929 MAGIC_CMD=$MAGIC_CMD
18930
18931 # Used on cygwin: DLL creation program.
18932 DLLTOOL="$DLLTOOL"
18933
18934 # Used on cygwin: object dumper.
18935 OBJDUMP="$OBJDUMP"
18936
18937 # Used on cygwin: assembler.
18938 AS="$AS"
18939
18940 # The name of the directory that contains temporary libtool files.
18941 objdir=$objdir
18942
18943 # How to create reloadable object files.
18944 reload_flag=$lt_reload_flag
18945 reload_cmds=$lt_reload_cmds
18946
18947 # How to pass a linker flag through the compiler.
18948 wl=$lt_lt_prog_compiler_wl_RC
18949
18950 # Object file suffix (normally "o").
18951 objext="$ac_objext"
18952
18953 # Old archive suffix (normally "a").
18954 libext="$libext"
18955
18956 # Shared library suffix (normally ".so").
18957 shrext_cmds='$shrext_cmds'
18958
18959 # Executable file suffix (normally "").
18960 exeext="$exeext"
18961
18962 # Additional compiler flags for building library objects.
18963 pic_flag=$lt_lt_prog_compiler_pic_RC
18964 pic_mode=$pic_mode
18965
18966 # What is the maximum length of a command?
18967 max_cmd_len=$lt_cv_sys_max_cmd_len
18968
18969 # Does compiler simultaneously support -c and -o options?
18970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18971
18972 # Must we lock files when doing compilation?
18973 need_locks=$lt_need_locks
18974
18975 # Do we need the lib prefix for modules?
18976 need_lib_prefix=$need_lib_prefix
18977
18978 # Do we need a version for libraries?
18979 need_version=$need_version
18980
18981 # Whether dlopen is supported.
18982 dlopen_support=$enable_dlopen
18983
18984 # Whether dlopen of programs is supported.
18985 dlopen_self=$enable_dlopen_self
18986
18987 # Whether dlopen of statically linked programs is supported.
18988 dlopen_self_static=$enable_dlopen_self_static
18989
18990 # Compiler flag to prevent dynamic linking.
18991 link_static_flag=$lt_lt_prog_compiler_static_RC
18992
18993 # Compiler flag to turn off builtin functions.
18994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18995
18996 # Compiler flag to allow reflexive dlopens.
18997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18998
18999 # Compiler flag to generate shared objects directly from archives.
19000 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19001
19002 # Compiler flag to generate thread-safe objects.
19003 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19004
19005 # Library versioning type.
19006 version_type=$version_type
19007
19008 # Format of library name prefix.
19009 libname_spec=$lt_libname_spec
19010
19011 # List of archive names. First name is the real one, the rest are links.
19012 # The last name is the one that the linker finds with -lNAME.
19013 library_names_spec=$lt_library_names_spec
19014
19015 # The coded name of the library, if different from the real name.
19016 soname_spec=$lt_soname_spec
19017
19018 # Commands used to build and install an old-style archive.
19019 RANLIB=$lt_RANLIB
19020 old_archive_cmds=$lt_old_archive_cmds_RC
19021 old_postinstall_cmds=$lt_old_postinstall_cmds
19022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19023
19024 # Create an old-style archive from a shared archive.
19025 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19026
19027 # Create a temporary old-style archive to link instead of a shared archive.
19028 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19029
19030 # Commands used to build and install a shared archive.
19031 archive_cmds=$lt_archive_cmds_RC
19032 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19033 postinstall_cmds=$lt_postinstall_cmds
19034 postuninstall_cmds=$lt_postuninstall_cmds
19035
19036 # Commands used to build a loadable module (assumed same as above if empty)
19037 module_cmds=$lt_module_cmds_RC
19038 module_expsym_cmds=$lt_module_expsym_cmds_RC
19039
19040 # Commands to strip libraries.
19041 old_striplib=$lt_old_striplib
19042 striplib=$lt_striplib
19043
19044 # Dependencies to place before the objects being linked to create a
19045 # shared library.
19046 predep_objects=$lt_predep_objects_RC
19047
19048 # Dependencies to place after the objects being linked to create a
19049 # shared library.
19050 postdep_objects=$lt_postdep_objects_RC
19051
19052 # Dependencies to place before the objects being linked to create a
19053 # shared library.
19054 predeps=$lt_predeps_RC
19055
19056 # Dependencies to place after the objects being linked to create a
19057 # shared library.
19058 postdeps=$lt_postdeps_RC
19059
19060 # The library search path used internally by the compiler when linking
19061 # a shared library.
19062 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19063
19064 # Method to check whether dependent libraries are shared objects.
19065 deplibs_check_method=$lt_deplibs_check_method
19066
19067 # Command to use when deplibs_check_method == file_magic.
19068 file_magic_cmd=$lt_file_magic_cmd
19069
19070 # Flag that allows shared libraries with undefined symbols to be built.
19071 allow_undefined_flag=$lt_allow_undefined_flag_RC
19072
19073 # Flag that forces no undefined symbols.
19074 no_undefined_flag=$lt_no_undefined_flag_RC
19075
19076 # Commands used to finish a libtool library installation in a directory.
19077 finish_cmds=$lt_finish_cmds
19078
19079 # Same as above, but a single script fragment to be evaled but not shown.
19080 finish_eval=$lt_finish_eval
19081
19082 # Take the output of nm and produce a listing of raw symbols and C names.
19083 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19084
19085 # Transform the output of nm in a proper C declaration
19086 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19087
19088 # Transform the output of nm in a C name address pair
19089 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19090
19091 # This is the shared library runtime path variable.
19092 runpath_var=$runpath_var
19093
19094 # This is the shared library path variable.
19095 shlibpath_var=$shlibpath_var
19096
19097 # Is shlibpath searched before the hard-coded library search path?
19098 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19099
19100 # How to hardcode a shared library path into an executable.
19101 hardcode_action=$hardcode_action_RC
19102
19103 # Whether we should hardcode library paths into libraries.
19104 hardcode_into_libs=$hardcode_into_libs
19105
19106 # Flag to hardcode \$libdir into a binary during linking.
19107 # This must work even if \$libdir does not exist.
19108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19109
19110 # If ld is used when linking, flag to hardcode \$libdir into
19111 # a binary during linking. This must work even if \$libdir does
19112 # not exist.
19113 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19114
19115 # Whether we need a single -rpath flag with a separated argument.
19116 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19117
19118 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19119 # resulting binary.
19120 hardcode_direct=$hardcode_direct_RC
19121
19122 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19123 # resulting binary.
19124 hardcode_minus_L=$hardcode_minus_L_RC
19125
19126 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19127 # the resulting binary.
19128 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19129
19130 # Set to yes if building a shared library automatically hardcodes DIR into the library
19131 # and all subsequent libraries and executables linked against it.
19132 hardcode_automatic=$hardcode_automatic_RC
19133
19134 # Variables whose values should be saved in libtool wrapper scripts and
19135 # restored at relink time.
19136 variables_saved_for_relink="$variables_saved_for_relink"
19137
19138 # Whether libtool must link a program against all its dependency libraries.
19139 link_all_deplibs=$link_all_deplibs_RC
19140
19141 # Compile-time system search path for libraries
19142 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19143
19144 # Run-time system search path for libraries
19145 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19146
19147 # Fix the shell variable \$srcfile for the compiler.
19148 fix_srcfile_path="$fix_srcfile_path_RC"
19149
19150 # Set to yes if exported symbols are required.
19151 always_export_symbols=$always_export_symbols_RC
19152
19153 # The commands to list exported symbols.
19154 export_symbols_cmds=$lt_export_symbols_cmds_RC
19155
19156 # The commands to extract the exported symbol list from a shared archive.
19157 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19158
19159 # Symbols that should not be listed in the preloaded symbols.
19160 exclude_expsyms=$lt_exclude_expsyms_RC
19161
19162 # Symbols that must always be exported.
19163 include_expsyms=$lt_include_expsyms_RC
19164
19165 # ### END LIBTOOL TAG CONFIG: $tagname
19166
19167 __EOF__
19168
19169
19170 else
19171 # If there is no Makefile yet, we rely on a make rule to execute
19172 # `config.status --recheck' to rerun these tests and create the
19173 # libtool script then.
19174 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19175 if test -f "$ltmain_in"; then
19176 test -f Makefile && make "$ltmain"
19177 fi
19178 fi
19179
19180
19181 ac_ext=c
19182 ac_cpp='$CPP $CPPFLAGS'
19183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19186
19187 CC="$lt_save_CC"
19188
19189 ;;
19190
19191 *)
19192 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19193 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19194 { (exit 1); exit 1; }; }
19195 ;;
19196 esac
19197
19198 # Append the new tag name to the list of available tags.
19199 if test -n "$tagname" ; then
19200 available_tags="$available_tags $tagname"
19201 fi
19202 fi
19203 done
19204 IFS="$lt_save_ifs"
19205
19206 # Now substitute the updated list of available tags.
19207 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19208 mv "${ofile}T" "$ofile"
19209 chmod +x "$ofile"
19210 else
19211 rm -f "${ofile}T"
19212 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19213 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19214 { (exit 1); exit 1; }; }
19215 fi
19216 fi
19217
19218
19219
19220 # This can be used to rebuild libtool when needed
19221 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19222
19223 # Always use our own libtool.
19224 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19225
19226 # Prevent multiple expansion
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247 ac_ext=c
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19252 if test -n "$ac_tool_prefix"; then
19253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19254 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19257 if test "${ac_cv_prog_CC+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19259 else
19260 if test -n "$CC"; then
19261 ac_cv_prog_CC="$CC" # Let the user override the test.
19262 else
19263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19264 for as_dir in $PATH
19265 do
19266 IFS=$as_save_IFS
19267 test -z "$as_dir" && as_dir=.
19268 for ac_exec_ext in '' $ac_executable_extensions; do
19269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19272 break 2
19273 fi
19274 done
19275 done
19276 IFS=$as_save_IFS
19277
19278 fi
19279 fi
19280 CC=$ac_cv_prog_CC
19281 if test -n "$CC"; then
19282 { echo "$as_me:$LINENO: result: $CC" >&5
19283 echo "${ECHO_T}$CC" >&6; }
19284 else
19285 { echo "$as_me:$LINENO: result: no" >&5
19286 echo "${ECHO_T}no" >&6; }
19287 fi
19288
19289
19290 fi
19291 if test -z "$ac_cv_prog_CC"; then
19292 ac_ct_CC=$CC
19293 # Extract the first word of "gcc", so it can be a program name with args.
19294 set dummy gcc; ac_word=$2
19295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19299 else
19300 if test -n "$ac_ct_CC"; then
19301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19302 else
19303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304 for as_dir in $PATH
19305 do
19306 IFS=$as_save_IFS
19307 test -z "$as_dir" && as_dir=.
19308 for ac_exec_ext in '' $ac_executable_extensions; do
19309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310 ac_cv_prog_ac_ct_CC="gcc"
19311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19312 break 2
19313 fi
19314 done
19315 done
19316 IFS=$as_save_IFS
19317
19318 fi
19319 fi
19320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19321 if test -n "$ac_ct_CC"; then
19322 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19323 echo "${ECHO_T}$ac_ct_CC" >&6; }
19324 else
19325 { echo "$as_me:$LINENO: result: no" >&5
19326 echo "${ECHO_T}no" >&6; }
19327 fi
19328
19329 if test "x$ac_ct_CC" = x; then
19330 CC=""
19331 else
19332 case $cross_compiling:$ac_tool_warned in
19333 yes:)
19334 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19335 whose name does not start with the host triplet. If you think this
19336 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19338 whose name does not start with the host triplet. If you think this
19339 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19340 ac_tool_warned=yes ;;
19341 esac
19342 CC=$ac_ct_CC
19343 fi
19344 else
19345 CC="$ac_cv_prog_CC"
19346 fi
19347
19348 if test -z "$CC"; then
19349 if test -n "$ac_tool_prefix"; then
19350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19351 set dummy ${ac_tool_prefix}cc; ac_word=$2
19352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19354 if test "${ac_cv_prog_CC+set}" = set; then
19355 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 else
19357 if test -n "$CC"; then
19358 ac_cv_prog_CC="$CC" # Let the user override the test.
19359 else
19360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19361 for as_dir in $PATH
19362 do
19363 IFS=$as_save_IFS
19364 test -z "$as_dir" && as_dir=.
19365 for ac_exec_ext in '' $ac_executable_extensions; do
19366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19367 ac_cv_prog_CC="${ac_tool_prefix}cc"
19368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19369 break 2
19370 fi
19371 done
19372 done
19373 IFS=$as_save_IFS
19374
19375 fi
19376 fi
19377 CC=$ac_cv_prog_CC
19378 if test -n "$CC"; then
19379 { echo "$as_me:$LINENO: result: $CC" >&5
19380 echo "${ECHO_T}$CC" >&6; }
19381 else
19382 { echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6; }
19384 fi
19385
19386
19387 fi
19388 fi
19389 if test -z "$CC"; then
19390 # Extract the first word of "cc", so it can be a program name with args.
19391 set dummy cc; ac_word=$2
19392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19394 if test "${ac_cv_prog_CC+set}" = set; then
19395 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 else
19397 if test -n "$CC"; then
19398 ac_cv_prog_CC="$CC" # Let the user override the test.
19399 else
19400 ac_prog_rejected=no
19401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19402 for as_dir in $PATH
19403 do
19404 IFS=$as_save_IFS
19405 test -z "$as_dir" && as_dir=.
19406 for ac_exec_ext in '' $ac_executable_extensions; do
19407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19409 ac_prog_rejected=yes
19410 continue
19411 fi
19412 ac_cv_prog_CC="cc"
19413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19414 break 2
19415 fi
19416 done
19417 done
19418 IFS=$as_save_IFS
19419
19420 if test $ac_prog_rejected = yes; then
19421 # We found a bogon in the path, so make sure we never use it.
19422 set dummy $ac_cv_prog_CC
19423 shift
19424 if test $# != 0; then
19425 # We chose a different compiler from the bogus one.
19426 # However, it has the same basename, so the bogon will be chosen
19427 # first if we set CC to just the basename; use the full file name.
19428 shift
19429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19430 fi
19431 fi
19432 fi
19433 fi
19434 CC=$ac_cv_prog_CC
19435 if test -n "$CC"; then
19436 { echo "$as_me:$LINENO: result: $CC" >&5
19437 echo "${ECHO_T}$CC" >&6; }
19438 else
19439 { echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6; }
19441 fi
19442
19443
19444 fi
19445 if test -z "$CC"; then
19446 if test -n "$ac_tool_prefix"; then
19447 for ac_prog in cl.exe
19448 do
19449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19453 if test "${ac_cv_prog_CC+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456 if test -n "$CC"; then
19457 ac_cv_prog_CC="$CC" # Let the user override the test.
19458 else
19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19461 do
19462 IFS=$as_save_IFS
19463 test -z "$as_dir" && as_dir=.
19464 for ac_exec_ext in '' $ac_executable_extensions; do
19465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19468 break 2
19469 fi
19470 done
19471 done
19472 IFS=$as_save_IFS
19473
19474 fi
19475 fi
19476 CC=$ac_cv_prog_CC
19477 if test -n "$CC"; then
19478 { echo "$as_me:$LINENO: result: $CC" >&5
19479 echo "${ECHO_T}$CC" >&6; }
19480 else
19481 { echo "$as_me:$LINENO: result: no" >&5
19482 echo "${ECHO_T}no" >&6; }
19483 fi
19484
19485
19486 test -n "$CC" && break
19487 done
19488 fi
19489 if test -z "$CC"; then
19490 ac_ct_CC=$CC
19491 for ac_prog in cl.exe
19492 do
19493 # Extract the first word of "$ac_prog", so it can be a program name with args.
19494 set dummy $ac_prog; ac_word=$2
19495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19498 echo $ECHO_N "(cached) $ECHO_C" >&6
19499 else
19500 if test -n "$ac_ct_CC"; then
19501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19502 else
19503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19504 for as_dir in $PATH
19505 do
19506 IFS=$as_save_IFS
19507 test -z "$as_dir" && as_dir=.
19508 for ac_exec_ext in '' $ac_executable_extensions; do
19509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19510 ac_cv_prog_ac_ct_CC="$ac_prog"
19511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19512 break 2
19513 fi
19514 done
19515 done
19516 IFS=$as_save_IFS
19517
19518 fi
19519 fi
19520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19521 if test -n "$ac_ct_CC"; then
19522 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19523 echo "${ECHO_T}$ac_ct_CC" >&6; }
19524 else
19525 { echo "$as_me:$LINENO: result: no" >&5
19526 echo "${ECHO_T}no" >&6; }
19527 fi
19528
19529
19530 test -n "$ac_ct_CC" && break
19531 done
19532
19533 if test "x$ac_ct_CC" = x; then
19534 CC=""
19535 else
19536 case $cross_compiling:$ac_tool_warned in
19537 yes:)
19538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19539 whose name does not start with the host triplet. If you think this
19540 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19542 whose name does not start with the host triplet. If you think this
19543 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19544 ac_tool_warned=yes ;;
19545 esac
19546 CC=$ac_ct_CC
19547 fi
19548 fi
19549
19550 fi
19551
19552
19553 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19554 See \`config.log' for more details." >&5
19555 echo "$as_me: error: no acceptable C compiler found in \$PATH
19556 See \`config.log' for more details." >&2;}
19557 { (exit 1); exit 1; }; }
19558
19559 # Provide some information about the compiler.
19560 echo "$as_me:$LINENO: checking for C compiler version" >&5
19561 ac_compiler=`set X $ac_compile; echo $2`
19562 { (ac_try="$ac_compiler --version >&5"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19566 esac
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compiler --version >&5") 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }
19572 { (ac_try="$ac_compiler -v >&5"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19576 esac
19577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_compiler -v >&5") 2>&5
19579 ac_status=$?
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); }
19582 { (ac_try="$ac_compiler -V >&5"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_compiler -V >&5") 2>&5
19589 ac_status=$?
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }
19592
19593 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19594 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19595 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604
19605 int
19606 main ()
19607 {
19608 #ifndef __GNUC__
19609 choke me
19610 #endif
19611
19612 ;
19613 return 0;
19614 }
19615 _ACEOF
19616 rm -f conftest.$ac_objext
19617 if { (ac_try="$ac_compile"
19618 case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19621 esac
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_compile") 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } && {
19630 test -z "$ac_c_werror_flag" ||
19631 test ! -s conftest.err
19632 } && test -s conftest.$ac_objext; then
19633 ac_compiler_gnu=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_compiler_gnu=no
19639 fi
19640
19641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19643
19644 fi
19645 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19646 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19647 GCC=`test $ac_compiler_gnu = yes && echo yes`
19648 ac_test_CFLAGS=${CFLAGS+set}
19649 ac_save_CFLAGS=$CFLAGS
19650 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19652 if test "${ac_cv_prog_cc_g+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 ac_save_c_werror_flag=$ac_c_werror_flag
19656 ac_c_werror_flag=yes
19657 ac_cv_prog_cc_g=no
19658 CFLAGS="-g"
19659 cat >conftest.$ac_ext <<_ACEOF
19660 /* confdefs.h. */
19661 _ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19665
19666 int
19667 main ()
19668 {
19669
19670 ;
19671 return 0;
19672 }
19673 _ACEOF
19674 rm -f conftest.$ac_objext
19675 if { (ac_try="$ac_compile"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19679 esac
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_compile") 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } && {
19688 test -z "$ac_c_werror_flag" ||
19689 test ! -s conftest.err
19690 } && test -s conftest.$ac_objext; then
19691 ac_cv_prog_cc_g=yes
19692 else
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 CFLAGS=""
19697 cat >conftest.$ac_ext <<_ACEOF
19698 /* confdefs.h. */
19699 _ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19703
19704 int
19705 main ()
19706 {
19707
19708 ;
19709 return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (ac_try="$ac_compile"
19714 case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717 esac
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } && {
19726 test -z "$ac_c_werror_flag" ||
19727 test ! -s conftest.err
19728 } && test -s conftest.$ac_objext; then
19729 :
19730 else
19731 echo "$as_me: failed program was:" >&5
19732 sed 's/^/| /' conftest.$ac_ext >&5
19733
19734 ac_c_werror_flag=$ac_save_c_werror_flag
19735 CFLAGS="-g"
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742
19743 int
19744 main ()
19745 {
19746
19747 ;
19748 return 0;
19749 }
19750 _ACEOF
19751 rm -f conftest.$ac_objext
19752 if { (ac_try="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756 esac
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest.$ac_objext; then
19768 ac_cv_prog_cc_g=yes
19769 else
19770 echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773
19774 fi
19775
19776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 fi
19778
19779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780 fi
19781
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 ac_c_werror_flag=$ac_save_c_werror_flag
19784 fi
19785 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19786 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19787 if test "$ac_test_CFLAGS" = set; then
19788 CFLAGS=$ac_save_CFLAGS
19789 elif test $ac_cv_prog_cc_g = yes; then
19790 if test "$GCC" = yes; then
19791 CFLAGS="-g -O2"
19792 else
19793 CFLAGS="-g"
19794 fi
19795 else
19796 if test "$GCC" = yes; then
19797 CFLAGS="-O2"
19798 else
19799 CFLAGS=
19800 fi
19801 fi
19802 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19803 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19804 if test "${ac_cv_prog_cc_c89+set}" = set; then
19805 echo $ECHO_N "(cached) $ECHO_C" >&6
19806 else
19807 ac_cv_prog_cc_c89=no
19808 ac_save_CC=$CC
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h. */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19815 #include <stdarg.h>
19816 #include <stdio.h>
19817 #include <sys/types.h>
19818 #include <sys/stat.h>
19819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19820 struct buf { int x; };
19821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19822 static char *e (p, i)
19823 char **p;
19824 int i;
19825 {
19826 return p[i];
19827 }
19828 static char *f (char * (*g) (char **, int), char **p, ...)
19829 {
19830 char *s;
19831 va_list v;
19832 va_start (v,p);
19833 s = g (p, va_arg (v,int));
19834 va_end (v);
19835 return s;
19836 }
19837
19838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19839 function prototypes and stuff, but not '\xHH' hex character constants.
19840 These don't provoke an error unfortunately, instead are silently treated
19841 as 'x'. The following induces an error, until -std is added to get
19842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19843 array size at least. It's necessary to write '\x00'==0 to get something
19844 that's true only with -std. */
19845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19846
19847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19848 inside strings and character constants. */
19849 #define FOO(x) 'x'
19850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19851
19852 int test (int i, double x);
19853 struct s1 {int (*f) (int a);};
19854 struct s2 {int (*f) (double a);};
19855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19856 int argc;
19857 char **argv;
19858 int
19859 main ()
19860 {
19861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19868 do
19869 CC="$ac_save_CC $ac_arg"
19870 rm -f conftest.$ac_objext
19871 if { (ac_try="$ac_compile"
19872 case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875 esac
19876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
19878 ac_status=$?
19879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); } && {
19884 test -z "$ac_c_werror_flag" ||
19885 test ! -s conftest.err
19886 } && test -s conftest.$ac_objext; then
19887 ac_cv_prog_cc_c89=$ac_arg
19888 else
19889 echo "$as_me: failed program was:" >&5
19890 sed 's/^/| /' conftest.$ac_ext >&5
19891
19892
19893 fi
19894
19895 rm -f core conftest.err conftest.$ac_objext
19896 test "x$ac_cv_prog_cc_c89" != "xno" && break
19897 done
19898 rm -f conftest.$ac_ext
19899 CC=$ac_save_CC
19900
19901 fi
19902 # AC_CACHE_VAL
19903 case "x$ac_cv_prog_cc_c89" in
19904 x)
19905 { echo "$as_me:$LINENO: result: none needed" >&5
19906 echo "${ECHO_T}none needed" >&6; } ;;
19907 xno)
19908 { echo "$as_me:$LINENO: result: unsupported" >&5
19909 echo "${ECHO_T}unsupported" >&6; } ;;
19910 *)
19911 CC="$CC $ac_cv_prog_cc_c89"
19912 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19913 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19914 esac
19915
19916
19917 ac_ext=c
19918 ac_cpp='$CPP $CPPFLAGS'
19919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19922
19923 depcc="$CC" am_compiler_list=
19924
19925 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19926 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19927 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19931 # We make a subdir and do the tests there. Otherwise we can end up
19932 # making bogus files that we don't know about and never remove. For
19933 # instance it was reported that on HP-UX the gcc test will end up
19934 # making a dummy file named `D' -- because `-MD' means `put the output
19935 # in D'.
19936 mkdir conftest.dir
19937 # Copy depcomp to subdir because otherwise we won't find it if we're
19938 # using a relative directory.
19939 cp "$am_depcomp" conftest.dir
19940 cd conftest.dir
19941 # We will build objects and dependencies in a subdirectory because
19942 # it helps to detect inapplicable dependency modes. For instance
19943 # both Tru64's cc and ICC support -MD to output dependencies as a
19944 # side effect of compilation, but ICC will put the dependencies in
19945 # the current directory while Tru64 will put them in the object
19946 # directory.
19947 mkdir sub
19948
19949 am_cv_CC_dependencies_compiler_type=none
19950 if test "$am_compiler_list" = ""; then
19951 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19952 fi
19953 for depmode in $am_compiler_list; do
19954 # Setup a source with many dependencies, because some compilers
19955 # like to wrap large dependency lists on column 80 (with \), and
19956 # we should not choose a depcomp mode which is confused by this.
19957 #
19958 # We need to recreate these files for each test, as the compiler may
19959 # overwrite some of them when testing with obscure command lines.
19960 # This happens at least with the AIX C compiler.
19961 : > sub/conftest.c
19962 for i in 1 2 3 4 5 6; do
19963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19964 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19965 # Solaris 8's {/usr,}/bin/sh.
19966 touch sub/conftst$i.h
19967 done
19968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19969
19970 case $depmode in
19971 nosideeffect)
19972 # after this tag, mechanisms are not by side-effect, so they'll
19973 # only be used when explicitly requested
19974 if test "x$enable_dependency_tracking" = xyes; then
19975 continue
19976 else
19977 break
19978 fi
19979 ;;
19980 none) break ;;
19981 esac
19982 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19983 # mode. It turns out that the SunPro C++ compiler does not properly
19984 # handle `-M -o', and we need to detect this.
19985 if depmode=$depmode \
19986 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19988 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19989 >/dev/null 2>conftest.err &&
19990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19992 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19994 # icc doesn't choke on unknown options, it will just issue warnings
19995 # or remarks (even with -Werror). So we grep stderr for any message
19996 # that says an option was ignored or not supported.
19997 # When given -MP, icc 7.0 and 7.1 complain thusly:
19998 # icc: Command line warning: ignoring option '-M'; no argument required
19999 # The diagnosis changed in icc 8.0:
20000 # icc: Command line remark: option '-MP' not supported
20001 if (grep 'ignoring option' conftest.err ||
20002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20003 am_cv_CC_dependencies_compiler_type=$depmode
20004 break
20005 fi
20006 fi
20007 done
20008
20009 cd ..
20010 rm -rf conftest.dir
20011 else
20012 am_cv_CC_dependencies_compiler_type=none
20013 fi
20014
20015 fi
20016 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20017 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20019
20020 if
20021 test "x$enable_dependency_tracking" != xno \
20022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20023 am__fastdepCC_TRUE=
20024 am__fastdepCC_FALSE='#'
20025 else
20026 am__fastdepCC_TRUE='#'
20027 am__fastdepCC_FALSE=
20028 fi
20029
20030
20031
20032
20033 if test "x$GCC" = xyes ; then
20034 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
20035 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
20036 -Wbad-function-cast"
20037 case `gcc -dumpversion` in
20038 3.4.* | 4.*)
20039 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
20040 ;;
20041 esac
20042 else
20043 { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
20044 echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
20045 if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 else
20048 cat >conftest.$ac_ext <<_ACEOF
20049 /* confdefs.h. */
20050 _ACEOF
20051 cat confdefs.h >>conftest.$ac_ext
20052 cat >>conftest.$ac_ext <<_ACEOF
20053 /* end confdefs.h. */
20054 $ac_includes_default
20055 int
20056 main ()
20057 {
20058 #ifndef __SUNPRO_C
20059 (void) __SUNPRO_C;
20060 #endif
20061
20062 ;
20063 return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext
20067 if { (ac_try="$ac_compile"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_compile") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest.$ac_objext; then
20083 ac_cv_have_decl___SUNPRO_C=yes
20084 else
20085 echo "$as_me: failed program was:" >&5
20086 sed 's/^/| /' conftest.$ac_ext >&5
20087
20088 ac_cv_have_decl___SUNPRO_C=no
20089 fi
20090
20091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20092 fi
20093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
20094 echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
20095 if test $ac_cv_have_decl___SUNPRO_C = yes; then
20096 SUNCC="yes"
20097 else
20098 SUNCC="no"
20099 fi
20100
20101 if test "x$SUNCC" = "xyes"; then
20102 CWARNFLAGS="-v"
20103 fi
20104 fi
20105
20106
20107
20108
20109
20110
20111
20112 # Check whether --with-xorg-module-dir was given.
20113 if test "${with_xorg_module_dir+set}" = set; then
20114 withval=$with_xorg_module_dir; moduledir="$withval"
20115 else
20116 moduledir="$libdir/xorg/modules"
20117 fi
20118
20119
20120 # Checks for extensions
20121
20122 SAVE_CFLAGS="$CFLAGS"
20123 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20124 cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h. */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h. */
20130
20131 #include "xorg-server.h"
20132 #if !defined RANDR
20133 #error RANDR not defined
20134 #endif
20135
20136 int
20137 main ()
20138 {
20139
20140 ;
20141 return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext
20145 if { (ac_try="$ac_compile"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_compile") 2>conftest.er1
20152 ac_status=$?
20153 grep -v '^ *+' conftest.er1 >conftest.err
20154 rm -f conftest.er1
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } && {
20158 test -z "$ac_c_werror_flag" ||
20159 test ! -s conftest.err
20160 } && test -s conftest.$ac_objext; then
20161 _EXT_CHECK=yes
20162 else
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 _EXT_CHECK=no
20167 fi
20168
20169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20170 CFLAGS="$SAVE_CFLAGS"
20171 { echo "$as_me:$LINENO: checking if RANDR is defined" >&5
20172 echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6; }
20173 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20174 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20175 if test "$_EXT_CHECK" != no; then
20176 REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
20177 fi
20178
20179
20180 SAVE_CFLAGS="$CFLAGS"
20181 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20182 cat >conftest.$ac_ext <<_ACEOF
20183 /* confdefs.h. */
20184 _ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188
20189 #include "xorg-server.h"
20190 #if !defined RENDER
20191 #error RENDER not defined
20192 #endif
20193
20194 int
20195 main ()
20196 {
20197
20198 ;
20199 return 0;
20200 }
20201 _ACEOF
20202 rm -f conftest.$ac_objext
20203 if { (ac_try="$ac_compile"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_compile") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest.$ac_objext; then
20219 _EXT_CHECK=yes
20220 else
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20223
20224 _EXT_CHECK=no
20225 fi
20226
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20228 CFLAGS="$SAVE_CFLAGS"
20229 { echo "$as_me:$LINENO: checking if RENDER is defined" >&5
20230 echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6; }
20231 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20232 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20233 if test "$_EXT_CHECK" != no; then
20234 REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
20235 fi
20236
20237
20238 SAVE_CFLAGS="$CFLAGS"
20239 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246
20247 #include "xorg-server.h"
20248 #if !defined XV
20249 #error XV not defined
20250 #endif
20251
20252 int
20253 main ()
20254 {
20255
20256 ;
20257 return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext
20261 if { (ac_try="$ac_compile"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_compile") 2>conftest.er1
20268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest.$ac_objext; then
20277 _EXT_CHECK=yes
20278 else
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282 _EXT_CHECK=no
20283 fi
20284
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 CFLAGS="$SAVE_CFLAGS"
20287 { echo "$as_me:$LINENO: checking if XV is defined" >&5
20288 echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6; }
20289 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20290 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20291 if test "$_EXT_CHECK" != no; then
20292 REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
20293 fi
20294
20295
20296 SAVE_CFLAGS="$CFLAGS"
20297 CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
20298 cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h. */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h. */
20304
20305 #include "xorg-server.h"
20306 #if !defined DPMSExtension
20307 #error DPMSExtension not defined
20308 #endif
20309
20310 int
20311 main ()
20312 {
20313
20314 ;
20315 return 0;
20316 }
20317 _ACEOF
20318 rm -f conftest.$ac_objext
20319 if { (ac_try="$ac_compile"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20323 esac
20324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_compile") 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest.$ac_objext; then
20335 _EXT_CHECK=yes
20336 else
20337 echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340 _EXT_CHECK=no
20341 fi
20342
20343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344 CFLAGS="$SAVE_CFLAGS"
20345 { echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
20346 echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6; }
20347 { echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
20348 echo "${ECHO_T}$_EXT_CHECK" >&6; }
20349 if test "$_EXT_CHECK" != no; then
20350 REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
20351 fi
20352
20353
20354 # Checks for pkg-config packages
20355
20356
20357 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20358 if test -n "$ac_tool_prefix"; then
20359 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20360 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20363 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20364 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366 case $PKG_CONFIG in
20367 [\\/]* | ?:[\\/]*)
20368 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20369 ;;
20370 *)
20371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20372 for as_dir in $PATH
20373 do
20374 IFS=$as_save_IFS
20375 test -z "$as_dir" && as_dir=.
20376 for ac_exec_ext in '' $ac_executable_extensions; do
20377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20378 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20380 break 2
20381 fi
20382 done
20383 done
20384 IFS=$as_save_IFS
20385
20386 ;;
20387 esac
20388 fi
20389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20390 if test -n "$PKG_CONFIG"; then
20391 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20392 echo "${ECHO_T}$PKG_CONFIG" >&6; }
20393 else
20394 { echo "$as_me:$LINENO: result: no" >&5
20395 echo "${ECHO_T}no" >&6; }
20396 fi
20397
20398
20399 fi
20400 if test -z "$ac_cv_path_PKG_CONFIG"; then
20401 ac_pt_PKG_CONFIG=$PKG_CONFIG
20402 # Extract the first word of "pkg-config", so it can be a program name with args.
20403 set dummy pkg-config; ac_word=$2
20404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20406 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20407 echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409 case $ac_pt_PKG_CONFIG in
20410 [\\/]* | ?:[\\/]*)
20411 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20412 ;;
20413 *)
20414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417 IFS=$as_save_IFS
20418 test -z "$as_dir" && as_dir=.
20419 for ac_exec_ext in '' $ac_executable_extensions; do
20420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20421 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20423 break 2
20424 fi
20425 done
20426 done
20427 IFS=$as_save_IFS
20428
20429 ;;
20430 esac
20431 fi
20432 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20433 if test -n "$ac_pt_PKG_CONFIG"; then
20434 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20435 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20436 else
20437 { echo "$as_me:$LINENO: result: no" >&5
20438 echo "${ECHO_T}no" >&6; }
20439 fi
20440
20441 if test "x$ac_pt_PKG_CONFIG" = x; then
20442 PKG_CONFIG=""
20443 else
20444 case $cross_compiling:$ac_tool_warned in
20445 yes:)
20446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20447 whose name does not start with the host triplet. If you think this
20448 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
20449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20450 whose name does not start with the host triplet. If you think this
20451 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
20452 ac_tool_warned=yes ;;
20453 esac
20454 PKG_CONFIG=$ac_pt_PKG_CONFIG
20455 fi
20456 else
20457 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20458 fi
20459
20460 fi
20461 if test -n "$PKG_CONFIG"; then
20462 _pkg_min_version=0.9.0
20463 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20464 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20465 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20466 { echo "$as_me:$LINENO: result: yes" >&5
20467 echo "${ECHO_T}yes" >&6; }
20468 else
20469 { echo "$as_me:$LINENO: result: no" >&5
20470 echo "${ECHO_T}no" >&6; }
20471 PKG_CONFIG=""
20472 fi
20473
20474 fi
20475
20476 pkg_failed=no
20477 { echo "$as_me:$LINENO: checking for XORG" >&5
20478 echo $ECHO_N "checking for XORG... $ECHO_C" >&6; }
20479
20480 if test -n "$PKG_CONFIG"; then
20481 if test -n "$PKG_CONFIG" && \
20482 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20483 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; then
20487 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20488 else
20489 pkg_failed=yes
20490 fi
20491 else
20492 pkg_failed=untried
20493 fi
20494 if test -n "$PKG_CONFIG"; then
20495 if test -n "$PKG_CONFIG" && \
20496 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\"") >&5
20497 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; then
20501 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
20502 else
20503 pkg_failed=yes
20504 fi
20505 else
20506 pkg_failed=untried
20507 fi
20508
20509 if test $pkg_failed = yes; then
20510 XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES"`
20511 # Put the nasty error message in config.log where it belongs
20512 echo "$XORG_PKG_ERRORS" 1>&5
20513
20514 { { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met.
20515 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20516 installed software in a non-standard prefix.
20517
20518 Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20519 to avoid the need to call pkg-config. See the pkg-config man page for
20520 more details." >&5
20521 echo "$as_me: error: Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met.
20522 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20523 installed software in a non-standard prefix.
20524
20525 Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20526 to avoid the need to call pkg-config. See the pkg-config man page for
20527 more details." >&2;}
20528 { (exit 1); exit 1; }; }
20529 elif test $pkg_failed = untried; then
20530 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20531 is in your PATH or set the PKG_CONFIG environment variable to the full
20532 path to pkg-config.
20533
20534 Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20535 to avoid the need to call pkg-config. See the pkg-config man page for
20536 more details.
20537
20538 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20539 See \`config.log' for more details." >&5
20540 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20541 is in your PATH or set the PKG_CONFIG environment variable to the full
20542 path to pkg-config.
20543
20544 Alternatively you may set the XORG_CFLAGS and XORG_LIBS environment variables
20545 to avoid the need to call pkg-config. See the pkg-config man page for
20546 more details.
20547
20548 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20549 See \`config.log' for more details." >&2;}
20550 { (exit 1); exit 1; }; }
20551 else
20552 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20553 XORG_LIBS=$pkg_cv_XORG_LIBS
20554 { echo "$as_me:$LINENO: result: yes" >&5
20555 echo "${ECHO_T}yes" >&6; }
20556 :
20557 fi
20558 sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20559
20560 # Checks for libraries.
20561 SAVE_CPPFLAGS="$CPPFLAGS"
20562 CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20563 { echo "$as_me:$LINENO: checking whether XSERVER_LIBPCIACCESS is declared" >&5
20564 echo $ECHO_N "checking whether XSERVER_LIBPCIACCESS is declared... $ECHO_C" >&6; }
20565 if test "${ac_cv_have_decl_XSERVER_LIBPCIACCESS+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20567 else
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h. */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h. */
20574 #include "xorg-server.h"
20575
20576 int
20577 main ()
20578 {
20579 #ifndef XSERVER_LIBPCIACCESS
20580 (void) XSERVER_LIBPCIACCESS;
20581 #endif
20582
20583 ;
20584 return 0;
20585 }
20586 _ACEOF
20587 rm -f conftest.$ac_objext
20588 if { (ac_try="$ac_compile"
20589 case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_compile") 2>conftest.er1
20595 ac_status=$?
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest.$ac_objext; then
20604 ac_cv_have_decl_XSERVER_LIBPCIACCESS=yes
20605 else
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609 ac_cv_have_decl_XSERVER_LIBPCIACCESS=no
20610 fi
20611
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 fi
20614 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&5
20615 echo "${ECHO_T}$ac_cv_have_decl_XSERVER_LIBPCIACCESS" >&6; }
20616 if test $ac_cv_have_decl_XSERVER_LIBPCIACCESS = yes; then
20617 XSERVER_LIBPCIACCESS=yes
20618 else
20619 XSERVER_LIBPCIACCESS=no
20620 fi
20621
20622 if test "${ac_cv_header_xf1bpp_h+set}" = set; then
20623 { echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
20624 echo $ECHO_N "checking for xf1bpp.h... $ECHO_C" >&6; }
20625 if test "${ac_cv_header_xf1bpp_h+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20627 fi
20628 { echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
20629 echo "${ECHO_T}$ac_cv_header_xf1bpp_h" >&6; }
20630 else
20631 # Is the header compilable?
20632 { echo "$as_me:$LINENO: checking xf1bpp.h usability" >&5
20633 echo $ECHO_N "checking xf1bpp.h usability... $ECHO_C" >&6; }
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20640 $ac_includes_default
20641 #include <xf1bpp.h>
20642 _ACEOF
20643 rm -f conftest.$ac_objext
20644 if { (ac_try="$ac_compile"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_compile") 2>conftest.er1
20651 ac_status=$?
20652 grep -v '^ *+' conftest.er1 >conftest.err
20653 rm -f conftest.er1
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest.$ac_objext; then
20660 ac_header_compiler=yes
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ac_header_compiler=no
20666 fi
20667
20668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20670 echo "${ECHO_T}$ac_header_compiler" >&6; }
20671
20672 # Is the header present?
20673 { echo "$as_me:$LINENO: checking xf1bpp.h presence" >&5
20674 echo $ECHO_N "checking xf1bpp.h presence... $ECHO_C" >&6; }
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681 #include <xf1bpp.h>
20682 _ACEOF
20683 if { (ac_try="$ac_cpp conftest.$ac_ext"
20684 case "(($ac_try" in
20685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20686 *) ac_try_echo=$ac_try;;
20687 esac
20688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20690 ac_status=$?
20691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } >/dev/null && {
20696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20697 test ! -s conftest.err
20698 }; then
20699 ac_header_preproc=yes
20700 else
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 ac_header_preproc=no
20705 fi
20706
20707 rm -f conftest.err conftest.$ac_ext
20708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20709 echo "${ECHO_T}$ac_header_preproc" >&6; }
20710
20711 # So? What about this header?
20712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20713 yes:no: )
20714 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20715 echo "$as_me: WARNING: xf1bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the compiler's result" >&5
20717 echo "$as_me: WARNING: xf1bpp.h: proceeding with the compiler's result" >&2;}
20718 ac_header_preproc=yes
20719 ;;
20720 no:yes:* )
20721 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: present but cannot be compiled" >&5
20722 echo "$as_me: WARNING: xf1bpp.h: present but cannot be compiled" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&5
20724 echo "$as_me: WARNING: xf1bpp.h: check for missing prerequisite headers?" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: see the Autoconf documentation" >&5
20726 echo "$as_me: WARNING: xf1bpp.h: see the Autoconf documentation" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&5
20728 echo "$as_me: WARNING: xf1bpp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20729 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&5
20730 echo "$as_me: WARNING: xf1bpp.h: proceeding with the preprocessor's result" >&2;}
20731 { echo "$as_me:$LINENO: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&5
20732 echo "$as_me: WARNING: xf1bpp.h: in the future, the compiler will take precedence" >&2;}
20733 ( cat <<\_ASBOX
20734 ## ---------------------------------------------------------------------- ##
20735 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20736 ## ---------------------------------------------------------------------- ##
20737 _ASBOX
20738 ) | sed "s/^/$as_me: WARNING: /" >&2
20739 ;;
20740 esac
20741 { echo "$as_me:$LINENO: checking for xf1bpp.h" >&5
20742 echo $ECHO_N "checking for xf1bpp.h... $ECHO_C" >&6; }
20743 if test "${ac_cv_header_xf1bpp_h+set}" = set; then
20744 echo $ECHO_N "(cached) $ECHO_C" >&6
20745 else
20746 ac_cv_header_xf1bpp_h=$ac_header_preproc
20747 fi
20748 { echo "$as_me:$LINENO: result: $ac_cv_header_xf1bpp_h" >&5
20749 echo "${ECHO_T}$ac_cv_header_xf1bpp_h" >&6; }
20750
20751 fi
20752 if test $ac_cv_header_xf1bpp_h = yes; then
20753
20754 cat >>confdefs.h <<\_ACEOF
20755 #define HAVE_XF1BPP 1
20756 _ACEOF
20757
20758 fi
20759
20760
20761 if test "${ac_cv_header_xf4bpp_h+set}" = set; then
20762 { echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
20763 echo $ECHO_N "checking for xf4bpp.h... $ECHO_C" >&6; }
20764 if test "${ac_cv_header_xf4bpp_h+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 fi
20767 { echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
20768 echo "${ECHO_T}$ac_cv_header_xf4bpp_h" >&6; }
20769 else
20770 # Is the header compilable?
20771 { echo "$as_me:$LINENO: checking xf4bpp.h usability" >&5
20772 echo $ECHO_N "checking xf4bpp.h usability... $ECHO_C" >&6; }
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 $ac_includes_default
20780 #include <xf4bpp.h>
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (ac_try="$ac_compile"
20784 case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787 esac
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_compile") 2>conftest.er1
20790 ac_status=$?
20791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
20794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } && {
20796 test -z "$ac_c_werror_flag" ||
20797 test ! -s conftest.err
20798 } && test -s conftest.$ac_objext; then
20799 ac_header_compiler=yes
20800 else
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.$ac_ext >&5
20803
20804 ac_header_compiler=no
20805 fi
20806
20807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20809 echo "${ECHO_T}$ac_header_compiler" >&6; }
20810
20811 # Is the header present?
20812 { echo "$as_me:$LINENO: checking xf4bpp.h presence" >&5
20813 echo $ECHO_N "checking xf4bpp.h presence... $ECHO_C" >&6; }
20814 cat >conftest.$ac_ext <<_ACEOF
20815 /* confdefs.h. */
20816 _ACEOF
20817 cat confdefs.h >>conftest.$ac_ext
20818 cat >>conftest.$ac_ext <<_ACEOF
20819 /* end confdefs.h. */
20820 #include <xf4bpp.h>
20821 _ACEOF
20822 if { (ac_try="$ac_cpp conftest.$ac_ext"
20823 case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20829 ac_status=$?
20830 grep -v '^ *+' conftest.er1 >conftest.err
20831 rm -f conftest.er1
20832 cat conftest.err >&5
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); } >/dev/null && {
20835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20836 test ! -s conftest.err
20837 }; then
20838 ac_header_preproc=yes
20839 else
20840 echo "$as_me: failed program was:" >&5
20841 sed 's/^/| /' conftest.$ac_ext >&5
20842
20843 ac_header_preproc=no
20844 fi
20845
20846 rm -f conftest.err conftest.$ac_ext
20847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20848 echo "${ECHO_T}$ac_header_preproc" >&6; }
20849
20850 # So? What about this header?
20851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20852 yes:no: )
20853 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&5
20854 echo "$as_me: WARNING: xf4bpp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20855 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the compiler's result" >&5
20856 echo "$as_me: WARNING: xf4bpp.h: proceeding with the compiler's result" >&2;}
20857 ac_header_preproc=yes
20858 ;;
20859 no:yes:* )
20860 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: present but cannot be compiled" >&5
20861 echo "$as_me: WARNING: xf4bpp.h: present but cannot be compiled" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&5
20863 echo "$as_me: WARNING: xf4bpp.h: check for missing prerequisite headers?" >&2;}
20864 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: see the Autoconf documentation" >&5
20865 echo "$as_me: WARNING: xf4bpp.h: see the Autoconf documentation" >&2;}
20866 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&5
20867 echo "$as_me: WARNING: xf4bpp.h: section \"Present But Cannot Be Compiled\"" >&2;}
20868 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&5
20869 echo "$as_me: WARNING: xf4bpp.h: proceeding with the preprocessor's result" >&2;}
20870 { echo "$as_me:$LINENO: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&5
20871 echo "$as_me: WARNING: xf4bpp.h: in the future, the compiler will take precedence" >&2;}
20872 ( cat <<\_ASBOX
20873 ## ---------------------------------------------------------------------- ##
20874 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
20875 ## ---------------------------------------------------------------------- ##
20876 _ASBOX
20877 ) | sed "s/^/$as_me: WARNING: /" >&2
20878 ;;
20879 esac
20880 { echo "$as_me:$LINENO: checking for xf4bpp.h" >&5
20881 echo $ECHO_N "checking for xf4bpp.h... $ECHO_C" >&6; }
20882 if test "${ac_cv_header_xf4bpp_h+set}" = set; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884 else
20885 ac_cv_header_xf4bpp_h=$ac_header_preproc
20886 fi
20887 { echo "$as_me:$LINENO: result: $ac_cv_header_xf4bpp_h" >&5
20888 echo "${ECHO_T}$ac_cv_header_xf4bpp_h" >&6; }
20889
20890 fi
20891 if test $ac_cv_header_xf4bpp_h = yes; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_XF4BPP 1
20895 _ACEOF
20896
20897 fi
20898
20899
20900 CPPFLAGS="$SAVE_CPPFLAGS"
20901
20902 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20903
20904 pkg_failed=no
20905 { echo "$as_me:$LINENO: checking for PCIACCESS" >&5
20906 echo $ECHO_N "checking for PCIACCESS... $ECHO_C" >&6; }
20907
20908 if test -n "$PKG_CONFIG"; then
20909 if test -n "$PKG_CONFIG" && \
20910 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20911 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; then
20915 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20916 else
20917 pkg_failed=yes
20918 fi
20919 else
20920 pkg_failed=untried
20921 fi
20922 if test -n "$PKG_CONFIG"; then
20923 if test -n "$PKG_CONFIG" && \
20924 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\"") >&5
20925 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; then
20929 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20930 else
20931 pkg_failed=yes
20932 fi
20933 else
20934 pkg_failed=untried
20935 fi
20936
20937 if test $pkg_failed = yes; then
20938 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pciaccess >= 0.8.0"`
20939 # Put the nasty error message in config.log where it belongs
20940 echo "$PCIACCESS_PKG_ERRORS" 1>&5
20941
20942 { { echo "$as_me:$LINENO: error: Package requirements (pciaccess >= 0.8.0) were not met.
20943 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20944 installed software in a non-standard prefix.
20945
20946 Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20947 to avoid the need to call pkg-config. See the pkg-config man page for
20948 more details." >&5
20949 echo "$as_me: error: Package requirements (pciaccess >= 0.8.0) were not met.
20950 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20951 installed software in a non-standard prefix.
20952
20953 Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20954 to avoid the need to call pkg-config. See the pkg-config man page for
20955 more details." >&2;}
20956 { (exit 1); exit 1; }; }
20957 elif test $pkg_failed = untried; then
20958 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
20959 is in your PATH or set the PKG_CONFIG environment variable to the full
20960 path to pkg-config.
20961
20962 Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20963 to avoid the need to call pkg-config. See the pkg-config man page for
20964 more details.
20965
20966 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20967 See \`config.log' for more details." >&5
20968 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
20969 is in your PATH or set the PKG_CONFIG environment variable to the full
20970 path to pkg-config.
20971
20972 Alternatively you may set the PCIACCESS_CFLAGS and PCIACCESS_LIBS environment variables
20973 to avoid the need to call pkg-config. See the pkg-config man page for
20974 more details.
20975
20976 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20977 See \`config.log' for more details." >&2;}
20978 { (exit 1); exit 1; }; }
20979 else
20980 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20981 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20982 { echo "$as_me:$LINENO: result: yes" >&5
20983 echo "${ECHO_T}yes" >&6; }
20984 :
20985 fi
20986 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20987 fi
20988 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20989 XSERVER_LIBPCIACCESS_TRUE=
20990 XSERVER_LIBPCIACCESS_FALSE='#'
20991 else
20992 XSERVER_LIBPCIACCESS_TRUE='#'
20993 XSERVER_LIBPCIACCESS_FALSE=
20994 fi
20995
20996
20997 # Checks for header files.
20998 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20999 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21000 if test "${ac_cv_header_stdc+set}" = set; then
21001 echo $ECHO_N "(cached) $ECHO_C" >&6
21002 else
21003 cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h. */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 #include <stdlib.h>
21010 #include <stdarg.h>
21011 #include <string.h>
21012 #include <float.h>
21013
21014 int
21015 main ()
21016 {
21017
21018 ;
21019 return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21027 esac
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_compile") 2>conftest.er1
21030 ac_status=$?
21031 grep -v '^ *+' conftest.er1 >conftest.err
21032 rm -f conftest.er1
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); } && {
21036 test -z "$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 } && test -s conftest.$ac_objext; then
21039 ac_cv_header_stdc=yes
21040 else
21041 echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21043
21044 ac_cv_header_stdc=no
21045 fi
21046
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048
21049 if test $ac_cv_header_stdc = yes; then
21050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21051 cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h. */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21057 #include <string.h>
21058
21059 _ACEOF
21060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21061 $EGREP "memchr" >/dev/null 2>&1; then
21062 :
21063 else
21064 ac_cv_header_stdc=no
21065 fi
21066 rm -f conftest*
21067
21068 fi
21069
21070 if test $ac_cv_header_stdc = yes; then
21071 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21072 cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h. */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21078 #include <stdlib.h>
21079
21080 _ACEOF
21081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21082 $EGREP "free" >/dev/null 2>&1; then
21083 :
21084 else
21085 ac_cv_header_stdc=no
21086 fi
21087 rm -f conftest*
21088
21089 fi
21090
21091 if test $ac_cv_header_stdc = yes; then
21092 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21093 if test "$cross_compiling" = yes; then
21094 :
21095 else
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 #include <ctype.h>
21103 #include <stdlib.h>
21104 #if ((' ' & 0x0FF) == 0x020)
21105 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21106 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21107 #else
21108 # define ISLOWER(c) \
21109 (('a' <= (c) && (c) <= 'i') \
21110 || ('j' <= (c) && (c) <= 'r') \
21111 || ('s' <= (c) && (c) <= 'z'))
21112 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21113 #endif
21114
21115 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21116 int
21117 main ()
21118 {
21119 int i;
21120 for (i = 0; i < 256; i++)
21121 if (XOR (islower (i), ISLOWER (i))
21122 || toupper (i) != TOUPPER (i))
21123 return 2;
21124 return 0;
21125 }
21126 _ACEOF
21127 rm -f conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21138 { (case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21141 esac
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_try") 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21147 :
21148 else
21149 echo "$as_me: program exited with status $ac_status" >&5
21150 echo "$as_me: failed program was:" >&5
21151 sed 's/^/| /' conftest.$ac_ext >&5
21152
21153 ( exit $ac_status )
21154 ac_cv_header_stdc=no
21155 fi
21156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157 fi
21158
21159
21160 fi
21161 fi
21162 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21163 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21164 if test $ac_cv_header_stdc = yes; then
21165
21166 cat >>confdefs.h <<\_ACEOF
21167 #define STDC_HEADERS 1
21168 _ACEOF
21169
21170 fi
21171
21172
21173
21174
21175
21176 DRIVER_NAME=cirrus
21177
21178
21179
21180
21181
21182 if test x$APP_MAN_SUFFIX = x ; then
21183 APP_MAN_SUFFIX=1
21184 fi
21185 if test x$APP_MAN_DIR = x ; then
21186 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
21187 fi
21188
21189 if test x$LIB_MAN_SUFFIX = x ; then
21190 LIB_MAN_SUFFIX=3
21191 fi
21192 if test x$LIB_MAN_DIR = x ; then
21193 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
21194 fi
21195
21196 if test x$FILE_MAN_SUFFIX = x ; then
21197 case $host_os in
21198 solaris*) FILE_MAN_SUFFIX=4 ;;
21199 *) FILE_MAN_SUFFIX=5 ;;
21200 esac
21201 fi
21202 if test x$FILE_MAN_DIR = x ; then
21203 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
21204 fi
21205
21206 if test x$MISC_MAN_SUFFIX = x ; then
21207 case $host_os in
21208 solaris*) MISC_MAN_SUFFIX=5 ;;
21209 *) MISC_MAN_SUFFIX=7 ;;
21210 esac
21211 fi
21212 if test x$MISC_MAN_DIR = x ; then
21213 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
21214 fi
21215
21216 if test x$DRIVER_MAN_SUFFIX = x ; then
21217 case $host_os in
21218 solaris*) DRIVER_MAN_SUFFIX=7 ;;
21219 *) DRIVER_MAN_SUFFIX=4 ;;
21220 esac
21221 fi
21222 if test x$DRIVER_MAN_DIR = x ; then
21223 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
21224 fi
21225
21226 if test x$ADMIN_MAN_SUFFIX = x ; then
21227 case $host_os in
21228 solaris*) ADMIN_MAN_SUFFIX=1m ;;
21229 *) ADMIN_MAN_SUFFIX=8 ;;
21230 esac
21231 fi
21232 if test x$ADMIN_MAN_DIR = x ; then
21233 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
21234 fi
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252 # Check whether --with-release-version was given.
21253 if test "${with_release_version+set}" = set; then
21254 withval=$with_release_version; RELEASE_VERSION="$withval"
21255 else
21256 RELEASE_VERSION=""
21257 fi
21258
21259 if test "x$RELEASE_VERSION" != "x"; then
21260 PACKAGE="$PACKAGE-$RELEASE_VERSION"
21261 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
21262 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
21263 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
21264 fi
21265
21266 cat >>confdefs.h <<_ACEOF
21267 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
21268 _ACEOF
21269
21270 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
21271 if test "x$PVM" = "x"; then
21272 PVM="0"
21273 fi
21274
21275 cat >>confdefs.h <<_ACEOF
21276 #define PACKAGE_VERSION_MINOR $PVM
21277 _ACEOF
21278
21279 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
21280 if test "x$PVP" = "x"; then
21281 PVP="0"
21282 fi
21283
21284 cat >>confdefs.h <<_ACEOF
21285 #define PACKAGE_VERSION_PATCHLEVEL $PVP
21286 _ACEOF
21287
21288
21289
21290 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
21291 mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
21292 echo 'git directory not found: installing possibly empty changelog.' >&2)"
21293
21294 distcleancheck_listfiles='find . -type f ! -name ChangeLog -print'
21295
21296
21297
21298 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
21299
21300 cat >confcache <<\_ACEOF
21301 # This file is a shell script that caches the results of configure
21302 # tests run on this system so they can be shared between configure
21303 # scripts and configure runs, see configure's option --config-cache.
21304 # It is not useful on other systems. If it contains results you don't
21305 # want to keep, you may remove or edit it.
21306 #
21307 # config.status only pays attention to the cache file if you give it
21308 # the --recheck option to rerun configure.
21309 #
21310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21312 # following values.
21313
21314 _ACEOF
21315
21316 # The following way of writing the cache mishandles newlines in values,
21317 # but we know of no workaround that is simple, portable, and efficient.
21318 # So, we kill variables containing newlines.
21319 # Ultrix sh set writes to stderr and can't be redirected directly,
21320 # and sets the high bit in the cache file unless we assign to the vars.
21321 (
21322 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21323 eval ac_val=\$$ac_var
21324 case $ac_val in #(
21325 *${as_nl}*)
21326 case $ac_var in #(
21327 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21328 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21329 esac
21330 case $ac_var in #(
21331 _ | IFS | as_nl) ;; #(
21332 *) $as_unset $ac_var ;;
21333 esac ;;
21334 esac
21335 done
21336
21337 (set) 2>&1 |
21338 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21339 *${as_nl}ac_space=\ *)
21340 # `set' does not quote correctly, so add quotes (double-quote
21341 # substitution turns \\\\ into \\, and sed turns \\ into \).
21342 sed -n \
21343 "s/'/'\\\\''/g;
21344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21345 ;; #(
21346 *)
21347 # `set' quotes correctly as required by POSIX, so do not add quotes.
21348 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21349 ;;
21350 esac |
21351 sort
21352 ) |
21353 sed '
21354 /^ac_cv_env_/b end
21355 t clear
21356 :clear
21357 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21358 t end
21359 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21360 :end' >>confcache
21361 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21362 if test -w "$cache_file"; then
21363 test "x$cache_file" != "x/dev/null" &&
21364 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21365 echo "$as_me: updating cache $cache_file" >&6;}
21366 cat confcache >$cache_file
21367 else
21368 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21369 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21370 fi
21371 fi
21372 rm -f confcache
21373
21374 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21375 # Let make expand exec_prefix.
21376 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21377
21378 DEFS=-DHAVE_CONFIG_H
21379
21380 ac_libobjs=
21381 ac_ltlibobjs=
21382 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21383 # 1. Remove the extension, and $U if already installed.
21384 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21385 ac_i=`echo "$ac_i" | sed "$ac_script"`
21386 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21387 # will be set to the directory where LIBOBJS objects are built.
21388 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21389 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21390 done
21391 LIBOBJS=$ac_libobjs
21392
21393 LTLIBOBJS=$ac_ltlibobjs
21394
21395
21396 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21397 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21398 Usually this means the macro was only invoked conditionally." >&5
21399 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21400 Usually this means the macro was only invoked conditionally." >&2;}
21401 { (exit 1); exit 1; }; }
21402 fi
21403 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21404 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21405 Usually this means the macro was only invoked conditionally." >&5
21406 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21407 Usually this means the macro was only invoked conditionally." >&2;}
21408 { (exit 1); exit 1; }; }
21409 fi
21410 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21411 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21412 Usually this means the macro was only invoked conditionally." >&5
21413 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21414 Usually this means the macro was only invoked conditionally." >&2;}
21415 { (exit 1); exit 1; }; }
21416 fi
21417 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21418 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21419 Usually this means the macro was only invoked conditionally." >&5
21420 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21421 Usually this means the macro was only invoked conditionally." >&2;}
21422 { (exit 1); exit 1; }; }
21423 fi
21424 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21425 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21426 Usually this means the macro was only invoked conditionally." >&5
21427 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21428 Usually this means the macro was only invoked conditionally." >&2;}
21429 { (exit 1); exit 1; }; }
21430 fi
21431 if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
21432 { { echo "$as_me:$LINENO: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21433 Usually this means the macro was only invoked conditionally." >&5
21434 echo "$as_me: error: conditional \"XSERVER_LIBPCIACCESS\" was never defined.
21435 Usually this means the macro was only invoked conditionally." >&2;}
21436 { (exit 1); exit 1; }; }
21437 fi
21438
21439 : ${CONFIG_STATUS=./config.status}
21440 ac_clean_files_save=$ac_clean_files
21441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21442 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21443 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21444 cat >$CONFIG_STATUS <<_ACEOF
21445 #! $SHELL
21446 # Generated by $as_me.
21447 # Run this file to recreate the current configuration.
21448 # Compiler output produced by configure, useful for debugging
21449 # configure, is in config.log if it exists.
21450
21451 debug=false
21452 ac_cs_recheck=false
21453 ac_cs_silent=false
21454 SHELL=\${CONFIG_SHELL-$SHELL}
21455 _ACEOF
21456
21457 cat >>$CONFIG_STATUS <<\_ACEOF
21458 ## --------------------- ##
21459 ## M4sh Initialization. ##
21460 ## --------------------- ##
21461
21462 # Be more Bourne compatible
21463 DUALCASE=1; export DUALCASE # for MKS sh
21464 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21465 emulate sh
21466 NULLCMD=:
21467 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21468 # is contrary to our usage. Disable this feature.
21469 alias -g '${1+"$@"}'='"$@"'
21470 setopt NO_GLOB_SUBST
21471 else
21472 case `(set -o) 2>/dev/null` in
21473 *posix*) set -o posix ;;
21474 esac
21475
21476 fi
21477
21478
21479
21480
21481 # PATH needs CR
21482 # Avoid depending upon Character Ranges.
21483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21486 as_cr_digits='0123456789'
21487 as_cr_alnum=$as_cr_Letters$as_cr_digits
21488
21489 # The user is always right.
21490 if test "${PATH_SEPARATOR+set}" != set; then
21491 echo "#! /bin/sh" >conf$$.sh
21492 echo "exit 0" >>conf$$.sh
21493 chmod +x conf$$.sh
21494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21495 PATH_SEPARATOR=';'
21496 else
21497 PATH_SEPARATOR=:
21498 fi
21499 rm -f conf$$.sh
21500 fi
21501
21502 # Support unset when possible.
21503 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21504 as_unset=unset
21505 else
21506 as_unset=false
21507 fi
21508
21509
21510 # IFS
21511 # We need space, tab and new line, in precisely that order. Quoting is
21512 # there to prevent editors from complaining about space-tab.
21513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21514 # splitting by setting IFS to empty value.)
21515 as_nl='
21516 '
21517 IFS=" "" $as_nl"
21518
21519 # Find who we are. Look in the path if we contain no directory separator.
21520 case $0 in
21521 *[\\/]* ) as_myself=$0 ;;
21522 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21523 for as_dir in $PATH
21524 do
21525 IFS=$as_save_IFS
21526 test -z "$as_dir" && as_dir=.
21527 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21528 done
21529 IFS=$as_save_IFS
21530
21531 ;;
21532 esac
21533 # We did not find ourselves, most probably we were run as `sh COMMAND'
21534 # in which case we are not to be found in the path.
21535 if test "x$as_myself" = x; then
21536 as_myself=$0
21537 fi
21538 if test ! -f "$as_myself"; then
21539 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21540 { (exit 1); exit 1; }
21541 fi
21542
21543 # Work around bugs in pre-3.0 UWIN ksh.
21544 for as_var in ENV MAIL MAILPATH
21545 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21546 done
21547 PS1='$ '
21548 PS2='> '
21549 PS4='+ '
21550
21551 # NLS nuisances.
21552 for as_var in \
21553 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21554 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21555 LC_TELEPHONE LC_TIME
21556 do
21557 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21558 eval $as_var=C; export $as_var
21559 else
21560 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21561 fi
21562 done
21563
21564 # Required to use basename.
21565 if expr a : '\(a\)' >/dev/null 2>&1 &&
21566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21567 as_expr=expr
21568 else
21569 as_expr=false
21570 fi
21571
21572 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21573 as_basename=basename
21574 else
21575 as_basename=false
21576 fi
21577
21578
21579 # Name of the executable.
21580 as_me=`$as_basename -- "$0" ||
21581 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21582 X"$0" : 'X\(//\)$' \| \
21583 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21584 echo X/"$0" |
21585 sed '/^.*\/\([^/][^/]*\)\/*$/{
21586 s//\1/
21587 q
21588 }
21589 /^X\/\(\/\/\)$/{
21590 s//\1/
21591 q
21592 }
21593 /^X\/\(\/\).*/{
21594 s//\1/
21595 q
21596 }
21597 s/.*/./; q'`
21598
21599 # CDPATH.
21600 $as_unset CDPATH
21601
21602
21603
21604 as_lineno_1=$LINENO
21605 as_lineno_2=$LINENO
21606 test "x$as_lineno_1" != "x$as_lineno_2" &&
21607 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21608
21609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21610 # uniformly replaced by the line number. The first 'sed' inserts a
21611 # line-number line after each line using $LINENO; the second 'sed'
21612 # does the real work. The second script uses 'N' to pair each
21613 # line-number line with the line containing $LINENO, and appends
21614 # trailing '-' during substitution so that $LINENO is not a special
21615 # case at line end.
21616 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21617 # scripts with optimization help from Paolo Bonzini. Blame Lee
21618 # E. McMahon (1931-1989) for sed's syntax. :-)
21619 sed -n '
21620 p
21621 /[$]LINENO/=
21622 ' <$as_myself |
21623 sed '
21624 s/[$]LINENO.*/&-/
21625 t lineno
21626 b
21627 :lineno
21628 N
21629 :loop
21630 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21631 t loop
21632 s/-\n.*//
21633 ' >$as_me.lineno &&
21634 chmod +x "$as_me.lineno" ||
21635 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21636 { (exit 1); exit 1; }; }
21637
21638 # Don't try to exec as it changes $[0], causing all sort of problems
21639 # (the dirname of $[0] is not the place where we might find the
21640 # original and so on. Autoconf is especially sensitive to this).
21641 . "./$as_me.lineno"
21642 # Exit status is that of the last command.
21643 exit
21644 }
21645
21646
21647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21648 as_dirname=dirname
21649 else
21650 as_dirname=false
21651 fi
21652
21653 ECHO_C= ECHO_N= ECHO_T=
21654 case `echo -n x` in
21655 -n*)
21656 case `echo 'x\c'` in
21657 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21658 *) ECHO_C='\c';;
21659 esac;;
21660 *)
21661 ECHO_N='-n';;
21662 esac
21663
21664 if expr a : '\(a\)' >/dev/null 2>&1 &&
21665 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21666 as_expr=expr
21667 else
21668 as_expr=false
21669 fi
21670
21671 rm -f conf$$ conf$$.exe conf$$.file
21672 if test -d conf$$.dir; then
21673 rm -f conf$$.dir/conf$$.file
21674 else
21675 rm -f conf$$.dir
21676 mkdir conf$$.dir
21677 fi
21678 echo >conf$$.file
21679 if ln -s conf$$.file conf$$ 2>/dev/null; then
21680 as_ln_s='ln -s'
21681 # ... but there are two gotchas:
21682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21684 # In both cases, we have to default to `cp -p'.
21685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21686 as_ln_s='cp -p'
21687 elif ln conf$$.file conf$$ 2>/dev/null; then
21688 as_ln_s=ln
21689 else
21690 as_ln_s='cp -p'
21691 fi
21692 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21693 rmdir conf$$.dir 2>/dev/null
21694
21695 if mkdir -p . 2>/dev/null; then
21696 as_mkdir_p=:
21697 else
21698 test -d ./-p && rmdir ./-p
21699 as_mkdir_p=false
21700 fi
21701
21702 if test -x / >/dev/null 2>&1; then
21703 as_test_x='test -x'
21704 else
21705 if ls -dL / >/dev/null 2>&1; then
21706 as_ls_L_option=L
21707 else
21708 as_ls_L_option=
21709 fi
21710 as_test_x='
21711 eval sh -c '\''
21712 if test -d "$1"; then
21713 test -d "$1/.";
21714 else
21715 case $1 in
21716 -*)set "./$1";;
21717 esac;
21718 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21719 ???[sx]*):;;*)false;;esac;fi
21720 '\'' sh
21721 '
21722 fi
21723 as_executable_p=$as_test_x
21724
21725 # Sed expression to map a string onto a valid CPP name.
21726 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21727
21728 # Sed expression to map a string onto a valid variable name.
21729 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21730
21731
21732 exec 6>&1
21733
21734 # Save the log message, to keep $[0] and so on meaningful, and to
21735 # report actual input values of CONFIG_FILES etc. instead of their
21736 # values after options handling.
21737 ac_log="
21738 This file was extended by xf86-video-cirrus $as_me 1.3.0, which was
21739 generated by GNU Autoconf 2.61. Invocation command line was
21740
21741 CONFIG_FILES = $CONFIG_FILES
21742 CONFIG_HEADERS = $CONFIG_HEADERS
21743 CONFIG_LINKS = $CONFIG_LINKS
21744 CONFIG_COMMANDS = $CONFIG_COMMANDS
21745 $ $0 $@
21746
21747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21748 "
21749
21750 _ACEOF
21751
21752 cat >>$CONFIG_STATUS <<_ACEOF
21753 # Files that config.status was made for.
21754 config_files="$ac_config_files"
21755 config_headers="$ac_config_headers"
21756 config_commands="$ac_config_commands"
21757
21758 _ACEOF
21759
21760 cat >>$CONFIG_STATUS <<\_ACEOF
21761 ac_cs_usage="\
21762 \`$as_me' instantiates files from templates according to the
21763 current configuration.
21764
21765 Usage: $0 [OPTIONS] [FILE]...
21766
21767 -h, --help print this help, then exit
21768 -V, --version print version number and configuration settings, then exit
21769 -q, --quiet do not print progress messages
21770 -d, --debug don't remove temporary files
21771 --recheck update $as_me by reconfiguring in the same conditions
21772 --file=FILE[:TEMPLATE]
21773 instantiate the configuration file FILE
21774 --header=FILE[:TEMPLATE]
21775 instantiate the configuration header FILE
21776
21777 Configuration files:
21778 $config_files
21779
21780 Configuration headers:
21781 $config_headers
21782
21783 Configuration commands:
21784 $config_commands
21785
21786 Report bugs to <bug-autoconf (at] gnu.org>."
21787
21788 _ACEOF
21789 cat >>$CONFIG_STATUS <<_ACEOF
21790 ac_cs_version="\\
21791 xf86-video-cirrus config.status 1.3.0
21792 configured by $0, generated by GNU Autoconf 2.61,
21793 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21794
21795 Copyright (C) 2006 Free Software Foundation, Inc.
21796 This config.status script is free software; the Free Software Foundation
21797 gives unlimited permission to copy, distribute and modify it."
21798
21799 ac_pwd='$ac_pwd'
21800 srcdir='$srcdir'
21801 INSTALL='$INSTALL'
21802 MKDIR_P='$MKDIR_P'
21803 _ACEOF
21804
21805 cat >>$CONFIG_STATUS <<\_ACEOF
21806 # If no file are specified by the user, then we need to provide default
21807 # value. By we need to know if files were specified by the user.
21808 ac_need_defaults=:
21809 while test $# != 0
21810 do
21811 case $1 in
21812 --*=*)
21813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21815 ac_shift=:
21816 ;;
21817 *)
21818 ac_option=$1
21819 ac_optarg=$2
21820 ac_shift=shift
21821 ;;
21822 esac
21823
21824 case $ac_option in
21825 # Handling of the options.
21826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21827 ac_cs_recheck=: ;;
21828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21829 echo "$ac_cs_version"; exit ;;
21830 --debug | --debu | --deb | --de | --d | -d )
21831 debug=: ;;
21832 --file | --fil | --fi | --f )
21833 $ac_shift
21834 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21835 ac_need_defaults=false;;
21836 --header | --heade | --head | --hea )
21837 $ac_shift
21838 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21839 ac_need_defaults=false;;
21840 --he | --h)
21841 # Conflict between --help and --header
21842 { echo "$as_me: error: ambiguous option: $1
21843 Try \`$0 --help' for more information." >&2
21844 { (exit 1); exit 1; }; };;
21845 --help | --hel | -h )
21846 echo "$ac_cs_usage"; exit ;;
21847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21848 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21849 ac_cs_silent=: ;;
21850
21851 # This is an error.
21852 -*) { echo "$as_me: error: unrecognized option: $1
21853 Try \`$0 --help' for more information." >&2
21854 { (exit 1); exit 1; }; } ;;
21855
21856 *) ac_config_targets="$ac_config_targets $1"
21857 ac_need_defaults=false ;;
21858
21859 esac
21860 shift
21861 done
21862
21863 ac_configure_extra_args=
21864
21865 if $ac_cs_silent; then
21866 exec 6>/dev/null
21867 ac_configure_extra_args="$ac_configure_extra_args --silent"
21868 fi
21869
21870 _ACEOF
21871 cat >>$CONFIG_STATUS <<_ACEOF
21872 if \$ac_cs_recheck; then
21873 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21874 CONFIG_SHELL=$SHELL
21875 export CONFIG_SHELL
21876 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21877 fi
21878
21879 _ACEOF
21880 cat >>$CONFIG_STATUS <<\_ACEOF
21881 exec 5>>config.log
21882 {
21883 echo
21884 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21885 ## Running $as_me. ##
21886 _ASBOX
21887 echo "$ac_log"
21888 } >&5
21889
21890 _ACEOF
21891 cat >>$CONFIG_STATUS <<_ACEOF
21892 #
21893 # INIT-COMMANDS
21894 #
21895 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21896
21897 _ACEOF
21898
21899 cat >>$CONFIG_STATUS <<\_ACEOF
21900
21901 # Handling of arguments.
21902 for ac_config_target in $ac_config_targets
21903 do
21904 case $ac_config_target in
21905 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21906 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21907 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21908 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21909 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21910
21911 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21912 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21913 { (exit 1); exit 1; }; };;
21914 esac
21915 done
21916
21917
21918 # If the user did not use the arguments to specify the items to instantiate,
21919 # then the envvar interface is used. Set only those that are not.
21920 # We use the long form for the default assignment because of an extremely
21921 # bizarre bug on SunOS 4.1.3.
21922 if $ac_need_defaults; then
21923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21926 fi
21927
21928 # Have a temporary directory for convenience. Make it in the build tree
21929 # simply because there is no reason against having it here, and in addition,
21930 # creating and moving files from /tmp can sometimes cause problems.
21931 # Hook for its removal unless debugging.
21932 # Note that there is a small window in which the directory will not be cleaned:
21933 # after its creation but before its name has been assigned to `$tmp'.
21934 $debug ||
21935 {
21936 tmp=
21937 trap 'exit_status=$?
21938 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21939 ' 0
21940 trap '{ (exit 1); exit 1; }' 1 2 13 15
21941 }
21942 # Create a (secure) tmp directory for tmp files.
21943
21944 {
21945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21946 test -n "$tmp" && test -d "$tmp"
21947 } ||
21948 {
21949 tmp=./conf$$-$RANDOM
21950 (umask 077 && mkdir "$tmp")
21951 } ||
21952 {
21953 echo "$me: cannot create a temporary directory in ." >&2
21954 { (exit 1); exit 1; }
21955 }
21956
21957 #
21958 # Set up the sed scripts for CONFIG_FILES section.
21959 #
21960
21961 # No need to generate the scripts if there are no CONFIG_FILES.
21962 # This happens for instance when ./config.status config.h
21963 if test -n "$CONFIG_FILES"; then
21964
21965 _ACEOF
21966
21967
21968
21969 ac_delim='%!_!# '
21970 for ac_last_try in false false false false false :; do
21971 cat >conf$$subs.sed <<_ACEOF
21972 SHELL!$SHELL$ac_delim
21973 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21974 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21975 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21976 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21977 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21978 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21979 exec_prefix!$exec_prefix$ac_delim
21980 prefix!$prefix$ac_delim
21981 program_transform_name!$program_transform_name$ac_delim
21982 bindir!$bindir$ac_delim
21983 sbindir!$sbindir$ac_delim
21984 libexecdir!$libexecdir$ac_delim
21985 datarootdir!$datarootdir$ac_delim
21986 datadir!$datadir$ac_delim
21987 sysconfdir!$sysconfdir$ac_delim
21988 sharedstatedir!$sharedstatedir$ac_delim
21989 localstatedir!$localstatedir$ac_delim
21990 includedir!$includedir$ac_delim
21991 oldincludedir!$oldincludedir$ac_delim
21992 docdir!$docdir$ac_delim
21993 infodir!$infodir$ac_delim
21994 htmldir!$htmldir$ac_delim
21995 dvidir!$dvidir$ac_delim
21996 pdfdir!$pdfdir$ac_delim
21997 psdir!$psdir$ac_delim
21998 libdir!$libdir$ac_delim
21999 localedir!$localedir$ac_delim
22000 mandir!$mandir$ac_delim
22001 DEFS!$DEFS$ac_delim
22002 ECHO_C!$ECHO_C$ac_delim
22003 ECHO_N!$ECHO_N$ac_delim
22004 ECHO_T!$ECHO_T$ac_delim
22005 LIBS!$LIBS$ac_delim
22006 build_alias!$build_alias$ac_delim
22007 host_alias!$host_alias$ac_delim
22008 target_alias!$target_alias$ac_delim
22009 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22010 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22011 INSTALL_DATA!$INSTALL_DATA$ac_delim
22012 am__isrc!$am__isrc$ac_delim
22013 CYGPATH_W!$CYGPATH_W$ac_delim
22014 PACKAGE!$PACKAGE$ac_delim
22015 VERSION!$VERSION$ac_delim
22016 ACLOCAL!$ACLOCAL$ac_delim
22017 AUTOCONF!$AUTOCONF$ac_delim
22018 AUTOMAKE!$AUTOMAKE$ac_delim
22019 AUTOHEADER!$AUTOHEADER$ac_delim
22020 MAKEINFO!$MAKEINFO$ac_delim
22021 install_sh!$install_sh$ac_delim
22022 STRIP!$STRIP$ac_delim
22023 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22024 mkdir_p!$mkdir_p$ac_delim
22025 AWK!$AWK$ac_delim
22026 SET_MAKE!$SET_MAKE$ac_delim
22027 am__leading_dot!$am__leading_dot$ac_delim
22028 AMTAR!$AMTAR$ac_delim
22029 am__tar!$am__tar$ac_delim
22030 am__untar!$am__untar$ac_delim
22031 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22032 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22033 MAINT!$MAINT$ac_delim
22034 build!$build$ac_delim
22035 build_cpu!$build_cpu$ac_delim
22036 build_vendor!$build_vendor$ac_delim
22037 build_os!$build_os$ac_delim
22038 host!$host$ac_delim
22039 host_cpu!$host_cpu$ac_delim
22040 host_vendor!$host_vendor$ac_delim
22041 host_os!$host_os$ac_delim
22042 CC!$CC$ac_delim
22043 CFLAGS!$CFLAGS$ac_delim
22044 LDFLAGS!$LDFLAGS$ac_delim
22045 CPPFLAGS!$CPPFLAGS$ac_delim
22046 ac_ct_CC!$ac_ct_CC$ac_delim
22047 EXEEXT!$EXEEXT$ac_delim
22048 OBJEXT!$OBJEXT$ac_delim
22049 DEPDIR!$DEPDIR$ac_delim
22050 am__include!$am__include$ac_delim
22051 am__quote!$am__quote$ac_delim
22052 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22053 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22054 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22055 CCDEPMODE!$CCDEPMODE$ac_delim
22056 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22057 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22058 GREP!$GREP$ac_delim
22059 EGREP!$EGREP$ac_delim
22060 LN_S!$LN_S$ac_delim
22061 ECHO!$ECHO$ac_delim
22062 AR!$AR$ac_delim
22063 RANLIB!$RANLIB$ac_delim
22064 CPP!$CPP$ac_delim
22065 CXX!$CXX$ac_delim
22066 CXXFLAGS!$CXXFLAGS$ac_delim
22067 ac_ct_CXX!$ac_ct_CXX$ac_delim
22068 CXXDEPMODE!$CXXDEPMODE$ac_delim
22069 _ACEOF
22070
22071 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22072 break
22073 elif $ac_last_try; then
22074 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22075 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22076 { (exit 1); exit 1; }; }
22077 else
22078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22079 fi
22080 done
22081
22082 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22083 if test -n "$ac_eof"; then
22084 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22085 ac_eof=`expr $ac_eof + 1`
22086 fi
22087
22088 cat >>$CONFIG_STATUS <<_ACEOF
22089 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22091 _ACEOF
22092 sed '
22093 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22094 s/^/s,@/; s/!/@,|#_!!_#|/
22095 :n
22096 t n
22097 s/'"$ac_delim"'$/,g/; t
22098 s/$/\\/; p
22099 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22100 ' >>$CONFIG_STATUS <conf$$subs.sed
22101 rm -f conf$$subs.sed
22102 cat >>$CONFIG_STATUS <<_ACEOF
22103 CEOF$ac_eof
22104 _ACEOF
22105
22106
22107 ac_delim='%!_!# '
22108 for ac_last_try in false false false false false :; do
22109 cat >conf$$subs.sed <<_ACEOF
22110 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22111 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22112 CXXCPP!$CXXCPP$ac_delim
22113 F77!$F77$ac_delim
22114 FFLAGS!$FFLAGS$ac_delim
22115 ac_ct_F77!$ac_ct_F77$ac_delim
22116 LIBTOOL!$LIBTOOL$ac_delim
22117 CWARNFLAGS!$CWARNFLAGS$ac_delim
22118 PKG_CONFIG!$PKG_CONFIG$ac_delim
22119 XORG_CFLAGS!$XORG_CFLAGS$ac_delim
22120 XORG_LIBS!$XORG_LIBS$ac_delim
22121 PCIACCESS_CFLAGS!$PCIACCESS_CFLAGS$ac_delim
22122 PCIACCESS_LIBS!$PCIACCESS_LIBS$ac_delim
22123 XSERVER_LIBPCIACCESS_TRUE!$XSERVER_LIBPCIACCESS_TRUE$ac_delim
22124 XSERVER_LIBPCIACCESS_FALSE!$XSERVER_LIBPCIACCESS_FALSE$ac_delim
22125 moduledir!$moduledir$ac_delim
22126 DRIVER_NAME!$DRIVER_NAME$ac_delim
22127 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
22128 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
22129 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
22130 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
22131 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
22132 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
22133 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
22134 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
22135 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
22136 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
22137 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
22138 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
22139 CHANGELOG_CMD!$CHANGELOG_CMD$ac_delim
22140 distcleancheck_listfiles!$distcleancheck_listfiles$ac_delim
22141 LIBOBJS!$LIBOBJS$ac_delim
22142 LTLIBOBJS!$LTLIBOBJS$ac_delim
22143 _ACEOF
22144
22145 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
22146 break
22147 elif $ac_last_try; then
22148 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22149 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22150 { (exit 1); exit 1; }; }
22151 else
22152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22153 fi
22154 done
22155
22156 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22157 if test -n "$ac_eof"; then
22158 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22159 ac_eof=`expr $ac_eof + 1`
22160 fi
22161
22162 cat >>$CONFIG_STATUS <<_ACEOF
22163 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22164 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22165 _ACEOF
22166 sed '
22167 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22168 s/^/s,@/; s/!/@,|#_!!_#|/
22169 :n
22170 t n
22171 s/'"$ac_delim"'$/,g/; t
22172 s/$/\\/; p
22173 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22174 ' >>$CONFIG_STATUS <conf$$subs.sed
22175 rm -f conf$$subs.sed
22176 cat >>$CONFIG_STATUS <<_ACEOF
22177 :end
22178 s/|#_!!_#|//g
22179 CEOF$ac_eof
22180 _ACEOF
22181
22182
22183 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22184 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22185 # trailing colons and then remove the whole line if VPATH becomes empty
22186 # (actually we leave an empty line to preserve line numbers).
22187 if test "x$srcdir" = x.; then
22188 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22189 s/:*\$(srcdir):*/:/
22190 s/:*\${srcdir}:*/:/
22191 s/:*@srcdir@:*/:/
22192 s/^\([^=]*=[ ]*\):*/\1/
22193 s/:*$//
22194 s/^[^=]*=[ ]*$//
22195 }'
22196 fi
22197
22198 cat >>$CONFIG_STATUS <<\_ACEOF
22199 fi # test -n "$CONFIG_FILES"
22200
22201
22202 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22203 do
22204 case $ac_tag in
22205 :[FHLC]) ac_mode=$ac_tag; continue;;
22206 esac
22207 case $ac_mode$ac_tag in
22208 :[FHL]*:*);;
22209 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22210 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22211 { (exit 1); exit 1; }; };;
22212 :[FH]-) ac_tag=-:-;;
22213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22214 esac
22215 ac_save_IFS=$IFS
22216 IFS=:
22217 set x $ac_tag
22218 IFS=$ac_save_IFS
22219 shift
22220 ac_file=$1
22221 shift
22222
22223 case $ac_mode in
22224 :L) ac_source=$1;;
22225 :[FH])
22226 ac_file_inputs=
22227 for ac_f
22228 do
22229 case $ac_f in
22230 -) ac_f="$tmp/stdin";;
22231 *) # Look for the file first in the build tree, then in the source tree
22232 # (if the path is not absolute). The absolute path cannot be DOS-style,
22233 # because $ac_f cannot contain `:'.
22234 test -f "$ac_f" ||
22235 case $ac_f in
22236 [\\/$]*) false;;
22237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22238 esac ||
22239 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22240 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22241 { (exit 1); exit 1; }; };;
22242 esac
22243 ac_file_inputs="$ac_file_inputs $ac_f"
22244 done
22245
22246 # Let's still pretend it is `configure' which instantiates (i.e., don't
22247 # use $as_me), people would be surprised to read:
22248 # /* config.h. Generated by config.status. */
22249 configure_input="Generated from "`IFS=:
22250 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22251 if test x"$ac_file" != x-; then
22252 configure_input="$ac_file. $configure_input"
22253 { echo "$as_me:$LINENO: creating $ac_file" >&5
22254 echo "$as_me: creating $ac_file" >&6;}
22255 fi
22256
22257 case $ac_tag in
22258 *:-:* | *:-) cat >"$tmp/stdin";;
22259 esac
22260 ;;
22261 esac
22262
22263 ac_dir=`$as_dirname -- "$ac_file" ||
22264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22265 X"$ac_file" : 'X\(//\)[^/]' \| \
22266 X"$ac_file" : 'X\(//\)$' \| \
22267 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22268 echo X"$ac_file" |
22269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22270 s//\1/
22271 q
22272 }
22273 /^X\(\/\/\)[^/].*/{
22274 s//\1/
22275 q
22276 }
22277 /^X\(\/\/\)$/{
22278 s//\1/
22279 q
22280 }
22281 /^X\(\/\).*/{
22282 s//\1/
22283 q
22284 }
22285 s/.*/./; q'`
22286 { as_dir="$ac_dir"
22287 case $as_dir in #(
22288 -*) as_dir=./$as_dir;;
22289 esac
22290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22291 as_dirs=
22292 while :; do
22293 case $as_dir in #(
22294 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22295 *) as_qdir=$as_dir;;
22296 esac
22297 as_dirs="'$as_qdir' $as_dirs"
22298 as_dir=`$as_dirname -- "$as_dir" ||
22299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300 X"$as_dir" : 'X\(//\)[^/]' \| \
22301 X"$as_dir" : 'X\(//\)$' \| \
22302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22303 echo X"$as_dir" |
22304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22305 s//\1/
22306 q
22307 }
22308 /^X\(\/\/\)[^/].*/{
22309 s//\1/
22310 q
22311 }
22312 /^X\(\/\/\)$/{
22313 s//\1/
22314 q
22315 }
22316 /^X\(\/\).*/{
22317 s//\1/
22318 q
22319 }
22320 s/.*/./; q'`
22321 test -d "$as_dir" && break
22322 done
22323 test -z "$as_dirs" || eval "mkdir $as_dirs"
22324 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22325 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22326 { (exit 1); exit 1; }; }; }
22327 ac_builddir=.
22328
22329 case "$ac_dir" in
22330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22331 *)
22332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22333 # A ".." for each directory in $ac_dir_suffix.
22334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22335 case $ac_top_builddir_sub in
22336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22338 esac ;;
22339 esac
22340 ac_abs_top_builddir=$ac_pwd
22341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22342 # for backward compatibility:
22343 ac_top_builddir=$ac_top_build_prefix
22344
22345 case $srcdir in
22346 .) # We are building in place.
22347 ac_srcdir=.
22348 ac_top_srcdir=$ac_top_builddir_sub
22349 ac_abs_top_srcdir=$ac_pwd ;;
22350 [\\/]* | ?:[\\/]* ) # Absolute name.
22351 ac_srcdir=$srcdir$ac_dir_suffix;
22352 ac_top_srcdir=$srcdir
22353 ac_abs_top_srcdir=$srcdir ;;
22354 *) # Relative name.
22355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22356 ac_top_srcdir=$ac_top_build_prefix$srcdir
22357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22358 esac
22359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22360
22361
22362 case $ac_mode in
22363 :F)
22364 #
22365 # CONFIG_FILE
22366 #
22367
22368 case $INSTALL in
22369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22371 esac
22372 ac_MKDIR_P=$MKDIR_P
22373 case $MKDIR_P in
22374 [\\/$]* | ?:[\\/]* ) ;;
22375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22376 esac
22377 _ACEOF
22378
22379 cat >>$CONFIG_STATUS <<\_ACEOF
22380 # If the template does not know about datarootdir, expand it.
22381 # FIXME: This hack should be removed a few years after 2.60.
22382 ac_datarootdir_hack=; ac_datarootdir_seen=
22383
22384 case `sed -n '/datarootdir/ {
22385 p
22386 q
22387 }
22388 /@datadir@/p
22389 /@docdir@/p
22390 /@infodir@/p
22391 /@localedir@/p
22392 /@mandir@/p
22393 ' $ac_file_inputs` in
22394 *datarootdir*) ac_datarootdir_seen=yes;;
22395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22396 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22397 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22398 _ACEOF
22399 cat >>$CONFIG_STATUS <<_ACEOF
22400 ac_datarootdir_hack='
22401 s&@datadir@&$datadir&g
22402 s&@docdir@&$docdir&g
22403 s&@infodir@&$infodir&g
22404 s&@localedir@&$localedir&g
22405 s&@mandir@&$mandir&g
22406 s&\\\${datarootdir}&$datarootdir&g' ;;
22407 esac
22408 _ACEOF
22409
22410 # Neutralize VPATH when `$srcdir' = `.'.
22411 # Shell code in configure.ac might set extrasub.
22412 # FIXME: do we really want to maintain this feature?
22413 cat >>$CONFIG_STATUS <<_ACEOF
22414 sed "$ac_vpsub
22415 $extrasub
22416 _ACEOF
22417 cat >>$CONFIG_STATUS <<\_ACEOF
22418 :t
22419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22420 s&@configure_input@&$configure_input&;t t
22421 s&@top_builddir@&$ac_top_builddir_sub&;t t
22422 s&@srcdir@&$ac_srcdir&;t t
22423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22424 s&@top_srcdir@&$ac_top_srcdir&;t t
22425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22426 s&@builddir@&$ac_builddir&;t t
22427 s&@abs_builddir@&$ac_abs_builddir&;t t
22428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22429 s&@INSTALL@&$ac_INSTALL&;t t
22430 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22431 $ac_datarootdir_hack
22432 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22433
22434 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22435 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22437 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22438 which seems to be undefined. Please make sure it is defined." >&5
22439 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22440 which seems to be undefined. Please make sure it is defined." >&2;}
22441
22442 rm -f "$tmp/stdin"
22443 case $ac_file in
22444 -) cat "$tmp/out"; rm -f "$tmp/out";;
22445 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22446 esac
22447 ;;
22448 :H)
22449 #
22450 # CONFIG_HEADER
22451 #
22452 _ACEOF
22453
22454 # Transform confdefs.h into a sed script `conftest.defines', that
22455 # substitutes the proper values into config.h.in to produce config.h.
22456 rm -f conftest.defines conftest.tail
22457 # First, append a space to every undef/define line, to ease matching.
22458 echo 's/$/ /' >conftest.defines
22459 # Then, protect against being on the right side of a sed subst, or in
22460 # an unquoted here document, in config.status. If some macros were
22461 # called several times there might be several #defines for the same
22462 # symbol, which is useless. But do not sort them, since the last
22463 # AC_DEFINE must be honored.
22464 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22465 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22466 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22467 # PARAMS is the parameter list in the macro definition--in most cases, it's
22468 # just an empty string.
22469 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22470 ac_dB='\\)[ (].*,\\1define\\2'
22471 ac_dC=' '
22472 ac_dD=' ,'
22473
22474 uniq confdefs.h |
22475 sed -n '
22476 t rset
22477 :rset
22478 s/^[ ]*#[ ]*define[ ][ ]*//
22479 t ok
22480 d
22481 :ok
22482 s/[\\&,]/\\&/g
22483 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22484 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22485 ' >>conftest.defines
22486
22487 # Remove the space that was appended to ease matching.
22488 # Then replace #undef with comments. This is necessary, for
22489 # example, in the case of _POSIX_SOURCE, which is predefined and required
22490 # on some systems where configure will not decide to define it.
22491 # (The regexp can be short, since the line contains either #define or #undef.)
22492 echo 's/ $//
22493 s,^[ #]*u.*,/* & */,' >>conftest.defines
22494
22495 # Break up conftest.defines:
22496 ac_max_sed_lines=50
22497
22498 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22499 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22500 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22501 # et cetera.
22502 ac_in='$ac_file_inputs'
22503 ac_out='"$tmp/out1"'
22504 ac_nxt='"$tmp/out2"'
22505
22506 while :
22507 do
22508 # Write a here document:
22509 cat >>$CONFIG_STATUS <<_ACEOF
22510 # First, check the format of the line:
22511 cat >"\$tmp/defines.sed" <<\\CEOF
22512 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22513 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22514 b
22515 :def
22516 _ACEOF
22517 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22518 echo 'CEOF
22519 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22520 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22521 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22522 grep . conftest.tail >/dev/null || break
22523 rm -f conftest.defines
22524 mv conftest.tail conftest.defines
22525 done
22526 rm -f conftest.defines conftest.tail
22527
22528 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22529 cat >>$CONFIG_STATUS <<\_ACEOF
22530 if test x"$ac_file" != x-; then
22531 echo "/* $configure_input */" >"$tmp/config.h"
22532 cat "$ac_result" >>"$tmp/config.h"
22533 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22534 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22535 echo "$as_me: $ac_file is unchanged" >&6;}
22536 else
22537 rm -f $ac_file
22538 mv "$tmp/config.h" $ac_file
22539 fi
22540 else
22541 echo "/* $configure_input */"
22542 cat "$ac_result"
22543 fi
22544 rm -f "$tmp/out12"
22545 # Compute $ac_file's index in $config_headers.
22546 _am_stamp_count=1
22547 for _am_header in $config_headers :; do
22548 case $_am_header in
22549 $ac_file | $ac_file:* )
22550 break ;;
22551 * )
22552 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22553 esac
22554 done
22555 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22556 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22557 X$ac_file : 'X\(//\)[^/]' \| \
22558 X$ac_file : 'X\(//\)$' \| \
22559 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22560 echo X$ac_file |
22561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22562 s//\1/
22563 q
22564 }
22565 /^X\(\/\/\)[^/].*/{
22566 s//\1/
22567 q
22568 }
22569 /^X\(\/\/\)$/{
22570 s//\1/
22571 q
22572 }
22573 /^X\(\/\).*/{
22574 s//\1/
22575 q
22576 }
22577 s/.*/./; q'`/stamp-h$_am_stamp_count
22578 ;;
22579
22580 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22581 echo "$as_me: executing $ac_file commands" >&6;}
22582 ;;
22583 esac
22584
22585
22586 case $ac_file$ac_mode in
22587 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22588 # Strip MF so we end up with the name of the file.
22589 mf=`echo "$mf" | sed -e 's/:.*$//'`
22590 # Check whether this is an Automake generated Makefile or not.
22591 # We used to match only the files named `Makefile.in', but
22592 # some people rename them; so instead we look at the file content.
22593 # Grep'ing the first line is not enough: some people post-process
22594 # each Makefile.in and add a new line on top of each file to say so.
22595 # Grep'ing the whole file is not good either: AIX grep has a line
22596 # limit of 2048, but all sed's we know have understand at least 4000.
22597 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22598 dirpart=`$as_dirname -- "$mf" ||
22599 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22600 X"$mf" : 'X\(//\)[^/]' \| \
22601 X"$mf" : 'X\(//\)$' \| \
22602 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22603 echo X"$mf" |
22604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22605 s//\1/
22606 q
22607 }
22608 /^X\(\/\/\)[^/].*/{
22609 s//\1/
22610 q
22611 }
22612 /^X\(\/\/\)$/{
22613 s//\1/
22614 q
22615 }
22616 /^X\(\/\).*/{
22617 s//\1/
22618 q
22619 }
22620 s/.*/./; q'`
22621 else
22622 continue
22623 fi
22624 # Extract the definition of DEPDIR, am__include, and am__quote
22625 # from the Makefile without running `make'.
22626 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22627 test -z "$DEPDIR" && continue
22628 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22629 test -z "am__include" && continue
22630 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22631 # When using ansi2knr, U may be empty or an underscore; expand it
22632 U=`sed -n 's/^U = //p' < "$mf"`
22633 # Find all dependency output files, they are included files with
22634 # $(DEPDIR) in their names. We invoke sed twice because it is the
22635 # simplest approach to changing $(DEPDIR) to its actual value in the
22636 # expansion.
22637 for file in `sed -n "
22638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22640 # Make sure the directory exists.
22641 test -f "$dirpart/$file" && continue
22642 fdir=`$as_dirname -- "$file" ||
22643 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22644 X"$file" : 'X\(//\)[^/]' \| \
22645 X"$file" : 'X\(//\)$' \| \
22646 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22647 echo X"$file" |
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22649 s//\1/
22650 q
22651 }
22652 /^X\(\/\/\)[^/].*/{
22653 s//\1/
22654 q
22655 }
22656 /^X\(\/\/\)$/{
22657 s//\1/
22658 q
22659 }
22660 /^X\(\/\).*/{
22661 s//\1/
22662 q
22663 }
22664 s/.*/./; q'`
22665 { as_dir=$dirpart/$fdir
22666 case $as_dir in #(
22667 -*) as_dir=./$as_dir;;
22668 esac
22669 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22670 as_dirs=
22671 while :; do
22672 case $as_dir in #(
22673 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22674 *) as_qdir=$as_dir;;
22675 esac
22676 as_dirs="'$as_qdir' $as_dirs"
22677 as_dir=`$as_dirname -- "$as_dir" ||
22678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22679 X"$as_dir" : 'X\(//\)[^/]' \| \
22680 X"$as_dir" : 'X\(//\)$' \| \
22681 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22682 echo X"$as_dir" |
22683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22684 s//\1/
22685 q
22686 }
22687 /^X\(\/\/\)[^/].*/{
22688 s//\1/
22689 q
22690 }
22691 /^X\(\/\/\)$/{
22692 s//\1/
22693 q
22694 }
22695 /^X\(\/\).*/{
22696 s//\1/
22697 q
22698 }
22699 s/.*/./; q'`
22700 test -d "$as_dir" && break
22701 done
22702 test -z "$as_dirs" || eval "mkdir $as_dirs"
22703 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22704 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22705 { (exit 1); exit 1; }; }; }
22706 # echo "creating $dirpart/$file"
22707 echo '# dummy' > "$dirpart/$file"
22708 done
22709 done
22710 ;;
22711
22712 esac
22713 done # for ac_tag
22714
22715
22716 { (exit 0); exit 0; }
22717 _ACEOF
22718 chmod +x $CONFIG_STATUS
22719 ac_clean_files=$ac_clean_files_save
22720
22721
22722 # configure is writing to config.log, and then calls config.status.
22723 # config.status does its own redirection, appending to config.log.
22724 # Unfortunately, on DOS this fails, as config.log is still kept open
22725 # by configure, so config.status won't be able to write to it; its
22726 # output is simply discarded. So we exec the FD to /dev/null,
22727 # effectively closing config.log, so it can be properly (re)opened and
22728 # appended to by config.status. When coming back to configure, we
22729 # need to make the FD available again.
22730 if test "$no_create" != yes; then
22731 ac_cs_success=:
22732 ac_config_status_args=
22733 test "$silent" = yes &&
22734 ac_config_status_args="$ac_config_status_args --quiet"
22735 exec 5>/dev/null
22736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22737 exec 5>>config.log
22738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22739 # would make configure fail if this is the last instruction.
22740 $ac_cs_success || { (exit 1); exit 1; }
22741 fi
22742
22743