configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libXinerama 1.0.3.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libXinerama'
730 PACKAGE_TARNAME='libXinerama'
731 PACKAGE_VERSION='1.0.3'
732 PACKAGE_STRING='libXinerama 1.0.3'
733 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
734
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 # include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 # include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 INSTALL_PROGRAM
809 INSTALL_SCRIPT
810 INSTALL_DATA
811 am__isrc
812 CYGPATH_W
813 PACKAGE
814 VERSION
815 ACLOCAL
816 AUTOCONF
817 AUTOMAKE
818 AUTOHEADER
819 MAKEINFO
820 install_sh
821 STRIP
822 INSTALL_STRIP_PROGRAM
823 mkdir_p
824 AWK
825 SET_MAKE
826 am__leading_dot
827 AMTAR
828 am__tar
829 am__untar
830 MAINTAINER_MODE_TRUE
831 MAINTAINER_MODE_FALSE
832 MAINT
833 CC
834 CFLAGS
835 LDFLAGS
836 CPPFLAGS
837 ac_ct_CC
838 EXEEXT
839 OBJEXT
840 DEPDIR
841 am__include
842 am__quote
843 AMDEP_TRUE
844 AMDEP_FALSE
845 AMDEPBACKSLASH
846 CCDEPMODE
847 am__fastdepCC_TRUE
848 am__fastdepCC_FALSE
849 build
850 build_cpu
851 build_vendor
852 build_os
853 host
854 host_cpu
855 host_vendor
856 host_os
857 SED
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 PKG_CONFIG
877 XINERAMA_CFLAGS
878 XINERAMA_LIBS
879 LINT
880 LINT_FLAGS
881 LINT_TRUE
882 LINT_FALSE
883 MALLOC_ZERO_CFLAGS
884 XMALLOC_ZERO_CFLAGS
885 XTMALLOC_ZERO_CFLAGS
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 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_precious_vars='build_alias
902 host_alias
903 target_alias
904 CC
905 CFLAGS
906 LDFLAGS
907 LIBS
908 CPPFLAGS
909 CPP
910 CXX
911 CXXFLAGS
912 CCC
913 CXXCPP
914 F77
915 FFLAGS
916 PKG_CONFIG
917 XINERAMA_CFLAGS
918 XINERAMA_LIBS'
919
920
921 # Initialize some variables set by options.
922 ac_init_help=
923 ac_init_version=false
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
926 cache_file=/dev/null
927 exec_prefix=NONE
928 no_create=
929 no_recursion=
930 prefix=NONE
931 program_prefix=NONE
932 program_suffix=NONE
933 program_transform_name=s,x,x,
934 silent=
935 site=
936 srcdir=
937 verbose=
938 x_includes=NONE
939 x_libraries=NONE
940
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 includedir='${prefix}/include'
956 oldincludedir='/usr/include'
957 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir='${datarootdir}/info'
959 htmldir='${docdir}'
960 dvidir='${docdir}'
961 pdfdir='${docdir}'
962 psdir='${docdir}'
963 libdir='${exec_prefix}/lib'
964 localedir='${datarootdir}/locale'
965 mandir='${datarootdir}/man'
966
967 ac_prev=
968 ac_dashdash=
969 for ac_option
970 do
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\$ac_option
974 ac_prev=
975 continue
976 fi
977
978 case $ac_option in
979 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980 *) ac_optarg=yes ;;
981 esac
982
983 # Accept the important Cygnus configure options, so we can diagnose typos.
984
985 case $ac_dashdash$ac_option in
986 --)
987 ac_dashdash=yes ;;
988
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
990 ac_prev=bindir ;;
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992 bindir=$ac_optarg ;;
993
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
998
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1005
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1008
1009 -datadir | --datadir | --datadi | --datad)
1010 ac_prev=datadir ;;
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1013
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1020
1021 -disable-* | --disable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=no ;;
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1039
1040 -enable-* | --enable-*)
1041 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1044 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1047 eval enable_$ac_feature=\$ac_optarg ;;
1048
1049 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1050 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1051 | --exec | --exe | --ex)
1052 ac_prev=exec_prefix ;;
1053 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1054 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1055 | --exec=* | --exe=* | --ex=*)
1056 exec_prefix=$ac_optarg ;;
1057
1058 -gas | --gas | --ga | --g)
1059 # Obsolete; use --with-gas.
1060 with_gas=yes ;;
1061
1062 -help | --help | --hel | --he | -h)
1063 ac_init_help=long ;;
1064 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1065 ac_init_help=recursive ;;
1066 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1067 ac_init_help=short ;;
1068
1069 -host | --host | --hos | --ho)
1070 ac_prev=host_alias ;;
1071 -host=* | --host=* | --hos=* | --ho=*)
1072 host_alias=$ac_optarg ;;
1073
1074 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1075 ac_prev=htmldir ;;
1076 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1077 | --ht=*)
1078 htmldir=$ac_optarg ;;
1079
1080 -includedir | --includedir | --includedi | --included | --include \
1081 | --includ | --inclu | --incl | --inc)
1082 ac_prev=includedir ;;
1083 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1084 | --includ=* | --inclu=* | --incl=* | --inc=*)
1085 includedir=$ac_optarg ;;
1086
1087 -infodir | --infodir | --infodi | --infod | --info | --inf)
1088 ac_prev=infodir ;;
1089 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1090 infodir=$ac_optarg ;;
1091
1092 -libdir | --libdir | --libdi | --libd)
1093 ac_prev=libdir ;;
1094 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1095 libdir=$ac_optarg ;;
1096
1097 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1098 | --libexe | --libex | --libe)
1099 ac_prev=libexecdir ;;
1100 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1101 | --libexe=* | --libex=* | --libe=*)
1102 libexecdir=$ac_optarg ;;
1103
1104 -localedir | --localedir | --localedi | --localed | --locale)
1105 ac_prev=localedir ;;
1106 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1107 localedir=$ac_optarg ;;
1108
1109 -localstatedir | --localstatedir | --localstatedi | --localstated \
1110 | --localstate | --localstat | --localsta | --localst | --locals)
1111 ac_prev=localstatedir ;;
1112 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1113 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1114 localstatedir=$ac_optarg ;;
1115
1116 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1117 ac_prev=mandir ;;
1118 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1119 mandir=$ac_optarg ;;
1120
1121 -nfp | --nfp | --nf)
1122 # Obsolete; use --without-fp.
1123 with_fp=no ;;
1124
1125 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1126 | --no-cr | --no-c | -n)
1127 no_create=yes ;;
1128
1129 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1130 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1131 no_recursion=yes ;;
1132
1133 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1134 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1135 | --oldin | --oldi | --old | --ol | --o)
1136 ac_prev=oldincludedir ;;
1137 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1138 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1139 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1140 oldincludedir=$ac_optarg ;;
1141
1142 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1143 ac_prev=prefix ;;
1144 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1145 prefix=$ac_optarg ;;
1146
1147 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1148 | --program-pre | --program-pr | --program-p)
1149 ac_prev=program_prefix ;;
1150 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1151 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1152 program_prefix=$ac_optarg ;;
1153
1154 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1155 | --program-suf | --program-su | --program-s)
1156 ac_prev=program_suffix ;;
1157 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1158 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1159 program_suffix=$ac_optarg ;;
1160
1161 -program-transform-name | --program-transform-name \
1162 | --program-transform-nam | --program-transform-na \
1163 | --program-transform-n | --program-transform- \
1164 | --program-transform | --program-transfor \
1165 | --program-transfo | --program-transf \
1166 | --program-trans | --program-tran \
1167 | --progr-tra | --program-tr | --program-t)
1168 ac_prev=program_transform_name ;;
1169 -program-transform-name=* | --program-transform-name=* \
1170 | --program-transform-nam=* | --program-transform-na=* \
1171 | --program-transform-n=* | --program-transform-=* \
1172 | --program-transform=* | --program-transfor=* \
1173 | --program-transfo=* | --program-transf=* \
1174 | --program-trans=* | --program-tran=* \
1175 | --progr-tra=* | --program-tr=* | --program-t=*)
1176 program_transform_name=$ac_optarg ;;
1177
1178 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1179 ac_prev=pdfdir ;;
1180 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1181 pdfdir=$ac_optarg ;;
1182
1183 -psdir | --psdir | --psdi | --psd | --ps)
1184 ac_prev=psdir ;;
1185 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1186 psdir=$ac_optarg ;;
1187
1188 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1189 | -silent | --silent | --silen | --sile | --sil)
1190 silent=yes ;;
1191
1192 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1193 ac_prev=sbindir ;;
1194 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1195 | --sbi=* | --sb=*)
1196 sbindir=$ac_optarg ;;
1197
1198 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1199 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1200 | --sharedst | --shareds | --shared | --share | --shar \
1201 | --sha | --sh)
1202 ac_prev=sharedstatedir ;;
1203 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1204 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1205 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1206 | --sha=* | --sh=*)
1207 sharedstatedir=$ac_optarg ;;
1208
1209 -site | --site | --sit)
1210 ac_prev=site ;;
1211 -site=* | --site=* | --sit=*)
1212 site=$ac_optarg ;;
1213
1214 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1215 ac_prev=srcdir ;;
1216 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1217 srcdir=$ac_optarg ;;
1218
1219 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1220 | --syscon | --sysco | --sysc | --sys | --sy)
1221 ac_prev=sysconfdir ;;
1222 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1223 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1224 sysconfdir=$ac_optarg ;;
1225
1226 -target | --target | --targe | --targ | --tar | --ta | --t)
1227 ac_prev=target_alias ;;
1228 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1229 target_alias=$ac_optarg ;;
1230
1231 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1232 verbose=yes ;;
1233
1234 -version | --version | --versio | --versi | --vers | -V)
1235 ac_init_version=: ;;
1236
1237 -with-* | --with-*)
1238 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 { echo "$as_me: error: invalid package name: $ac_package" >&2
1242 { (exit 1); exit 1; }; }
1243 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1244 eval with_$ac_package=\$ac_optarg ;;
1245
1246 -without-* | --without-*)
1247 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 { echo "$as_me: error: invalid package name: $ac_package" >&2
1251 { (exit 1); exit 1; }; }
1252 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1253 eval with_$ac_package=no ;;
1254
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1258
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1265
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1272
1273 -*) { echo "$as_me: error: unrecognized option: $ac_option
1274 Try \`$0 --help' for more information." >&2
1275 { (exit 1); exit 1; }; }
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1283 { (exit 1); exit 1; }; }
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1286
1287 *)
1288 # FIXME: should be removed in autoconf 3.0.
1289 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 ;;
1294
1295 esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 { echo "$as_me: error: missing argument to $ac_option" >&2
1301 { (exit 1); exit 1; }; }
1302 fi
1303
1304 # Be sure to have absolute directory names.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1309 do
1310 eval ac_val=\$$ac_var
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1316 { (exit 1); exit 1; }; }
1317 done
1318
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1325
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used." >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1334 fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 { echo "$as_me: error: Working directory cannot be determined" >&2
1347 { (exit 1); exit 1; }; }
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 { echo "$as_me: error: pwd does not report name of working directory" >&2
1350 { (exit 1); exit 1; }; }
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$0" ||
1358 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$0" : 'X\(//\)[^/]' \| \
1360 X"$0" : 'X\(//\)$' \| \
1361 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1362 echo X"$0" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1390 { (exit 1); exit 1; }; }
1391 fi
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1395 { (exit 1); exit 1; }; }
1396 pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399 srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_env_${ac_var}_value=\$${ac_var}
1410 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418 # Omit some internal or obsolete options to make the list less imposing.
1419 # This message is too long to be a string in the A/UX 3.1 sh.
1420 cat <<_ACEOF
1421 \`configure' configures libXinerama 1.0.3 to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE. See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431 -h, --help display this help and exit
1432 --help=short display options specific to this package
1433 --help=recursive display the short help of all the included packages
1434 -V, --version display version information and exit
1435 -q, --quiet, --silent do not print \`checking...' messages
1436 --cache-file=FILE cache test results in FILE [disabled]
1437 -C, --config-cache alias for \`--cache-file=config.cache'
1438 -n, --no-create do not create output files
1439 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442 --prefix=PREFIX install architecture-independent files in PREFIX
1443 [$ac_default_prefix]
1444 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1445 [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455 --bindir=DIR user executables [EPREFIX/bin]
1456 --sbindir=DIR system admin executables [EPREFIX/sbin]
1457 --libexecdir=DIR program executables [EPREFIX/libexec]
1458 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1459 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1460 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1461 --libdir=DIR object code libraries [EPREFIX/lib]
1462 --includedir=DIR C header files [PREFIX/include]
1463 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1464 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1465 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1466 --infodir=DIR info documentation [DATAROOTDIR/info]
1467 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1468 --mandir=DIR man documentation [DATAROOTDIR/man]
1469 --docdir=DIR documentation root [DATAROOTDIR/doc/libXinerama]
1470 --htmldir=DIR html documentation [DOCDIR]
1471 --dvidir=DIR dvi documentation [DOCDIR]
1472 --pdfdir=DIR pdf documentation [DOCDIR]
1473 --psdir=DIR ps documentation [DOCDIR]
1474 _ACEOF
1475
1476 cat <<\_ACEOF
1477
1478 Program names:
1479 --program-prefix=PREFIX prepend PREFIX to installed program names
1480 --program-suffix=SUFFIX append SUFFIX to installed program names
1481 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1482
1483 System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 _ACEOF
1487 fi
1488
1489 if test -n "$ac_init_help"; then
1490 case $ac_init_help in
1491 short | recursive ) echo "Configuration of libXinerama 1.0.3:";;
1492 esac
1493 cat <<\_ACEOF
1494
1495 Optional Features:
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-maintainer-mode enable make rules and dependencies not useful
1499 (and sometimes confusing) to the casual installer
1500 --disable-dependency-tracking speeds up one-time build
1501 --enable-dependency-tracking do not reject slow dependency extractors
1502 --enable-shared[=PKGS] build shared libraries [default=yes]
1503 --enable-static[=PKGS] build static libraries [default=yes]
1504 --enable-fast-install[=PKGS]
1505 optimize for fast installation [default=yes]
1506 --disable-libtool-lock avoid locking (might break parallel builds)
1507 --enable-malloc0returnsnull
1508 malloc(0) returns NULL (default: auto)
1509
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-pic try to use only PIC/non-PIC objects [default=use
1515 both]
1516 --with-tags[=TAGS] include additional configurations [automatic]
1517 --with-lint Use a lint-style source code checker (default:
1518 disabled)
1519 --with-release-version=STRING
1520 Use release version string in package name
1521
1522 Some influential environment variables:
1523 CC C compiler command
1524 CFLAGS C compiler flags
1525 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1526 nonstandard directory <lib dir>
1527 LIBS libraries to pass to the linker, e.g. -l<library>
1528 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1529 you have headers in a nonstandard directory <include dir>
1530 CPP C preprocessor
1531 CXX C++ compiler command
1532 CXXFLAGS C++ compiler flags
1533 CXXCPP C++ preprocessor
1534 F77 Fortran 77 compiler command
1535 FFLAGS Fortran 77 compiler flags
1536 PKG_CONFIG path to pkg-config utility
1537 XINERAMA_CFLAGS
1538 C compiler flags for XINERAMA, overriding pkg-config
1539 XINERAMA_LIBS
1540 linker flags for XINERAMA, overriding pkg-config
1541
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1544
1545 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1546 _ACEOF
1547 ac_status=$?
1548 fi
1549
1550 if test "$ac_init_help" = "recursive"; then
1551 # If there are subdirs, report their specific --help.
1552 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1553 test -d "$ac_dir" || continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 libXinerama configure 1.0.3
1607 generated by GNU Autoconf 2.61
1608
1609 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1610 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1613 _ACEOF
1614 exit
1615 fi
1616 cat >config.log <<_ACEOF
1617 This file contains any messages produced by compilers while
1618 running configure, to aid debugging if configure makes a mistake.
1619
1620 It was created by libXinerama $as_me 1.0.3, which was
1621 generated by GNU Autoconf 2.61. Invocation command line was
1622
1623 $ $0 $@
1624
1625 _ACEOF
1626 exec 5>>config.log
1627 {
1628 cat <<_ASUNAME
1629 ## --------- ##
1630 ## Platform. ##
1631 ## --------- ##
1632
1633 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1634 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1635 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1636 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1637 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638
1639 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1640 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641
1642 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1643 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1644 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1645 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1646 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1647 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1648 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649
1650 _ASUNAME
1651
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 echo "PATH: $as_dir"
1658 done
1659 IFS=$as_save_IFS
1660
1661 } >&5
1662
1663 cat >&5 <<_ACEOF
1664
1665
1666 ## ----------- ##
1667 ## Core tests. ##
1668 ## ----------- ##
1669
1670 _ACEOF
1671
1672
1673 # Keep a trace of the command line.
1674 # Strip out --no-create and --no-recursion so they do not pile up.
1675 # Strip out --silent because we don't want to record it for future runs.
1676 # Also quote any args containing shell meta-characters.
1677 # Make two passes to allow for proper duplicate-argument suppression.
1678 ac_configure_args=
1679 ac_configure_args0=
1680 ac_configure_args1=
1681 ac_must_keep_next=false
1682 for ac_pass in 1 2
1683 do
1684 for ac_arg
1685 do
1686 case $ac_arg in
1687 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1689 | -silent | --silent | --silen | --sile | --sil)
1690 continue ;;
1691 *\'*)
1692 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1693 esac
1694 case $ac_pass in
1695 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696 2)
1697 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1698 if test $ac_must_keep_next = true; then
1699 ac_must_keep_next=false # Got value, back to normal.
1700 else
1701 case $ac_arg in
1702 *=* | --config-cache | -C | -disable-* | --disable-* \
1703 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1704 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1705 | -with-* | --with-* | -without-* | --without-* | --x)
1706 case "$ac_configure_args0 " in
1707 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1708 esac
1709 ;;
1710 -* ) ac_must_keep_next=true ;;
1711 esac
1712 fi
1713 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 ;;
1715 esac
1716 done
1717 done
1718 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1719 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720
1721 # When interrupted or exit'd, cleanup temporary files, and complete
1722 # config.log. We remove comments because anyway the quotes in there
1723 # would cause problems or look ugly.
1724 # WARNING: Use '\'' to represent an apostrophe within the trap.
1725 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1726 trap 'exit_status=$?
1727 # Save into config.log some information that might help in debugging.
1728 {
1729 echo
1730
1731 cat <<\_ASBOX
1732 ## ---------------- ##
1733 ## Cache variables. ##
1734 ## ---------------- ##
1735 _ASBOX
1736 echo
1737 # The following way of writing the cache mishandles newlines in values,
1738 (
1739 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in #(
1742 *${as_nl}*)
1743 case $ac_var in #(
1744 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1745 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1746 esac
1747 case $ac_var in #(
1748 _ | IFS | as_nl) ;; #(
1749 *) $as_unset $ac_var ;;
1750 esac ;;
1751 esac
1752 done
1753 (set) 2>&1 |
1754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755 *${as_nl}ac_space=\ *)
1756 sed -n \
1757 "s/'\''/'\''\\\\'\'''\''/g;
1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 ;; #(
1760 *)
1761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1762 ;;
1763 esac |
1764 sort
1765 )
1766 echo
1767
1768 cat <<\_ASBOX
1769 ## ----------------- ##
1770 ## Output variables. ##
1771 ## ----------------- ##
1772 _ASBOX
1773 echo
1774 for ac_var in $ac_subst_vars
1775 do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in
1778 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 esac
1780 echo "$ac_var='\''$ac_val'\''"
1781 done | sort
1782 echo
1783
1784 if test -n "$ac_subst_files"; then
1785 cat <<\_ASBOX
1786 ## ------------------- ##
1787 ## File substitutions. ##
1788 ## ------------------- ##
1789 _ASBOX
1790 echo
1791 for ac_var in $ac_subst_files
1792 do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in
1795 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 esac
1797 echo "$ac_var='\''$ac_val'\''"
1798 done | sort
1799 echo
1800 fi
1801
1802 if test -s confdefs.h; then
1803 cat <<\_ASBOX
1804 ## ----------- ##
1805 ## confdefs.h. ##
1806 ## ----------- ##
1807 _ASBOX
1808 echo
1809 cat confdefs.h
1810 echo
1811 fi
1812 test "$ac_signal" != 0 &&
1813 echo "$as_me: caught signal $ac_signal"
1814 echo "$as_me: exit $exit_status"
1815 } >&5
1816 rm -f core *.core core.conftest.* &&
1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1818 exit $exit_status
1819 ' 0
1820 for ac_signal in 1 2 13 15; do
1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822 done
1823 ac_signal=0
1824
1825 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1826 rm -f -r conftest* confdefs.h
1827
1828 # Predefined preprocessor variables.
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_NAME "$PACKAGE_NAME"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837 _ACEOF
1838
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_STRING "$PACKAGE_STRING"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 _ACEOF
1853
1854
1855 # Let the site file select an alternate cache file if it wants to.
1856 # Prefer explicitly selected file to automatically selected ones.
1857 if test -n "$CONFIG_SITE"; then
1858 set x "$CONFIG_SITE"
1859 elif test "x$prefix" != xNONE; then
1860 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1861 else
1862 set x "$ac_default_prefix/share/config.site" \
1863 "$ac_default_prefix/etc/config.site"
1864 fi
1865 shift
1866 for ac_site_file
1867 do
1868 if test -r "$ac_site_file"; then
1869 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1870 echo "$as_me: loading site script $ac_site_file" >&6;}
1871 sed 's/^/| /' "$ac_site_file" >&5
1872 . "$ac_site_file"
1873 fi
1874 done
1875
1876 if test -r "$cache_file"; then
1877 # Some versions of bash will fail to source /dev/null (special
1878 # files actually), so we avoid doing that.
1879 if test -f "$cache_file"; then
1880 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881 echo "$as_me: loading cache $cache_file" >&6;}
1882 case $cache_file in
1883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884 *) . "./$cache_file";;
1885 esac
1886 fi
1887 else
1888 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1889 echo "$as_me: creating cache $cache_file" >&6;}
1890 >$cache_file
1891 fi
1892
1893 # Check that the precious variables saved in the cache have kept the same
1894 # value.
1895 ac_cache_corrupted=false
1896 for ac_var in $ac_precious_vars; do
1897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898 eval ac_new_set=\$ac_env_${ac_var}_set
1899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900 eval ac_new_val=\$ac_env_${ac_var}_value
1901 case $ac_old_set,$ac_new_set in
1902 set,)
1903 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1904 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1906 ,set)
1907 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1908 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1909 ac_cache_corrupted=: ;;
1910 ,);;
1911 *)
1912 if test "x$ac_old_val" != "x$ac_new_val"; then
1913 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1916 echo "$as_me: former value: $ac_old_val" >&2;}
1917 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1918 echo "$as_me: current value: $ac_new_val" >&2;}
1919 ac_cache_corrupted=:
1920 fi;;
1921 esac
1922 # Pass precious variables to config.status.
1923 if test "$ac_new_set" = set; then
1924 case $ac_new_val in
1925 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1926 *) ac_arg=$ac_var=$ac_new_val ;;
1927 esac
1928 case " $ac_configure_args " in
1929 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1930 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931 esac
1932 fi
1933 done
1934 if $ac_cache_corrupted; then
1935 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1938 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1939 { (exit 1); exit 1; }; }
1940 fi
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966 ac_ext=c
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971
1972
1973 am__api_version='1.10'
1974
1975 ac_aux_dir=
1976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1977 if test -f "$ac_dir/install-sh"; then
1978 ac_aux_dir=$ac_dir
1979 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 break
1981 elif test -f "$ac_dir/install.sh"; then
1982 ac_aux_dir=$ac_dir
1983 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 break
1985 elif test -f "$ac_dir/shtool"; then
1986 ac_aux_dir=$ac_dir
1987 ac_install_sh="$ac_aux_dir/shtool install -c"
1988 break
1989 fi
1990 done
1991 if test -z "$ac_aux_dir"; then
1992 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1993 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996
1997 # These three variables are undocumented and unsupported,
1998 # and are intended to be withdrawn in a future Autoconf release.
1999 # They can cause serious problems if a builder's source tree is in a directory
2000 # whose full name contains unusual characters.
2001 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2002 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2003 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2004
2005
2006 # Find a good install program. We prefer a C program (faster),
2007 # so one script is as good as another. But avoid the broken or
2008 # incompatible versions:
2009 # SysV /etc/install, /usr/sbin/install
2010 # SunOS /usr/etc/install
2011 # IRIX /sbin/install
2012 # AIX /bin/install
2013 # AmigaOS /C/install, which installs bootblocks on floppy discs
2014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2017 # OS/2's system install, which has a completely different semantic
2018 # ./install, which can be erroneously created by make from ./install.sh.
2019 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2020 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2021 if test -z "$INSTALL"; then
2022 if test "${ac_cv_path_install+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH
2027 do
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 # Account for people who put trailing slashes in PATH elements.
2031 case $as_dir/ in
2032 ./ | .// | /cC/* | \
2033 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2034 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2035 /usr/ucb/* ) ;;
2036 *)
2037 # OSF1 and SCO ODT 3.0 have their own names for install.
2038 # Don't use installbsd from OSF since it installs stuff as root
2039 # by default.
2040 for ac_prog in ginstall scoinst install; do
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2043 if test $ac_prog = install &&
2044 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2045 # AIX install. It has an incompatible calling convention.
2046 :
2047 elif test $ac_prog = install &&
2048 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2049 # program-specific install script used by HP pwplus--don't use.
2050 :
2051 else
2052 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2053 break 3
2054 fi
2055 fi
2056 done
2057 done
2058 ;;
2059 esac
2060 done
2061 IFS=$as_save_IFS
2062
2063
2064 fi
2065 if test "${ac_cv_path_install+set}" = set; then
2066 INSTALL=$ac_cv_path_install
2067 else
2068 # As a last resort, use the slow shell script. Don't cache a
2069 # value for INSTALL within a source directory, because that will
2070 # break other packages using the cache if that directory is
2071 # removed, or if the value is a relative name.
2072 INSTALL=$ac_install_sh
2073 fi
2074 fi
2075 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2076 echo "${ECHO_T}$INSTALL" >&6; }
2077
2078 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2079 # It thinks the first close brace ends the variable substitution.
2080 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2081
2082 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2083
2084 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2085
2086 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2087 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2088 # Just in case
2089 sleep 1
2090 echo timestamp > conftest.file
2091 # Do `set' in a subshell so we don't clobber the current shell's
2092 # arguments. Must try -L first in case configure is actually a
2093 # symlink; some systems play weird games with the mod time of symlinks
2094 # (eg FreeBSD returns the mod time of the symlink's containing
2095 # directory).
2096 if (
2097 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2098 if test "$*" = "X"; then
2099 # -L didn't work.
2100 set X `ls -t $srcdir/configure conftest.file`
2101 fi
2102 rm -f conftest.file
2103 if test "$*" != "X $srcdir/configure conftest.file" \
2104 && test "$*" != "X conftest.file $srcdir/configure"; then
2105
2106 # If neither matched, then we have a broken ls. This can happen
2107 # if, for instance, CONFIG_SHELL is bash and it inherits a
2108 # broken ls alias from the environment. This has actually
2109 # happened. Such a system could not be considered "sane".
2110 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2111 alias in your environment" >&5
2112 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2113 alias in your environment" >&2;}
2114 { (exit 1); exit 1; }; }
2115 fi
2116
2117 test "$2" = conftest.file
2118 )
2119 then
2120 # Ok.
2121 :
2122 else
2123 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2124 Check your system clock" >&5
2125 echo "$as_me: error: newly created file is older than distributed files!
2126 Check your system clock" >&2;}
2127 { (exit 1); exit 1; }; }
2128 fi
2129 { echo "$as_me:$LINENO: result: yes" >&5
2130 echo "${ECHO_T}yes" >&6; }
2131 test "$program_prefix" != NONE &&
2132 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2133 # Use a double $ so make ignores it.
2134 test "$program_suffix" != NONE &&
2135 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2136 # Double any \ or $. echo might interpret backslashes.
2137 # By default was `s,x,x', remove it if useless.
2138 cat <<\_ACEOF >conftest.sed
2139 s/[\\$]/&&/g;s/;s,x,x,$//
2140 _ACEOF
2141 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2142 rm -f conftest.sed
2143
2144 # expand $ac_aux_dir to an absolute path
2145 am_aux_dir=`cd $ac_aux_dir && pwd`
2146
2147 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2148 # Use eval to expand $SHELL
2149 if eval "$MISSING --run true"; then
2150 am_missing_run="$MISSING --run "
2151 else
2152 am_missing_run=
2153 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2154 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2155 fi
2156
2157 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2158 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2159 if test -z "$MKDIR_P"; then
2160 if test "${ac_cv_path_mkdir+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2165 do
2166 IFS=$as_save_IFS
2167 test -z "$as_dir" && as_dir=.
2168 for ac_prog in mkdir gmkdir; do
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2171 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2172 'mkdir (GNU coreutils) '* | \
2173 'mkdir (coreutils) '* | \
2174 'mkdir (fileutils) '4.1*)
2175 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2176 break 3;;
2177 esac
2178 done
2179 done
2180 done
2181 IFS=$as_save_IFS
2182
2183 fi
2184
2185 if test "${ac_cv_path_mkdir+set}" = set; then
2186 MKDIR_P="$ac_cv_path_mkdir -p"
2187 else
2188 # As a last resort, use the slow shell script. Don't cache a
2189 # value for MKDIR_P within a source directory, because that will
2190 # break other packages using the cache if that directory is
2191 # removed, or if the value is a relative name.
2192 test -d ./--version && rmdir ./--version
2193 MKDIR_P="$ac_install_sh -d"
2194 fi
2195 fi
2196 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2197 echo "${ECHO_T}$MKDIR_P" >&6; }
2198
2199 mkdir_p="$MKDIR_P"
2200 case $mkdir_p in
2201 [\\/$]* | ?:[\\/]*) ;;
2202 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2203 esac
2204
2205 for ac_prog in gawk mawk nawk awk
2206 do
2207 # Extract the first word of "$ac_prog", so it can be a program name with args.
2208 set dummy $ac_prog; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_AWK+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 if test -n "$AWK"; then
2215 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_AWK="$ac_prog"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2227 fi
2228 done
2229 done
2230 IFS=$as_save_IFS
2231
2232 fi
2233 fi
2234 AWK=$ac_cv_prog_AWK
2235 if test -n "$AWK"; then
2236 { echo "$as_me:$LINENO: result: $AWK" >&5
2237 echo "${ECHO_T}$AWK" >&6; }
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 fi
2242
2243
2244 test -n "$AWK" && break
2245 done
2246
2247 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2248 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2249 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2250 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 else
2253 cat >conftest.make <<\_ACEOF
2254 SHELL = /bin/sh
2255 all:
2256 @echo '@@@%%%=$(MAKE)=@@@%%%'
2257 _ACEOF
2258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2259 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2260 *@@@%%%=?*=@@@%%%*)
2261 eval ac_cv_prog_make_${ac_make}_set=yes;;
2262 *)
2263 eval ac_cv_prog_make_${ac_make}_set=no;;
2264 esac
2265 rm -f conftest.make
2266 fi
2267 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2268 { echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6; }
2270 SET_MAKE=
2271 else
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2274 SET_MAKE="MAKE=${MAKE-make}"
2275 fi
2276
2277 rm -rf .tst 2>/dev/null
2278 mkdir .tst 2>/dev/null
2279 if test -d .tst; then
2280 am__leading_dot=.
2281 else
2282 am__leading_dot=_
2283 fi
2284 rmdir .tst 2>/dev/null
2285
2286 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2287 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2288 # is not polluted with repeated "-I."
2289 am__isrc=' -I$(srcdir)'
2290 # test to see if srcdir already configured
2291 if test -f $srcdir/config.status; then
2292 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2293 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2294 { (exit 1); exit 1; }; }
2295 fi
2296 fi
2297
2298 # test whether we have cygpath
2299 if test -z "$CYGPATH_W"; then
2300 if (cygpath --version) >/dev/null 2>/dev/null; then
2301 CYGPATH_W='cygpath -w'
2302 else
2303 CYGPATH_W=echo
2304 fi
2305 fi
2306
2307
2308 # Define the identity of the package.
2309 PACKAGE='libXinerama'
2310 VERSION='1.0.3'
2311
2312
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE "$PACKAGE"
2315 _ACEOF
2316
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define VERSION "$VERSION"
2320 _ACEOF
2321
2322 # Some tools Automake needs.
2323
2324 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2325
2326
2327 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2328
2329
2330 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2331
2332
2333 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2334
2335
2336 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2337
2338 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2339
2340 # Installed binaries are usually stripped using `strip' when the user
2341 # run `make install-strip'. However `strip' might not be the right
2342 # tool to use in cross-compilation environments, therefore Automake
2343 # will honor the `STRIP' environment variable to overrule this program.
2344 if test "$cross_compiling" != no; then
2345 if test -n "$ac_tool_prefix"; then
2346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2347 set dummy ${ac_tool_prefix}strip; ac_word=$2
2348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2350 if test "${ac_cv_prog_STRIP+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353 if test -n "$STRIP"; then
2354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2355 else
2356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 for as_dir in $PATH
2358 do
2359 IFS=$as_save_IFS
2360 test -z "$as_dir" && as_dir=.
2361 for ac_exec_ext in '' $ac_executable_extensions; do
2362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365 break 2
2366 fi
2367 done
2368 done
2369 IFS=$as_save_IFS
2370
2371 fi
2372 fi
2373 STRIP=$ac_cv_prog_STRIP
2374 if test -n "$STRIP"; then
2375 { echo "$as_me:$LINENO: result: $STRIP" >&5
2376 echo "${ECHO_T}$STRIP" >&6; }
2377 else
2378 { echo "$as_me:$LINENO: result: no" >&5
2379 echo "${ECHO_T}no" >&6; }
2380 fi
2381
2382
2383 fi
2384 if test -z "$ac_cv_prog_STRIP"; then
2385 ac_ct_STRIP=$STRIP
2386 # Extract the first word of "strip", so it can be a program name with args.
2387 set dummy strip; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2391 echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393 if test -n "$ac_ct_STRIP"; then
2394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399 IFS=$as_save_IFS
2400 test -z "$as_dir" && as_dir=.
2401 for ac_exec_ext in '' $ac_executable_extensions; do
2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403 ac_cv_prog_ac_ct_STRIP="strip"
2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 break 2
2406 fi
2407 done
2408 done
2409 IFS=$as_save_IFS
2410
2411 fi
2412 fi
2413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2414 if test -n "$ac_ct_STRIP"; then
2415 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2416 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2417 else
2418 { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2420 fi
2421
2422 if test "x$ac_ct_STRIP" = x; then
2423 STRIP=":"
2424 else
2425 case $cross_compiling:$ac_tool_warned in
2426 yes:)
2427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet. If you think this
2429 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2433 ac_tool_warned=yes ;;
2434 esac
2435 STRIP=$ac_ct_STRIP
2436 fi
2437 else
2438 STRIP="$ac_cv_prog_STRIP"
2439 fi
2440
2441 fi
2442 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2443
2444 # We need awk for the "check" target. The system "awk" is bad on
2445 # some platforms.
2446 # Always define AMTAR for backward compatibility.
2447
2448 AMTAR=${AMTAR-"${am_missing_run}tar"}
2449
2450 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2451
2452
2453
2454
2455
2456 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2457 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2458 # Check whether --enable-maintainer-mode was given.
2459 if test "${enable_maintainer_mode+set}" = set; then
2460 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2461 else
2462 USE_MAINTAINER_MODE=no
2463 fi
2464
2465 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2466 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2467 if test $USE_MAINTAINER_MODE = yes; then
2468 MAINTAINER_MODE_TRUE=
2469 MAINTAINER_MODE_FALSE='#'
2470 else
2471 MAINTAINER_MODE_TRUE='#'
2472 MAINTAINER_MODE_FALSE=
2473 fi
2474
2475 MAINT=$MAINTAINER_MODE_TRUE
2476
2477
2478
2479 ac_config_headers="$ac_config_headers config.h"
2480
2481
2482 # Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
2483
2484
2485 XORG_MACROS_needed_version=1.1
2486 XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2487 XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2488 { echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2489 echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6; }
2490 XORG_MACROS_version=1.1.6
2491 XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2492 XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2493 if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2494 { { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2495 echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2496 { (exit 1); exit 1; }; }
2497 fi
2498 if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2499 { { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2500 echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2501 { (exit 1); exit 1; }; }
2502 fi
2503 { echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2504 echo "${ECHO_T}yes, $XORG_MACROS_version" >&6; }
2505
2506
2507 # Check for progs
2508 ac_ext=c
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2545 else
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2549
2550
2551 fi
2552 if test -z "$ac_cv_prog_CC"; then
2553 ac_ct_CC=$CC
2554 # Extract the first word of "gcc", so it can be a program name with args.
2555 set dummy gcc; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561 if test -n "$ac_ct_CC"; then
2562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_ac_ct_CC="gcc"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2582 if test -n "$ac_ct_CC"; then
2583 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2584 echo "${ECHO_T}$ac_ct_CC" >&6; }
2585 else
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2588 fi
2589
2590 if test "x$ac_ct_CC" = x; then
2591 CC=""
2592 else
2593 case $cross_compiling:$ac_tool_warned in
2594 yes:)
2595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2599 whose name does not start with the host triplet. If you think this
2600 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2601 ac_tool_warned=yes ;;
2602 esac
2603 CC=$ac_ct_CC
2604 fi
2605 else
2606 CC="$ac_cv_prog_CC"
2607 fi
2608
2609 if test -z "$CC"; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}cc; ac_word=$2
2613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2615 if test "${ac_cv_prog_CC+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2628 ac_cv_prog_CC="${ac_tool_prefix}cc"
2629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640 { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2642 else
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2645 fi
2646
2647
2648 fi
2649 fi
2650 if test -z "$CC"; then
2651 # Extract the first word of "cc", so it can be a program name with args.
2652 set dummy cc; ac_word=$2
2653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_CC+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 ac_prog_rejected=no
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 for as_dir in $PATH
2664 do
2665 IFS=$as_save_IFS
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2670 ac_prog_rejected=yes
2671 continue
2672 fi
2673 ac_cv_prog_CC="cc"
2674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677 done
2678 done
2679 IFS=$as_save_IFS
2680
2681 if test $ac_prog_rejected = yes; then
2682 # We found a bogon in the path, so make sure we never use it.
2683 set dummy $ac_cv_prog_CC
2684 shift
2685 if test $# != 0; then
2686 # We chose a different compiler from the bogus one.
2687 # However, it has the same basename, so the bogon will be chosen
2688 # first if we set CC to just the basename; use the full file name.
2689 shift
2690 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2691 fi
2692 fi
2693 fi
2694 fi
2695 CC=$ac_cv_prog_CC
2696 if test -n "$CC"; then
2697 { echo "$as_me:$LINENO: result: $CC" >&5
2698 echo "${ECHO_T}$CC" >&6; }
2699 else
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2702 fi
2703
2704
2705 fi
2706 if test -z "$CC"; then
2707 if test -n "$ac_tool_prefix"; then
2708 for ac_prog in cl.exe
2709 do
2710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2714 if test "${ac_cv_prog_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733 IFS=$as_save_IFS
2734
2735 fi
2736 fi
2737 CC=$ac_cv_prog_CC
2738 if test -n "$CC"; then
2739 { echo "$as_me:$LINENO: result: $CC" >&5
2740 echo "${ECHO_T}$CC" >&6; }
2741 else
2742 { echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6; }
2744 fi
2745
2746
2747 test -n "$CC" && break
2748 done
2749 fi
2750 if test -z "$CC"; then
2751 ac_ct_CC=$CC
2752 for ac_prog in cl.exe
2753 do
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy $ac_prog; ac_word=$2
2756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2759 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 else
2761 if test -n "$ac_ct_CC"; then
2762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2766 do
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2771 ac_cv_prog_ac_ct_CC="$ac_prog"
2772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 break 2
2774 fi
2775 done
2776 done
2777 IFS=$as_save_IFS
2778
2779 fi
2780 fi
2781 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2782 if test -n "$ac_ct_CC"; then
2783 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2784 echo "${ECHO_T}$ac_ct_CC" >&6; }
2785 else
2786 { echo "$as_me:$LINENO: result: no" >&5
2787 echo "${ECHO_T}no" >&6; }
2788 fi
2789
2790
2791 test -n "$ac_ct_CC" && break
2792 done
2793
2794 if test "x$ac_ct_CC" = x; then
2795 CC=""
2796 else
2797 case $cross_compiling:$ac_tool_warned in
2798 yes:)
2799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2803 whose name does not start with the host triplet. If you think this
2804 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2805 ac_tool_warned=yes ;;
2806 esac
2807 CC=$ac_ct_CC
2808 fi
2809 fi
2810
2811 fi
2812
2813
2814 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2815 See \`config.log' for more details." >&5
2816 echo "$as_me: error: no acceptable C compiler found in \$PATH
2817 See \`config.log' for more details." >&2;}
2818 { (exit 1); exit 1; }; }
2819
2820 # Provide some information about the compiler.
2821 echo "$as_me:$LINENO: checking for C compiler version" >&5
2822 ac_compiler=`set X $ac_compile; echo $2`
2823 { (ac_try="$ac_compiler --version >&5"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2829 (eval "$ac_compiler --version >&5") 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }
2833 { (ac_try="$ac_compiler -v >&5"
2834 case "(($ac_try" in
2835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836 *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839 (eval "$ac_compiler -v >&5") 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (ac_try="$ac_compiler -V >&5"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_compiler -V >&5") 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }
2853
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860
2861 int
2862 main ()
2863 {
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 ac_clean_files_save=$ac_clean_files
2870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2871 # Try to create an executable without -o first, disregard a.out.
2872 # It will help us diagnose broken compilers, and finding out an intuition
2873 # of exeext.
2874 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2877 #
2878 # List of possible output files, starting from the most likely.
2879 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2880 # only as a last resort. b.out is created by i960 compilers.
2881 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2882 #
2883 # The IRIX 6 linker writes into existing files which may not be
2884 # executable, retaining their permissions. Remove them first so a
2885 # subsequent execution test works.
2886 ac_rmfiles=
2887 for ac_file in $ac_files
2888 do
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2892 esac
2893 done
2894 rm -f $ac_rmfiles
2895
2896 if { (ac_try="$ac_link_default"
2897 case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900 esac
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_link_default") 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; then
2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2909 # so that the user can short-circuit this test for compilers unknown to
2910 # Autoconf.
2911 for ac_file in $ac_files ''
2912 do
2913 test -f "$ac_file" || continue
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2916 ;;
2917 [ab].out )
2918 # We found the default executable, but exeext='' is most
2919 # certainly right.
2920 break;;
2921 *.* )
2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923 then :; else
2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2925 fi
2926 # We set ac_cv_exeext here because the later test for it is not
2927 # safe: cross compilers may not add the suffix if given an `-o'
2928 # argument, so we may need to know it at that point already.
2929 # Even if this section looks crufty: it has the advantage of
2930 # actually working.
2931 break;;
2932 * )
2933 break;;
2934 esac
2935 done
2936 test "$ac_cv_exeext" = no && ac_cv_exeext=
2937
2938 else
2939 ac_file=''
2940 fi
2941
2942 { echo "$as_me:$LINENO: result: $ac_file" >&5
2943 echo "${ECHO_T}$ac_file" >&6; }
2944 if test -z "$ac_file"; then
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2947
2948 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2949 See \`config.log' for more details." >&5
2950 echo "$as_me: error: C compiler cannot create executables
2951 See \`config.log' for more details." >&2;}
2952 { (exit 77); exit 77; }; }
2953 fi
2954
2955 ac_exeext=$ac_cv_exeext
2956
2957 # Check that the compiler produces executables we can run. If not, either
2958 # the compiler is broken, or we cross compile.
2959 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2960 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2961 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2962 # If not cross compiling, check that we can run a simple program.
2963 if test "$cross_compiling" != yes; then
2964 if { ac_try='./$ac_file'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968 esac
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 cross_compiling=no
2975 else
2976 if test "$cross_compiling" = maybe; then
2977 cross_compiling=yes
2978 else
2979 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2980 If you meant to cross compile, use \`--host'.
2981 See \`config.log' for more details." >&5
2982 echo "$as_me: error: cannot run C compiled programs.
2983 If you meant to cross compile, use \`--host'.
2984 See \`config.log' for more details." >&2;}
2985 { (exit 1); exit 1; }; }
2986 fi
2987 fi
2988 fi
2989 { echo "$as_me:$LINENO: result: yes" >&5
2990 echo "${ECHO_T}yes" >&6; }
2991
2992 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2993 ac_clean_files=$ac_clean_files_save
2994 # Check that the compiler produces executables we can run. If not, either
2995 # the compiler is broken, or we cross compile.
2996 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2997 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2998 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2999 echo "${ECHO_T}$cross_compiling" >&6; }
3000
3001 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3002 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3003 if { (ac_try="$ac_link"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_link") 2>&5
3010 ac_status=$?
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; then
3013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3015 # work properly (i.e., refer to `conftest.exe'), while it won't with
3016 # `rm'.
3017 for ac_file in conftest.exe conftest conftest.*; do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3022 break;;
3023 * ) break;;
3024 esac
3025 done
3026 else
3027 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033
3034 rm -f conftest$ac_cv_exeext
3035 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3036 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3037
3038 rm -f conftest.$ac_ext
3039 EXEEXT=$ac_cv_exeext
3040 ac_exeext=$EXEEXT
3041 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3042 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3043 if test "${ac_cv_objext+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 rm -f conftest.o conftest.obj
3062 if { (ac_try="$ac_compile"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077 break;;
3078 esac
3079 done
3080 else
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3083
3084 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&5
3086 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3089 fi
3090
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 fi
3093 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094 echo "${ECHO_T}$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3096 ac_objext=$OBJEXT
3097 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3108
3109 int
3110 main ()
3111 {
3112 #ifndef __GNUC__
3113 choke me
3114 #endif
3115
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3128 ac_status=$?
3129 grep -v '^ *+' conftest.er1 >conftest.err
3130 rm -f conftest.er1
3131 cat conftest.err >&5
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3137 ac_compiler_gnu=yes
3138 else
3139 echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 ac_compiler_gnu=no
3143 fi
3144
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3147
3148 fi
3149 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3150 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3151 GCC=`test $ac_compiler_gnu = yes && echo yes`
3152 ac_test_CFLAGS=${CFLAGS+set}
3153 ac_save_CFLAGS=$CFLAGS
3154 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3155 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_cc_g+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159 ac_save_c_werror_flag=$ac_c_werror_flag
3160 ac_c_werror_flag=yes
3161 ac_cv_prog_cc_g=no
3162 CFLAGS="-g"
3163 cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h. */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169
3170 int
3171 main ()
3172 {
3173
3174 ;
3175 return 0;
3176 }
3177 _ACEOF
3178 rm -f conftest.$ac_objext
3179 if { (ac_try="$ac_compile"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_compile") 2>conftest.er1
3186 ac_status=$?
3187 grep -v '^ *+' conftest.er1 >conftest.err
3188 rm -f conftest.er1
3189 cat conftest.err >&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); } && {
3192 test -z "$ac_c_werror_flag" ||
3193 test ! -s conftest.err
3194 } && test -s conftest.$ac_objext; then
3195 ac_cv_prog_cc_g=yes
3196 else
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 CFLAGS=""
3201 cat >conftest.$ac_ext <<_ACEOF
3202 /* confdefs.h. */
3203 _ACEOF
3204 cat confdefs.h >>conftest.$ac_ext
3205 cat >>conftest.$ac_ext <<_ACEOF
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211
3212 ;
3213 return 0;
3214 }
3215 _ACEOF
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3224 ac_status=$?
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 :
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3239 CFLAGS="-g"
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246
3247 int
3248 main ()
3249 {
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compile") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } && {
3269 test -z "$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 } && test -s conftest.$ac_objext; then
3272 ac_cv_prog_cc_g=yes
3273 else
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277
3278 fi
3279
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 fi
3282
3283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 fi
3285
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3288 fi
3289 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3290 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3298 fi
3299 else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3304 fi
3305 fi
3306 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3307 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3308 if test "${ac_cv_prog_cc_c89+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311 ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat >conftest.$ac_ext <<_ACEOF
3314 /* confdefs.h. */
3315 _ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3327 char **p;
3328 int i;
3329 {
3330 return p[i];
3331 }
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3333 {
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3340 }
3341
3342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3343 function prototypes and stuff, but not '\xHH' hex character constants.
3344 These don't provoke an error unfortunately, instead are silently treated
3345 as 'x'. The following induces an error, until -std is added to get
3346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3347 array size at least. It's necessary to write '\x00'==0 to get something
3348 that's true only with -std. */
3349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3350
3351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3352 inside strings and character constants. */
3353 #define FOO(x) 'x'
3354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3355
3356 int test (int i, double x);
3357 struct s1 {int (*f) (int a);};
3358 struct s2 {int (*f) (double a);};
3359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360 int argc;
3361 char **argv;
3362 int
3363 main ()
3364 {
3365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3366 ;
3367 return 0;
3368 }
3369 _ACEOF
3370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3372 do
3373 CC="$ac_save_CC $ac_arg"
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_cv_prog_cc_c89=$ac_arg
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396
3397 fi
3398
3399 rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401 done
3402 rm -f conftest.$ac_ext
3403 CC=$ac_save_CC
3404
3405 fi
3406 # AC_CACHE_VAL
3407 case "x$ac_cv_prog_cc_c89" in
3408 x)
3409 { echo "$as_me:$LINENO: result: none needed" >&5
3410 echo "${ECHO_T}none needed" >&6; } ;;
3411 xno)
3412 { echo "$as_me:$LINENO: result: unsupported" >&5
3413 echo "${ECHO_T}unsupported" >&6; } ;;
3414 *)
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3417 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3418 esac
3419
3420
3421 ac_ext=c
3422 ac_cpp='$CPP $CPPFLAGS'
3423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 DEPDIR="${am__leading_dot}deps"
3427
3428 ac_config_commands="$ac_config_commands depfiles"
3429
3430
3431 am_make=${MAKE-make}
3432 cat > confinc << 'END'
3433 am__doit:
3434 @echo done
3435 .PHONY: am__doit
3436 END
3437 # If we don't find an include directive, just comment out the code.
3438 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3439 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3440 am__include="#"
3441 am__quote=
3442 _am_result=none
3443 # First try GNU make style include.
3444 echo "include confinc" > confmf
3445 # We grep out `Entering directory' and `Leaving directory'
3446 # messages which can occur if `w' ends up in MAKEFLAGS.
3447 # In particular we don't look at `^make:' because GNU make might
3448 # be invoked under some other name (usually "gmake"), in which
3449 # case it prints its new name instead of `make'.
3450 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3451 am__include=include
3452 am__quote=
3453 _am_result=GNU
3454 fi
3455 # Now try BSD make style include.
3456 if test "$am__include" = "#"; then
3457 echo '.include "confinc"' > confmf
3458 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3459 am__include=.include
3460 am__quote="\""
3461 _am_result=BSD
3462 fi
3463 fi
3464
3465
3466 { echo "$as_me:$LINENO: result: $_am_result" >&5
3467 echo "${ECHO_T}$_am_result" >&6; }
3468 rm -f confinc confmf
3469
3470 # Check whether --enable-dependency-tracking was given.
3471 if test "${enable_dependency_tracking+set}" = set; then
3472 enableval=$enable_dependency_tracking;
3473 fi
3474
3475 if test "x$enable_dependency_tracking" != xno; then
3476 am_depcomp="$ac_aux_dir/depcomp"
3477 AMDEPBACKSLASH='\'
3478 fi
3479 if test "x$enable_dependency_tracking" != xno; then
3480 AMDEP_TRUE=
3481 AMDEP_FALSE='#'
3482 else
3483 AMDEP_TRUE='#'
3484 AMDEP_FALSE=
3485 fi
3486
3487
3488
3489 depcc="$CC" am_compiler_list=
3490
3491 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 else
3496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3497 # We make a subdir and do the tests there. Otherwise we can end up
3498 # making bogus files that we don't know about and never remove. For
3499 # instance it was reported that on HP-UX the gcc test will end up
3500 # making a dummy file named `D' -- because `-MD' means `put the output
3501 # in D'.
3502 mkdir conftest.dir
3503 # Copy depcomp to subdir because otherwise we won't find it if we're
3504 # using a relative directory.
3505 cp "$am_depcomp" conftest.dir
3506 cd conftest.dir
3507 # We will build objects and dependencies in a subdirectory because
3508 # it helps to detect inapplicable dependency modes. For instance
3509 # both Tru64's cc and ICC support -MD to output dependencies as a
3510 # side effect of compilation, but ICC will put the dependencies in
3511 # the current directory while Tru64 will put them in the object
3512 # directory.
3513 mkdir sub
3514
3515 am_cv_CC_dependencies_compiler_type=none
3516 if test "$am_compiler_list" = ""; then
3517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3518 fi
3519 for depmode in $am_compiler_list; do
3520 # Setup a source with many dependencies, because some compilers
3521 # like to wrap large dependency lists on column 80 (with \), and
3522 # we should not choose a depcomp mode which is confused by this.
3523 #
3524 # We need to recreate these files for each test, as the compiler may
3525 # overwrite some of them when testing with obscure command lines.
3526 # This happens at least with the AIX C compiler.
3527 : > sub/conftest.c
3528 for i in 1 2 3 4 5 6; do
3529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3531 # Solaris 8's {/usr,}/bin/sh.
3532 touch sub/conftst$i.h
3533 done
3534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3535
3536 case $depmode in
3537 nosideeffect)
3538 # after this tag, mechanisms are not by side-effect, so they'll
3539 # only be used when explicitly requested
3540 if test "x$enable_dependency_tracking" = xyes; then
3541 continue
3542 else
3543 break
3544 fi
3545 ;;
3546 none) break ;;
3547 esac
3548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3549 # mode. It turns out that the SunPro C++ compiler does not properly
3550 # handle `-M -o', and we need to detect this.
3551 if depmode=$depmode \
3552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3555 >/dev/null 2>conftest.err &&
3556 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3558 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3560 # icc doesn't choke on unknown options, it will just issue warnings
3561 # or remarks (even with -Werror). So we grep stderr for any message
3562 # that says an option was ignored or not supported.
3563 # When given -MP, icc 7.0 and 7.1 complain thusly:
3564 # icc: Command line warning: ignoring option '-M'; no argument required
3565 # The diagnosis changed in icc 8.0:
3566 # icc: Command line remark: option '-MP' not supported
3567 if (grep 'ignoring option' conftest.err ||
3568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3569 am_cv_CC_dependencies_compiler_type=$depmode
3570 break
3571 fi
3572 fi
3573 done
3574
3575 cd ..
3576 rm -rf conftest.dir
3577 else
3578 am_cv_CC_dependencies_compiler_type=none
3579 fi
3580
3581 fi
3582 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3583 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3584 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3585
3586 if
3587 test "x$enable_dependency_tracking" != xno \
3588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3589 am__fastdepCC_TRUE=
3590 am__fastdepCC_FALSE='#'
3591 else
3592 am__fastdepCC_TRUE='#'
3593 am__fastdepCC_FALSE=
3594 fi
3595
3596
3597 # Check whether --enable-shared was given.
3598 if test "${enable_shared+set}" = set; then
3599 enableval=$enable_shared; p=${PACKAGE-default}
3600 case $enableval in
3601 yes) enable_shared=yes ;;
3602 no) enable_shared=no ;;
3603 *)
3604 enable_shared=no
3605 # Look at the argument we got. We use all the common list separators.
3606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3607 for pkg in $enableval; do
3608 IFS="$lt_save_ifs"
3609 if test "X$pkg" = "X$p"; then
3610 enable_shared=yes
3611 fi
3612 done
3613 IFS="$lt_save_ifs"
3614 ;;
3615 esac
3616 else
3617 enable_shared=yes
3618 fi
3619
3620
3621 # Check whether --enable-static was given.
3622 if test "${enable_static+set}" = set; then
3623 enableval=$enable_static; p=${PACKAGE-default}
3624 case $enableval in
3625 yes) enable_static=yes ;;
3626 no) enable_static=no ;;
3627 *)
3628 enable_static=no
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3632 IFS="$lt_save_ifs"
3633 if test "X$pkg" = "X$p"; then
3634 enable_static=yes
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 ;;
3639 esac
3640 else
3641 enable_static=yes
3642 fi
3643
3644
3645 # Check whether --enable-fast-install was given.
3646 if test "${enable_fast_install+set}" = set; then
3647 enableval=$enable_fast_install; p=${PACKAGE-default}
3648 case $enableval in
3649 yes) enable_fast_install=yes ;;
3650 no) enable_fast_install=no ;;
3651 *)
3652 enable_fast_install=no
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3656 IFS="$lt_save_ifs"
3657 if test "X$pkg" = "X$p"; then
3658 enable_fast_install=yes
3659 fi
3660 done
3661 IFS="$lt_save_ifs"
3662 ;;
3663 esac
3664 else
3665 enable_fast_install=yes
3666 fi
3667
3668
3669 # Make sure we can run config.sub.
3670 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3671 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3672 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3673 { (exit 1); exit 1; }; }
3674
3675 { echo "$as_me:$LINENO: checking build system type" >&5
3676 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3677 if test "${ac_cv_build+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 ac_build_alias=$build_alias
3681 test "x$ac_build_alias" = x &&
3682 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3683 test "x$ac_build_alias" = x &&
3684 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3685 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3686 { (exit 1); exit 1; }; }
3687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3688 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3689 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3690 { (exit 1); exit 1; }; }
3691
3692 fi
3693 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3694 echo "${ECHO_T}$ac_cv_build" >&6; }
3695 case $ac_cv_build in
3696 *-*-*) ;;
3697 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3698 echo "$as_me: error: invalid value of canonical build" >&2;}
3699 { (exit 1); exit 1; }; };;
3700 esac
3701 build=$ac_cv_build
3702 ac_save_IFS=$IFS; IFS='-'
3703 set x $ac_cv_build
3704 shift
3705 build_cpu=$1
3706 build_vendor=$2
3707 shift; shift
3708 # Remember, the first character of IFS is used to create $*,
3709 # except with old shells:
3710 build_os=$*
3711 IFS=$ac_save_IFS
3712 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3713
3714
3715 { echo "$as_me:$LINENO: checking host system type" >&5
3716 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3717 if test "${ac_cv_host+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719 else
3720 if test "x$host_alias" = x; then
3721 ac_cv_host=$ac_cv_build
3722 else
3723 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3724 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3725 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3726 { (exit 1); exit 1; }; }
3727 fi
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3731 echo "${ECHO_T}$ac_cv_host" >&6; }
3732 case $ac_cv_host in
3733 *-*-*) ;;
3734 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3735 echo "$as_me: error: invalid value of canonical host" >&2;}
3736 { (exit 1); exit 1; }; };;
3737 esac
3738 host=$ac_cv_host
3739 ac_save_IFS=$IFS; IFS='-'
3740 set x $ac_cv_host
3741 shift
3742 host_cpu=$1
3743 host_vendor=$2
3744 shift; shift
3745 # Remember, the first character of IFS is used to create $*,
3746 # except with old shells:
3747 host_os=$*
3748 IFS=$ac_save_IFS
3749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3750
3751
3752 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3753 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3754 if test "${lt_cv_path_SED+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 # Loop through the user's path and test for sed and gsed.
3758 # Then use that list of sed's as ones to test for truncation.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3761 do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for lt_ac_prog in sed gsed; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3767 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3768 fi
3769 done
3770 done
3771 done
3772 IFS=$as_save_IFS
3773 lt_ac_max=0
3774 lt_ac_count=0
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f $lt_ac_sed && continue
3779 cat /dev/null > conftest.in
3780 lt_ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3782 # Check for GNU sed and select it if it is found.
3783 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3784 lt_cv_path_SED=$lt_ac_sed
3785 break
3786 fi
3787 while true; do
3788 cat conftest.in conftest.in >conftest.tmp
3789 mv conftest.tmp conftest.in
3790 cp conftest.in conftest.nl
3791 echo >>conftest.nl
3792 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3793 cmp -s conftest.out conftest.nl || break
3794 # 10000 chars as input seems more than enough
3795 test $lt_ac_count -gt 10 && break
3796 lt_ac_count=`expr $lt_ac_count + 1`
3797 if test $lt_ac_count -gt $lt_ac_max; then
3798 lt_ac_max=$lt_ac_count
3799 lt_cv_path_SED=$lt_ac_sed
3800 fi
3801 done
3802 done
3803
3804 fi
3805
3806 SED=$lt_cv_path_SED
3807
3808 { echo "$as_me:$LINENO: result: $SED" >&5
3809 echo "${ECHO_T}$SED" >&6; }
3810
3811 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3812 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3813 if test "${ac_cv_path_GREP+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816 # Extract the first word of "grep ggrep" to use in msg output
3817 if test -z "$GREP"; then
3818 set dummy grep ggrep; ac_prog_name=$2
3819 if test "${ac_cv_path_GREP+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 ac_path_GREP_found=false
3823 # Loop through the user's path and test for each of PROGNAME-LIST
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3826 do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_prog in grep ggrep; do
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3832 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3833 # Check for GNU ac_path_GREP and select it if it is found.
3834 # Check for GNU $ac_path_GREP
3835 case `"$ac_path_GREP" --version 2>&1` in
3836 *GNU*)
3837 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3838 *)
3839 ac_count=0
3840 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3841 while :
3842 do
3843 cat "conftest.in" "conftest.in" >"conftest.tmp"
3844 mv "conftest.tmp" "conftest.in"
3845 cp "conftest.in" "conftest.nl"
3846 echo 'GREP' >> "conftest.nl"
3847 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3848 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3849 ac_count=`expr $ac_count + 1`
3850 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3851 # Best one so far, save it but keep looking for a better one
3852 ac_cv_path_GREP="$ac_path_GREP"
3853 ac_path_GREP_max=$ac_count
3854 fi
3855 # 10*(2^10) chars as input seems more than enough
3856 test $ac_count -gt 10 && break
3857 done
3858 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3859 esac
3860
3861
3862 $ac_path_GREP_found && break 3
3863 done
3864 done
3865
3866 done
3867 IFS=$as_save_IFS
3868
3869
3870 fi
3871
3872 GREP="$ac_cv_path_GREP"
3873 if test -z "$GREP"; then
3874 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3875 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3876 { (exit 1); exit 1; }; }
3877 fi
3878
3879 else
3880 ac_cv_path_GREP=$GREP
3881 fi
3882
3883
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3886 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3887 GREP="$ac_cv_path_GREP"
3888
3889
3890 { echo "$as_me:$LINENO: checking for egrep" >&5
3891 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3892 if test "${ac_cv_path_EGREP+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3896 then ac_cv_path_EGREP="$GREP -E"
3897 else
3898 # Extract the first word of "egrep" to use in msg output
3899 if test -z "$EGREP"; then
3900 set dummy egrep; ac_prog_name=$2
3901 if test "${ac_cv_path_EGREP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904 ac_path_EGREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in egrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915 # Check for GNU ac_path_EGREP and select it if it is found.
3916 # Check for GNU $ac_path_EGREP
3917 case `"$ac_path_EGREP" --version 2>&1` in
3918 *GNU*)
3919 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 *)
3921 ac_count=0
3922 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3923 while :
3924 do
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 echo 'EGREP' >> "conftest.nl"
3929 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 ac_count=`expr $ac_count + 1`
3932 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_EGREP="$ac_path_EGREP"
3935 ac_path_EGREP_max=$ac_count
3936 fi
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3939 done
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 esac
3942
3943
3944 $ac_path_EGREP_found && break 3
3945 done
3946 done
3947
3948 done
3949 IFS=$as_save_IFS
3950
3951
3952 fi
3953
3954 EGREP="$ac_cv_path_EGREP"
3955 if test -z "$EGREP"; then
3956 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3957 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3958 { (exit 1); exit 1; }; }
3959 fi
3960
3961 else
3962 ac_cv_path_EGREP=$EGREP
3963 fi
3964
3965
3966 fi
3967 fi
3968 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3969 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3970 EGREP="$ac_cv_path_EGREP"
3971
3972
3973
3974 # Check whether --with-gnu-ld was given.
3975 if test "${with_gnu_ld+set}" = set; then
3976 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3977 else
3978 with_gnu_ld=no
3979 fi
3980
3981 ac_prog=ld
3982 if test "$GCC" = yes; then
3983 # Check if gcc -print-prog-name=ld gives a path.
3984 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3985 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3986 case $host in
3987 *-*-mingw*)
3988 # gcc leaves a trailing carriage return which upsets mingw
3989 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3990 *)
3991 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3992 esac
3993 case $ac_prog in
3994 # Accept absolute paths.
3995 [\\/]* | ?:[\\/]*)
3996 re_direlt='/[^/][^/]*/\.\./'
3997 # Canonicalize the pathname of ld
3998 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3999 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4000 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4001 done
4002 test -z "$LD" && LD="$ac_prog"
4003 ;;
4004 "")
4005 # If it fails, then pretend we aren't using GCC.
4006 ac_prog=ld
4007 ;;
4008 *)
4009 # If it is relative, then search for the first ld in PATH.
4010 with_gnu_ld=unknown
4011 ;;
4012 esac
4013 elif test "$with_gnu_ld" = yes; then
4014 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4015 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4016 else
4017 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4018 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4019 fi
4020 if test "${lt_cv_path_LD+set}" = set; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023 if test -z "$LD"; then
4024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4025 for ac_dir in $PATH; do
4026 IFS="$lt_save_ifs"
4027 test -z "$ac_dir" && ac_dir=.
4028 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4029 lt_cv_path_LD="$ac_dir/$ac_prog"
4030 # Check to see if the program is GNU ld. I'd rather use --version,
4031 # but apparently some variants of GNU ld only accept -v.
4032 # Break only if it was the GNU/non-GNU ld that we prefer.
4033 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4034 *GNU* | *'with BFD'*)
4035 test "$with_gnu_ld" != no && break
4036 ;;
4037 *)
4038 test "$with_gnu_ld" != yes && break
4039 ;;
4040 esac
4041 fi
4042 done
4043 IFS="$lt_save_ifs"
4044 else
4045 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4046 fi
4047 fi
4048
4049 LD="$lt_cv_path_LD"
4050 if test -n "$LD"; then
4051 { echo "$as_me:$LINENO: result: $LD" >&5
4052 echo "${ECHO_T}$LD" >&6; }
4053 else
4054 { echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6; }
4056 fi
4057 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4058 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4059 { (exit 1); exit 1; }; }
4060 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4061 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4062 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4066 case `$LD -v 2>&1 </dev/null` in
4067 *GNU* | *'with BFD'*)
4068 lt_cv_prog_gnu_ld=yes
4069 ;;
4070 *)
4071 lt_cv_prog_gnu_ld=no
4072 ;;
4073 esac
4074 fi
4075 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4076 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4077 with_gnu_ld=$lt_cv_prog_gnu_ld
4078
4079
4080 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4081 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4082 if test "${lt_cv_ld_reload_flag+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4084 else
4085 lt_cv_ld_reload_flag='-r'
4086 fi
4087 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4088 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4089 reload_flag=$lt_cv_ld_reload_flag
4090 case $reload_flag in
4091 "" | " "*) ;;
4092 *) reload_flag=" $reload_flag" ;;
4093 esac
4094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4095 case $host_os in
4096 darwin*)
4097 if test "$GCC" = yes; then
4098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4099 else
4100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4101 fi
4102 ;;
4103 esac
4104
4105 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4106 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4107 if test "${lt_cv_path_NM+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 if test -n "$NM"; then
4111 # Let the user override the test.
4112 lt_cv_path_NM="$NM"
4113 else
4114 lt_nm_to_check="${ac_tool_prefix}nm"
4115 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4116 lt_nm_to_check="$lt_nm_to_check nm"
4117 fi
4118 for lt_tmp_nm in $lt_nm_to_check; do
4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4121 IFS="$lt_save_ifs"
4122 test -z "$ac_dir" && ac_dir=.
4123 tmp_nm="$ac_dir/$lt_tmp_nm"
4124 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4125 # Check to see if the nm accepts a BSD-compat flag.
4126 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4127 # nm: unknown option "B" ignored
4128 # Tru64's nm complains that /dev/null is an invalid object file
4129 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4130 */dev/null* | *'Invalid file or object type'*)
4131 lt_cv_path_NM="$tmp_nm -B"
4132 break
4133 ;;
4134 *)
4135 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4136 */dev/null*)
4137 lt_cv_path_NM="$tmp_nm -p"
4138 break
4139 ;;
4140 *)
4141 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4142 continue # so that we can try to find one that supports BSD flags
4143 ;;
4144 esac
4145 ;;
4146 esac
4147 fi
4148 done
4149 IFS="$lt_save_ifs"
4150 done
4151 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4152 fi
4153 fi
4154 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4155 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4156 NM="$lt_cv_path_NM"
4157
4158 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4159 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4160 LN_S=$as_ln_s
4161 if test "$LN_S" = "ln -s"; then
4162 { echo "$as_me:$LINENO: result: yes" >&5
4163 echo "${ECHO_T}yes" >&6; }
4164 else
4165 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4166 echo "${ECHO_T}no, using $LN_S" >&6; }
4167 fi
4168
4169 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4170 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4171 if test "${lt_cv_deplibs_check_method+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 lt_cv_file_magic_cmd='$MAGIC_CMD'
4175 lt_cv_file_magic_test_file=
4176 lt_cv_deplibs_check_method='unknown'
4177 # Need to set the preceding variable on all platforms that support
4178 # interlibrary dependencies.
4179 # 'none' -- dependencies not supported.
4180 # `unknown' -- same as none, but documents that we really don't know.
4181 # 'pass_all' -- all dependencies passed with no checks.
4182 # 'test_compile' -- check by making test program.
4183 # 'file_magic [[regex]]' -- check by looking for files in library path
4184 # which responds to the $file_magic_cmd with a given extended regex.
4185 # If you have `file' or equivalent on your system and you're not sure
4186 # whether `pass_all' will *always* work, you probably want this one.
4187
4188 case $host_os in
4189 aix4* | aix5*)
4190 lt_cv_deplibs_check_method=pass_all
4191 ;;
4192
4193 beos*)
4194 lt_cv_deplibs_check_method=pass_all
4195 ;;
4196
4197 bsdi[45]*)
4198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4199 lt_cv_file_magic_cmd='/usr/bin/file -L'
4200 lt_cv_file_magic_test_file=/shlib/libc.so
4201 ;;
4202
4203 cygwin*)
4204 # func_win32_libid is a shell function defined in ltmain.sh
4205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4206 lt_cv_file_magic_cmd='func_win32_libid'
4207 ;;
4208
4209 mingw* | pw32*)
4210 # Base MSYS/MinGW do not provide the 'file' command needed by
4211 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4212 # unless we find 'file', for example because we are cross-compiling.
4213 if ( file / ) >/dev/null 2>&1; then
4214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4215 lt_cv_file_magic_cmd='func_win32_libid'
4216 else
4217 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4218 lt_cv_file_magic_cmd='$OBJDUMP -f'
4219 fi
4220 ;;
4221
4222 darwin* | rhapsody*)
4223 lt_cv_deplibs_check_method=pass_all
4224 ;;
4225
4226 freebsd* | dragonfly*)
4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 case $host_cpu in
4229 i*86 )
4230 # Not sure whether the presence of OpenBSD here was a mistake.
4231 # Let's accept both of them until this is cleared up.
4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4233 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235 ;;
4236 esac
4237 else
4238 lt_cv_deplibs_check_method=pass_all
4239 fi
4240 ;;
4241
4242 gnu*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246 hpux10.20* | hpux11*)
4247 lt_cv_file_magic_cmd=/usr/bin/file
4248 case $host_cpu in
4249 ia64*)
4250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4251 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4252 ;;
4253 hppa*64*)
4254 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]'
4255 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4256 ;;
4257 *)
4258 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4259 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4260 ;;
4261 esac
4262 ;;
4263
4264 interix[3-9]*)
4265 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4267 ;;
4268
4269 irix5* | irix6* | nonstopux*)
4270 case $LD in
4271 *-32|*"-32 ") libmagic=32-bit;;
4272 *-n32|*"-n32 ") libmagic=N32;;
4273 *-64|*"-64 ") libmagic=64-bit;;
4274 *) libmagic=never-match;;
4275 esac
4276 lt_cv_deplibs_check_method=pass_all
4277 ;;
4278
4279 # This must be Linux ELF.
4280 linux* | k*bsd*-gnu)
4281 lt_cv_deplibs_check_method=pass_all
4282 ;;
4283
4284 netbsd*)
4285 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4287 else
4288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4289 fi
4290 ;;
4291
4292 newos6*)
4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4294 lt_cv_file_magic_cmd=/usr/bin/file
4295 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4296 ;;
4297
4298 nto-qnx*)
4299 lt_cv_deplibs_check_method=unknown
4300 ;;
4301
4302 openbsd*)
4303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4305 else
4306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4307 fi
4308 ;;
4309
4310 osf3* | osf4* | osf5*)
4311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313
4314 rdos*)
4315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
4318 solaris*)
4319 lt_cv_deplibs_check_method=pass_all
4320 ;;
4321
4322 sysv4 | sysv4.3*)
4323 case $host_vendor in
4324 motorola)
4325 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]'
4326 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4327 ;;
4328 ncr)
4329 lt_cv_deplibs_check_method=pass_all
4330 ;;
4331 sequent)
4332 lt_cv_file_magic_cmd='/bin/file'
4333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4334 ;;
4335 sni)
4336 lt_cv_file_magic_cmd='/bin/file'
4337 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4338 lt_cv_file_magic_test_file=/lib/libc.so
4339 ;;
4340 siemens)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343 pc)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
4346 esac
4347 ;;
4348
4349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4350 lt_cv_deplibs_check_method=pass_all
4351 ;;
4352 esac
4353
4354 fi
4355 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4356 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4357 file_magic_cmd=$lt_cv_file_magic_cmd
4358 deplibs_check_method=$lt_cv_deplibs_check_method
4359 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4360
4361
4362
4363
4364 # If no C compiler was specified, use CC.
4365 LTCC=${LTCC-"$CC"}
4366
4367 # If no C compiler flags were specified, use CFLAGS.
4368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4369
4370 # Allow CC to be a program name with arguments.
4371 compiler=$CC
4372
4373
4374 # Check whether --enable-libtool-lock was given.
4375 if test "${enable_libtool_lock+set}" = set; then
4376 enableval=$enable_libtool_lock;
4377 fi
4378
4379 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4380
4381 # Some flags need to be propagated to the compiler or linker for good
4382 # libtool support.
4383 case $host in
4384 ia64-*-hpux*)
4385 # Find out which ABI we are using.
4386 echo 'int i;' > conftest.$ac_ext
4387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388 (eval $ac_compile) 2>&5
4389 ac_status=$?
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); }; then
4392 case `/usr/bin/file conftest.$ac_objext` in
4393 *ELF-32*)
4394 HPUX_IA64_MODE="32"
4395 ;;
4396 *ELF-64*)
4397 HPUX_IA64_MODE="64"
4398 ;;
4399 esac
4400 fi
4401 rm -rf conftest*
4402 ;;
4403 *-*-irix6*)
4404 # Find out which ABI we are using.
4405 echo '#line 4405 "configure"' > conftest.$ac_ext
4406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407 (eval $ac_compile) 2>&5
4408 ac_status=$?
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); }; then
4411 if test "$lt_cv_prog_gnu_ld" = yes; then
4412 case `/usr/bin/file conftest.$ac_objext` in
4413 *32-bit*)
4414 LD="${LD-ld} -melf32bsmip"
4415 ;;
4416 *N32*)
4417 LD="${LD-ld} -melf32bmipn32"
4418 ;;
4419 *64-bit*)
4420 LD="${LD-ld} -melf64bmip"
4421 ;;
4422 esac
4423 else
4424 case `/usr/bin/file conftest.$ac_objext` in
4425 *32-bit*)
4426 LD="${LD-ld} -32"
4427 ;;
4428 *N32*)
4429 LD="${LD-ld} -n32"
4430 ;;
4431 *64-bit*)
4432 LD="${LD-ld} -64"
4433 ;;
4434 esac
4435 fi
4436 fi
4437 rm -rf conftest*
4438 ;;
4439
4440 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4441 s390*-*linux*|sparc*-*linux*)
4442 # Find out which ABI we are using.
4443 echo 'int i;' > conftest.$ac_ext
4444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4445 (eval $ac_compile) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; then
4449 case `/usr/bin/file conftest.o` in
4450 *32-bit*)
4451 case $host in
4452 x86_64-*kfreebsd*-gnu)
4453 LD="${LD-ld} -m elf_i386_fbsd"
4454 ;;
4455 x86_64-*linux*)
4456 LD="${LD-ld} -m elf_i386"
4457 ;;
4458 ppc64-*linux*|powerpc64-*linux*)
4459 LD="${LD-ld} -m elf32ppclinux"
4460 ;;
4461 s390x-*linux*)
4462 LD="${LD-ld} -m elf_s390"
4463 ;;
4464 sparc64-*linux*)
4465 LD="${LD-ld} -m elf32_sparc"
4466 ;;
4467 esac
4468 ;;
4469 *64-bit*)
4470 libsuff=64
4471 case $host in
4472 x86_64-*kfreebsd*-gnu)
4473 LD="${LD-ld} -m elf_x86_64_fbsd"
4474 ;;
4475 x86_64-*linux*)
4476 LD="${LD-ld} -m elf_x86_64"
4477 ;;
4478 ppc*-*linux*|powerpc*-*linux*)
4479 LD="${LD-ld} -m elf64ppc"
4480 ;;
4481 s390*-*linux*)
4482 LD="${LD-ld} -m elf64_s390"
4483 ;;
4484 sparc*-*linux*)
4485 LD="${LD-ld} -m elf64_sparc"
4486 ;;
4487 esac
4488 ;;
4489 esac
4490 fi
4491 rm -rf conftest*
4492 ;;
4493
4494 *-*-sco3.2v5*)
4495 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4496 SAVE_CFLAGS="$CFLAGS"
4497 CFLAGS="$CFLAGS -belf"
4498 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4499 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4500 if test "${lt_cv_cc_needs_belf+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4502 else
4503 ac_ext=c
4504 ac_cpp='$CPP $CPPFLAGS'
4505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4508
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 rm -f conftest.$ac_objext conftest$ac_exeext
4525 if { (ac_try="$ac_link"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_link") 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest$ac_exeext &&
4541 $as_test_x conftest$ac_exeext; then
4542 lt_cv_cc_needs_belf=yes
4543 else
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 lt_cv_cc_needs_belf=no
4548 fi
4549
4550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4551 conftest$ac_exeext conftest.$ac_ext
4552 ac_ext=c
4553 ac_cpp='$CPP $CPPFLAGS'
4554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557
4558 fi
4559 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4560 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4561 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4562 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4563 CFLAGS="$SAVE_CFLAGS"
4564 fi
4565 ;;
4566 sparc*-*solaris*)
4567 # Find out which ABI we are using.
4568 echo 'int i;' > conftest.$ac_ext
4569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4570 (eval $ac_compile) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; then
4574 case `/usr/bin/file conftest.o` in
4575 *64-bit*)
4576 case $lt_cv_prog_gnu_ld in
4577 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4578 *) LD="${LD-ld} -64" ;;
4579 esac
4580 ;;
4581 esac
4582 fi
4583 rm -rf conftest*
4584 ;;
4585
4586
4587 esac
4588
4589 need_locks="$enable_libtool_lock"
4590
4591
4592 ac_ext=c
4593 ac_cpp='$CPP $CPPFLAGS'
4594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4598 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4599 # On Suns, sometimes $CPP names a directory.
4600 if test -n "$CPP" && test -d "$CPP"; then
4601 CPP=
4602 fi
4603 if test -z "$CPP"; then
4604 if test "${ac_cv_prog_CPP+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 # Double quotes because CPP needs to be expanded
4608 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4609 do
4610 ac_preproc_ok=false
4611 for ac_c_preproc_warn_flag in '' yes
4612 do
4613 # Use a header file that comes with gcc, so configuring glibc
4614 # with a fresh cross-compiler works.
4615 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4616 # <limits.h> exists even on freestanding compilers.
4617 # On the NeXT, cc -E runs the code through the compiler's parser,
4618 # not just through cpp. "Syntax error" is here to catch this case.
4619 cat >conftest.$ac_ext <<_ACEOF
4620 /* confdefs.h. */
4621 _ACEOF
4622 cat confdefs.h >>conftest.$ac_ext
4623 cat >>conftest.$ac_ext <<_ACEOF
4624 /* end confdefs.h. */
4625 #ifdef __STDC__
4626 # include <limits.h>
4627 #else
4628 # include <assert.h>
4629 #endif
4630 Syntax error
4631 _ACEOF
4632 if { (ac_try="$ac_cpp conftest.$ac_ext"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } >/dev/null && {
4645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4646 test ! -s conftest.err
4647 }; then
4648 :
4649 else
4650 echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4652
4653 # Broken: fails on valid input.
4654 continue
4655 fi
4656
4657 rm -f conftest.err conftest.$ac_ext
4658
4659 # OK, works on sane cases. Now check whether nonexistent headers
4660 # can be detected and how.
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 #include <ac_nonexistent.h>
4668 _ACEOF
4669 if { (ac_try="$ac_cpp conftest.$ac_ext"
4670 case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673 esac
4674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); } >/dev/null && {
4682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 }; then
4685 # Broken: success on invalid input.
4686 continue
4687 else
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691 # Passes both tests.
4692 ac_preproc_ok=:
4693 break
4694 fi
4695
4696 rm -f conftest.err conftest.$ac_ext
4697
4698 done
4699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4700 rm -f conftest.err conftest.$ac_ext
4701 if $ac_preproc_ok; then
4702 break
4703 fi
4704
4705 done
4706 ac_cv_prog_CPP=$CPP
4707
4708 fi
4709 CPP=$ac_cv_prog_CPP
4710 else
4711 ac_cv_prog_CPP=$CPP
4712 fi
4713 { echo "$as_me:$LINENO: result: $CPP" >&5
4714 echo "${ECHO_T}$CPP" >&6; }
4715 ac_preproc_ok=false
4716 for ac_c_preproc_warn_flag in '' yes
4717 do
4718 # Use a header file that comes with gcc, so configuring glibc
4719 # with a fresh cross-compiler works.
4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721 # <limits.h> exists even on freestanding compilers.
4722 # On the NeXT, cc -E runs the code through the compiler's parser,
4723 # not just through cpp. "Syntax error" is here to catch this case.
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #ifdef __STDC__
4731 # include <limits.h>
4732 #else
4733 # include <assert.h>
4734 #endif
4735 Syntax error
4736 _ACEOF
4737 if { (ac_try="$ac_cpp conftest.$ac_ext"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4744 ac_status=$?
4745 grep -v '^ *+' conftest.er1 >conftest.err
4746 rm -f conftest.er1
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev/null && {
4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 }; then
4753 :
4754 else
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4757
4758 # Broken: fails on valid input.
4759 continue
4760 fi
4761
4762 rm -f conftest.err conftest.$ac_ext
4763
4764 # OK, works on sane cases. Now check whether nonexistent headers
4765 # can be detected and how.
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <ac_nonexistent.h>
4773 _ACEOF
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } >/dev/null && {
4787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 }; then
4790 # Broken: success on invalid input.
4791 continue
4792 else
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4795
4796 # Passes both tests.
4797 ac_preproc_ok=:
4798 break
4799 fi
4800
4801 rm -f conftest.err conftest.$ac_ext
4802
4803 done
4804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4805 rm -f conftest.err conftest.$ac_ext
4806 if $ac_preproc_ok; then
4807 :
4808 else
4809 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4810 See \`config.log' for more details." >&5
4811 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4812 See \`config.log' for more details." >&2;}
4813 { (exit 1); exit 1; }; }
4814 fi
4815
4816 ac_ext=c
4817 ac_cpp='$CPP $CPPFLAGS'
4818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
4822
4823 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4824 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4825 if test "${ac_cv_header_stdc+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #include <stdlib.h>
4835 #include <stdarg.h>
4836 #include <string.h>
4837 #include <float.h>
4838
4839 int
4840 main ()
4841 {
4842
4843 ;
4844 return 0;
4845 }
4846 _ACEOF
4847 rm -f conftest.$ac_objext
4848 if { (ac_try="$ac_compile"
4849 case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852 esac
4853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 ac_cv_header_stdc=yes
4865 else
4866 echo "$as_me: failed program was:" >&5
4867 sed 's/^/| /' conftest.$ac_ext >&5
4868
4869 ac_cv_header_stdc=no
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873
4874 if test $ac_cv_header_stdc = yes; then
4875 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4882 #include <string.h>
4883
4884 _ACEOF
4885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4886 $EGREP "memchr" >/dev/null 2>&1; then
4887 :
4888 else
4889 ac_cv_header_stdc=no
4890 fi
4891 rm -f conftest*
4892
4893 fi
4894
4895 if test $ac_cv_header_stdc = yes; then
4896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4897 cat >conftest.$ac_ext <<_ACEOF
4898 /* confdefs.h. */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4903 #include <stdlib.h>
4904
4905 _ACEOF
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907 $EGREP "free" >/dev/null 2>&1; then
4908 :
4909 else
4910 ac_cv_header_stdc=no
4911 fi
4912 rm -f conftest*
4913
4914 fi
4915
4916 if test $ac_cv_header_stdc = yes; then
4917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4918 if test "$cross_compiling" = yes; then
4919 :
4920 else
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h. */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4927 #include <ctype.h>
4928 #include <stdlib.h>
4929 #if ((' ' & 0x0FF) == 0x020)
4930 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4931 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4932 #else
4933 # define ISLOWER(c) \
4934 (('a' <= (c) && (c) <= 'i') \
4935 || ('j' <= (c) && (c) <= 'r') \
4936 || ('s' <= (c) && (c) <= 'z'))
4937 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4938 #endif
4939
4940 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4941 int
4942 main ()
4943 {
4944 int i;
4945 for (i = 0; i < 256; i++)
4946 if (XOR (islower (i), ISLOWER (i))
4947 || toupper (i) != TOUPPER (i))
4948 return 2;
4949 return 0;
4950 }
4951 _ACEOF
4952 rm -f conftest$ac_exeext
4953 if { (ac_try="$ac_link"
4954 case "(($ac_try" in
4955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956 *) ac_try_echo=$ac_try;;
4957 esac
4958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4959 (eval "$ac_link") 2>&5
4960 ac_status=$?
4961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4963 { (case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_try") 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4972 :
4973 else
4974 echo "$as_me: program exited with status $ac_status" >&5
4975 echo "$as_me: failed program was:" >&5
4976 sed 's/^/| /' conftest.$ac_ext >&5
4977
4978 ( exit $ac_status )
4979 ac_cv_header_stdc=no
4980 fi
4981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4982 fi
4983
4984
4985 fi
4986 fi
4987 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4988 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4989 if test $ac_cv_header_stdc = yes; then
4990
4991 cat >>confdefs.h <<\_ACEOF
4992 #define STDC_HEADERS 1
4993 _ACEOF
4994
4995 fi
4996
4997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5008 inttypes.h stdint.h unistd.h
5009 do
5010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 else
5016 cat >conftest.$ac_ext <<_ACEOF
5017 /* confdefs.h. */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 $ac_includes_default
5023
5024 #include <$ac_header>
5025 _ACEOF
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5028 case "(($ac_try" in
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_compile") 2>conftest.er1
5034 ac_status=$?
5035 grep -v '^ *+' conftest.er1 >conftest.err
5036 rm -f conftest.er1
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest.$ac_objext; then
5043 eval "$as_ac_Header=yes"
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 eval "$as_ac_Header=no"
5049 fi
5050
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5059 _ACEOF
5060
5061 fi
5062
5063 done
5064
5065
5066
5067 for ac_header in dlfcn.h
5068 do
5069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 fi
5076 ac_res=`eval echo '${'$as_ac_Header'}'`
5077 { echo "$as_me:$LINENO: result: $ac_res" >&5
5078 echo "${ECHO_T}$ac_res" >&6; }
5079 else
5080 # Is the header compilable?
5081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5090 #include <$ac_header>
5091 _ACEOF
5092 rm -f conftest.$ac_objext
5093 if { (ac_try="$ac_compile"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_compile") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest.$ac_objext; then
5109 ac_header_compiler=yes
5110 else
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_header_compiler=no
5115 fi
5116
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5119 echo "${ECHO_T}$ac_header_compiler" >&6; }
5120
5121 # Is the header present?
5122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #include <$ac_header>
5131 _ACEOF
5132 if { (ac_try="$ac_cpp conftest.$ac_ext"
5133 case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136 esac
5137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null && {
5145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5146 test ! -s conftest.err
5147 }; then
5148 ac_header_preproc=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_header_preproc=no
5154 fi
5155
5156 rm -f conftest.err conftest.$ac_ext
5157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6; }
5159
5160 # So? What about this header?
5161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5162 yes:no: )
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5167 ac_header_preproc=yes
5168 ;;
5169 no:yes:* )
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5182 ( cat <<\_ASBOX
5183 ## ---------------------------------------------------------------------- ##
5184 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
5185 ## ---------------------------------------------------------------------- ##
5186 _ASBOX
5187 ) | sed "s/^/$as_me: WARNING: /" >&2
5188 ;;
5189 esac
5190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 eval "$as_ac_Header=\$ac_header_preproc"
5196 fi
5197 ac_res=`eval echo '${'$as_ac_Header'}'`
5198 { echo "$as_me:$LINENO: result: $ac_res" >&5
5199 echo "${ECHO_T}$ac_res" >&6; }
5200
5201 fi
5202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5203 cat >>confdefs.h <<_ACEOF
5204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5205 _ACEOF
5206
5207 fi
5208
5209 done
5210
5211 ac_ext=cpp
5212 ac_cpp='$CXXCPP $CPPFLAGS'
5213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5216 if test -z "$CXX"; then
5217 if test -n "$CCC"; then
5218 CXX=$CCC
5219 else
5220 if test -n "$ac_tool_prefix"; then
5221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5222 do
5223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_prog_CXX+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 if test -n "$CXX"; then
5231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 CXX=$ac_cv_prog_CXX
5251 if test -n "$CXX"; then
5252 { echo "$as_me:$LINENO: result: $CXX" >&5
5253 echo "${ECHO_T}$CXX" >&6; }
5254 else
5255 { echo "$as_me:$LINENO: result: no" >&5
5256 echo "${ECHO_T}no" >&6; }
5257 fi
5258
5259
5260 test -n "$CXX" && break
5261 done
5262 fi
5263 if test -z "$CXX"; then
5264 ac_ct_CXX=$CXX
5265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 do
5267 # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274 if test -n "$ac_ct_CXX"; then
5275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280 IFS=$as_save_IFS
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_ac_ct_CXX="$ac_prog"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5295 if test -n "$ac_ct_CXX"; then
5296 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5297 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5298 else
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5301 fi
5302
5303
5304 test -n "$ac_ct_CXX" && break
5305 done
5306
5307 if test "x$ac_ct_CXX" = x; then
5308 CXX="g++"
5309 else
5310 case $cross_compiling:$ac_tool_warned in
5311 yes:)
5312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5313 whose name does not start with the host triplet. If you think this
5314 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5316 whose name does not start with the host triplet. If you think this
5317 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5318 ac_tool_warned=yes ;;
5319 esac
5320 CXX=$ac_ct_CXX
5321 fi
5322 fi
5323
5324 fi
5325 fi
5326 # Provide some information about the compiler.
5327 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5328 ac_compiler=`set X $ac_compile; echo $2`
5329 { (ac_try="$ac_compiler --version >&5"
5330 case "(($ac_try" in
5331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5333 esac
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compiler --version >&5") 2>&5
5336 ac_status=$?
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }
5339 { (ac_try="$ac_compiler -v >&5"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compiler -v >&5") 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }
5349 { (ac_try="$ac_compiler -V >&5"
5350 case "(($ac_try" in
5351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5352 *) ac_try_echo=$ac_try;;
5353 esac
5354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5355 (eval "$ac_compiler -V >&5") 2>&5
5356 ac_status=$?
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }
5359
5360 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5361 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5362 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5363 echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365 cat >conftest.$ac_ext <<_ACEOF
5366 /* confdefs.h. */
5367 _ACEOF
5368 cat confdefs.h >>conftest.$ac_ext
5369 cat >>conftest.$ac_ext <<_ACEOF
5370 /* end confdefs.h. */
5371
5372 int
5373 main ()
5374 {
5375 #ifndef __GNUC__
5376 choke me
5377 #endif
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (ac_try="$ac_compile"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_compile") 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } && {
5397 test -z "$ac_cxx_werror_flag" ||
5398 test ! -s conftest.err
5399 } && test -s conftest.$ac_objext; then
5400 ac_compiler_gnu=yes
5401 else
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 ac_compiler_gnu=no
5406 fi
5407
5408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5410
5411 fi
5412 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5413 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5414 GXX=`test $ac_compiler_gnu = yes && echo yes`
5415 ac_test_CXXFLAGS=${CXXFLAGS+set}
5416 ac_save_CXXFLAGS=$CXXFLAGS
5417 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5418 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5419 if test "${ac_cv_prog_cxx_g+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421 else
5422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5423 ac_cxx_werror_flag=yes
5424 ac_cv_prog_cxx_g=no
5425 CXXFLAGS="-g"
5426 cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h. */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432
5433 int
5434 main ()
5435 {
5436
5437 ;
5438 return 0;
5439 }
5440 _ACEOF
5441 rm -f conftest.$ac_objext
5442 if { (ac_try="$ac_compile"
5443 case "(($ac_try" in
5444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5446 esac
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_compile") 2>conftest.er1
5449 ac_status=$?
5450 grep -v '^ *+' conftest.er1 >conftest.err
5451 rm -f conftest.er1
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_cxx_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest.$ac_objext; then
5458 ac_cv_prog_cxx_g=yes
5459 else
5460 echo "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 CXXFLAGS=""
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470
5471 int
5472 main ()
5473 {
5474
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (ac_try="$ac_compile"
5481 case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_cxx_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 :
5497 else
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5502 CXXFLAGS="-g"
5503 cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h. */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509
5510 int
5511 main ()
5512 {
5513
5514 ;
5515 return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_cxx_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 ac_cv_prog_cxx_g=yes
5536 else
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540
5541 fi
5542
5543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 fi
5545
5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 fi
5548
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5551 fi
5552 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5553 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5554 if test "$ac_test_CXXFLAGS" = set; then
5555 CXXFLAGS=$ac_save_CXXFLAGS
5556 elif test $ac_cv_prog_cxx_g = yes; then
5557 if test "$GXX" = yes; then
5558 CXXFLAGS="-g -O2"
5559 else
5560 CXXFLAGS="-g"
5561 fi
5562 else
5563 if test "$GXX" = yes; then
5564 CXXFLAGS="-O2"
5565 else
5566 CXXFLAGS=
5567 fi
5568 fi
5569 ac_ext=cpp
5570 ac_cpp='$CXXCPP $CPPFLAGS'
5571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5574
5575 depcc="$CXX" am_compiler_list=
5576
5577 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5578 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5579 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5583 # We make a subdir and do the tests there. Otherwise we can end up
5584 # making bogus files that we don't know about and never remove. For
5585 # instance it was reported that on HP-UX the gcc test will end up
5586 # making a dummy file named `D' -- because `-MD' means `put the output
5587 # in D'.
5588 mkdir conftest.dir
5589 # Copy depcomp to subdir because otherwise we won't find it if we're
5590 # using a relative directory.
5591 cp "$am_depcomp" conftest.dir
5592 cd conftest.dir
5593 # We will build objects and dependencies in a subdirectory because
5594 # it helps to detect inapplicable dependency modes. For instance
5595 # both Tru64's cc and ICC support -MD to output dependencies as a
5596 # side effect of compilation, but ICC will put the dependencies in
5597 # the current directory while Tru64 will put them in the object
5598 # directory.
5599 mkdir sub
5600
5601 am_cv_CXX_dependencies_compiler_type=none
5602 if test "$am_compiler_list" = ""; then
5603 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5604 fi
5605 for depmode in $am_compiler_list; do
5606 # Setup a source with many dependencies, because some compilers
5607 # like to wrap large dependency lists on column 80 (with \), and
5608 # we should not choose a depcomp mode which is confused by this.
5609 #
5610 # We need to recreate these files for each test, as the compiler may
5611 # overwrite some of them when testing with obscure command lines.
5612 # This happens at least with the AIX C compiler.
5613 : > sub/conftest.c
5614 for i in 1 2 3 4 5 6; do
5615 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5617 # Solaris 8's {/usr,}/bin/sh.
5618 touch sub/conftst$i.h
5619 done
5620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5621
5622 case $depmode in
5623 nosideeffect)
5624 # after this tag, mechanisms are not by side-effect, so they'll
5625 # only be used when explicitly requested
5626 if test "x$enable_dependency_tracking" = xyes; then
5627 continue
5628 else
5629 break
5630 fi
5631 ;;
5632 none) break ;;
5633 esac
5634 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5635 # mode. It turns out that the SunPro C++ compiler does not properly
5636 # handle `-M -o', and we need to detect this.
5637 if depmode=$depmode \
5638 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5640 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5641 >/dev/null 2>conftest.err &&
5642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5644 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5646 # icc doesn't choke on unknown options, it will just issue warnings
5647 # or remarks (even with -Werror). So we grep stderr for any message
5648 # that says an option was ignored or not supported.
5649 # When given -MP, icc 7.0 and 7.1 complain thusly:
5650 # icc: Command line warning: ignoring option '-M'; no argument required
5651 # The diagnosis changed in icc 8.0:
5652 # icc: Command line remark: option '-MP' not supported
5653 if (grep 'ignoring option' conftest.err ||
5654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5655 am_cv_CXX_dependencies_compiler_type=$depmode
5656 break
5657 fi
5658 fi
5659 done
5660
5661 cd ..
5662 rm -rf conftest.dir
5663 else
5664 am_cv_CXX_dependencies_compiler_type=none
5665 fi
5666
5667 fi
5668 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5669 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5670 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5671
5672 if
5673 test "x$enable_dependency_tracking" != xno \
5674 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5675 am__fastdepCXX_TRUE=
5676 am__fastdepCXX_FALSE='#'
5677 else
5678 am__fastdepCXX_TRUE='#'
5679 am__fastdepCXX_FALSE=
5680 fi
5681
5682
5683
5684
5685 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5686 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5687 (test "X$CXX" != "Xg++"))) ; then
5688 ac_ext=cpp
5689 ac_cpp='$CXXCPP $CPPFLAGS'
5690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5693 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5694 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5695 if test -z "$CXXCPP"; then
5696 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 else
5699 # Double quotes because CXXCPP needs to be expanded
5700 for CXXCPP in "$CXX -E" "/lib/cpp"
5701 do
5702 ac_preproc_ok=false
5703 for ac_cxx_preproc_warn_flag in '' yes
5704 do
5705 # Use a header file that comes with gcc, so configuring glibc
5706 # with a fresh cross-compiler works.
5707 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5708 # <limits.h> exists even on freestanding compilers.
5709 # On the NeXT, cc -E runs the code through the compiler's parser,
5710 # not just through cpp. "Syntax error" is here to catch this case.
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #ifdef __STDC__
5718 # include <limits.h>
5719 #else
5720 # include <assert.h>
5721 #endif
5722 Syntax error
5723 _ACEOF
5724 if { (ac_try="$ac_cpp conftest.$ac_ext"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } >/dev/null && {
5737 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5738 test ! -s conftest.err
5739 }; then
5740 :
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745 # Broken: fails on valid input.
5746 continue
5747 fi
5748
5749 rm -f conftest.err conftest.$ac_ext
5750
5751 # OK, works on sane cases. Now check whether nonexistent headers
5752 # can be detected and how.
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <ac_nonexistent.h>
5760 _ACEOF
5761 if { (ac_try="$ac_cpp conftest.$ac_ext"
5762 case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765 esac
5766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } >/dev/null && {
5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5775 test ! -s conftest.err
5776 }; then
5777 # Broken: success on invalid input.
5778 continue
5779 else
5780 echo "$as_me: failed program was:" >&5
5781 sed 's/^/| /' conftest.$ac_ext >&5
5782
5783 # Passes both tests.
5784 ac_preproc_ok=:
5785 break
5786 fi
5787
5788 rm -f conftest.err conftest.$ac_ext
5789
5790 done
5791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5792 rm -f conftest.err conftest.$ac_ext
5793 if $ac_preproc_ok; then
5794 break
5795 fi
5796
5797 done
5798 ac_cv_prog_CXXCPP=$CXXCPP
5799
5800 fi
5801 CXXCPP=$ac_cv_prog_CXXCPP
5802 else
5803 ac_cv_prog_CXXCPP=$CXXCPP
5804 fi
5805 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5806 echo "${ECHO_T}$CXXCPP" >&6; }
5807 ac_preproc_ok=false
5808 for ac_cxx_preproc_warn_flag in '' yes
5809 do
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827 Syntax error
5828 _ACEOF
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5836 ac_status=$?
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5843 test ! -s conftest.err
5844 }; then
5845 :
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 # Broken: fails on valid input.
5851 continue
5852 fi
5853
5854 rm -f conftest.err conftest.$ac_ext
5855
5856 # OK, works on sane cases. Now check whether nonexistent headers
5857 # can be detected and how.
5858 cat >conftest.$ac_ext <<_ACEOF
5859 /* confdefs.h. */
5860 _ACEOF
5861 cat confdefs.h >>conftest.$ac_ext
5862 cat >>conftest.$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5864 #include <ac_nonexistent.h>
5865 _ACEOF
5866 if { (ac_try="$ac_cpp conftest.$ac_ext"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } >/dev/null && {
5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880 test ! -s conftest.err
5881 }; then
5882 # Broken: success on invalid input.
5883 continue
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 # Passes both tests.
5889 ac_preproc_ok=:
5890 break
5891 fi
5892
5893 rm -f conftest.err conftest.$ac_ext
5894
5895 done
5896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897 rm -f conftest.err conftest.$ac_ext
5898 if $ac_preproc_ok; then
5899 :
5900 else
5901 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5902 See \`config.log' for more details." >&5
5903 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5904 See \`config.log' for more details." >&2;}
5905 { (exit 1); exit 1; }; }
5906 fi
5907
5908 ac_ext=cpp
5909 ac_cpp='$CXXCPP $CPPFLAGS'
5910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5913
5914 fi
5915
5916
5917 ac_ext=f
5918 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5919 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5920 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5921 if test -n "$ac_tool_prefix"; then
5922 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
5923 do
5924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_prog_F77+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 if test -n "$F77"; then
5932 ac_cv_prog_F77="$F77" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5944 fi
5945 done
5946 done
5947 IFS=$as_save_IFS
5948
5949 fi
5950 fi
5951 F77=$ac_cv_prog_F77
5952 if test -n "$F77"; then
5953 { echo "$as_me:$LINENO: result: $F77" >&5
5954 echo "${ECHO_T}$F77" >&6; }
5955 else
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5958 fi
5959
5960
5961 test -n "$F77" && break
5962 done
5963 fi
5964 if test -z "$F77"; then
5965 ac_ct_F77=$F77
5966 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
5967 do
5968 # Extract the first word of "$ac_prog", so it can be a program name with args.
5969 set dummy $ac_prog; ac_word=$2
5970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5972 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975 if test -n "$ac_ct_F77"; then
5976 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_ac_ct_F77="$ac_prog"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5996 if test -n "$ac_ct_F77"; then
5997 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5998 echo "${ECHO_T}$ac_ct_F77" >&6; }
5999 else
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6002 fi
6003
6004
6005 test -n "$ac_ct_F77" && break
6006 done
6007
6008 if test "x$ac_ct_F77" = x; then
6009 F77=""
6010 else
6011 case $cross_compiling:$ac_tool_warned in
6012 yes:)
6013 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6014 whose name does not start with the host triplet. If you think this
6015 configuration is useful to you, please write to autoconf@gnu.org." >&5
6016 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6017 whose name does not start with the host triplet. If you think this
6018 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6019 ac_tool_warned=yes ;;
6020 esac
6021 F77=$ac_ct_F77
6022 fi
6023 fi
6024
6025
6026 # Provide some information about the compiler.
6027 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6028 ac_compiler=`set X $ac_compile; echo $2`
6029 { (ac_try="$ac_compiler --version >&5"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compiler --version >&5") 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }
6039 { (ac_try="$ac_compiler -v >&5"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compiler -v >&5") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }
6049 { (ac_try="$ac_compiler -V >&5"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6055 (eval "$ac_compiler -V >&5") 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }
6059 rm -f a.out
6060
6061 # If we don't use `.F' as extension, the preprocessor is not run on the
6062 # input file. (Note that this only needs to work for GNU compilers.)
6063 ac_save_ext=$ac_ext
6064 ac_ext=F
6065 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6066 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6067 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 else
6070 cat >conftest.$ac_ext <<_ACEOF
6071 program main
6072 #ifndef __GNUC__
6073 choke me
6074 #endif
6075
6076 end
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6080 case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_f77_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6095 ac_compiler_gnu=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_compiler_gnu=no
6101 fi
6102
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6105
6106 fi
6107 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6108 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6109 ac_ext=$ac_save_ext
6110 ac_test_FFLAGS=${FFLAGS+set}
6111 ac_save_FFLAGS=$FFLAGS
6112 FFLAGS=
6113 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6114 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6115 if test "${ac_cv_prog_f77_g+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118 FFLAGS=-g
6119 cat >conftest.$ac_ext <<_ACEOF
6120 program main
6121
6122 end
6123 _ACEOF
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6126 case "(($ac_try" in
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6129 esac
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_f77_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest.$ac_objext; then
6141 ac_cv_prog_f77_g=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_cv_prog_f77_g=no
6147 fi
6148
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150
6151 fi
6152 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6153 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6154 if test "$ac_test_FFLAGS" = set; then
6155 FFLAGS=$ac_save_FFLAGS
6156 elif test $ac_cv_prog_f77_g = yes; then
6157 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6158 FFLAGS="-g -O2"
6159 else
6160 FFLAGS="-g"
6161 fi
6162 else
6163 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6164 FFLAGS="-O2"
6165 else
6166 FFLAGS=
6167 fi
6168 fi
6169
6170 G77=`test $ac_compiler_gnu = yes && echo yes`
6171 ac_ext=c
6172 ac_cpp='$CPP $CPPFLAGS'
6173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6176
6177
6178
6179 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6180
6181 # find the maximum length of command line arguments
6182 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6183 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6184 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187 i=0
6188 teststring="ABCD"
6189
6190 case $build_os in
6191 msdosdjgpp*)
6192 # On DJGPP, this test can blow up pretty badly due to problems in libc
6193 # (any single argument exceeding 2000 bytes causes a buffer overrun
6194 # during glob expansion). Even if it were fixed, the result of this
6195 # check would be larger than it should be.
6196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6197 ;;
6198
6199 gnu*)
6200 # Under GNU Hurd, this test is not required because there is
6201 # no limit to the length of command line arguments.
6202 # Libtool will interpret -1 as no limit whatsoever
6203 lt_cv_sys_max_cmd_len=-1;
6204 ;;
6205
6206 cygwin* | mingw*)
6207 # On Win9x/ME, this test blows up -- it succeeds, but takes
6208 # about 5 minutes as the teststring grows exponentially.
6209 # Worse, since 9x/ME are not pre-emptively multitasking,
6210 # you end up with a "frozen" computer, even though with patience
6211 # the test eventually succeeds (with a max line length of 256k).
6212 # Instead, let's just punt: use the minimum linelength reported by
6213 # all of the supported platforms: 8192 (on NT/2K/XP).
6214 lt_cv_sys_max_cmd_len=8192;
6215 ;;
6216
6217 amigaos*)
6218 # On AmigaOS with pdksh, this test takes hours, literally.
6219 # So we just punt and use a minimum line length of 8192.
6220 lt_cv_sys_max_cmd_len=8192;
6221 ;;
6222
6223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6224 # This has been around since 386BSD, at least. Likely further.
6225 if test -x /sbin/sysctl; then
6226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6227 elif test -x /usr/sbin/sysctl; then
6228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6229 else
6230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6231 fi
6232 # And add a safety zone
6233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6235 ;;
6236
6237 interix*)
6238 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6239 lt_cv_sys_max_cmd_len=196608
6240 ;;
6241
6242 osf*)
6243 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6244 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6245 # nice to cause kernel panics so lets avoid the loop below.
6246 # First set a reasonable default.
6247 lt_cv_sys_max_cmd_len=16384
6248 #
6249 if test -x /sbin/sysconfig; then
6250 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6251 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6252 esac
6253 fi
6254 ;;
6255 sco3.2v5*)
6256 lt_cv_sys_max_cmd_len=102400
6257 ;;
6258 sysv5* | sco5v6* | sysv4.2uw2*)
6259 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6260 if test -n "$kargmax"; then
6261 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6262 else
6263 lt_cv_sys_max_cmd_len=32768
6264 fi
6265 ;;
6266 *)
6267 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6268 if test -n "$lt_cv_sys_max_cmd_len"; then
6269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6271 else
6272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6273 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6274 = "XX$teststring") >/dev/null 2>&1 &&
6275 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6276 lt_cv_sys_max_cmd_len=$new_result &&
6277 test $i != 17 # 1/2 MB should be enough
6278 do
6279 i=`expr $i + 1`
6280 teststring=$teststring$teststring
6281 done
6282 teststring=
6283 # Add a significant safety factor because C++ compilers can tack on massive
6284 # amounts of additional arguments before passing them to the linker.
6285 # It appears as though 1/2 is a usable value.
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6287 fi
6288 ;;
6289 esac
6290
6291 fi
6292
6293 if test -n $lt_cv_sys_max_cmd_len ; then
6294 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6295 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6296 else
6297 { echo "$as_me:$LINENO: result: none" >&5
6298 echo "${ECHO_T}none" >&6; }
6299 fi
6300
6301
6302
6303
6304
6305 # Check for command to grab the raw symbol name followed by C symbol from nm.
6306 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6307 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6308 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 else
6311
6312 # These are sane defaults that work on at least a few old systems.
6313 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6314
6315 # Character class describing NM global symbol codes.
6316 symcode='[BCDEGRST]'
6317
6318 # Regexp to match symbols that can be accessed directly from C.
6319 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6320
6321 # Transform an extracted symbol line into a proper C declaration
6322 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6323
6324 # Transform an extracted symbol line into symbol name and symbol address
6325 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'"
6326
6327 # Define system-specific variables.
6328 case $host_os in
6329 aix*)
6330 symcode='[BCDT]'
6331 ;;
6332 cygwin* | mingw* | pw32*)
6333 symcode='[ABCDGISTW]'
6334 ;;
6335 hpux*) # Its linker distinguishes data from code symbols
6336 if test "$host_cpu" = ia64; then
6337 symcode='[ABCDEGRST]'
6338 fi
6339 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6340 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'"
6341 ;;
6342 linux* | k*bsd*-gnu)
6343 if test "$host_cpu" = ia64; then
6344 symcode='[ABCDGIRSTW]'
6345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6346 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'"
6347 fi
6348 ;;
6349 irix* | nonstopux*)
6350 symcode='[BCDEGRST]'
6351 ;;
6352 osf*)
6353 symcode='[BCDEGQRST]'
6354 ;;
6355 solaris*)
6356 symcode='[BDRT]'
6357 ;;
6358 sco3.2v5*)
6359 symcode='[DT]'
6360 ;;
6361 sysv4.2uw2*)
6362 symcode='[DT]'
6363 ;;
6364 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6365 symcode='[ABDT]'
6366 ;;
6367 sysv4)
6368 symcode='[DFNSTU]'
6369 ;;
6370 esac
6371
6372 # Handle CRLF in mingw tool chain
6373 opt_cr=
6374 case $build_os in
6375 mingw*)
6376 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6377 ;;
6378 esac
6379
6380 # If we're using GNU nm, then use its standard symbol codes.
6381 case `$NM -V 2>&1` in
6382 *GNU* | *'with BFD'*)
6383 symcode='[ABCDGIRSTW]' ;;
6384 esac
6385
6386 # Try without a prefix undercore, then with it.
6387 for ac_symprfx in "" "_"; do
6388
6389 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6390 symxfrm="\\1 $ac_symprfx\\2 \\2"
6391
6392 # Write the raw and C identifiers.
6393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6394
6395 # Check to see that the pipe works correctly.
6396 pipe_works=no
6397
6398 rm -f conftest*
6399 cat > conftest.$ac_ext <<EOF
6400 #ifdef __cplusplus
6401 extern "C" {
6402 #endif
6403 char nm_test_var;
6404 void nm_test_func(){}
6405 #ifdef __cplusplus
6406 }
6407 #endif
6408 int main(){nm_test_var='a';nm_test_func();return(0);}
6409 EOF
6410
6411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412 (eval $ac_compile) 2>&5
6413 ac_status=$?
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; then
6416 # Now try to grab the symbols.
6417 nlist=conftest.nm
6418 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6419 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && test -s "$nlist"; then
6423 # Try sorting and uniquifying the output.
6424 if sort "$nlist" | uniq > "$nlist"T; then
6425 mv -f "$nlist"T "$nlist"
6426 else
6427 rm -f "$nlist"T
6428 fi
6429
6430 # Make sure that we snagged all the symbols we need.
6431 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6432 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6433 cat <<EOF > conftest.$ac_ext
6434 #ifdef __cplusplus
6435 extern "C" {
6436 #endif
6437
6438 EOF
6439 # Now generate the symbol file.
6440 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6441
6442 cat <<EOF >> conftest.$ac_ext
6443 #if defined (__STDC__) && __STDC__
6444 # define lt_ptr_t void *
6445 #else
6446 # define lt_ptr_t char *
6447 # define const
6448 #endif
6449
6450 /* The mapping between symbol names and symbols. */
6451 const struct {
6452 const char *name;
6453 lt_ptr_t address;
6454 }
6455 lt_preloaded_symbols[] =
6456 {
6457 EOF
6458 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6459 cat <<\EOF >> conftest.$ac_ext
6460 {0, (lt_ptr_t) 0}
6461 };
6462
6463 #ifdef __cplusplus
6464 }
6465 #endif
6466 EOF
6467 # Now try linking the two files.
6468 mv conftest.$ac_objext conftstm.$ac_objext
6469 lt_save_LIBS="$LIBS"
6470 lt_save_CFLAGS="$CFLAGS"
6471 LIBS="conftstm.$ac_objext"
6472 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6474 (eval $ac_link) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6478 pipe_works=yes
6479 fi
6480 LIBS="$lt_save_LIBS"
6481 CFLAGS="$lt_save_CFLAGS"
6482 else
6483 echo "cannot find nm_test_func in $nlist" >&5
6484 fi
6485 else
6486 echo "cannot find nm_test_var in $nlist" >&5
6487 fi
6488 else
6489 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6490 fi
6491 else
6492 echo "$progname: failed program was:" >&5
6493 cat conftest.$ac_ext >&5
6494 fi
6495 rm -f conftest* conftst*
6496
6497 # Do not use the global_symbol_pipe unless it works.
6498 if test "$pipe_works" = yes; then
6499 break
6500 else
6501 lt_cv_sys_global_symbol_pipe=
6502 fi
6503 done
6504
6505 fi
6506
6507 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6508 lt_cv_sys_global_symbol_to_cdecl=
6509 fi
6510 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6511 { echo "$as_me:$LINENO: result: failed" >&5
6512 echo "${ECHO_T}failed" >&6; }
6513 else
6514 { echo "$as_me:$LINENO: result: ok" >&5
6515 echo "${ECHO_T}ok" >&6; }
6516 fi
6517
6518 { echo "$as_me:$LINENO: checking for objdir" >&5
6519 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6520 if test "${lt_cv_objdir+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 rm -f .libs 2>/dev/null
6524 mkdir .libs 2>/dev/null
6525 if test -d .libs; then
6526 lt_cv_objdir=.libs
6527 else
6528 # MS-DOS does not allow filenames that begin with a dot.
6529 lt_cv_objdir=_libs
6530 fi
6531 rmdir .libs 2>/dev/null
6532 fi
6533 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6534 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6535 objdir=$lt_cv_objdir
6536
6537
6538
6539
6540
6541 case $host_os in
6542 aix3*)
6543 # AIX sometimes has problems with the GCC collect2 program. For some
6544 # reason, if we set the COLLECT_NAMES environment variable, the problems
6545 # vanish in a puff of smoke.
6546 if test "X${COLLECT_NAMES+set}" != Xset; then
6547 COLLECT_NAMES=
6548 export COLLECT_NAMES
6549 fi
6550 ;;
6551 esac
6552
6553 # Sed substitution that helps us do robust quoting. It backslashifies
6554 # metacharacters that are still active within double-quoted strings.
6555 Xsed='sed -e 1s/^X//'
6556 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6557
6558 # Same as above, but do not quote variable references.
6559 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6560
6561 # Sed substitution to delay expansion of an escaped shell variable in a
6562 # double_quote_subst'ed string.
6563 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6564
6565 # Sed substitution to avoid accidental globbing in evaled expressions
6566 no_glob_subst='s/\*/\\\*/g'
6567
6568 # Constants:
6569 rm="rm -f"
6570
6571 # Global variables:
6572 default_ofile=libtool
6573 can_build_shared=yes
6574
6575 # All known linkers require a `.a' archive for static linking (except MSVC,
6576 # which needs '.lib').
6577 libext=a
6578 ltmain="$ac_aux_dir/ltmain.sh"
6579 ofile="$default_ofile"
6580 with_gnu_ld="$lt_cv_prog_gnu_ld"
6581
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}ar; ac_word=$2
6585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6587 if test "${ac_cv_prog_AR+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590 if test -n "$AR"; then
6591 ac_cv_prog_AR="$AR" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_AR="${ac_tool_prefix}ar"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 AR=$ac_cv_prog_AR
6611 if test -n "$AR"; then
6612 { echo "$as_me:$LINENO: result: $AR" >&5
6613 echo "${ECHO_T}$AR" >&6; }
6614 else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6617 fi
6618
6619
6620 fi
6621 if test -z "$ac_cv_prog_AR"; then
6622 ac_ct_AR=$AR
6623 # Extract the first word of "ar", so it can be a program name with args.
6624 set dummy ar; ac_word=$2
6625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630 if test -n "$ac_ct_AR"; then
6631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_ac_ct_AR="ar"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644 done
6645 done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6651 if test -n "$ac_ct_AR"; then
6652 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6653 echo "${ECHO_T}$ac_ct_AR" >&6; }
6654 else
6655 { echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6; }
6657 fi
6658
6659 if test "x$ac_ct_AR" = x; then
6660 AR="false"
6661 else
6662 case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6665 whose name does not start with the host triplet. If you think this
6666 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6668 whose name does not start with the host triplet. If you think this
6669 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6670 ac_tool_warned=yes ;;
6671 esac
6672 AR=$ac_ct_AR
6673 fi
6674 else
6675 AR="$ac_cv_prog_AR"
6676 fi
6677
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6683 if test "${ac_cv_prog_RANLIB+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 if test -n "$RANLIB"; then
6687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6688 else
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 for as_dir in $PATH
6691 do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700 done
6701 done
6702 IFS=$as_save_IFS
6703
6704 fi
6705 fi
6706 RANLIB=$ac_cv_prog_RANLIB
6707 if test -n "$RANLIB"; then
6708 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6709 echo "${ECHO_T}$RANLIB" >&6; }
6710 else
6711 { echo "$as_me:$LINENO: result: no" >&5
6712 echo "${ECHO_T}no" >&6; }
6713 fi
6714
6715
6716 fi
6717 if test -z "$ac_cv_prog_RANLIB"; then
6718 ac_ct_RANLIB=$RANLIB
6719 # Extract the first word of "ranlib", so it can be a program name with args.
6720 set dummy ranlib; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 if test -n "$ac_ct_RANLIB"; then
6727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_ac_ct_RANLIB="ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740 done
6741 done
6742 IFS=$as_save_IFS
6743
6744 fi
6745 fi
6746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6747 if test -n "$ac_ct_RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6749 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6750 else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752 echo "${ECHO_T}no" >&6; }
6753 fi
6754
6755 if test "x$ac_ct_RANLIB" = x; then
6756 RANLIB=":"
6757 else
6758 case $cross_compiling:$ac_tool_warned in
6759 yes:)
6760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet. If you think this
6762 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6764 whose name does not start with the host triplet. If you think this
6765 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6766 ac_tool_warned=yes ;;
6767 esac
6768 RANLIB=$ac_ct_RANLIB
6769 fi
6770 else
6771 RANLIB="$ac_cv_prog_RANLIB"
6772 fi
6773
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}strip; ac_word=$2
6777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779 if test "${ac_cv_prog_STRIP+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 if test -n "$STRIP"; then
6783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 STRIP=$ac_cv_prog_STRIP
6803 if test -n "$STRIP"; then
6804 { echo "$as_me:$LINENO: result: $STRIP" >&5
6805 echo "${ECHO_T}$STRIP" >&6; }
6806 else
6807 { echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6; }
6809 fi
6810
6811
6812 fi
6813 if test -z "$ac_cv_prog_STRIP"; then
6814 ac_ct_STRIP=$STRIP
6815 # Extract the first word of "strip", so it can be a program name with args.
6816 set dummy strip; ac_word=$2
6817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 else
6822 if test -n "$ac_ct_STRIP"; then
6823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_ac_ct_STRIP="strip"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6843 if test -n "$ac_ct_STRIP"; then
6844 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6845 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6846 else
6847 { echo "$as_me:$LINENO: result: no" >&5
6848 echo "${ECHO_T}no" >&6; }
6849 fi
6850
6851 if test "x$ac_ct_STRIP" = x; then
6852 STRIP=":"
6853 else
6854 case $cross_compiling:$ac_tool_warned in
6855 yes:)
6856 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6857 whose name does not start with the host triplet. If you think this
6858 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
6859 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6860 whose name does not start with the host triplet. If you think this
6861 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
6862 ac_tool_warned=yes ;;
6863 esac
6864 STRIP=$ac_ct_STRIP
6865 fi
6866 else
6867 STRIP="$ac_cv_prog_STRIP"
6868 fi
6869
6870
6871 old_CC="$CC"
6872 old_CFLAGS="$CFLAGS"
6873
6874 # Set sane defaults for various variables
6875 test -z "$AR" && AR=ar
6876 test -z "$AR_FLAGS" && AR_FLAGS=cru
6877 test -z "$AS" && AS=as
6878 test -z "$CC" && CC=cc
6879 test -z "$LTCC" && LTCC=$CC
6880 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6881 test -z "$DLLTOOL" && DLLTOOL=dlltool
6882 test -z "$LD" && LD=ld
6883 test -z "$LN_S" && LN_S="ln -s"
6884 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6885 test -z "$NM" && NM=nm
6886 test -z "$SED" && SED=sed
6887 test -z "$OBJDUMP" && OBJDUMP=objdump
6888 test -z "$RANLIB" && RANLIB=:
6889 test -z "$STRIP" && STRIP=:
6890 test -z "$ac_objext" && ac_objext=o
6891
6892 # Determine commands to create old-style static archives.
6893 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6894 old_postinstall_cmds='chmod 644 $oldlib'
6895 old_postuninstall_cmds=
6896
6897 if test -n "$RANLIB"; then
6898 case $host_os in
6899 openbsd*)
6900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6901 ;;
6902 *)
6903 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6904 ;;
6905 esac
6906 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6907 fi
6908
6909 for cc_temp in $compiler""; do
6910 case $cc_temp in
6911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6913 \-*) ;;
6914 *) break;;
6915 esac
6916 done
6917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6918
6919
6920 # Only perform the check for file, if the check method requires it
6921 case $deplibs_check_method in
6922 file_magic*)
6923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6924 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6925 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6926 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 case $MAGIC_CMD in
6930 [\\/*] | ?:[\\/]*)
6931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 lt_save_MAGIC_CMD="$MAGIC_CMD"
6935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6937 for ac_dir in $ac_dummy; do
6938 IFS="$lt_save_ifs"
6939 test -z "$ac_dir" && ac_dir=.
6940 if test -f $ac_dir/${ac_tool_prefix}file; then
6941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6942 if test -n "$file_magic_test_file"; then
6943 case $deplibs_check_method in
6944 "file_magic "*)
6945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6948 $EGREP "$file_magic_regex" > /dev/null; then
6949 :
6950 else
6951 cat <<EOF 1>&2
6952
6953 *** Warning: the command libtool uses to detect shared libraries,
6954 *** $file_magic_cmd, produces output that libtool cannot recognize.
6955 *** The result is that libtool may fail to recognize shared libraries
6956 *** as such. This will affect the creation of libtool libraries that
6957 *** depend on shared libraries, but programs linked with such libtool
6958 *** libraries will work regardless of this problem. Nevertheless, you
6959 *** may want to report the problem to your system manager and/or to
6960 *** bug-libtool@gnu.org
6961
6962 EOF
6963 fi ;;
6964 esac
6965 fi
6966 break
6967 fi
6968 done
6969 IFS="$lt_save_ifs"
6970 MAGIC_CMD="$lt_save_MAGIC_CMD"
6971 ;;
6972 esac
6973 fi
6974
6975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6976 if test -n "$MAGIC_CMD"; then
6977 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6978 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6979 else
6980 { echo "$as_me:$LINENO: result: no" >&5
6981 echo "${ECHO_T}no" >&6; }
6982 fi
6983
6984 if test -z "$lt_cv_path_MAGIC_CMD"; then
6985 if test -n "$ac_tool_prefix"; then
6986 { echo "$as_me:$LINENO: checking for file" >&5
6987 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6988 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 case $MAGIC_CMD in
6992 [\\/*] | ?:[\\/]*)
6993 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6994 ;;
6995 *)
6996 lt_save_MAGIC_CMD="$MAGIC_CMD"
6997 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6998 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6999 for ac_dir in $ac_dummy; do
7000 IFS="$lt_save_ifs"
7001 test -z "$ac_dir" && ac_dir=.
7002 if test -f $ac_dir/file; then
7003 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7004 if test -n "$file_magic_test_file"; then
7005 case $deplibs_check_method in
7006 "file_magic "*)
7007 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7008 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7009 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7010 $EGREP "$file_magic_regex" > /dev/null; then
7011 :
7012 else
7013 cat <<EOF 1>&2
7014
7015 *** Warning: the command libtool uses to detect shared libraries,
7016 *** $file_magic_cmd, produces output that libtool cannot recognize.
7017 *** The result is that libtool may fail to recognize shared libraries
7018 *** as such. This will affect the creation of libtool libraries that
7019 *** depend on shared libraries, but programs linked with such libtool
7020 *** libraries will work regardless of this problem. Nevertheless, you
7021 *** may want to report the problem to your system manager and/or to
7022 *** bug-libtool@gnu.org
7023
7024 EOF
7025 fi ;;
7026 esac
7027 fi
7028 break
7029 fi
7030 done
7031 IFS="$lt_save_ifs"
7032 MAGIC_CMD="$lt_save_MAGIC_CMD"
7033 ;;
7034 esac
7035 fi
7036
7037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7038 if test -n "$MAGIC_CMD"; then
7039 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7040 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7041 else
7042 { echo "$as_me:$LINENO: result: no" >&5
7043 echo "${ECHO_T}no" >&6; }
7044 fi
7045
7046 else
7047 MAGIC_CMD=:
7048 fi
7049 fi
7050
7051 fi
7052 ;;
7053 esac
7054
7055 enable_dlopen=no
7056 enable_win32_dll=no
7057
7058 # Check whether --enable-libtool-lock was given.
7059 if test "${enable_libtool_lock+set}" = set; then
7060 enableval=$enable_libtool_lock;
7061 fi
7062
7063 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7064
7065
7066 # Check whether --with-pic was given.
7067 if test "${with_pic+set}" = set; then
7068 withval=$with_pic; pic_mode="$withval"
7069 else
7070 pic_mode=default
7071 fi
7072
7073 test -z "$pic_mode" && pic_mode=default
7074
7075 # Use C for the default configuration in the libtool script
7076 tagname=
7077 lt_save_CC="$CC"
7078 ac_ext=c
7079 ac_cpp='$CPP $CPPFLAGS'
7080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7083
7084
7085 # Source file extension for C test sources.
7086 ac_ext=c
7087
7088 # Object file extension for compiled C test sources.
7089 objext=o
7090 objext=$objext
7091
7092 # Code to be used in simple compile tests
7093 lt_simple_compile_test_code="int some_variable = 0;"
7094
7095 # Code to be used in simple link tests
7096 lt_simple_link_test_code='int main(){return(0);}'
7097
7098
7099 # If no C compiler was specified, use CC.
7100 LTCC=${LTCC-"$CC"}
7101
7102 # If no C compiler flags were specified, use CFLAGS.
7103 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7104
7105 # Allow CC to be a program name with arguments.
7106 compiler=$CC
7107
7108
7109 # save warnings/boilerplate of simple test code
7110 ac_outfile=conftest.$ac_objext
7111 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7112 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7113 _lt_compiler_boilerplate=`cat conftest.err`
7114 $rm conftest*
7115
7116 ac_outfile=conftest.$ac_objext
7117 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7118 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7119 _lt_linker_boilerplate=`cat conftest.err`
7120 $rm conftest*
7121
7122
7123
7124 lt_prog_compiler_no_builtin_flag=
7125
7126 if test "$GCC" = yes; then
7127 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7128
7129
7130 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7131 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7132 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 lt_cv_prog_compiler_rtti_exceptions=no
7136 ac_outfile=conftest.$ac_objext
7137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7138 lt_compiler_flag="-fno-rtti -fno-exceptions"
7139 # Insert the option either (1) after the last *FLAGS variable, or
7140 # (2) before a word containing "conftest.", or (3) at the end.
7141 # Note that $ac_compile itself does not contain backslashes and begins
7142 # with a dollar sign (not a hyphen), so the echo should work correctly.
7143 # The option is referenced via a variable to avoid confusing sed.
7144 lt_compile=`echo "$ac_compile" | $SED \
7145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7147 -e 's:$: $lt_compiler_flag:'`
7148 (eval echo "\"\$as_me:7148: $lt_compile\"" >&5)
7149 (eval "$lt_compile" 2>conftest.err)
7150 ac_status=$?
7151 cat conftest.err >&5
7152 echo "$as_me:7152: \$? = $ac_status" >&5
7153 if (exit $ac_status) && test -s "$ac_outfile"; then
7154 # The compiler can only warn and ignore the option if not recognized
7155 # So say no if there are warnings other than the usual output.
7156 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7158 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7159 lt_cv_prog_compiler_rtti_exceptions=yes
7160 fi
7161 fi
7162 $rm conftest*
7163
7164 fi
7165 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7166 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7167
7168 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7169 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7170 else
7171 :
7172 fi
7173
7174 fi
7175
7176 lt_prog_compiler_wl=
7177 lt_prog_compiler_pic=
7178 lt_prog_compiler_static=
7179
7180 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7181 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7182
7183 if test "$GCC" = yes; then
7184 lt_prog_compiler_wl='-Wl,'
7185 lt_prog_compiler_static='-static'
7186
7187 case $host_os in
7188 aix*)
7189 # All AIX code is PIC.
7190 if test "$host_cpu" = ia64; then
7191 # AIX 5 now supports IA64 processor
7192 lt_prog_compiler_static='-Bstatic'
7193 fi
7194 ;;
7195
7196 amigaos*)
7197 # FIXME: we need at least 68020 code to build shared libraries, but
7198 # adding the `-m68020' flag to GCC prevents building anything better,
7199 # like `-m68040'.
7200 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7201 ;;
7202
7203 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7204 # PIC is the default for these OSes.
7205 ;;
7206
7207 mingw* | cygwin* | pw32* | os2*)
7208 # This hack is so that the source file can tell whether it is being
7209 # built for inclusion in a dll (and should export symbols for example).
7210 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7211 # (--disable-auto-import) libraries
7212 lt_prog_compiler_pic='-DDLL_EXPORT'
7213 ;;
7214
7215 darwin* | rhapsody*)
7216 # PIC is the default on this platform
7217 # Common symbols not allowed in MH_DYLIB files
7218 lt_prog_compiler_pic='-fno-common'
7219 ;;
7220
7221 interix[3-9]*)
7222 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7223 # Instead, we relocate shared libraries at runtime.
7224 ;;
7225
7226 msdosdjgpp*)
7227 # Just because we use GCC doesn't mean we suddenly get shared libraries
7228 # on systems that don't support them.
7229 lt_prog_compiler_can_build_shared=no
7230 enable_shared=no
7231 ;;
7232
7233 sysv4*MP*)
7234 if test -d /usr/nec; then
7235 lt_prog_compiler_pic=-Kconform_pic
7236 fi
7237 ;;
7238
7239 hpux*)
7240 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7241 # not for PA HP-UX.
7242 case $host_cpu in
7243 hppa*64*|ia64*)
7244 # +Z the default
7245 ;;
7246 *)
7247 lt_prog_compiler_pic='-fPIC'
7248 ;;
7249 esac
7250 ;;
7251
7252 *)
7253 lt_prog_compiler_pic='-fPIC'
7254 ;;
7255 esac
7256 else
7257 # PORTME Check for flag to pass linker flags through the system compiler.
7258 case $host_os in
7259 aix*)
7260 lt_prog_compiler_wl='-Wl,'
7261 if test "$host_cpu" = ia64; then
7262 # AIX 5 now supports IA64 processor
7263 lt_prog_compiler_static='-Bstatic'
7264 else
7265 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7266 fi
7267 ;;
7268 darwin*)
7269 # PIC is the default on this platform
7270 # Common symbols not allowed in MH_DYLIB files
7271 case $cc_basename in
7272 xlc*)
7273 lt_prog_compiler_pic='-qnocommon'
7274 lt_prog_compiler_wl='-Wl,'
7275 ;;
7276 esac
7277 ;;
7278
7279 mingw* | cygwin* | pw32* | os2*)
7280 # This hack is so that the source file can tell whether it is being
7281 # built for inclusion in a dll (and should export symbols for example).
7282 lt_prog_compiler_pic='-DDLL_EXPORT'
7283 ;;
7284
7285 hpux9* | hpux10* | hpux11*)
7286 lt_prog_compiler_wl='-Wl,'
7287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7288 # not for PA HP-UX.
7289 case $host_cpu in
7290 hppa*64*|ia64*)
7291 # +Z the default
7292 ;;
7293 *)
7294 lt_prog_compiler_pic='+Z'
7295 ;;
7296 esac
7297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7298 lt_prog_compiler_static='${wl}-a ${wl}archive'
7299 ;;
7300
7301 irix5* | irix6* | nonstopux*)
7302 lt_prog_compiler_wl='-Wl,'
7303 # PIC (with -KPIC) is the default.
7304 lt_prog_compiler_static='-non_shared'
7305 ;;
7306
7307 newsos6)
7308 lt_prog_compiler_pic='-KPIC'
7309 lt_prog_compiler_static='-Bstatic'
7310 ;;
7311
7312 linux* | k*bsd*-gnu)
7313 case $cc_basename in
7314 icc* | ecc*)
7315 lt_prog_compiler_wl='-Wl,'
7316 lt_prog_compiler_pic='-KPIC'
7317 lt_prog_compiler_static='-static'
7318 ;;
7319 pgcc* | pgf77* | pgf90* | pgf95*)
7320 # Portland Group compilers (*not* the Pentium gcc compiler,
7321 # which looks to be a dead project)
7322 lt_prog_compiler_wl='-Wl,'
7323 lt_prog_compiler_pic='-fpic'
7324 lt_prog_compiler_static='-Bstatic'
7325 ;;
7326 ccc*)
7327 lt_prog_compiler_wl='-Wl,'
7328 # All Alpha code is PIC.
7329 lt_prog_compiler_static='-non_shared'
7330 ;;
7331 *)
7332 case `$CC -V 2>&1 | sed 5q` in
7333 *Sun\ C*)
7334 # Sun C 5.9
7335 lt_prog_compiler_pic='-KPIC'
7336 lt_prog_compiler_static='-Bstatic'
7337 lt_prog_compiler_wl='-Wl,'
7338 ;;
7339 *Sun\ F*)
7340 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7341 lt_prog_compiler_pic='-KPIC'
7342 lt_prog_compiler_static='-Bstatic'
7343 lt_prog_compiler_wl=''
7344 ;;
7345 esac
7346 ;;
7347 esac
7348 ;;
7349
7350 osf3* | osf4* | osf5*)
7351 lt_prog_compiler_wl='-Wl,'
7352 # All OSF/1 code is PIC.
7353 lt_prog_compiler_static='-non_shared'
7354 ;;
7355
7356 rdos*)
7357 lt_prog_compiler_static='-non_shared'
7358 ;;
7359
7360 solaris*)
7361 lt_prog_compiler_pic='-KPIC'
7362 lt_prog_compiler_static='-Bstatic'
7363 case $cc_basename in
7364 f77* | f90* | f95*)
7365 lt_prog_compiler_wl='-Qoption ld ';;
7366 *)
7367 lt_prog_compiler_wl='-Wl,';;
7368 esac
7369 ;;
7370
7371 sunos4*)
7372 lt_prog_compiler_wl='-Qoption ld '
7373 lt_prog_compiler_pic='-PIC'
7374 lt_prog_compiler_static='-Bstatic'
7375 ;;
7376
7377 sysv4 | sysv4.2uw2* | sysv4.3*)
7378 lt_prog_compiler_wl='-Wl,'
7379 lt_prog_compiler_pic='-KPIC'
7380 lt_prog_compiler_static='-Bstatic'
7381 ;;
7382
7383 sysv4*MP*)
7384 if test -d /usr/nec ;then
7385 lt_prog_compiler_pic='-Kconform_pic'
7386 lt_prog_compiler_static='-Bstatic'
7387 fi
7388 ;;
7389
7390 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7391 lt_prog_compiler_wl='-Wl,'
7392 lt_prog_compiler_pic='-KPIC'
7393 lt_prog_compiler_static='-Bstatic'
7394 ;;
7395
7396 unicos*)
7397 lt_prog_compiler_wl='-Wl,'
7398 lt_prog_compiler_can_build_shared=no
7399 ;;
7400
7401 uts4*)
7402 lt_prog_compiler_pic='-pic'
7403 lt_prog_compiler_static='-Bstatic'
7404 ;;
7405
7406 *)
7407 lt_prog_compiler_can_build_shared=no
7408 ;;
7409 esac
7410 fi
7411
7412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7413 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7414
7415 #
7416 # Check to make sure the PIC flag actually works.
7417 #
7418 if test -n "$lt_prog_compiler_pic"; then
7419
7420 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7422 if test "${lt_prog_compiler_pic_works+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425 lt_prog_compiler_pic_works=no
7426 ac_outfile=conftest.$ac_objext
7427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7428 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7429 # Insert the option either (1) after the last *FLAGS variable, or
7430 # (2) before a word containing "conftest.", or (3) at the end.
7431 # Note that $ac_compile itself does not contain backslashes and begins
7432 # with a dollar sign (not a hyphen), so the echo should work correctly.
7433 # The option is referenced via a variable to avoid confusing sed.
7434 lt_compile=`echo "$ac_compile" | $SED \
7435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7437 -e 's:$: $lt_compiler_flag:'`
7438 (eval echo "\"\$as_me:7438: $lt_compile\"" >&5)
7439 (eval "$lt_compile" 2>conftest.err)
7440 ac_status=$?
7441 cat conftest.err >&5
7442 echo "$as_me:7442: \$? = $ac_status" >&5
7443 if (exit $ac_status) && test -s "$ac_outfile"; then
7444 # The compiler can only warn and ignore the option if not recognized
7445 # So say no if there are warnings other than the usual output.
7446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7449 lt_prog_compiler_pic_works=yes
7450 fi
7451 fi
7452 $rm conftest*
7453
7454 fi
7455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7456 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7457
7458 if test x"$lt_prog_compiler_pic_works" = xyes; then
7459 case $lt_prog_compiler_pic in
7460 "" | " "*) ;;
7461 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7462 esac
7463 else
7464 lt_prog_compiler_pic=
7465 lt_prog_compiler_can_build_shared=no
7466 fi
7467
7468 fi
7469 case $host_os in
7470 # For platforms which do not support PIC, -DPIC is meaningless:
7471 *djgpp*)
7472 lt_prog_compiler_pic=
7473 ;;
7474 *)
7475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7476 ;;
7477 esac
7478
7479 #
7480 # Check to make sure the static flag actually works.
7481 #
7482 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7483 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7484 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7485 if test "${lt_prog_compiler_static_works+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 lt_prog_compiler_static_works=no
7489 save_LDFLAGS="$LDFLAGS"
7490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7493 # The linker can only warn and ignore the option if not recognized
7494 # So say no if there are warnings
7495 if test -s conftest.err; then
7496 # Append any errors to the config.log.
7497 cat conftest.err 1>&5
7498 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7500 if diff conftest.exp conftest.er2 >/dev/null; then
7501 lt_prog_compiler_static_works=yes
7502 fi
7503 else
7504 lt_prog_compiler_static_works=yes
7505 fi
7506 fi
7507 $rm conftest*
7508 LDFLAGS="$save_LDFLAGS"
7509
7510 fi
7511 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7512 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7513
7514 if test x"$lt_prog_compiler_static_works" = xyes; then
7515 :
7516 else
7517 lt_prog_compiler_static=
7518 fi
7519
7520
7521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7523 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7524 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526 lt_cv_prog_compiler_c_o=no
7527 $rm -r conftest 2>/dev/null
7528 mkdir conftest
7529 cd conftest
7530 mkdir out
7531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7532
7533 lt_compiler_flag="-o out/conftest2.$ac_objext"
7534 # Insert the option either (1) after the last *FLAGS variable, or
7535 # (2) before a word containing "conftest.", or (3) at the end.
7536 # Note that $ac_compile itself does not contain backslashes and begins
7537 # with a dollar sign (not a hyphen), so the echo should work correctly.
7538 lt_compile=`echo "$ac_compile" | $SED \
7539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7541 -e 's:$: $lt_compiler_flag:'`
7542 (eval echo "\"\$as_me:7542: $lt_compile\"" >&5)
7543 (eval "$lt_compile" 2>out/conftest.err)
7544 ac_status=$?
7545 cat out/conftest.err >&5
7546 echo "$as_me:7546: \$? = $ac_status" >&5
7547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7548 then
7549 # The compiler can only warn and ignore the option if not recognized
7550 # So say no if there are warnings
7551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7554 lt_cv_prog_compiler_c_o=yes
7555 fi
7556 fi
7557 chmod u+w . 2>&5
7558 $rm conftest*
7559 # SGI C++ compiler will create directory out/ii_files/ for
7560 # template instantiation
7561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7562 $rm out/* && rmdir out
7563 cd ..
7564 rmdir conftest
7565 $rm conftest*
7566
7567 fi
7568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7570
7571
7572 hard_links="nottested"
7573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7574 # do not overwrite the value of need_locks provided by the user
7575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7577 hard_links=yes
7578 $rm conftest*
7579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7580 touch conftest.a
7581 ln conftest.a conftest.b 2>&5 || hard_links=no
7582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7583 { echo "$as_me:$LINENO: result: $hard_links" >&5
7584 echo "${ECHO_T}$hard_links" >&6; }
7585 if test "$hard_links" = no; then
7586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7588 need_locks=warn
7589 fi
7590 else
7591 need_locks=no
7592 fi
7593
7594 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7596
7597 runpath_var=
7598 allow_undefined_flag=
7599 enable_shared_with_static_runtimes=no
7600 archive_cmds=
7601 archive_expsym_cmds=
7602 old_archive_From_new_cmds=
7603 old_archive_from_expsyms_cmds=
7604 export_dynamic_flag_spec=
7605 whole_archive_flag_spec=
7606 thread_safe_flag_spec=
7607 hardcode_libdir_flag_spec=
7608 hardcode_libdir_flag_spec_ld=
7609 hardcode_libdir_separator=
7610 hardcode_direct=no
7611 hardcode_minus_L=no
7612 hardcode_shlibpath_var=unsupported
7613 link_all_deplibs=unknown
7614 hardcode_automatic=no
7615 module_cmds=
7616 module_expsym_cmds=
7617 always_export_symbols=no
7618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7619 # include_expsyms should be a list of space-separated symbols to be *always*
7620 # included in the symbol list
7621 include_expsyms=
7622 # exclude_expsyms can be an extended regexp of symbols to exclude
7623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7625 # as well as any symbol that contains `d'.
7626 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7628 # platforms (ab)use it in PIC code, but their linkers get confused if
7629 # the symbol is explicitly referenced. Since portable code cannot
7630 # rely on this symbol name, it's probably fine to never include it in
7631 # preloaded symbol tables.
7632 extract_expsyms_cmds=
7633 # Just being paranoid about ensuring that cc_basename is set.
7634 for cc_temp in $compiler""; do
7635 case $cc_temp in
7636 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7637 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7638 \-*) ;;
7639 *) break;;
7640 esac
7641 done
7642 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7643
7644 case $host_os in
7645 cygwin* | mingw* | pw32*)
7646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7647 # When not using gcc, we currently assume that we are using
7648 # Microsoft Visual C++.
7649 if test "$GCC" != yes; then
7650 with_gnu_ld=no
7651 fi
7652 ;;
7653 interix*)
7654 # we just hope/assume this is gcc and not c89 (= MSVC++)
7655 with_gnu_ld=yes
7656 ;;
7657 openbsd*)
7658 with_gnu_ld=no
7659 ;;
7660 esac
7661
7662 ld_shlibs=yes
7663 if test "$with_gnu_ld" = yes; then
7664 # If archive_cmds runs LD, not CC, wlarc should be empty
7665 wlarc='${wl}'
7666
7667 # Set some defaults for GNU ld with shared library support. These
7668 # are reset later if shared libraries are not supported. Putting them
7669 # here allows them to be overridden if necessary.
7670 runpath_var=LD_RUN_PATH
7671 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7672 export_dynamic_flag_spec='${wl}--export-dynamic'
7673 # ancient GNU ld didn't support --whole-archive et. al.
7674 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7675 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7676 else
7677 whole_archive_flag_spec=
7678 fi
7679 supports_anon_versioning=no
7680 case `$LD -v 2>/dev/null` in
7681 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7684 *\ 2.11.*) ;; # other 2.11 versions
7685 *) supports_anon_versioning=yes ;;
7686 esac
7687
7688 # See if GNU ld supports shared libraries.
7689 case $host_os in
7690 aix3* | aix4* | aix5*)
7691 # On AIX/PPC, the GNU linker is very broken
7692 if test "$host_cpu" != ia64; then
7693 ld_shlibs=no
7694 cat <<EOF 1>&2
7695
7696 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7697 *** to be unable to reliably create shared libraries on AIX.
7698 *** Therefore, libtool is disabling shared libraries support. If you
7699 *** really care for shared libraries, you may want to modify your PATH
7700 *** so that a non-GNU linker is found, and then restart.
7701
7702 EOF
7703 fi
7704 ;;
7705
7706 amigaos*)
7707 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)'
7708 hardcode_libdir_flag_spec='-L$libdir'
7709 hardcode_minus_L=yes
7710
7711 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
7712 # that the semantics of dynamic libraries on AmigaOS, at least up
7713 # to version 4, is to share data among multiple programs linked
7714 # with the same dynamic library. Since this doesn't match the
7715 # behavior of shared libraries on other platforms, we can't use
7716 # them.
7717 ld_shlibs=no
7718 ;;
7719
7720 beos*)
7721 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7722 allow_undefined_flag=unsupported
7723 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
7724 # support --undefined. This deserves some investigation. FIXME
7725 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7726 else
7727 ld_shlibs=no
7728 fi
7729 ;;
7730
7731 cygwin* | mingw* | pw32*)
7732 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7733 # as there is no search path for DLLs.
7734 hardcode_libdir_flag_spec='-L$libdir'
7735 allow_undefined_flag=unsupported
7736 always_export_symbols=no
7737 enable_shared_with_static_runtimes=yes
7738 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7739
7740 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7742 # If the export-symbols file already is a .def file (1st line
7743 # is EXPORTS), use it as is; otherwise, prepend...
7744 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7745 cp $export_symbols $output_objdir/$soname.def;
7746 else
7747 echo EXPORTS > $output_objdir/$soname.def;
7748 cat $export_symbols >> $output_objdir/$soname.def;
7749 fi~
7750 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7751 else
7752 ld_shlibs=no
7753 fi
7754 ;;
7755
7756 interix[3-9]*)
7757 hardcode_direct=no
7758 hardcode_shlibpath_var=no
7759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7760 export_dynamic_flag_spec='${wl}-E'
7761 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7762 # Instead, shared libraries are loaded at an image base (0x10000000 by
7763 # default) and relocated if they conflict, which is a slow very memory
7764 # consuming and fragmenting process. To avoid this, we pick a random,
7765 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7766 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7767 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7768 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'
7769 ;;
7770
7771 gnu* | linux* | k*bsd*-gnu)
7772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7773 tmp_addflag=
7774 case $cc_basename,$host_cpu in
7775 pgcc*) # Portland Group C compiler
7776 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'
7777 tmp_addflag=' $pic_flag'
7778 ;;
7779 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7780 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'
7781 tmp_addflag=' $pic_flag -Mnomain' ;;
7782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7783 tmp_addflag=' -i_dynamic' ;;
7784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7785 tmp_addflag=' -i_dynamic -nofor_main' ;;
7786 ifc* | ifort*) # Intel Fortran compiler
7787 tmp_addflag=' -nofor_main' ;;
7788 esac
7789 case `$CC -V 2>&1 | sed 5q` in
7790 *Sun\ C*) # Sun C 5.9
7791 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7792 tmp_sharedflag='-G' ;;
7793 *Sun\ F*) # Sun Fortran 8.3
7794 tmp_sharedflag='-G' ;;
7795 *)
7796 tmp_sharedflag='-shared' ;;
7797 esac
7798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799
7800 if test $supports_anon_versioning = yes; then
7801 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7802 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7803 $echo "local: *; };" >> $output_objdir/$libname.ver~
7804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7805 fi
7806 else
7807 ld_shlibs=no
7808 fi
7809 ;;
7810
7811 netbsd*)
7812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7813 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7814 wlarc=
7815 else
7816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7817 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7818 fi
7819 ;;
7820
7821 solaris*)
7822 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7823 ld_shlibs=no
7824 cat <<EOF 1>&2
7825
7826 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7827 *** create shared libraries on Solaris systems. Therefore, libtool
7828 *** is disabling shared libraries support. We urge you to upgrade GNU
7829 *** binutils to release 2.9.1 or newer. Another option is to modify
7830 *** your PATH or compiler configuration so that the native linker is
7831 *** used, and then restart.
7832
7833 EOF
7834 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7836 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7837 else
7838 ld_shlibs=no
7839 fi
7840 ;;
7841
7842 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7843 case `$LD -v 2>&1` in
7844 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7845 ld_shlibs=no
7846 cat <<_LT_EOF 1>&2
7847
7848 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7849 *** reliably create shared libraries on SCO systems. Therefore, libtool
7850 *** is disabling shared libraries support. We urge you to upgrade GNU
7851 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7852 *** your PATH or compiler configuration so that the native linker is
7853 *** used, and then restart.
7854
7855 _LT_EOF
7856 ;;
7857 *)
7858 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7859 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7862 else
7863 ld_shlibs=no
7864 fi
7865 ;;
7866 esac
7867 ;;
7868
7869 sunos4*)
7870 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7871 wlarc=
7872 hardcode_direct=yes
7873 hardcode_shlibpath_var=no
7874 ;;
7875
7876 *)
7877 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7880 else
7881 ld_shlibs=no
7882 fi
7883 ;;
7884 esac
7885
7886 if test "$ld_shlibs" = no; then
7887 runpath_var=
7888 hardcode_libdir_flag_spec=
7889 export_dynamic_flag_spec=
7890 whole_archive_flag_spec=
7891 fi
7892 else
7893 # PORTME fill in a description of your system's linker (not GNU ld)
7894 case $host_os in
7895 aix3*)
7896 allow_undefined_flag=unsupported
7897 always_export_symbols=yes
7898 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'
7899 # Note: this linker hardcodes the directories in LIBPATH if there
7900 # are no directories specified by -L.
7901 hardcode_minus_L=yes
7902 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7903 # Neither direct hardcoding nor static linking is supported with a
7904 # broken collect2.
7905 hardcode_direct=unsupported
7906 fi
7907 ;;
7908
7909 aix4* | aix5*)
7910 if test "$host_cpu" = ia64; then
7911 # On IA64, the linker does run time linking by default, so we don't
7912 # have to do anything special.
7913 aix_use_runtimelinking=no
7914 exp_sym_flag='-Bexport'
7915 no_entry_flag=""
7916 else
7917 # If we're using GNU nm, then we don't want the "-C" option.
7918 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7919 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7920 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'
7921 else
7922 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'
7923 fi
7924 aix_use_runtimelinking=no
7925
7926 # Test if we are trying to use run time linking or normal
7927 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7928 # need to do runtime linking.
7929 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7930 for ld_flag in $LDFLAGS; do
7931 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7932 aix_use_runtimelinking=yes
7933 break
7934 fi
7935 done
7936 ;;
7937 esac
7938
7939 exp_sym_flag='-bexport'
7940 no_entry_flag='-bnoentry'
7941 fi
7942
7943 # When large executables or shared objects are built, AIX ld can
7944 # have problems creating the table of contents. If linking a library
7945 # or program results in "error TOC overflow" add -mminimal-toc to
7946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7948
7949 archive_cmds=''
7950 hardcode_direct=yes
7951 hardcode_libdir_separator=':'
7952 link_all_deplibs=yes
7953
7954 if test "$GCC" = yes; then
7955 case $host_os in aix4.[012]|aix4.[012].*)
7956 # We only want to do this on AIX 4.2 and lower, the check
7957 # below for broken collect2 doesn't work under 4.3+
7958 collect2name=`${CC} -print-prog-name=collect2`
7959 if test -f "$collect2name" && \
7960 strings "$collect2name" | grep resolve_lib_name >/dev/null
7961 then
7962 # We have reworked collect2
7963 :
7964 else
7965 # We have old collect2
7966 hardcode_direct=unsupported
7967 # It fails to find uninstalled libraries when the uninstalled
7968 # path is not listed in the libpath. Setting hardcode_minus_L
7969 # to unsupported forces relinking
7970 hardcode_minus_L=yes
7971 hardcode_libdir_flag_spec='-L$libdir'
7972 hardcode_libdir_separator=
7973 fi
7974 ;;
7975 esac
7976 shared_flag='-shared'
7977 if test "$aix_use_runtimelinking" = yes; then
7978 shared_flag="$shared_flag "'${wl}-G'
7979 fi
7980 else
7981 # not using gcc
7982 if test "$host_cpu" = ia64; then
7983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7984 # chokes on -Wl,-G. The following line is correct:
7985 shared_flag='-G'
7986 else
7987 if test "$aix_use_runtimelinking" = yes; then
7988 shared_flag='${wl}-G'
7989 else
7990 shared_flag='${wl}-bM:SRE'
7991 fi
7992 fi
7993 fi
7994
7995 # It seems that -bexpall does not export symbols beginning with
7996 # underscore (_), so it is better to generate a list of symbols to export.
7997 always_export_symbols=yes
7998 if test "$aix_use_runtimelinking" = yes; then
7999 # Warning - without using the other runtime loading flags (-brtl),
8000 # -berok will link without error, but may produce a broken library.
8001 allow_undefined_flag='-berok'
8002 # Determine the default libpath from the value encoded in an empty executable.
8003 cat >conftest.$ac_ext <<_ACEOF
8004 /* confdefs.h. */
8005 _ACEOF
8006 cat confdefs.h >>conftest.$ac_ext
8007 cat >>conftest.$ac_ext <<_ACEOF
8008 /* end confdefs.h. */
8009
8010 int
8011 main ()
8012 {
8013
8014 ;
8015 return 0;
8016 }
8017 _ACEOF
8018 rm -f conftest.$ac_objext conftest$ac_exeext
8019 if { (ac_try="$ac_link"
8020 case "(($ac_try" in
8021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8022 *) ac_try_echo=$ac_try;;
8023 esac
8024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8025 (eval "$ac_link") 2>conftest.er1
8026 ac_status=$?
8027 grep -v '^ *+' conftest.er1 >conftest.err
8028 rm -f conftest.er1
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } && {
8032 test -z "$ac_c_werror_flag" ||
8033 test ! -s conftest.err
8034 } && test -s conftest$ac_exeext &&
8035 $as_test_x conftest$ac_exeext; then
8036
8037 lt_aix_libpath_sed='
8038 /Import File Strings/,/^$/ {
8039 /^0/ {
8040 s/^0 *\(.*\)$/\1/
8041 p
8042 }
8043 }'
8044 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8045 # Check for a 64-bit object if we didn't find anything.
8046 if test -z "$aix_libpath"; then
8047 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8048 fi
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053
8054 fi
8055
8056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8057 conftest$ac_exeext conftest.$ac_ext
8058 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8059
8060 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8061 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"
8062 else
8063 if test "$host_cpu" = ia64; then
8064 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8065 allow_undefined_flag="-z nodefs"
8066 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"
8067 else
8068 # Determine the default libpath from the value encoded in an empty executable.
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075
8076 int
8077 main ()
8078 {
8079
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 rm -f conftest.$ac_objext conftest$ac_exeext
8085 if { (ac_try="$ac_link"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_link") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest$ac_exeext &&
8101 $as_test_x conftest$ac_exeext; then
8102
8103 lt_aix_libpath_sed='
8104 /Import File Strings/,/^$/ {
8105 /^0/ {
8106 s/^0 *\(.*\)$/\1/
8107 p
8108 }
8109 }'
8110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8111 # Check for a 64-bit object if we didn't find anything.
8112 if test -z "$aix_libpath"; then
8113 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8114 fi
8115 else
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119
8120 fi
8121
8122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8123 conftest$ac_exeext conftest.$ac_ext
8124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8125
8126 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8127 # Warning - without using the other run time loading flags,
8128 # -berok will link without error, but may produce a broken library.
8129 no_undefined_flag=' ${wl}-bernotok'
8130 allow_undefined_flag=' ${wl}-berok'
8131 # Exported symbols can be pulled into shared objects from archives
8132 whole_archive_flag_spec='$convenience'
8133 archive_cmds_need_lc=yes
8134 # This is similar to how AIX traditionally builds its shared libraries.
8135 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'
8136 fi
8137 fi
8138 ;;
8139
8140 amigaos*)
8141 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)'
8142 hardcode_libdir_flag_spec='-L$libdir'
8143 hardcode_minus_L=yes
8144 # see comment about different semantics on the GNU ld section
8145 ld_shlibs=no
8146 ;;
8147
8148 bsdi[45]*)
8149 export_dynamic_flag_spec=-rdynamic
8150 ;;
8151
8152 cygwin* | mingw* | pw32*)
8153 # When not using gcc, we currently assume that we are using
8154 # Microsoft Visual C++.
8155 # hardcode_libdir_flag_spec is actually meaningless, as there is
8156 # no search path for DLLs.
8157 hardcode_libdir_flag_spec=' '
8158 allow_undefined_flag=unsupported
8159 # Tell ltmain to make .lib files, not .a files.
8160 libext=lib
8161 # Tell ltmain to make .dll files, not .so files.
8162 shrext_cmds=".dll"
8163 # FIXME: Setting linknames here is a bad hack.
8164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8165 # The linker will automatically build a .lib file if we build a DLL.
8166 old_archive_From_new_cmds='true'
8167 # FIXME: Should let the user specify the lib program.
8168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8169 fix_srcfile_path='`cygpath -w "$srcfile"`'
8170 enable_shared_with_static_runtimes=yes
8171 ;;
8172
8173 darwin* | rhapsody*)
8174 case $host_os in
8175 rhapsody* | darwin1.[012])
8176 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8177 ;;
8178 *) # Darwin 1.3 on
8179 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8180 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8181 else
8182 case ${MACOSX_DEPLOYMENT_TARGET} in
8183 10.[012])
8184 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8185 ;;
8186 10.*)
8187 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8188 ;;
8189 esac
8190 fi
8191 ;;
8192 esac
8193 archive_cmds_need_lc=no
8194 hardcode_direct=no
8195 hardcode_automatic=yes
8196 hardcode_shlibpath_var=unsupported
8197 whole_archive_flag_spec=''
8198 link_all_deplibs=yes
8199 if test "$GCC" = yes ; then
8200 output_verbose_link_cmd='echo'
8201 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8202 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8203 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8204 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}'
8205 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}'
8206 else
8207 case $cc_basename in
8208 xlc*)
8209 output_verbose_link_cmd='echo'
8210 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8211 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8212 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8213 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8214 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}'
8215 ;;
8216 *)
8217 ld_shlibs=no
8218 ;;
8219 esac
8220 fi
8221 ;;
8222
8223 dgux*)
8224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8225 hardcode_libdir_flag_spec='-L$libdir'
8226 hardcode_shlibpath_var=no
8227 ;;
8228
8229 freebsd1*)
8230 ld_shlibs=no
8231 ;;
8232
8233 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8234 # support. Future versions do this automatically, but an explicit c++rt0.o
8235 # does not break anything, and helps significantly (at the cost of a little
8236 # extra space).
8237 freebsd2.2*)
8238 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8239 hardcode_libdir_flag_spec='-R$libdir'
8240 hardcode_direct=yes
8241 hardcode_shlibpath_var=no
8242 ;;
8243
8244 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8245 freebsd2*)
8246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8247 hardcode_direct=yes
8248 hardcode_minus_L=yes
8249 hardcode_shlibpath_var=no
8250 ;;
8251
8252 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8253 freebsd* | dragonfly*)
8254 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8255 hardcode_libdir_flag_spec='-R$libdir'
8256 hardcode_direct=yes
8257 hardcode_shlibpath_var=no
8258 ;;
8259
8260 hpux9*)
8261 if test "$GCC" = yes; then
8262 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'
8263 else
8264 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'
8265 fi
8266 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8267 hardcode_libdir_separator=:
8268 hardcode_direct=yes
8269
8270 # hardcode_minus_L: Not really in the search PATH,
8271 # but as the default location of the library.
8272 hardcode_minus_L=yes
8273 export_dynamic_flag_spec='${wl}-E'
8274 ;;
8275
8276 hpux10*)
8277 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8278 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8279 else
8280 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8281 fi
8282 if test "$with_gnu_ld" = no; then
8283 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8284 hardcode_libdir_separator=:
8285
8286 hardcode_direct=yes
8287 export_dynamic_flag_spec='${wl}-E'
8288
8289 # hardcode_minus_L: Not really in the search PATH,
8290 # but as the default location of the library.
8291 hardcode_minus_L=yes
8292 fi
8293 ;;
8294
8295 hpux11*)
8296 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8297 case $host_cpu in
8298 hppa*64*)
8299 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300 ;;
8301 ia64*)
8302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8303 ;;
8304 *)
8305 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8306 ;;
8307 esac
8308 else
8309 case $host_cpu in
8310 hppa*64*)
8311 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8312 ;;
8313 ia64*)
8314 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8315 ;;
8316 *)
8317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8318 ;;
8319 esac
8320 fi
8321 if test "$with_gnu_ld" = no; then
8322 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8323 hardcode_libdir_separator=:
8324
8325 case $host_cpu in
8326 hppa*64*|ia64*)
8327 hardcode_libdir_flag_spec_ld='+b $libdir'
8328 hardcode_direct=no
8329 hardcode_shlibpath_var=no
8330 ;;
8331 *)
8332 hardcode_direct=yes
8333 export_dynamic_flag_spec='${wl}-E'
8334
8335 # hardcode_minus_L: Not really in the search PATH,
8336 # but as the default location of the library.
8337 hardcode_minus_L=yes
8338 ;;
8339 esac
8340 fi
8341 ;;
8342
8343 irix5* | irix6* | nonstopux*)
8344 if test "$GCC" = yes; then
8345 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'
8346 else
8347 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'
8348 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8349 fi
8350 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8351 hardcode_libdir_separator=:
8352 link_all_deplibs=yes
8353 ;;
8354
8355 netbsd*)
8356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8358 else
8359 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8360 fi
8361 hardcode_libdir_flag_spec='-R$libdir'
8362 hardcode_direct=yes
8363 hardcode_shlibpath_var=no
8364 ;;
8365
8366 newsos6)
8367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368 hardcode_direct=yes
8369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8370 hardcode_libdir_separator=:
8371 hardcode_shlibpath_var=no
8372 ;;
8373
8374 openbsd*)
8375 if test -f /usr/libexec/ld.so; then
8376 hardcode_direct=yes
8377 hardcode_shlibpath_var=no
8378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8380 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8381 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8382 export_dynamic_flag_spec='${wl}-E'
8383 else
8384 case $host_os in
8385 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8386 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8387 hardcode_libdir_flag_spec='-R$libdir'
8388 ;;
8389 *)
8390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8392 ;;
8393 esac
8394 fi
8395 else
8396 ld_shlibs=no
8397 fi
8398 ;;
8399
8400 os2*)
8401 hardcode_libdir_flag_spec='-L$libdir'
8402 hardcode_minus_L=yes
8403 allow_undefined_flag=unsupported
8404 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'
8405 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8406 ;;
8407
8408 osf3*)
8409 if test "$GCC" = yes; then
8410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8411 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'
8412 else
8413 allow_undefined_flag=' -expect_unresolved \*'
8414 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'
8415 fi
8416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417 hardcode_libdir_separator=:
8418 ;;
8419
8420 osf4* | osf5*) # as osf3* with the addition of -msym flag
8421 if test "$GCC" = yes; then
8422 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8423 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'
8424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425 else
8426 allow_undefined_flag=' -expect_unresolved \*'
8427 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'
8428 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8429 $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'
8430
8431 # Both c and cxx compiler support -rpath directly
8432 hardcode_libdir_flag_spec='-rpath $libdir'
8433 fi
8434 hardcode_libdir_separator=:
8435 ;;
8436
8437 solaris*)
8438 no_undefined_flag=' -z text'
8439 if test "$GCC" = yes; then
8440 wlarc='${wl}'
8441 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8444 else
8445 wlarc=''
8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8449 fi
8450 hardcode_libdir_flag_spec='-R$libdir'
8451 hardcode_shlibpath_var=no
8452 case $host_os in
8453 solaris2.[0-5] | solaris2.[0-5].*) ;;
8454 *)
8455 # The compiler driver will combine and reorder linker options,
8456 # but understands `-z linker_flag'. GCC discards it without `$wl',
8457 # but is careful enough not to reorder.
8458 # Supported since Solaris 2.6 (maybe 2.5.1?)
8459 if test "$GCC" = yes; then
8460 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8461 else
8462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8463 fi
8464 ;;
8465 esac
8466 link_all_deplibs=yes
8467 ;;
8468
8469 sunos4*)
8470 if test "x$host_vendor" = xsequent; then
8471 # Use $CC to link under sequent, because it throws in some extra .o
8472 # files that make .init and .fini sections work.
8473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8474 else
8475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8476 fi
8477 hardcode_libdir_flag_spec='-L$libdir'
8478 hardcode_direct=yes
8479 hardcode_minus_L=yes
8480 hardcode_shlibpath_var=no
8481 ;;
8482
8483 sysv4)
8484 case $host_vendor in
8485 sni)
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_direct=yes # is this really true???
8488 ;;
8489 siemens)
8490 ## LD is ld it makes a PLAMLIB
8491 ## CC just makes a GrossModule.
8492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8493 reload_cmds='$CC -r -o $output$reload_objs'
8494 hardcode_direct=no
8495 ;;
8496 motorola)
8497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8499 ;;
8500 esac
8501 runpath_var='LD_RUN_PATH'
8502 hardcode_shlibpath_var=no
8503 ;;
8504
8505 sysv4.3*)
8506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8507 hardcode_shlibpath_var=no
8508 export_dynamic_flag_spec='-Bexport'
8509 ;;
8510
8511 sysv4*MP*)
8512 if test -d /usr/nec; then
8513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8514 hardcode_shlibpath_var=no
8515 runpath_var=LD_RUN_PATH
8516 hardcode_runpath_var=yes
8517 ld_shlibs=yes
8518 fi
8519 ;;
8520
8521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8522 no_undefined_flag='${wl}-z,text'
8523 archive_cmds_need_lc=no
8524 hardcode_shlibpath_var=no
8525 runpath_var='LD_RUN_PATH'
8526
8527 if test "$GCC" = yes; then
8528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 else
8531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533 fi
8534 ;;
8535
8536 sysv5* | sco3.2v5* | sco5v6*)
8537 # Note: We can NOT use -z defs as we might desire, because we do not
8538 # link with -lc, and that would cause any symbols used from libc to
8539 # always be unresolved, which means just about no library would
8540 # ever link correctly. If we're not using GNU ld we use -z text
8541 # though, which does catch some bad symbols but isn't as heavy-handed
8542 # as -z defs.
8543 no_undefined_flag='${wl}-z,text'
8544 allow_undefined_flag='${wl}-z,nodefs'
8545 archive_cmds_need_lc=no
8546 hardcode_shlibpath_var=no
8547 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8548 hardcode_libdir_separator=':'
8549 link_all_deplibs=yes
8550 export_dynamic_flag_spec='${wl}-Bexport'
8551 runpath_var='LD_RUN_PATH'
8552
8553 if test "$GCC" = yes; then
8554 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556 else
8557 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 fi
8560 ;;
8561
8562 uts4*)
8563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_libdir_flag_spec='-L$libdir'
8565 hardcode_shlibpath_var=no
8566 ;;
8567
8568 *)
8569 ld_shlibs=no
8570 ;;
8571 esac
8572 fi
8573
8574 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8575 echo "${ECHO_T}$ld_shlibs" >&6; }
8576 test "$ld_shlibs" = no && can_build_shared=no
8577
8578 #
8579 # Do we need to explicitly link libc?
8580 #
8581 case "x$archive_cmds_need_lc" in
8582 x|xyes)
8583 # Assume -lc should be added
8584 archive_cmds_need_lc=yes
8585
8586 if test "$enable_shared" = yes && test "$GCC" = yes; then
8587 case $archive_cmds in
8588 *'~'*)
8589 # FIXME: we may have to deal with multi-command sequences.
8590 ;;
8591 '$CC '*)
8592 # Test whether the compiler implicitly links with -lc since on some
8593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8594 # to ld, don't add -lc before -lgcc.
8595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8597 $rm conftest*
8598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8599
8600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8601 (eval $ac_compile) 2>&5
8602 ac_status=$?
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } 2>conftest.err; then
8605 soname=conftest
8606 lib=conftest
8607 libobjs=conftest.$ac_objext
8608 deplibs=
8609 wl=$lt_prog_compiler_wl
8610 pic_flag=$lt_prog_compiler_pic
8611 compiler_flags=-v
8612 linker_flags=-v
8613 verstring=
8614 output_objdir=.
8615 libname=conftest
8616 lt_save_allow_undefined_flag=$allow_undefined_flag
8617 allow_undefined_flag=
8618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8619 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }
8623 then
8624 archive_cmds_need_lc=no
8625 else
8626 archive_cmds_need_lc=yes
8627 fi
8628 allow_undefined_flag=$lt_save_allow_undefined_flag
8629 else
8630 cat conftest.err 1>&5
8631 fi
8632 $rm conftest*
8633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8634 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8635 ;;
8636 esac
8637 fi
8638 ;;
8639 esac
8640
8641 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8642 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8643 library_names_spec=
8644 libname_spec='lib$name'
8645 soname_spec=
8646 shrext_cmds=".so"
8647 postinstall_cmds=
8648 postuninstall_cmds=
8649 finish_cmds=
8650 finish_eval=
8651 shlibpath_var=
8652 shlibpath_overrides_runpath=unknown
8653 version_type=none
8654 dynamic_linker="$host_os ld.so"
8655 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8656
8657 if test "$GCC" = yes; then
8658 case $host_os in
8659 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8660 *) lt_awk_arg="/^libraries:/" ;;
8661 esac
8662 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8663 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8664 # if the path contains ";" then we assume it to be the separator
8665 # otherwise default to the standard path separator (i.e. ":") - it is
8666 # assumed that no part of a normal pathname contains ";" but that should
8667 # okay in the real world where ";" in dirpaths is itself problematic.
8668 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8669 else
8670 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8671 fi
8672 # Ok, now we have the path, separated by spaces, we can step through it
8673 # and add multilib dir if necessary.
8674 lt_tmp_lt_search_path_spec=
8675 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8676 for lt_sys_path in $lt_search_path_spec; do
8677 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8678 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8679 else
8680 test -d "$lt_sys_path" && \
8681 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8682 fi
8683 done
8684 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8685 BEGIN {RS=" "; FS="/|\n";} {
8686 lt_foo="";
8687 lt_count=0;
8688 for (lt_i = NF; lt_i > 0; lt_i--) {
8689 if ($lt_i != "" && $lt_i != ".") {
8690 if ($lt_i == "..") {
8691 lt_count++;
8692 } else {
8693 if (lt_count == 0) {
8694 lt_foo="/" $lt_i lt_foo;
8695 } else {
8696 lt_count--;
8697 }
8698 }
8699 }
8700 }
8701 if (lt_foo != "") { lt_freq[lt_foo]++; }
8702 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8703 }'`
8704 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8705 else
8706 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8707 fi
8708 need_lib_prefix=unknown
8709 hardcode_into_libs=no
8710
8711 # when you set need_version to no, make sure it does not cause -set_version
8712 # flags to be left without arguments
8713 need_version=unknown
8714
8715 case $host_os in
8716 aix3*)
8717 version_type=linux
8718 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8719 shlibpath_var=LIBPATH
8720
8721 # AIX 3 has no versioning support, so we append a major version to the name.
8722 soname_spec='${libname}${release}${shared_ext}$major'
8723 ;;
8724
8725 aix4* | aix5*)
8726 version_type=linux
8727 need_lib_prefix=no
8728 need_version=no
8729 hardcode_into_libs=yes
8730 if test "$host_cpu" = ia64; then
8731 # AIX 5 supports IA64
8732 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8733 shlibpath_var=LD_LIBRARY_PATH
8734 else
8735 # With GCC up to 2.95.x, collect2 would create an import file
8736 # for dependence libraries. The import file would start with
8737 # the line `#! .'. This would cause the generated library to
8738 # depend on `.', always an invalid library. This was fixed in
8739 # development snapshots of GCC prior to 3.0.
8740 case $host_os in
8741 aix4 | aix4.[01] | aix4.[01].*)
8742 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8743 echo ' yes '
8744 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8745 :
8746 else
8747 can_build_shared=no
8748 fi
8749 ;;
8750 esac
8751 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8752 # soname into executable. Probably we can add versioning support to
8753 # collect2, so additional links can be useful in future.
8754 if test "$aix_use_runtimelinking" = yes; then
8755 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8756 # instead of lib<name>.a to let people know that these are not
8757 # typical AIX shared libraries.
8758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8759 else
8760 # We preserve .a as extension for shared libraries through AIX4.2
8761 # and later when we are not doing run time linking.
8762 library_names_spec='${libname}${release}.a $libname.a'
8763 soname_spec='${libname}${release}${shared_ext}$major'
8764 fi
8765 shlibpath_var=LIBPATH
8766 fi
8767 ;;
8768
8769 amigaos*)
8770 library_names_spec='$libname.ixlibrary $libname.a'
8771 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8772 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'
8773 ;;
8774
8775 beos*)
8776 library_names_spec='${libname}${shared_ext}'
8777 dynamic_linker="$host_os ld.so"
8778 shlibpath_var=LIBRARY_PATH
8779 ;;
8780
8781 bsdi[45]*)
8782 version_type=linux
8783 need_version=no
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8790 # the default ld.so.conf also contains /usr/contrib/lib and
8791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8792 # libtool to hard-code these into programs
8793 ;;
8794
8795 cygwin* | mingw* | pw32*)
8796 version_type=windows
8797 shrext_cmds=".dll"
8798 need_version=no
8799 need_lib_prefix=no
8800
8801 case $GCC,$host_os in
8802 yes,cygwin* | yes,mingw* | yes,pw32*)
8803 library_names_spec='$libname.dll.a'
8804 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8805 postinstall_cmds='base_file=`basename \${file}`~
8806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8807 dldir=$destdir/`dirname \$dlpath`~
8808 test -d \$dldir || mkdir -p \$dldir~
8809 $install_prog $dir/$dlname \$dldir/$dlname~
8810 chmod a+x \$dldir/$dlname'
8811 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8812 dlpath=$dir/\$dldll~
8813 $rm \$dlpath'
8814 shlibpath_overrides_runpath=yes
8815
8816 case $host_os in
8817 cygwin*)
8818 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8819 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8820 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8821 ;;
8822 mingw*)
8823 # MinGW DLLs use traditional 'lib' prefix
8824 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8826 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8827 # It is most probably a Windows format PATH printed by
8828 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8829 # path with ; separators, and with drive letters. We can handle the
8830 # drive letters (cygwin fileutils understands them), so leave them,
8831 # especially as we might pass files found there to a mingw objdump,
8832 # which wouldn't understand a cygwinified path. Ahh.
8833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8834 else
8835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8836 fi
8837 ;;
8838 pw32*)
8839 # pw32 DLLs use 'pw' prefix rather than 'lib'
8840 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841 ;;
8842 esac
8843 ;;
8844
8845 *)
8846 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8847 ;;
8848 esac
8849 dynamic_linker='Win32 ld.exe'
8850 # FIXME: first we should search . and the directory the executable is in
8851 shlibpath_var=PATH
8852 ;;
8853
8854 darwin* | rhapsody*)
8855 dynamic_linker="$host_os dyld"
8856 version_type=darwin
8857 need_lib_prefix=no
8858 need_version=no
8859 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8860 soname_spec='${libname}${release}${major}$shared_ext'
8861 shlibpath_overrides_runpath=yes
8862 shlibpath_var=DYLD_LIBRARY_PATH
8863 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8864
8865 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8867 ;;
8868
8869 dgux*)
8870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 shlibpath_var=LD_LIBRARY_PATH
8876 ;;
8877
8878 freebsd1*)
8879 dynamic_linker=no
8880 ;;
8881
8882 freebsd* | dragonfly*)
8883 # DragonFly does not have aout. When/if they implement a new
8884 # versioning mechanism, adjust this.
8885 if test -x /usr/bin/objformat; then
8886 objformat=`/usr/bin/objformat`
8887 else
8888 case $host_os in
8889 freebsd[123]*) objformat=aout ;;
8890 *) objformat=elf ;;
8891 esac
8892 fi
8893 version_type=freebsd-$objformat
8894 case $version_type in
8895 freebsd-elf*)
8896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8897 need_version=no
8898 need_lib_prefix=no
8899 ;;
8900 freebsd-*)
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8902 need_version=yes
8903 ;;
8904 esac
8905 shlibpath_var=LD_LIBRARY_PATH
8906 case $host_os in
8907 freebsd2*)
8908 shlibpath_overrides_runpath=yes
8909 ;;
8910 freebsd3.[01]* | freebsdelf3.[01]*)
8911 shlibpath_overrides_runpath=yes
8912 hardcode_into_libs=yes
8913 ;;
8914 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8915 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8916 shlibpath_overrides_runpath=no
8917 hardcode_into_libs=yes
8918 ;;
8919 *) # from 4.6 on, and DragonFly
8920 shlibpath_overrides_runpath=yes
8921 hardcode_into_libs=yes
8922 ;;
8923 esac
8924 ;;
8925
8926 gnu*)
8927 version_type=linux
8928 need_lib_prefix=no
8929 need_version=no
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 hardcode_into_libs=yes
8934 ;;
8935
8936 hpux9* | hpux10* | hpux11*)
8937 # Give a soname corresponding to the major version so that dld.sl refuses to
8938 # link against other versions.
8939 version_type=sunos
8940 need_lib_prefix=no
8941 need_version=no
8942 case $host_cpu in
8943 ia64*)
8944 shrext_cmds='.so'
8945 hardcode_into_libs=yes
8946 dynamic_linker="$host_os dld.so"
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 if test "X$HPUX_IA64_MODE" = X32; then
8952 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8953 else
8954 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8955 fi
8956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8957 ;;
8958 hppa*64*)
8959 shrext_cmds='.sl'
8960 hardcode_into_libs=yes
8961 dynamic_linker="$host_os dld.sl"
8962 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 soname_spec='${libname}${release}${shared_ext}$major'
8966 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8968 ;;
8969 *)
8970 shrext_cmds='.sl'
8971 dynamic_linker="$host_os dld.sl"
8972 shlibpath_var=SHLIB_PATH
8973 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 ;;
8977 esac
8978 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8979 postinstall_cmds='chmod 555 $lib'
8980 ;;
8981
8982 interix[3-9]*)
8983 version_type=linux
8984 need_lib_prefix=no
8985 need_version=no
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=no
8991 hardcode_into_libs=yes
8992 ;;
8993
8994 irix5* | irix6* | nonstopux*)
8995 case $host_os in
8996 nonstopux*) version_type=nonstopux ;;
8997 *)
8998 if test "$lt_cv_prog_gnu_ld" = yes; then
8999 version_type=linux
9000 else
9001 version_type=irix
9002 fi ;;
9003 esac
9004 need_lib_prefix=no
9005 need_version=no
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9008 case $host_os in
9009 irix5* | nonstopux*)
9010 libsuff= shlibsuff=
9011 ;;
9012 *)
9013 case $LD in # libtool.m4 will add one of these switches to LD
9014 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9015 libsuff= shlibsuff= libmagic=32-bit;;
9016 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9017 libsuff=32 shlibsuff=N32 libmagic=N32;;
9018 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9019 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9020 *) libsuff= shlibsuff= libmagic=never-match;;
9021 esac
9022 ;;
9023 esac
9024 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9025 shlibpath_overrides_runpath=no
9026 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9027 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9028 hardcode_into_libs=yes
9029 ;;
9030
9031 # No shared lib support for Linux oldld, aout, or coff.
9032 linux*oldld* | linux*aout* | linux*coff*)
9033 dynamic_linker=no
9034 ;;
9035
9036 # This must be Linux ELF.
9037 linux* | k*bsd*-gnu)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9042 soname_spec='${libname}${release}${shared_ext}$major'
9043 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=no
9046 # This implies no fast_install, which is unacceptable.
9047 # Some rework will be needed to allow for fast_install
9048 # before this can be enabled.
9049 hardcode_into_libs=yes
9050 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9051 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9052
9053 # Append ld.so.conf contents to the search path
9054 if test -f /etc/ld.so.conf; then
9055 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9056 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9057 fi
9058
9059 # We used to test for /lib/ld.so.1 and disable shared libraries on
9060 # powerpc, because MkLinux only supported shared libraries with the
9061 # GNU dynamic linker. Since this was broken with cross compilers,
9062 # most powerpc-linux boxes support dynamic linking these days and
9063 # people can always --disable-shared, the test was removed, and we
9064 # assume the GNU/Linux dynamic linker is in use.
9065 dynamic_linker='GNU/Linux ld.so'
9066 ;;
9067
9068 netbsd*)
9069 version_type=sunos
9070 need_lib_prefix=no
9071 need_version=no
9072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9075 dynamic_linker='NetBSD (a.out) ld.so'
9076 else
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 dynamic_linker='NetBSD ld.elf_so'
9080 fi
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 hardcode_into_libs=yes
9084 ;;
9085
9086 newsos6)
9087 version_type=linux
9088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 shlibpath_overrides_runpath=yes
9091 ;;
9092
9093 nto-qnx*)
9094 version_type=linux
9095 need_lib_prefix=no
9096 need_version=no
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 shlibpath_overrides_runpath=yes
9101 ;;
9102
9103 openbsd*)
9104 version_type=sunos
9105 sys_lib_dlsearch_path_spec="/usr/lib"
9106 need_lib_prefix=no
9107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9108 case $host_os in
9109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9110 *) need_version=no ;;
9111 esac
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9116 case $host_os in
9117 openbsd2.[89] | openbsd2.[89].*)
9118 shlibpath_overrides_runpath=no
9119 ;;
9120 *)
9121 shlibpath_overrides_runpath=yes
9122 ;;
9123 esac
9124 else
9125 shlibpath_overrides_runpath=yes
9126 fi
9127 ;;
9128
9129 os2*)
9130 libname_spec='$name'
9131 shrext_cmds=".dll"
9132 need_lib_prefix=no
9133 library_names_spec='$libname${shared_ext} $libname.a'
9134 dynamic_linker='OS/2 ld.exe'
9135 shlibpath_var=LIBPATH
9136 ;;
9137
9138 osf3* | osf4* | osf5*)
9139 version_type=osf
9140 need_lib_prefix=no
9141 need_version=no
9142 soname_spec='${libname}${release}${shared_ext}$major'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9147 ;;
9148
9149 rdos*)
9150 dynamic_linker=no
9151 ;;
9152
9153 solaris*)
9154 version_type=linux
9155 need_lib_prefix=no
9156 need_version=no
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9158 soname_spec='${libname}${release}${shared_ext}$major'
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes
9161 hardcode_into_libs=yes
9162 # ldd complains unless libraries are executable
9163 postinstall_cmds='chmod +x $lib'
9164 ;;
9165
9166 sunos4*)
9167 version_type=sunos
9168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9169 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 if test "$with_gnu_ld" = yes; then
9173 need_lib_prefix=no
9174 fi
9175 need_version=yes
9176 ;;
9177
9178 sysv4 | sysv4.3*)
9179 version_type=linux
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 case $host_vendor in
9184 sni)
9185 shlibpath_overrides_runpath=no
9186 need_lib_prefix=no
9187 export_dynamic_flag_spec='${wl}-Blargedynsym'
9188 runpath_var=LD_RUN_PATH
9189 ;;
9190 siemens)
9191 need_lib_prefix=no
9192 ;;
9193 motorola)
9194 need_lib_prefix=no
9195 need_version=no
9196 shlibpath_overrides_runpath=no
9197 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9198 ;;
9199 esac
9200 ;;
9201
9202 sysv4*MP*)
9203 if test -d /usr/nec ;then
9204 version_type=linux
9205 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9206 soname_spec='$libname${shared_ext}.$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 fi
9209 ;;
9210
9211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9212 version_type=freebsd-elf
9213 need_lib_prefix=no
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 hardcode_into_libs=yes
9219 if test "$with_gnu_ld" = yes; then
9220 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9221 shlibpath_overrides_runpath=no
9222 else
9223 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9224 shlibpath_overrides_runpath=yes
9225 case $host_os in
9226 sco3.2v5*)
9227 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9228 ;;
9229 esac
9230 fi
9231 sys_lib_dlsearch_path_spec='/usr/lib'
9232 ;;
9233
9234 uts4*)
9235 version_type=linux
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 ;;
9240
9241 *)
9242 dynamic_linker=no
9243 ;;
9244 esac
9245 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9246 echo "${ECHO_T}$dynamic_linker" >&6; }
9247 test "$dynamic_linker" = no && can_build_shared=no
9248
9249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9250 if test "$GCC" = yes; then
9251 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9252 fi
9253
9254 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9255 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9256 hardcode_action=
9257 if test -n "$hardcode_libdir_flag_spec" || \
9258 test -n "$runpath_var" || \
9259 test "X$hardcode_automatic" = "Xyes" ; then
9260
9261 # We can hardcode non-existant directories.
9262 if test "$hardcode_direct" != no &&
9263 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9264 # have to relink, otherwise we might link with an installed library
9265 # when we should be linking with a yet-to-be-installed one
9266 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9267 test "$hardcode_minus_L" != no; then
9268 # Linking always hardcodes the temporary library directory.
9269 hardcode_action=relink
9270 else
9271 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9272 hardcode_action=immediate
9273 fi
9274 else
9275 # We cannot hardcode anything, or else we can only hardcode existing
9276 # directories.
9277 hardcode_action=unsupported
9278 fi
9279 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9280 echo "${ECHO_T}$hardcode_action" >&6; }
9281
9282 if test "$hardcode_action" = relink; then
9283 # Fast installation is not supported
9284 enable_fast_install=no
9285 elif test "$shlibpath_overrides_runpath" = yes ||
9286 test "$enable_shared" = no; then
9287 # Fast installation is not necessary
9288 enable_fast_install=needless
9289 fi
9290
9291 striplib=
9292 old_striplib=
9293 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9294 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9295 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9296 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9297 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9298 { echo "$as_me:$LINENO: result: yes" >&5
9299 echo "${ECHO_T}yes" >&6; }
9300 else
9301 # FIXME - insert some real tests, host_os isn't really good enough
9302 case $host_os in
9303 darwin*)
9304 if test -n "$STRIP" ; then
9305 striplib="$STRIP -x"
9306 old_striplib="$STRIP -S"
9307 { echo "$as_me:$LINENO: result: yes" >&5
9308 echo "${ECHO_T}yes" >&6; }
9309 else
9310 { echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6; }
9312 fi
9313 ;;
9314 *)
9315 { echo "$as_me:$LINENO: result: no" >&5
9316 echo "${ECHO_T}no" >&6; }
9317 ;;
9318 esac
9319 fi
9320
9321 if test "x$enable_dlopen" != xyes; then
9322 enable_dlopen=unknown
9323 enable_dlopen_self=unknown
9324 enable_dlopen_self_static=unknown
9325 else
9326 lt_cv_dlopen=no
9327 lt_cv_dlopen_libs=
9328
9329 case $host_os in
9330 beos*)
9331 lt_cv_dlopen="load_add_on"
9332 lt_cv_dlopen_libs=
9333 lt_cv_dlopen_self=yes
9334 ;;
9335
9336 mingw* | pw32*)
9337 lt_cv_dlopen="LoadLibrary"
9338 lt_cv_dlopen_libs=
9339 ;;
9340
9341 cygwin*)
9342 lt_cv_dlopen="dlopen"
9343 lt_cv_dlopen_libs=
9344 ;;
9345
9346 darwin*)
9347 # if libdl is installed we need to link against it
9348 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9349 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9350 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 else
9353 ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-ldl $LIBS"
9355 cat >conftest.$ac_ext <<_ACEOF
9356 /* confdefs.h. */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h. */
9361
9362 /* Override any GCC internal prototype to avoid an error.
9363 Use char because int might match the return type of a GCC
9364 builtin and then its argument prototype would still apply. */
9365 #ifdef __cplusplus
9366 extern "C"
9367 #endif
9368 char dlopen ();
9369 int
9370 main ()
9371 {
9372 return dlopen ();
9373 ;
9374 return 0;
9375 }
9376 _ACEOF
9377 rm -f conftest.$ac_objext conftest$ac_exeext
9378 if { (ac_try="$ac_link"
9379 case "(($ac_try" in
9380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381 *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384 (eval "$ac_link") 2>conftest.er1
9385 ac_status=$?
9386 grep -v '^ *+' conftest.er1 >conftest.err
9387 rm -f conftest.er1
9388 cat conftest.err >&5
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); } && {
9391 test -z "$ac_c_werror_flag" ||
9392 test ! -s conftest.err
9393 } && test -s conftest$ac_exeext &&
9394 $as_test_x conftest$ac_exeext; then
9395 ac_cv_lib_dl_dlopen=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_cv_lib_dl_dlopen=no
9401 fi
9402
9403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9404 conftest$ac_exeext conftest.$ac_ext
9405 LIBS=$ac_check_lib_save_LIBS
9406 fi
9407 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9408 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9409 if test $ac_cv_lib_dl_dlopen = yes; then
9410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9411 else
9412
9413 lt_cv_dlopen="dyld"
9414 lt_cv_dlopen_libs=
9415 lt_cv_dlopen_self=yes
9416
9417 fi
9418
9419 ;;
9420
9421 *)
9422 { echo "$as_me:$LINENO: checking for shl_load" >&5
9423 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9424 if test "${ac_cv_func_shl_load+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9435 #define shl_load innocuous_shl_load
9436
9437 /* System header to define __stub macros and hopefully few prototypes,
9438 which can conflict with char shl_load (); below.
9439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9440 <limits.h> exists even on freestanding compilers. */
9441
9442 #ifdef __STDC__
9443 # include <limits.h>
9444 #else
9445 # include <assert.h>
9446 #endif
9447
9448 #undef shl_load
9449
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char shl_load ();
9457 /* The GNU C library defines this for functions which it implements
9458 to always fail with ENOSYS. Some functions are actually named
9459 something starting with __ and the normal name is an alias. */
9460 #if defined __stub_shl_load || defined __stub___shl_load
9461 choke me
9462 #endif
9463
9464 int
9465 main ()
9466 {
9467 return shl_load ();
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (ac_try="$ac_link"
9474 case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9477 esac
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_link") 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest$ac_exeext &&
9489 $as_test_x conftest$ac_exeext; then
9490 ac_cv_func_shl_load=yes
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 ac_cv_func_shl_load=no
9496 fi
9497
9498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9499 conftest$ac_exeext conftest.$ac_ext
9500 fi
9501 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9502 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9503 if test $ac_cv_func_shl_load = yes; then
9504 lt_cv_dlopen="shl_load"
9505 else
9506 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9507 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9508 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 ac_check_lib_save_LIBS=$LIBS
9512 LIBS="-ldld $LIBS"
9513 cat >conftest.$ac_ext <<_ACEOF
9514 /* confdefs.h. */
9515 _ACEOF
9516 cat confdefs.h >>conftest.$ac_ext
9517 cat >>conftest.$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519
9520 /* Override any GCC internal prototype to avoid an error.
9521 Use char because int might match the return type of a GCC
9522 builtin and then its argument prototype would still apply. */
9523 #ifdef __cplusplus
9524 extern "C"
9525 #endif
9526 char shl_load ();
9527 int
9528 main ()
9529 {
9530 return shl_load ();
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext &&
9552 $as_test_x conftest$ac_exeext; then
9553 ac_cv_lib_dld_shl_load=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ac_cv_lib_dld_shl_load=no
9559 fi
9560
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562 conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9564 fi
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9566 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9567 if test $ac_cv_lib_dld_shl_load = yes; then
9568 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9569 else
9570 { echo "$as_me:$LINENO: checking for dlopen" >&5
9571 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9572 if test "${ac_cv_func_dlopen+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575 cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h. */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9583 #define dlopen innocuous_dlopen
9584
9585 /* System header to define __stub macros and hopefully few prototypes,
9586 which can conflict with char dlopen (); below.
9587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9588 <limits.h> exists even on freestanding compilers. */
9589
9590 #ifdef __STDC__
9591 # include <limits.h>
9592 #else
9593 # include <assert.h>
9594 #endif
9595
9596 #undef dlopen
9597
9598 /* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9601 #ifdef __cplusplus
9602 extern "C"
9603 #endif
9604 char dlopen ();
9605 /* The GNU C library defines this for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined __stub_dlopen || defined __stub___dlopen
9609 choke me
9610 #endif
9611
9612 int
9613 main ()
9614 {
9615 return dlopen ();
9616 ;
9617 return 0;
9618 }
9619 _ACEOF
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9622 case "(($ac_try" in
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9625 esac
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_link") 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest$ac_exeext &&
9637 $as_test_x conftest$ac_exeext; then
9638 ac_cv_func_dlopen=yes
9639 else
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643 ac_cv_func_dlopen=no
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647 conftest$ac_exeext conftest.$ac_ext
9648 fi
9649 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9650 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9651 if test $ac_cv_func_dlopen = yes; then
9652 lt_cv_dlopen="dlopen"
9653 else
9654 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 ac_check_lib_save_LIBS=$LIBS
9660 LIBS="-ldl $LIBS"
9661 cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h. */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char dlopen ();
9675 int
9676 main ()
9677 {
9678 return dlopen ();
9679 ;
9680 return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
9701 ac_cv_lib_dl_dlopen=yes
9702 else
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9705
9706 ac_cv_lib_dl_dlopen=no
9707 fi
9708
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9712 fi
9713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9714 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9715 if test $ac_cv_lib_dl_dlopen = yes; then
9716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9717 else
9718 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9719 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9720 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 else
9723 ac_check_lib_save_LIBS=$LIBS
9724 LIBS="-lsvld $LIBS"
9725 cat >conftest.$ac_ext <<_ACEOF
9726 /* confdefs.h. */
9727 _ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9735 #ifdef __cplusplus
9736 extern "C"
9737 #endif
9738 char dlopen ();
9739 int
9740 main ()
9741 {
9742 return dlopen ();
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext &&
9764 $as_test_x conftest$ac_exeext; then
9765 ac_cv_lib_svld_dlopen=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_cv_lib_svld_dlopen=no
9771 fi
9772
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774 conftest$ac_exeext conftest.$ac_ext
9775 LIBS=$ac_check_lib_save_LIBS
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9778 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9779 if test $ac_cv_lib_svld_dlopen = yes; then
9780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9781 else
9782 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9783 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9784 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-ldld $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795
9796 /* Override any GCC internal prototype to avoid an error.
9797 Use char because int might match the return type of a GCC
9798 builtin and then its argument prototype would still apply. */
9799 #ifdef __cplusplus
9800 extern "C"
9801 #endif
9802 char dld_link ();
9803 int
9804 main ()
9805 {
9806 return dld_link ();
9807 ;
9808 return 0;
9809 }
9810 _ACEOF
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (ac_try="$ac_link"
9813 case "(($ac_try" in
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9816 esac
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9819 ac_status=$?
9820 grep -v '^ *+' conftest.er1 >conftest.err
9821 rm -f conftest.er1
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } && {
9825 test -z "$ac_c_werror_flag" ||
9826 test ! -s conftest.err
9827 } && test -s conftest$ac_exeext &&
9828 $as_test_x conftest$ac_exeext; then
9829 ac_cv_lib_dld_dld_link=yes
9830 else
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_cv_lib_dld_dld_link=no
9835 fi
9836
9837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LIBS=$ac_check_lib_save_LIBS
9840 fi
9841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9842 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9843 if test $ac_cv_lib_dld_dld_link = yes; then
9844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9845 fi
9846
9847
9848 fi
9849
9850
9851 fi
9852
9853
9854 fi
9855
9856
9857 fi
9858
9859
9860 fi
9861
9862 ;;
9863 esac
9864
9865 if test "x$lt_cv_dlopen" != xno; then
9866 enable_dlopen=yes
9867 else
9868 enable_dlopen=no
9869 fi
9870
9871 case $lt_cv_dlopen in
9872 dlopen)
9873 save_CPPFLAGS="$CPPFLAGS"
9874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9875
9876 save_LDFLAGS="$LDFLAGS"
9877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9878
9879 save_LIBS="$LIBS"
9880 LIBS="$lt_cv_dlopen_libs $LIBS"
9881
9882 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9883 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9884 if test "${lt_cv_dlopen_self+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887 if test "$cross_compiling" = yes; then :
9888 lt_cv_dlopen_self=cross
9889 else
9890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9891 lt_status=$lt_dlunknown
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9893 "configure"
9894 #include "confdefs.h"
9895
9896 #if HAVE_DLFCN_H
9897 #include <dlfcn.h>
9898 #endif
9899
9900 #include <stdio.h>
9901
9902 #ifdef RTLD_GLOBAL
9903 # define LT_DLGLOBAL RTLD_GLOBAL
9904 #else
9905 # ifdef DL_GLOBAL
9906 # define LT_DLGLOBAL DL_GLOBAL
9907 # else
9908 # define LT_DLGLOBAL 0
9909 # endif
9910 #endif
9911
9912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9913 find out it does not work in some platform. */
9914 #ifndef LT_DLLAZY_OR_NOW
9915 # ifdef RTLD_LAZY
9916 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9917 # else
9918 # ifdef DL_LAZY
9919 # define LT_DLLAZY_OR_NOW DL_LAZY
9920 # else
9921 # ifdef RTLD_NOW
9922 # define LT_DLLAZY_OR_NOW RTLD_NOW
9923 # else
9924 # ifdef DL_NOW
9925 # define LT_DLLAZY_OR_NOW DL_NOW
9926 # else
9927 # define LT_DLLAZY_OR_NOW 0
9928 # endif
9929 # endif
9930 # endif
9931 # endif
9932 #endif
9933
9934 #ifdef __cplusplus
9935 extern "C" void exit (int);
9936 #endif
9937
9938 void fnord() { int i=42;}
9939 int main ()
9940 {
9941 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9942 int status = $lt_dlunknown;
9943
9944 if (self)
9945 {
9946 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9947 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9948 /* dlclose (self); */
9949 }
9950 else
9951 puts (dlerror ());
9952
9953 exit (status);
9954 }
9955 EOF
9956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9957 (eval $ac_link) 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9961 (./conftest; exit; ) >&5 2>/dev/null
9962 lt_status=$?
9963 case x$lt_status in
9964 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9965 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9966 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9967 esac
9968 else :
9969 # compilation failed
9970 lt_cv_dlopen_self=no
9971 fi
9972 fi
9973 rm -fr conftest*
9974
9975
9976 fi
9977 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9978 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9979
9980 if test "x$lt_cv_dlopen_self" = xyes; then
9981 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9982 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9983 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9984 if test "${lt_cv_dlopen_self_static+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 else
9987 if test "$cross_compiling" = yes; then :
9988 lt_cv_dlopen_self_static=cross
9989 else
9990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9991 lt_status=$lt_dlunknown
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9993 "configure"
9994 #include "confdefs.h"
9995
9996 #if HAVE_DLFCN_H
9997 #include <dlfcn.h>
9998 #endif
9999
10000 #include <stdio.h>
10001
10002 #ifdef RTLD_GLOBAL
10003 # define LT_DLGLOBAL RTLD_GLOBAL
10004 #else
10005 # ifdef DL_GLOBAL
10006 # define LT_DLGLOBAL DL_GLOBAL
10007 # else
10008 # define LT_DLGLOBAL 0
10009 # endif
10010 #endif
10011
10012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10013 find out it does not work in some platform. */
10014 #ifndef LT_DLLAZY_OR_NOW
10015 # ifdef RTLD_LAZY
10016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10017 # else
10018 # ifdef DL_LAZY
10019 # define LT_DLLAZY_OR_NOW DL_LAZY
10020 # else
10021 # ifdef RTLD_NOW
10022 # define LT_DLLAZY_OR_NOW RTLD_NOW
10023 # else
10024 # ifdef DL_NOW
10025 # define LT_DLLAZY_OR_NOW DL_NOW
10026 # else
10027 # define LT_DLLAZY_OR_NOW 0
10028 # endif
10029 # endif
10030 # endif
10031 # endif
10032 #endif
10033
10034 #ifdef __cplusplus
10035 extern "C" void exit (int);
10036 #endif
10037
10038 void fnord() { int i=42;}
10039 int main ()
10040 {
10041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10042 int status = $lt_dlunknown;
10043
10044 if (self)
10045 {
10046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10047 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10048 /* dlclose (self); */
10049 }
10050 else
10051 puts (dlerror ());
10052
10053 exit (status);
10054 }
10055 EOF
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10061 (./conftest; exit; ) >&5 2>/dev/null
10062 lt_status=$?
10063 case x$lt_status in
10064 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10065 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10066 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10067 esac
10068 else :
10069 # compilation failed
10070 lt_cv_dlopen_self_static=no
10071 fi
10072 fi
10073 rm -fr conftest*
10074
10075
10076 fi
10077 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10078 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10079 fi
10080
10081 CPPFLAGS="$save_CPPFLAGS"
10082 LDFLAGS="$save_LDFLAGS"
10083 LIBS="$save_LIBS"
10084 ;;
10085 esac
10086
10087 case $lt_cv_dlopen_self in
10088 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10089 *) enable_dlopen_self=unknown ;;
10090 esac
10091
10092 case $lt_cv_dlopen_self_static in
10093 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10094 *) enable_dlopen_self_static=unknown ;;
10095 esac
10096 fi
10097
10098
10099 # Report which library types will actually be built
10100 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10101 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10102 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10103 echo "${ECHO_T}$can_build_shared" >&6; }
10104
10105 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10106 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10107 test "$can_build_shared" = "no" && enable_shared=no
10108
10109 # On AIX, shared libraries and static libraries use the same namespace, and
10110 # are all built from PIC.
10111 case $host_os in
10112 aix3*)
10113 test "$enable_shared" = yes && enable_static=no
10114 if test -n "$RANLIB"; then
10115 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10116 postinstall_cmds='$RANLIB $lib'
10117 fi
10118 ;;
10119
10120 aix4* | aix5*)
10121 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10122 test "$enable_shared" = yes && enable_static=no
10123 fi
10124 ;;
10125 esac
10126 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10127 echo "${ECHO_T}$enable_shared" >&6; }
10128
10129 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10130 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10131 # Make sure either enable_shared or enable_static is yes.
10132 test "$enable_shared" = yes || enable_static=yes
10133 { echo "$as_me:$LINENO: result: $enable_static" >&5
10134 echo "${ECHO_T}$enable_static" >&6; }
10135
10136 # The else clause should only fire when bootstrapping the
10137 # libtool distribution, otherwise you forgot to ship ltmain.sh
10138 # with your package, and you will get complaints that there are
10139 # no rules to generate ltmain.sh.
10140 if test -f "$ltmain"; then
10141 # See if we are running on zsh, and set the options which allow our commands through
10142 # without removal of \ escapes.
10143 if test -n "${ZSH_VERSION+set}" ; then
10144 setopt NO_GLOB_SUBST
10145 fi
10146 # Now quote all the things that may contain metacharacters while being
10147 # careful not to overquote the AC_SUBSTed values. We take copies of the
10148 # variables and quote the copies for generation of the libtool script.
10149 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10150 SED SHELL STRIP \
10151 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10152 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10153 deplibs_check_method reload_flag reload_cmds need_locks \
10154 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10155 lt_cv_sys_global_symbol_to_c_name_address \
10156 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10157 old_postinstall_cmds old_postuninstall_cmds \
10158 compiler \
10159 CC \
10160 LD \
10161 lt_prog_compiler_wl \
10162 lt_prog_compiler_pic \
10163 lt_prog_compiler_static \
10164 lt_prog_compiler_no_builtin_flag \
10165 export_dynamic_flag_spec \
10166 thread_safe_flag_spec \
10167 whole_archive_flag_spec \
10168 enable_shared_with_static_runtimes \
10169 old_archive_cmds \
10170 old_archive_from_new_cmds \
10171 predep_objects \
10172 postdep_objects \
10173 predeps \
10174 postdeps \
10175 compiler_lib_search_path \
10176 archive_cmds \
10177 archive_expsym_cmds \
10178 postinstall_cmds \
10179 postuninstall_cmds \
10180 old_archive_from_expsyms_cmds \
10181 allow_undefined_flag \
10182 no_undefined_flag \
10183 export_symbols_cmds \
10184 hardcode_libdir_flag_spec \
10185 hardcode_libdir_flag_spec_ld \
10186 hardcode_libdir_separator \
10187 hardcode_automatic \
10188 module_cmds \
10189 module_expsym_cmds \
10190 lt_cv_prog_compiler_c_o \
10191 fix_srcfile_path \
10192 exclude_expsyms \
10193 include_expsyms; do
10194
10195 case $var in
10196 old_archive_cmds | \
10197 old_archive_from_new_cmds | \
10198 archive_cmds | \
10199 archive_expsym_cmds | \
10200 module_cmds | \
10201 module_expsym_cmds | \
10202 old_archive_from_expsyms_cmds | \
10203 export_symbols_cmds | \
10204 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10205 postinstall_cmds | postuninstall_cmds | \
10206 old_postinstall_cmds | old_postuninstall_cmds | \
10207 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10208 # Double-quote double-evaled strings.
10209 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10210 ;;
10211 *)
10212 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10213 ;;
10214 esac
10215 done
10216
10217 case $lt_echo in
10218 *'\$0 --fallback-echo"')
10219 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10220 ;;
10221 esac
10222
10223 cfgfile="${ofile}T"
10224 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10225 $rm -f "$cfgfile"
10226 { echo "$as_me:$LINENO: creating $ofile" >&5
10227 echo "$as_me: creating $ofile" >&6;}
10228
10229 cat <<__EOF__ >> "$cfgfile"
10230 #! $SHELL
10231
10232 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10233 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10234 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10235 #
10236 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10237 # Free Software Foundation, Inc.
10238 #
10239 # This file is part of GNU Libtool:
10240 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10241 #
10242 # This program is free software; you can redistribute it and/or modify
10243 # it under the terms of the GNU General Public License as published by
10244 # the Free Software Foundation; either version 2 of the License, or
10245 # (at your option) any later version.
10246 #
10247 # This program is distributed in the hope that it will be useful, but
10248 # WITHOUT ANY WARRANTY; without even the implied warranty of
10249 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10250 # General Public License for more details.
10251 #
10252 # You should have received a copy of the GNU General Public License
10253 # along with this program; if not, write to the Free Software
10254 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10255 #
10256 # As a special exception to the GNU General Public License, if you
10257 # distribute this file as part of a program that contains a
10258 # configuration script generated by Autoconf, you may include it under
10259 # the same distribution terms that you use for the rest of that program.
10260
10261 # A sed program that does not truncate output.
10262 SED=$lt_SED
10263
10264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10265 Xsed="$SED -e 1s/^X//"
10266
10267 # The HP-UX ksh and POSIX shell print the target directory to stdout
10268 # if CDPATH is set.
10269 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10270
10271 # The names of the tagged configurations supported by this script.
10272 available_tags=
10273
10274 # ### BEGIN LIBTOOL CONFIG
10275
10276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10277
10278 # Shell to use when invoking shell scripts.
10279 SHELL=$lt_SHELL
10280
10281 # Whether or not to build shared libraries.
10282 build_libtool_libs=$enable_shared
10283
10284 # Whether or not to build static libraries.
10285 build_old_libs=$enable_static
10286
10287 # Whether or not to add -lc for building shared libraries.
10288 build_libtool_need_lc=$archive_cmds_need_lc
10289
10290 # Whether or not to disallow shared libs when runtime libs are static
10291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10292
10293 # Whether or not to optimize for fast installation.
10294 fast_install=$enable_fast_install
10295
10296 # The host system.
10297 host_alias=$host_alias
10298 host=$host
10299 host_os=$host_os
10300
10301 # The build system.
10302 build_alias=$build_alias
10303 build=$build
10304 build_os=$build_os
10305
10306 # An echo program that does not interpret backslashes.
10307 echo=$lt_echo
10308
10309 # The archiver.
10310 AR=$lt_AR
10311 AR_FLAGS=$lt_AR_FLAGS
10312
10313 # A C compiler.
10314 LTCC=$lt_LTCC
10315
10316 # LTCC compiler flags.
10317 LTCFLAGS=$lt_LTCFLAGS
10318
10319 # A language-specific compiler.
10320 CC=$lt_compiler
10321
10322 # Is the compiler the GNU C compiler?
10323 with_gcc=$GCC
10324
10325 # An ERE matcher.
10326 EGREP=$lt_EGREP
10327
10328 # The linker used to build libraries.
10329 LD=$lt_LD
10330
10331 # Whether we need hard or soft links.
10332 LN_S=$lt_LN_S
10333
10334 # A BSD-compatible nm program.
10335 NM=$lt_NM
10336
10337 # A symbol stripping program
10338 STRIP=$lt_STRIP
10339
10340 # Used to examine libraries when file_magic_cmd begins "file"
10341 MAGIC_CMD=$MAGIC_CMD
10342
10343 # Used on cygwin: DLL creation program.
10344 DLLTOOL="$DLLTOOL"
10345
10346 # Used on cygwin: object dumper.
10347 OBJDUMP="$OBJDUMP"
10348
10349 # Used on cygwin: assembler.
10350 AS="$AS"
10351
10352 # The name of the directory that contains temporary libtool files.
10353 objdir=$objdir
10354
10355 # How to create reloadable object files.
10356 reload_flag=$lt_reload_flag
10357 reload_cmds=$lt_reload_cmds
10358
10359 # How to pass a linker flag through the compiler.
10360 wl=$lt_lt_prog_compiler_wl
10361
10362 # Object file suffix (normally "o").
10363 objext="$ac_objext"
10364
10365 # Old archive suffix (normally "a").
10366 libext="$libext"
10367
10368 # Shared library suffix (normally ".so").
10369 shrext_cmds='$shrext_cmds'
10370
10371 # Executable file suffix (normally "").
10372 exeext="$exeext"
10373
10374 # Additional compiler flags for building library objects.
10375 pic_flag=$lt_lt_prog_compiler_pic
10376 pic_mode=$pic_mode
10377
10378 # What is the maximum length of a command?
10379 max_cmd_len=$lt_cv_sys_max_cmd_len
10380
10381 # Does compiler simultaneously support -c and -o options?
10382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10383
10384 # Must we lock files when doing compilation?
10385 need_locks=$lt_need_locks
10386
10387 # Do we need the lib prefix for modules?
10388 need_lib_prefix=$need_lib_prefix
10389
10390 # Do we need a version for libraries?
10391 need_version=$need_version
10392
10393 # Whether dlopen is supported.
10394 dlopen_support=$enable_dlopen
10395
10396 # Whether dlopen of programs is supported.
10397 dlopen_self=$enable_dlopen_self
10398
10399 # Whether dlopen of statically linked programs is supported.
10400 dlopen_self_static=$enable_dlopen_self_static
10401
10402 # Compiler flag to prevent dynamic linking.
10403 link_static_flag=$lt_lt_prog_compiler_static
10404
10405 # Compiler flag to turn off builtin functions.
10406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10407
10408 # Compiler flag to allow reflexive dlopens.
10409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10410
10411 # Compiler flag to generate shared objects directly from archives.
10412 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10413
10414 # Compiler flag to generate thread-safe objects.
10415 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10416
10417 # Library versioning type.
10418 version_type=$version_type
10419
10420 # Format of library name prefix.
10421 libname_spec=$lt_libname_spec
10422
10423 # List of archive names. First name is the real one, the rest are links.
10424 # The last name is the one that the linker finds with -lNAME.
10425 library_names_spec=$lt_library_names_spec
10426
10427 # The coded name of the library, if different from the real name.
10428 soname_spec=$lt_soname_spec
10429
10430 # Commands used to build and install an old-style archive.
10431 RANLIB=$lt_RANLIB
10432 old_archive_cmds=$lt_old_archive_cmds
10433 old_postinstall_cmds=$lt_old_postinstall_cmds
10434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10435
10436 # Create an old-style archive from a shared archive.
10437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10438
10439 # Create a temporary old-style archive to link instead of a shared archive.
10440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10441
10442 # Commands used to build and install a shared archive.
10443 archive_cmds=$lt_archive_cmds
10444 archive_expsym_cmds=$lt_archive_expsym_cmds
10445 postinstall_cmds=$lt_postinstall_cmds
10446 postuninstall_cmds=$lt_postuninstall_cmds
10447
10448 # Commands used to build a loadable module (assumed same as above if empty)
10449 module_cmds=$lt_module_cmds
10450 module_expsym_cmds=$lt_module_expsym_cmds
10451
10452 # Commands to strip libraries.
10453 old_striplib=$lt_old_striplib
10454 striplib=$lt_striplib
10455
10456 # Dependencies to place before the objects being linked to create a
10457 # shared library.
10458 predep_objects=$lt_predep_objects
10459
10460 # Dependencies to place after the objects being linked to create a
10461 # shared library.
10462 postdep_objects=$lt_postdep_objects
10463
10464 # Dependencies to place before the objects being linked to create a
10465 # shared library.
10466 predeps=$lt_predeps
10467
10468 # Dependencies to place after the objects being linked to create a
10469 # shared library.
10470 postdeps=$lt_postdeps
10471
10472 # The library search path used internally by the compiler when linking
10473 # a shared library.
10474 compiler_lib_search_path=$lt_compiler_lib_search_path
10475
10476 # Method to check whether dependent libraries are shared objects.
10477 deplibs_check_method=$lt_deplibs_check_method
10478
10479 # Command to use when deplibs_check_method == file_magic.
10480 file_magic_cmd=$lt_file_magic_cmd
10481
10482 # Flag that allows shared libraries with undefined symbols to be built.
10483 allow_undefined_flag=$lt_allow_undefined_flag
10484
10485 # Flag that forces no undefined symbols.
10486 no_undefined_flag=$lt_no_undefined_flag
10487
10488 # Commands used to finish a libtool library installation in a directory.
10489 finish_cmds=$lt_finish_cmds
10490
10491 # Same as above, but a single script fragment to be evaled but not shown.
10492 finish_eval=$lt_finish_eval
10493
10494 # Take the output of nm and produce a listing of raw symbols and C names.
10495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10496
10497 # Transform the output of nm in a proper C declaration
10498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10499
10500 # Transform the output of nm in a C name address pair
10501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10502
10503 # This is the shared library runtime path variable.
10504 runpath_var=$runpath_var
10505
10506 # This is the shared library path variable.
10507 shlibpath_var=$shlibpath_var
10508
10509 # Is shlibpath searched before the hard-coded library search path?
10510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10511
10512 # How to hardcode a shared library path into an executable.
10513 hardcode_action=$hardcode_action
10514
10515 # Whether we should hardcode library paths into libraries.
10516 hardcode_into_libs=$hardcode_into_libs
10517
10518 # Flag to hardcode \$libdir into a binary during linking.
10519 # This must work even if \$libdir does not exist.
10520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10521
10522 # If ld is used when linking, flag to hardcode \$libdir into
10523 # a binary during linking. This must work even if \$libdir does
10524 # not exist.
10525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10526
10527 # Whether we need a single -rpath flag with a separated argument.
10528 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10529
10530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10531 # resulting binary.
10532 hardcode_direct=$hardcode_direct
10533
10534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10535 # resulting binary.
10536 hardcode_minus_L=$hardcode_minus_L
10537
10538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10539 # the resulting binary.
10540 hardcode_shlibpath_var=$hardcode_shlibpath_var
10541
10542 # Set to yes if building a shared library automatically hardcodes DIR into the library
10543 # and all subsequent libraries and executables linked against it.
10544 hardcode_automatic=$hardcode_automatic
10545
10546 # Variables whose values should be saved in libtool wrapper scripts and
10547 # restored at relink time.
10548 variables_saved_for_relink="$variables_saved_for_relink"
10549
10550 # Whether libtool must link a program against all its dependency libraries.
10551 link_all_deplibs=$link_all_deplibs
10552
10553 # Compile-time system search path for libraries
10554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10555
10556 # Run-time system search path for libraries
10557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10558
10559 # Fix the shell variable \$srcfile for the compiler.
10560 fix_srcfile_path=$lt_fix_srcfile_path
10561
10562 # Set to yes if exported symbols are required.
10563 always_export_symbols=$always_export_symbols
10564
10565 # The commands to list exported symbols.
10566 export_symbols_cmds=$lt_export_symbols_cmds
10567
10568 # The commands to extract the exported symbol list from a shared archive.
10569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10570
10571 # Symbols that should not be listed in the preloaded symbols.
10572 exclude_expsyms=$lt_exclude_expsyms
10573
10574 # Symbols that must always be exported.
10575 include_expsyms=$lt_include_expsyms
10576
10577 # ### END LIBTOOL CONFIG
10578
10579 __EOF__
10580
10581
10582 case $host_os in
10583 aix3*)
10584 cat <<\EOF >> "$cfgfile"
10585
10586 # AIX sometimes has problems with the GCC collect2 program. For some
10587 # reason, if we set the COLLECT_NAMES environment variable, the problems
10588 # vanish in a puff of smoke.
10589 if test "X${COLLECT_NAMES+set}" != Xset; then
10590 COLLECT_NAMES=
10591 export COLLECT_NAMES
10592 fi
10593 EOF
10594 ;;
10595 esac
10596
10597 # We use sed instead of cat because bash on DJGPP gets confused if
10598 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10599 # text mode, it properly converts lines to CR/LF. This bash problem
10600 # is reportedly fixed, but why not run on old versions too?
10601 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10602
10603 mv -f "$cfgfile" "$ofile" || \
10604 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10605 chmod +x "$ofile"
10606
10607 else
10608 # If there is no Makefile yet, we rely on a make rule to execute
10609 # `config.status --recheck' to rerun these tests and create the
10610 # libtool script then.
10611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10612 if test -f "$ltmain_in"; then
10613 test -f Makefile && make "$ltmain"
10614 fi
10615 fi
10616
10617
10618 ac_ext=c
10619 ac_cpp='$CPP $CPPFLAGS'
10620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10623
10624 CC="$lt_save_CC"
10625
10626
10627 # Check whether --with-tags was given.
10628 if test "${with_tags+set}" = set; then
10629 withval=$with_tags; tagnames="$withval"
10630 fi
10631
10632
10633 if test -f "$ltmain" && test -n "$tagnames"; then
10634 if test ! -f "${ofile}"; then
10635 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10636 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10637 fi
10638
10639 if test -z "$LTCC"; then
10640 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10641 if test -z "$LTCC"; then
10642 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10643 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10644 else
10645 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10646 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10647 fi
10648 fi
10649 if test -z "$LTCFLAGS"; then
10650 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10651 fi
10652
10653 # Extract list of available tagged configurations in $ofile.
10654 # Note that this assumes the entire list is on one line.
10655 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10656
10657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10658 for tagname in $tagnames; do
10659 IFS="$lt_save_ifs"
10660 # Check whether tagname contains only valid characters
10661 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10662 "") ;;
10663 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10664 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10665 { (exit 1); exit 1; }; }
10666 ;;
10667 esac
10668
10669 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10670 then
10671 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10672 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10673 { (exit 1); exit 1; }; }
10674 fi
10675
10676 # Update the list of available tags.
10677 if test -n "$tagname"; then
10678 echo appending configuration tag \"$tagname\" to $ofile
10679
10680 case $tagname in
10681 CXX)
10682 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10683 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10684 (test "X$CXX" != "Xg++"))) ; then
10685 ac_ext=cpp
10686 ac_cpp='$CXXCPP $CPPFLAGS'
10687 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10688 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10689 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10690
10691
10692
10693
10694 archive_cmds_need_lc_CXX=no
10695 allow_undefined_flag_CXX=
10696 always_export_symbols_CXX=no
10697 archive_expsym_cmds_CXX=
10698 export_dynamic_flag_spec_CXX=
10699 hardcode_direct_CXX=no
10700 hardcode_libdir_flag_spec_CXX=
10701 hardcode_libdir_flag_spec_ld_CXX=
10702 hardcode_libdir_separator_CXX=
10703 hardcode_minus_L_CXX=no
10704 hardcode_shlibpath_var_CXX=unsupported
10705 hardcode_automatic_CXX=no
10706 module_cmds_CXX=
10707 module_expsym_cmds_CXX=
10708 link_all_deplibs_CXX=unknown
10709 old_archive_cmds_CXX=$old_archive_cmds
10710 no_undefined_flag_CXX=
10711 whole_archive_flag_spec_CXX=
10712 enable_shared_with_static_runtimes_CXX=no
10713
10714 # Dependencies to place before and after the object being linked:
10715 predep_objects_CXX=
10716 postdep_objects_CXX=
10717 predeps_CXX=
10718 postdeps_CXX=
10719 compiler_lib_search_path_CXX=
10720
10721 # Source file extension for C++ test sources.
10722 ac_ext=cpp
10723
10724 # Object file extension for compiled C++ test sources.
10725 objext=o
10726 objext_CXX=$objext
10727
10728 # Code to be used in simple compile tests
10729 lt_simple_compile_test_code="int some_variable = 0;"
10730
10731 # Code to be used in simple link tests
10732 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10733
10734 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10735
10736 # If no C compiler was specified, use CC.
10737 LTCC=${LTCC-"$CC"}
10738
10739 # If no C compiler flags were specified, use CFLAGS.
10740 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10741
10742 # Allow CC to be a program name with arguments.
10743 compiler=$CC
10744
10745
10746 # save warnings/boilerplate of simple test code
10747 ac_outfile=conftest.$ac_objext
10748 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10749 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10750 _lt_compiler_boilerplate=`cat conftest.err`
10751 $rm conftest*
10752
10753 ac_outfile=conftest.$ac_objext
10754 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10755 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10756 _lt_linker_boilerplate=`cat conftest.err`
10757 $rm conftest*
10758
10759
10760 # Allow CC to be a program name with arguments.
10761 lt_save_CC=$CC
10762 lt_save_LD=$LD
10763 lt_save_GCC=$GCC
10764 GCC=$GXX
10765 lt_save_with_gnu_ld=$with_gnu_ld
10766 lt_save_path_LD=$lt_cv_path_LD
10767 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10768 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10769 else
10770 $as_unset lt_cv_prog_gnu_ld
10771 fi
10772 if test -n "${lt_cv_path_LDCXX+set}"; then
10773 lt_cv_path_LD=$lt_cv_path_LDCXX
10774 else
10775 $as_unset lt_cv_path_LD
10776 fi
10777 test -z "${LDCXX+set}" || LD=$LDCXX
10778 CC=${CXX-"c++"}
10779 compiler=$CC
10780 compiler_CXX=$CC
10781 for cc_temp in $compiler""; do
10782 case $cc_temp in
10783 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10784 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10785 \-*) ;;
10786 *) break;;
10787 esac
10788 done
10789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10790
10791
10792 # We don't want -fno-exception wen compiling C++ code, so set the
10793 # no_builtin_flag separately
10794 if test "$GXX" = yes; then
10795 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10796 else
10797 lt_prog_compiler_no_builtin_flag_CXX=
10798 fi
10799
10800 if test "$GXX" = yes; then
10801 # Set up default GNU C++ configuration
10802
10803
10804 # Check whether --with-gnu-ld was given.
10805 if test "${with_gnu_ld+set}" = set; then
10806 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10807 else
10808 with_gnu_ld=no
10809 fi
10810
10811 ac_prog=ld
10812 if test "$GCC" = yes; then
10813 # Check if gcc -print-prog-name=ld gives a path.
10814 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10815 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10816 case $host in
10817 *-*-mingw*)
10818 # gcc leaves a trailing carriage return which upsets mingw
10819 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10820 *)
10821 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10822 esac
10823 case $ac_prog in
10824 # Accept absolute paths.
10825 [\\/]* | ?:[\\/]*)
10826 re_direlt='/[^/][^/]*/\.\./'
10827 # Canonicalize the pathname of ld
10828 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10829 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10830 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10831 done
10832 test -z "$LD" && LD="$ac_prog"
10833 ;;
10834 "")
10835 # If it fails, then pretend we aren't using GCC.
10836 ac_prog=ld
10837 ;;
10838 *)
10839 # If it is relative, then search for the first ld in PATH.
10840 with_gnu_ld=unknown
10841 ;;
10842 esac
10843 elif test "$with_gnu_ld" = yes; then
10844 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10845 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10846 else
10847 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10848 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10849 fi
10850 if test "${lt_cv_path_LD+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853 if test -z "$LD"; then
10854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10855 for ac_dir in $PATH; do
10856 IFS="$lt_save_ifs"
10857 test -z "$ac_dir" && ac_dir=.
10858 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10859 lt_cv_path_LD="$ac_dir/$ac_prog"
10860 # Check to see if the program is GNU ld. I'd rather use --version,
10861 # but apparently some variants of GNU ld only accept -v.
10862 # Break only if it was the GNU/non-GNU ld that we prefer.
10863 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10864 *GNU* | *'with BFD'*)
10865 test "$with_gnu_ld" != no && break
10866 ;;
10867 *)
10868 test "$with_gnu_ld" != yes && break
10869 ;;
10870 esac
10871 fi
10872 done
10873 IFS="$lt_save_ifs"
10874 else
10875 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10876 fi
10877 fi
10878
10879 LD="$lt_cv_path_LD"
10880 if test -n "$LD"; then
10881 { echo "$as_me:$LINENO: result: $LD" >&5
10882 echo "${ECHO_T}$LD" >&6; }
10883 else
10884 { echo "$as_me:$LINENO: result: no" >&5
10885 echo "${ECHO_T}no" >&6; }
10886 fi
10887 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10888 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10889 { (exit 1); exit 1; }; }
10890 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10891 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10892 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10893 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10896 case `$LD -v 2>&1 </dev/null` in
10897 *GNU* | *'with BFD'*)
10898 lt_cv_prog_gnu_ld=yes
10899 ;;
10900 *)
10901 lt_cv_prog_gnu_ld=no
10902 ;;
10903 esac
10904 fi
10905 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10906 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10907 with_gnu_ld=$lt_cv_prog_gnu_ld
10908
10909
10910
10911 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10912 # archiving commands below assume that GNU ld is being used.
10913 if test "$with_gnu_ld" = yes; then
10914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10915 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'
10916
10917 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10919
10920 # If archive_cmds runs LD, not CC, wlarc should be empty
10921 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10922 # investigate it a little bit more. (MM)
10923 wlarc='${wl}'
10924
10925 # ancient GNU ld didn't support --whole-archive et. al.
10926 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10927 grep 'no-whole-archive' > /dev/null; then
10928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10929 else
10930 whole_archive_flag_spec_CXX=
10931 fi
10932 else
10933 with_gnu_ld=no
10934 wlarc=
10935
10936 # A generic and very simple default shared library creation
10937 # command for GNU C++ for the case where it uses the native
10938 # linker, instead of GNU ld. If possible, this setting should
10939 # overridden to take advantage of the native linker features on
10940 # the platform it is being used on.
10941 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10942 fi
10943
10944 # Commands to make compiler produce verbose output that lists
10945 # what "hidden" libraries, object files and flags are used when
10946 # linking a shared library.
10947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10948
10949 else
10950 GXX=no
10951 with_gnu_ld=no
10952 wlarc=
10953 fi
10954
10955 # PORTME: fill in a description of your system's C++ link characteristics
10956 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10957 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10958 ld_shlibs_CXX=yes
10959 case $host_os in
10960 aix3*)
10961 # FIXME: insert proper C++ library support
10962 ld_shlibs_CXX=no
10963 ;;
10964 aix4* | aix5*)
10965 if test "$host_cpu" = ia64; then
10966 # On IA64, the linker does run time linking by default, so we don't
10967 # have to do anything special.
10968 aix_use_runtimelinking=no
10969 exp_sym_flag='-Bexport'
10970 no_entry_flag=""
10971 else
10972 aix_use_runtimelinking=no
10973
10974 # Test if we are trying to use run time linking or normal
10975 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10976 # need to do runtime linking.
10977 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10978 for ld_flag in $LDFLAGS; do
10979 case $ld_flag in
10980 *-brtl*)
10981 aix_use_runtimelinking=yes
10982 break
10983 ;;
10984 esac
10985 done
10986 ;;
10987 esac
10988
10989 exp_sym_flag='-bexport'
10990 no_entry_flag='-bnoentry'
10991 fi
10992
10993 # When large executables or shared objects are built, AIX ld can
10994 # have problems creating the table of contents. If linking a library
10995 # or program results in "error TOC overflow" add -mminimal-toc to
10996 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10997 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10998
10999 archive_cmds_CXX=''
11000 hardcode_direct_CXX=yes
11001 hardcode_libdir_separator_CXX=':'
11002 link_all_deplibs_CXX=yes
11003
11004 if test "$GXX" = yes; then
11005 case $host_os in aix4.[012]|aix4.[012].*)
11006 # We only want to do this on AIX 4.2 and lower, the check
11007 # below for broken collect2 doesn't work under 4.3+
11008 collect2name=`${CC} -print-prog-name=collect2`
11009 if test -f "$collect2name" && \
11010 strings "$collect2name" | grep resolve_lib_name >/dev/null
11011 then
11012 # We have reworked collect2
11013 :
11014 else
11015 # We have old collect2
11016 hardcode_direct_CXX=unsupported
11017 # It fails to find uninstalled libraries when the uninstalled
11018 # path is not listed in the libpath. Setting hardcode_minus_L
11019 # to unsupported forces relinking
11020 hardcode_minus_L_CXX=yes
11021 hardcode_libdir_flag_spec_CXX='-L$libdir'
11022 hardcode_libdir_separator_CXX=
11023 fi
11024 ;;
11025 esac
11026 shared_flag='-shared'
11027 if test "$aix_use_runtimelinking" = yes; then
11028 shared_flag="$shared_flag "'${wl}-G'
11029 fi
11030 else
11031 # not using gcc
11032 if test "$host_cpu" = ia64; then
11033 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11034 # chokes on -Wl,-G. The following line is correct:
11035 shared_flag='-G'
11036 else
11037 if test "$aix_use_runtimelinking" = yes; then
11038 shared_flag='${wl}-G'
11039 else
11040 shared_flag='${wl}-bM:SRE'
11041 fi
11042 fi
11043 fi
11044
11045 # It seems that -bexpall does not export symbols beginning with
11046 # underscore (_), so it is better to generate a list of symbols to export.
11047 always_export_symbols_CXX=yes
11048 if test "$aix_use_runtimelinking" = yes; then
11049 # Warning - without using the other runtime loading flags (-brtl),
11050 # -berok will link without error, but may produce a broken library.
11051 allow_undefined_flag_CXX='-berok'
11052 # Determine the default libpath from the value encoded in an empty executable.
11053 cat >conftest.$ac_ext <<_ACEOF
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059
11060 int
11061 main ()
11062 {
11063
11064 ;
11065 return 0;
11066 }
11067 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_cxx_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest$ac_exeext &&
11085 $as_test_x conftest$ac_exeext; then
11086
11087 lt_aix_libpath_sed='
11088 /Import File Strings/,/^$/ {
11089 /^0/ {
11090 s/^0 *\(.*\)$/\1/
11091 p
11092 }
11093 }'
11094 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11095 # Check for a 64-bit object if we didn't find anything.
11096 if test -z "$aix_libpath"; then
11097 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11098 fi
11099 else
11100 echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103
11104 fi
11105
11106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11107 conftest$ac_exeext conftest.$ac_ext
11108 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11109
11110 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11111
11112 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"
11113 else
11114 if test "$host_cpu" = ia64; then
11115 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11116 allow_undefined_flag_CXX="-z nodefs"
11117 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"
11118 else
11119 # Determine the default libpath from the value encoded in an empty executable.
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126
11127 int
11128 main ()
11129 {
11130
11131 ;
11132 return 0;
11133 }
11134 _ACEOF
11135 rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_link") 2>conftest.er1
11143 ac_status=$?
11144 grep -v '^ *+' conftest.er1 >conftest.err
11145 rm -f conftest.er1
11146 cat conftest.err >&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); } && {
11149 test -z "$ac_cxx_werror_flag" ||
11150 test ! -s conftest.err
11151 } && test -s conftest$ac_exeext &&
11152 $as_test_x conftest$ac_exeext; then
11153
11154 lt_aix_libpath_sed='
11155 /Import File Strings/,/^$/ {
11156 /^0/ {
11157 s/^0 *\(.*\)$/\1/
11158 p
11159 }
11160 }'
11161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11162 # Check for a 64-bit object if we didn't find anything.
11163 if test -z "$aix_libpath"; then
11164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11165 fi
11166 else
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.$ac_ext >&5
11169
11170
11171 fi
11172
11173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11174 conftest$ac_exeext conftest.$ac_ext
11175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11176
11177 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11178 # Warning - without using the other run time loading flags,
11179 # -berok will link without error, but may produce a broken library.
11180 no_undefined_flag_CXX=' ${wl}-bernotok'
11181 allow_undefined_flag_CXX=' ${wl}-berok'
11182 # Exported symbols can be pulled into shared objects from archives
11183 whole_archive_flag_spec_CXX='$convenience'
11184 archive_cmds_need_lc_CXX=yes
11185 # This is similar to how AIX traditionally builds its shared libraries.
11186 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'
11187 fi
11188 fi
11189 ;;
11190
11191 beos*)
11192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11193 allow_undefined_flag_CXX=unsupported
11194 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11195 # support --undefined. This deserves some investigation. FIXME
11196 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197 else
11198 ld_shlibs_CXX=no
11199 fi
11200 ;;
11201
11202 chorus*)
11203 case $cc_basename in
11204 *)
11205 # FIXME: insert proper C++ library support
11206 ld_shlibs_CXX=no
11207 ;;
11208 esac
11209 ;;
11210
11211 cygwin* | mingw* | pw32*)
11212 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11213 # as there is no search path for DLLs.
11214 hardcode_libdir_flag_spec_CXX='-L$libdir'
11215 allow_undefined_flag_CXX=unsupported
11216 always_export_symbols_CXX=no
11217 enable_shared_with_static_runtimes_CXX=yes
11218
11219 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11220 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'
11221 # If the export-symbols file already is a .def file (1st line
11222 # is EXPORTS), use it as is; otherwise, prepend...
11223 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11224 cp $export_symbols $output_objdir/$soname.def;
11225 else
11226 echo EXPORTS > $output_objdir/$soname.def;
11227 cat $export_symbols >> $output_objdir/$soname.def;
11228 fi~
11229 $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'
11230 else
11231 ld_shlibs_CXX=no
11232 fi
11233 ;;
11234 darwin* | rhapsody*)
11235 case $host_os in
11236 rhapsody* | darwin1.[012])
11237 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11238 ;;
11239 *) # Darwin 1.3 on
11240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11241 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11242 else
11243 case ${MACOSX_DEPLOYMENT_TARGET} in
11244 10.[012])
11245 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11246 ;;
11247 10.*)
11248 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11249 ;;
11250 esac
11251 fi
11252 ;;
11253 esac
11254 archive_cmds_need_lc_CXX=no
11255 hardcode_direct_CXX=no
11256 hardcode_automatic_CXX=yes
11257 hardcode_shlibpath_var_CXX=unsupported
11258 whole_archive_flag_spec_CXX=''
11259 link_all_deplibs_CXX=yes
11260
11261 if test "$GXX" = yes ; then
11262 lt_int_apple_cc_single_mod=no
11263 output_verbose_link_cmd='echo'
11264 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11265 lt_int_apple_cc_single_mod=yes
11266 fi
11267 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11268 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11269 else
11270 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'
11271 fi
11272 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11275 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}'
11276 else
11277 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}'
11278 fi
11279 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}'
11280 else
11281 case $cc_basename in
11282 xlc*)
11283 output_verbose_link_cmd='echo'
11284 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11285 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11287 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11288 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}'
11289 ;;
11290 *)
11291 ld_shlibs_CXX=no
11292 ;;
11293 esac
11294 fi
11295 ;;
11296
11297 dgux*)
11298 case $cc_basename in
11299 ec++*)
11300 # FIXME: insert proper C++ library support
11301 ld_shlibs_CXX=no
11302 ;;
11303 ghcx*)
11304 # Green Hills C++ Compiler
11305 # FIXME: insert proper C++ library support
11306 ld_shlibs_CXX=no
11307 ;;
11308 *)
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 ;;
11312 esac
11313 ;;
11314 freebsd[12]*)
11315 # C++ shared libraries reported to be fairly broken before switch to ELF
11316 ld_shlibs_CXX=no
11317 ;;
11318 freebsd-elf*)
11319 archive_cmds_need_lc_CXX=no
11320 ;;
11321 freebsd* | dragonfly*)
11322 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11323 # conventions
11324 ld_shlibs_CXX=yes
11325 ;;
11326 gnu*)
11327 ;;
11328 hpux9*)
11329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11330 hardcode_libdir_separator_CXX=:
11331 export_dynamic_flag_spec_CXX='${wl}-E'
11332 hardcode_direct_CXX=yes
11333 hardcode_minus_L_CXX=yes # Not in the search PATH,
11334 # but as the default
11335 # location of the library.
11336
11337 case $cc_basename in
11338 CC*)
11339 # FIXME: insert proper C++ library support
11340 ld_shlibs_CXX=no
11341 ;;
11342 aCC*)
11343 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'
11344 # Commands to make compiler produce verbose output that lists
11345 # what "hidden" libraries, object files and flags are used when
11346 # linking a shared library.
11347 #
11348 # There doesn't appear to be a way to prevent this compiler from
11349 # explicitly linking system object files so we need to strip them
11350 # from the output so that they don't get included in the library
11351 # dependencies.
11352 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'
11353 ;;
11354 *)
11355 if test "$GXX" = yes; then
11356 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'
11357 else
11358 # FIXME: insert proper C++ library support
11359 ld_shlibs_CXX=no
11360 fi
11361 ;;
11362 esac
11363 ;;
11364 hpux10*|hpux11*)
11365 if test $with_gnu_ld = no; then
11366 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11367 hardcode_libdir_separator_CXX=:
11368
11369 case $host_cpu in
11370 hppa*64*|ia64*) ;;
11371 *)
11372 export_dynamic_flag_spec_CXX='${wl}-E'
11373 ;;
11374 esac
11375 fi
11376 case $host_cpu in
11377 hppa*64*|ia64*)
11378 hardcode_direct_CXX=no
11379 hardcode_shlibpath_var_CXX=no
11380 ;;
11381 *)
11382 hardcode_direct_CXX=yes
11383 hardcode_minus_L_CXX=yes # Not in the search PATH,
11384 # but as the default
11385 # location of the library.
11386 ;;
11387 esac
11388
11389 case $cc_basename in
11390 CC*)
11391 # FIXME: insert proper C++ library support
11392 ld_shlibs_CXX=no
11393 ;;
11394 aCC*)
11395 case $host_cpu in
11396 hppa*64*)
11397 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11398 ;;
11399 ia64*)
11400 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11401 ;;
11402 *)
11403 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11404 ;;
11405 esac
11406 # Commands to make compiler produce verbose output that lists
11407 # what "hidden" libraries, object files and flags are used when
11408 # linking a shared library.
11409 #
11410 # There doesn't appear to be a way to prevent this compiler from
11411 # explicitly linking system object files so we need to strip them
11412 # from the output so that they don't get included in the library
11413 # dependencies.
11414 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'
11415 ;;
11416 *)
11417 if test "$GXX" = yes; then
11418 if test $with_gnu_ld = no; then
11419 case $host_cpu in
11420 hppa*64*)
11421 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11422 ;;
11423 ia64*)
11424 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11425 ;;
11426 *)
11427 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'
11428 ;;
11429 esac
11430 fi
11431 else
11432 # FIXME: insert proper C++ library support
11433 ld_shlibs_CXX=no
11434 fi
11435 ;;
11436 esac
11437 ;;
11438 interix[3-9]*)
11439 hardcode_direct_CXX=no
11440 hardcode_shlibpath_var_CXX=no
11441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11442 export_dynamic_flag_spec_CXX='${wl}-E'
11443 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11444 # Instead, shared libraries are loaded at an image base (0x10000000 by
11445 # default) and relocated if they conflict, which is a slow very memory
11446 # consuming and fragmenting process. To avoid this, we pick a random,
11447 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11448 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11449 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'
11450 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'
11451 ;;
11452 irix5* | irix6*)
11453 case $cc_basename in
11454 CC*)
11455 # SGI C++
11456 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'
11457
11458 # Archives containing C++ object files must be created using
11459 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11460 # necessary to make sure instantiated templates are included
11461 # in the archive.
11462 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11463 ;;
11464 *)
11465 if test "$GXX" = yes; then
11466 if test "$with_gnu_ld" = no; then
11467 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'
11468 else
11469 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'
11470 fi
11471 fi
11472 link_all_deplibs_CXX=yes
11473 ;;
11474 esac
11475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11476 hardcode_libdir_separator_CXX=:
11477 ;;
11478 linux* | k*bsd*-gnu)
11479 case $cc_basename in
11480 KCC*)
11481 # Kuck and Associates, Inc. (KAI) C++ Compiler
11482
11483 # KCC will only create a shared library if the output file
11484 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11485 # to its proper name (with version) after linking.
11486 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'
11487 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'
11488 # Commands to make compiler produce verbose output that lists
11489 # what "hidden" libraries, object files and flags are used when
11490 # linking a shared library.
11491 #
11492 # There doesn't appear to be a way to prevent this compiler from
11493 # explicitly linking system object files so we need to strip them
11494 # from the output so that they don't get included in the library
11495 # dependencies.
11496 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'
11497
11498 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11499 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11500
11501 # Archives containing C++ object files must be created using
11502 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11503 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11504 ;;
11505 icpc*)
11506 # Intel C++
11507 with_gnu_ld=yes
11508 # version 8.0 and above of icpc choke on multiply defined symbols
11509 # if we add $predep_objects and $postdep_objects, however 7.1 and
11510 # earlier do not add the objects themselves.
11511 case `$CC -V 2>&1` in
11512 *"Version 7."*)
11513 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514 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'
11515 ;;
11516 *) # Version 8.0 or newer
11517 tmp_idyn=
11518 case $host_cpu in
11519 ia64*) tmp_idyn=' -i_dynamic';;
11520 esac
11521 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11522 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'
11523 ;;
11524 esac
11525 archive_cmds_need_lc_CXX=no
11526 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11527 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11528 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11529 ;;
11530 pgCC*)
11531 # Portland Group C++ compiler
11532 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11533 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'
11534
11535 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11537 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'
11538 ;;
11539 cxx*)
11540 # Compaq C++
11541 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11542 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'
11543
11544 runpath_var=LD_RUN_PATH
11545 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11546 hardcode_libdir_separator_CXX=:
11547
11548 # Commands to make compiler produce verbose output that lists
11549 # what "hidden" libraries, object files and flags are used when
11550 # linking a shared library.
11551 #
11552 # There doesn't appear to be a way to prevent this compiler from
11553 # explicitly linking system object files so we need to strip them
11554 # from the output so that they don't get included in the library
11555 # dependencies.
11556 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'
11557 ;;
11558 *)
11559 case `$CC -V 2>&1 | sed 5q` in
11560 *Sun\ C*)
11561 # Sun C++ 5.9
11562 no_undefined_flag_CXX=' -zdefs'
11563 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11564 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11565 hardcode_libdir_flag_spec_CXX='-R$libdir'
11566 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11567
11568 # Not sure whether something based on
11569 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11570 # would be better.
11571 output_verbose_link_cmd='echo'
11572
11573 # Archives containing C++ object files must be created using
11574 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11575 # necessary to make sure instantiated templates are included
11576 # in the archive.
11577 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11578 ;;
11579 esac
11580 ;;
11581 esac
11582 ;;
11583 lynxos*)
11584 # FIXME: insert proper C++ library support
11585 ld_shlibs_CXX=no
11586 ;;
11587 m88k*)
11588 # FIXME: insert proper C++ library support
11589 ld_shlibs_CXX=no
11590 ;;
11591 mvs*)
11592 case $cc_basename in
11593 cxx*)
11594 # FIXME: insert proper C++ library support
11595 ld_shlibs_CXX=no
11596 ;;
11597 *)
11598 # FIXME: insert proper C++ library support
11599 ld_shlibs_CXX=no
11600 ;;
11601 esac
11602 ;;
11603 netbsd*)
11604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11605 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11606 wlarc=
11607 hardcode_libdir_flag_spec_CXX='-R$libdir'
11608 hardcode_direct_CXX=yes
11609 hardcode_shlibpath_var_CXX=no
11610 fi
11611 # Workaround some broken pre-1.5 toolchains
11612 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11613 ;;
11614 openbsd2*)
11615 # C++ shared libraries are fairly broken
11616 ld_shlibs_CXX=no
11617 ;;
11618 openbsd*)
11619 if test -f /usr/libexec/ld.so; then
11620 hardcode_direct_CXX=yes
11621 hardcode_shlibpath_var_CXX=no
11622 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11625 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11626 export_dynamic_flag_spec_CXX='${wl}-E'
11627 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11628 fi
11629 output_verbose_link_cmd='echo'
11630 else
11631 ld_shlibs_CXX=no
11632 fi
11633 ;;
11634 osf3*)
11635 case $cc_basename in
11636 KCC*)
11637 # Kuck and Associates, Inc. (KAI) C++ Compiler
11638
11639 # KCC will only create a shared library if the output file
11640 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11641 # to its proper name (with version) after linking.
11642 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'
11643
11644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11645 hardcode_libdir_separator_CXX=:
11646
11647 # Archives containing C++ object files must be created using
11648 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11649 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11650
11651 ;;
11652 RCC*)
11653 # Rational C++ 2.4.1
11654 # FIXME: insert proper C++ library support
11655 ld_shlibs_CXX=no
11656 ;;
11657 cxx*)
11658 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11659 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'
11660
11661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11662 hardcode_libdir_separator_CXX=:
11663
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 #
11668 # There doesn't appear to be a way to prevent this compiler from
11669 # explicitly linking system object files so we need to strip them
11670 # from the output so that they don't get included in the library
11671 # dependencies.
11672 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'
11673 ;;
11674 *)
11675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11677 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'
11678
11679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11680 hardcode_libdir_separator_CXX=:
11681
11682 # Commands to make compiler produce verbose output that lists
11683 # what "hidden" libraries, object files and flags are used when
11684 # linking a shared library.
11685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11686
11687 else
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11690 fi
11691 ;;
11692 esac
11693 ;;
11694 osf4* | osf5*)
11695 case $cc_basename in
11696 KCC*)
11697 # Kuck and Associates, Inc. (KAI) C++ Compiler
11698
11699 # KCC will only create a shared library if the output file
11700 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11701 # to its proper name (with version) after linking.
11702 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'
11703
11704 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11705 hardcode_libdir_separator_CXX=:
11706
11707 # Archives containing C++ object files must be created using
11708 # the KAI C++ compiler.
11709 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11710 ;;
11711 RCC*)
11712 # Rational C++ 2.4.1
11713 # FIXME: insert proper C++ library support
11714 ld_shlibs_CXX=no
11715 ;;
11716 cxx*)
11717 allow_undefined_flag_CXX=' -expect_unresolved \*'
11718 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'
11719 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11720 echo "-hidden">> $lib.exp~
11721 $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~
11722 $rm $lib.exp'
11723
11724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11725 hardcode_libdir_separator_CXX=:
11726
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 #
11731 # There doesn't appear to be a way to prevent this compiler from
11732 # explicitly linking system object files so we need to strip them
11733 # from the output so that they don't get included in the library
11734 # dependencies.
11735 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'
11736 ;;
11737 *)
11738 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11739 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11740 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'
11741
11742 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11743 hardcode_libdir_separator_CXX=:
11744
11745 # Commands to make compiler produce verbose output that lists
11746 # what "hidden" libraries, object files and flags are used when
11747 # linking a shared library.
11748 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11749
11750 else
11751 # FIXME: insert proper C++ library support
11752 ld_shlibs_CXX=no
11753 fi
11754 ;;
11755 esac
11756 ;;
11757 psos*)
11758 # FIXME: insert proper C++ library support
11759 ld_shlibs_CXX=no
11760 ;;
11761 sunos4*)
11762 case $cc_basename in
11763 CC*)
11764 # Sun C++ 4.x
11765 # FIXME: insert proper C++ library support
11766 ld_shlibs_CXX=no
11767 ;;
11768 lcc*)
11769 # Lucid
11770 # FIXME: insert proper C++ library support
11771 ld_shlibs_CXX=no
11772 ;;
11773 *)
11774 # FIXME: insert proper C++ library support
11775 ld_shlibs_CXX=no
11776 ;;
11777 esac
11778 ;;
11779 solaris*)
11780 case $cc_basename in
11781 CC*)
11782 # Sun C++ 4.2, 5.x and Centerline C++
11783 archive_cmds_need_lc_CXX=yes
11784 no_undefined_flag_CXX=' -zdefs'
11785 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11786 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11787 $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'
11788
11789 hardcode_libdir_flag_spec_CXX='-R$libdir'
11790 hardcode_shlibpath_var_CXX=no
11791 case $host_os in
11792 solaris2.[0-5] | solaris2.[0-5].*) ;;
11793 *)
11794 # The compiler driver will combine and reorder linker options,
11795 # but understands `-z linker_flag'.
11796 # Supported since Solaris 2.6 (maybe 2.5.1?)
11797 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11798 ;;
11799 esac
11800 link_all_deplibs_CXX=yes
11801
11802 output_verbose_link_cmd='echo'
11803
11804 # Archives containing C++ object files must be created using
11805 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11806 # necessary to make sure instantiated templates are included
11807 # in the archive.
11808 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11809 ;;
11810 gcx*)
11811 # Green Hills C++ Compiler
11812 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11813
11814 # The C++ compiler must be used to create the archive.
11815 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11816 ;;
11817 *)
11818 # GNU C++ compiler with Solaris linker
11819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11820 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11821 if $CC --version | grep -v '^2\.7' > /dev/null; then
11822 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11823 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11824 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11825
11826 # Commands to make compiler produce verbose output that lists
11827 # what "hidden" libraries, object files and flags are used when
11828 # linking a shared library.
11829 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11830 else
11831 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11832 # platform.
11833 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11834 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11835 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11836
11837 # Commands to make compiler produce verbose output that lists
11838 # what "hidden" libraries, object files and flags are used when
11839 # linking a shared library.
11840 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11841 fi
11842
11843 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11844 case $host_os in
11845 solaris2.[0-5] | solaris2.[0-5].*) ;;
11846 *)
11847 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11848 ;;
11849 esac
11850 fi
11851 ;;
11852 esac
11853 ;;
11854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11855 no_undefined_flag_CXX='${wl}-z,text'
11856 archive_cmds_need_lc_CXX=no
11857 hardcode_shlibpath_var_CXX=no
11858 runpath_var='LD_RUN_PATH'
11859
11860 case $cc_basename in
11861 CC*)
11862 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11863 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11864 ;;
11865 *)
11866 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 ;;
11869 esac
11870 ;;
11871 sysv5* | sco3.2v5* | sco5v6*)
11872 # Note: We can NOT use -z defs as we might desire, because we do not
11873 # link with -lc, and that would cause any symbols used from libc to
11874 # always be unresolved, which means just about no library would
11875 # ever link correctly. If we're not using GNU ld we use -z text
11876 # though, which does catch some bad symbols but isn't as heavy-handed
11877 # as -z defs.
11878 # For security reasons, it is highly recommended that you always
11879 # use absolute paths for naming shared libraries, and exclude the
11880 # DT_RUNPATH tag from executables and libraries. But doing so
11881 # requires that you compile everything twice, which is a pain.
11882 # So that behaviour is only enabled if SCOABSPATH is set to a
11883 # non-empty value in the environment. Most likely only useful for
11884 # creating official distributions of packages.
11885 # This is a hack until libtool officially supports absolute path
11886 # names for shared libraries.
11887 no_undefined_flag_CXX='${wl}-z,text'
11888 allow_undefined_flag_CXX='${wl}-z,nodefs'
11889 archive_cmds_need_lc_CXX=no
11890 hardcode_shlibpath_var_CXX=no
11891 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11892 hardcode_libdir_separator_CXX=':'
11893 link_all_deplibs_CXX=yes
11894 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11895 runpath_var='LD_RUN_PATH'
11896
11897 case $cc_basename in
11898 CC*)
11899 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 ;;
11902 *)
11903 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11905 ;;
11906 esac
11907 ;;
11908 tandem*)
11909 case $cc_basename in
11910 NCC*)
11911 # NonStop-UX NCC 3.20
11912 # FIXME: insert proper C++ library support
11913 ld_shlibs_CXX=no
11914 ;;
11915 *)
11916 # FIXME: insert proper C++ library support
11917 ld_shlibs_CXX=no
11918 ;;
11919 esac
11920 ;;
11921 vxworks*)
11922 # FIXME: insert proper C++ library support
11923 ld_shlibs_CXX=no
11924 ;;
11925 *)
11926 # FIXME: insert proper C++ library support
11927 ld_shlibs_CXX=no
11928 ;;
11929 esac
11930 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11931 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11932 test "$ld_shlibs_CXX" = no && can_build_shared=no
11933
11934 GCC_CXX="$GXX"
11935 LD_CXX="$LD"
11936
11937
11938 cat > conftest.$ac_ext <<EOF
11939 class Foo
11940 {
11941 public:
11942 Foo (void) { a = 0; }
11943 private:
11944 int a;
11945 };
11946 EOF
11947
11948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11949 (eval $ac_compile) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; then
11953 # Parse the compiler output and extract the necessary
11954 # objects, libraries and library flags.
11955
11956 # Sentinel used to keep track of whether or not we are before
11957 # the conftest object file.
11958 pre_test_object_deps_done=no
11959
11960 # The `*' in the case matches for architectures that use `case' in
11961 # $output_verbose_cmd can trigger glob expansion during the loop
11962 # eval without this substitution.
11963 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11964
11965 for p in `eval $output_verbose_link_cmd`; do
11966 case $p in
11967
11968 -L* | -R* | -l*)
11969 # Some compilers place space between "-{L,R}" and the path.
11970 # Remove the space.
11971 if test $p = "-L" \
11972 || test $p = "-R"; then
11973 prev=$p
11974 continue
11975 else
11976 prev=
11977 fi
11978
11979 if test "$pre_test_object_deps_done" = no; then
11980 case $p in
11981 -L* | -R*)
11982 # Internal compiler library paths should come after those
11983 # provided the user. The postdeps already come after the
11984 # user supplied libs so there is no need to process them.
11985 if test -z "$compiler_lib_search_path_CXX"; then
11986 compiler_lib_search_path_CXX="${prev}${p}"
11987 else
11988 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11989 fi
11990 ;;
11991 # The "-l" case would never come before the object being
11992 # linked, so don't bother handling this case.
11993 esac
11994 else
11995 if test -z "$postdeps_CXX"; then
11996 postdeps_CXX="${prev}${p}"
11997 else
11998 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11999 fi
12000 fi
12001 ;;
12002
12003 *.$objext)
12004 # This assumes that the test object file only shows up
12005 # once in the compiler output.
12006 if test "$p" = "conftest.$objext"; then
12007 pre_test_object_deps_done=yes
12008 continue
12009 fi
12010
12011 if test "$pre_test_object_deps_done" = no; then
12012 if test -z "$predep_objects_CXX"; then
12013 predep_objects_CXX="$p"
12014 else
12015 predep_objects_CXX="$predep_objects_CXX $p"
12016 fi
12017 else
12018 if test -z "$postdep_objects_CXX"; then
12019 postdep_objects_CXX="$p"
12020 else
12021 postdep_objects_CXX="$postdep_objects_CXX $p"
12022 fi
12023 fi
12024 ;;
12025
12026 *) ;; # Ignore the rest.
12027
12028 esac
12029 done
12030
12031 # Clean up.
12032 rm -f a.out a.exe
12033 else
12034 echo "libtool.m4: error: problem compiling CXX test program"
12035 fi
12036
12037 $rm -f confest.$objext
12038
12039 # PORTME: override above test on systems where it is broken
12040 case $host_os in
12041 interix[3-9]*)
12042 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12043 # hack all around it, let's just trust "g++" to DTRT.
12044 predep_objects_CXX=
12045 postdep_objects_CXX=
12046 postdeps_CXX=
12047 ;;
12048
12049 linux*)
12050 case `$CC -V 2>&1 | sed 5q` in
12051 *Sun\ C*)
12052 # Sun C++ 5.9
12053 #
12054 # The more standards-conforming stlport4 library is
12055 # incompatible with the Cstd library. Avoid specifying
12056 # it if it's in CXXFLAGS. Ignore libCrun as
12057 # -library=stlport4 depends on it.
12058 case " $CXX $CXXFLAGS " in
12059 *" -library=stlport4 "*)
12060 solaris_use_stlport4=yes
12061 ;;
12062 esac
12063 if test "$solaris_use_stlport4" != yes; then
12064 postdeps_CXX='-library=Cstd -library=Crun'
12065 fi
12066 ;;
12067 esac
12068 ;;
12069
12070 solaris*)
12071 case $cc_basename in
12072 CC*)
12073 # The more standards-conforming stlport4 library is
12074 # incompatible with the Cstd library. Avoid specifying
12075 # it if it's in CXXFLAGS. Ignore libCrun as
12076 # -library=stlport4 depends on it.
12077 case " $CXX $CXXFLAGS " in
12078 *" -library=stlport4 "*)
12079 solaris_use_stlport4=yes
12080 ;;
12081 esac
12082
12083 # Adding this requires a known-good setup of shared libraries for
12084 # Sun compiler versions before 5.6, else PIC objects from an old
12085 # archive will be linked into the output, leading to subtle bugs.
12086 if test "$solaris_use_stlport4" != yes; then
12087 postdeps_CXX='-library=Cstd -library=Crun'
12088 fi
12089 ;;
12090 esac
12091 ;;
12092 esac
12093
12094
12095 case " $postdeps_CXX " in
12096 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12097 esac
12098
12099 lt_prog_compiler_wl_CXX=
12100 lt_prog_compiler_pic_CXX=
12101 lt_prog_compiler_static_CXX=
12102
12103 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12104 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12105
12106 # C++ specific cases for pic, static, wl, etc.
12107 if test "$GXX" = yes; then
12108 lt_prog_compiler_wl_CXX='-Wl,'
12109 lt_prog_compiler_static_CXX='-static'
12110
12111 case $host_os in
12112 aix*)
12113 # All AIX code is PIC.
12114 if test "$host_cpu" = ia64; then
12115 # AIX 5 now supports IA64 processor
12116 lt_prog_compiler_static_CXX='-Bstatic'
12117 fi
12118 ;;
12119 amigaos*)
12120 # FIXME: we need at least 68020 code to build shared libraries, but
12121 # adding the `-m68020' flag to GCC prevents building anything better,
12122 # like `-m68040'.
12123 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12124 ;;
12125 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12126 # PIC is the default for these OSes.
12127 ;;
12128 mingw* | cygwin* | os2* | pw32*)
12129 # This hack is so that the source file can tell whether it is being
12130 # built for inclusion in a dll (and should export symbols for example).
12131 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12132 # (--disable-auto-import) libraries
12133 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12134 ;;
12135 darwin* | rhapsody*)
12136 # PIC is the default on this platform
12137 # Common symbols not allowed in MH_DYLIB files
12138 lt_prog_compiler_pic_CXX='-fno-common'
12139 ;;
12140 *djgpp*)
12141 # DJGPP does not support shared libraries at all
12142 lt_prog_compiler_pic_CXX=
12143 ;;
12144 interix[3-9]*)
12145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12146 # Instead, we relocate shared libraries at runtime.
12147 ;;
12148 sysv4*MP*)
12149 if test -d /usr/nec; then
12150 lt_prog_compiler_pic_CXX=-Kconform_pic
12151 fi
12152 ;;
12153 hpux*)
12154 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12155 # not for PA HP-UX.
12156 case $host_cpu in
12157 hppa*64*|ia64*)
12158 ;;
12159 *)
12160 lt_prog_compiler_pic_CXX='-fPIC'
12161 ;;
12162 esac
12163 ;;
12164 *)
12165 lt_prog_compiler_pic_CXX='-fPIC'
12166 ;;
12167 esac
12168 else
12169 case $host_os in
12170 aix4* | aix5*)
12171 # All AIX code is PIC.
12172 if test "$host_cpu" = ia64; then
12173 # AIX 5 now supports IA64 processor
12174 lt_prog_compiler_static_CXX='-Bstatic'
12175 else
12176 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12177 fi
12178 ;;
12179 chorus*)
12180 case $cc_basename in
12181 cxch68*)
12182 # Green Hills C++ Compiler
12183 # _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"
12184 ;;
12185 esac
12186 ;;
12187 darwin*)
12188 # PIC is the default on this platform
12189 # Common symbols not allowed in MH_DYLIB files
12190 case $cc_basename in
12191 xlc*)
12192 lt_prog_compiler_pic_CXX='-qnocommon'
12193 lt_prog_compiler_wl_CXX='-Wl,'
12194 ;;
12195 esac
12196 ;;
12197 dgux*)
12198 case $cc_basename in
12199 ec++*)
12200 lt_prog_compiler_pic_CXX='-KPIC'
12201 ;;
12202 ghcx*)
12203 # Green Hills C++ Compiler
12204 lt_prog_compiler_pic_CXX='-pic'
12205 ;;
12206 *)
12207 ;;
12208 esac
12209 ;;
12210 freebsd* | dragonfly*)
12211 # FreeBSD uses GNU C++
12212 ;;
12213 hpux9* | hpux10* | hpux11*)
12214 case $cc_basename in
12215 CC*)
12216 lt_prog_compiler_wl_CXX='-Wl,'
12217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12218 if test "$host_cpu" != ia64; then
12219 lt_prog_compiler_pic_CXX='+Z'
12220 fi
12221 ;;
12222 aCC*)
12223 lt_prog_compiler_wl_CXX='-Wl,'
12224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12225 case $host_cpu in
12226 hppa*64*|ia64*)
12227 # +Z the default
12228 ;;
12229 *)
12230 lt_prog_compiler_pic_CXX='+Z'
12231 ;;
12232 esac
12233 ;;
12234 *)
12235 ;;
12236 esac
12237 ;;
12238 interix*)
12239 # This is c89, which is MS Visual C++ (no shared libs)
12240 # Anyone wants to do a port?
12241 ;;
12242 irix5* | irix6* | nonstopux*)
12243 case $cc_basename in
12244 CC*)
12245 lt_prog_compiler_wl_CXX='-Wl,'
12246 lt_prog_compiler_static_CXX='-non_shared'
12247 # CC pic flag -KPIC is the default.
12248 ;;
12249 *)
12250 ;;
12251 esac
12252 ;;
12253 linux* | k*bsd*-gnu)
12254 case $cc_basename in
12255 KCC*)
12256 # KAI C++ Compiler
12257 lt_prog_compiler_wl_CXX='--backend -Wl,'
12258 lt_prog_compiler_pic_CXX='-fPIC'
12259 ;;
12260 icpc* | ecpc*)
12261 # Intel C++
12262 lt_prog_compiler_wl_CXX='-Wl,'
12263 lt_prog_compiler_pic_CXX='-KPIC'
12264 lt_prog_compiler_static_CXX='-static'
12265 ;;
12266 pgCC*)
12267 # Portland Group C++ compiler.
12268 lt_prog_compiler_wl_CXX='-Wl,'
12269 lt_prog_compiler_pic_CXX='-fpic'
12270 lt_prog_compiler_static_CXX='-Bstatic'
12271 ;;
12272 cxx*)
12273 # Compaq C++
12274 # Make sure the PIC flag is empty. It appears that all Alpha
12275 # Linux and Compaq Tru64 Unix objects are PIC.
12276 lt_prog_compiler_pic_CXX=
12277 lt_prog_compiler_static_CXX='-non_shared'
12278 ;;
12279 *)
12280 case `$CC -V 2>&1 | sed 5q` in
12281 *Sun\ C*)
12282 # Sun C++ 5.9
12283 lt_prog_compiler_pic_CXX='-KPIC'
12284 lt_prog_compiler_static_CXX='-Bstatic'
12285 lt_prog_compiler_wl_CXX='-Qoption ld '
12286 ;;
12287 esac
12288 ;;
12289 esac
12290 ;;
12291 lynxos*)
12292 ;;
12293 m88k*)
12294 ;;
12295 mvs*)
12296 case $cc_basename in
12297 cxx*)
12298 lt_prog_compiler_pic_CXX='-W c,exportall'
12299 ;;
12300 *)
12301 ;;
12302 esac
12303 ;;
12304 netbsd*)
12305 ;;
12306 osf3* | osf4* | osf5*)
12307 case $cc_basename in
12308 KCC*)
12309 lt_prog_compiler_wl_CXX='--backend -Wl,'
12310 ;;
12311 RCC*)
12312 # Rational C++ 2.4.1
12313 lt_prog_compiler_pic_CXX='-pic'
12314 ;;
12315 cxx*)
12316 # Digital/Compaq C++
12317 lt_prog_compiler_wl_CXX='-Wl,'
12318 # Make sure the PIC flag is empty. It appears that all Alpha
12319 # Linux and Compaq Tru64 Unix objects are PIC.
12320 lt_prog_compiler_pic_CXX=
12321 lt_prog_compiler_static_CXX='-non_shared'
12322 ;;
12323 *)
12324 ;;
12325 esac
12326 ;;
12327 psos*)
12328 ;;
12329 solaris*)
12330 case $cc_basename in
12331 CC*)
12332 # Sun C++ 4.2, 5.x and Centerline C++
12333 lt_prog_compiler_pic_CXX='-KPIC'
12334 lt_prog_compiler_static_CXX='-Bstatic'
12335 lt_prog_compiler_wl_CXX='-Qoption ld '
12336 ;;
12337 gcx*)
12338 # Green Hills C++ Compiler
12339 lt_prog_compiler_pic_CXX='-PIC'
12340 ;;
12341 *)
12342 ;;
12343 esac
12344 ;;
12345 sunos4*)
12346 case $cc_basename in
12347 CC*)
12348 # Sun C++ 4.x
12349 lt_prog_compiler_pic_CXX='-pic'
12350 lt_prog_compiler_static_CXX='-Bstatic'
12351 ;;
12352 lcc*)
12353 # Lucid
12354 lt_prog_compiler_pic_CXX='-pic'
12355 ;;
12356 *)
12357 ;;
12358 esac
12359 ;;
12360 tandem*)
12361 case $cc_basename in
12362 NCC*)
12363 # NonStop-UX NCC 3.20
12364 lt_prog_compiler_pic_CXX='-KPIC'
12365 ;;
12366 *)
12367 ;;
12368 esac
12369 ;;
12370 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12371 case $cc_basename in
12372 CC*)
12373 lt_prog_compiler_wl_CXX='-Wl,'
12374 lt_prog_compiler_pic_CXX='-KPIC'
12375 lt_prog_compiler_static_CXX='-Bstatic'
12376 ;;
12377 esac
12378 ;;
12379 vxworks*)
12380 ;;
12381 *)
12382 lt_prog_compiler_can_build_shared_CXX=no
12383 ;;
12384 esac
12385 fi
12386
12387 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12388 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12389
12390 #
12391 # Check to make sure the PIC flag actually works.
12392 #
12393 if test -n "$lt_prog_compiler_pic_CXX"; then
12394
12395 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12397 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 lt_prog_compiler_pic_works_CXX=no
12401 ac_outfile=conftest.$ac_objext
12402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12403 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12404 # Insert the option either (1) after the last *FLAGS variable, or
12405 # (2) before a word containing "conftest.", or (3) at the end.
12406 # Note that $ac_compile itself does not contain backslashes and begins
12407 # with a dollar sign (not a hyphen), so the echo should work correctly.
12408 # The option is referenced via a variable to avoid confusing sed.
12409 lt_compile=`echo "$ac_compile" | $SED \
12410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12412 -e 's:$: $lt_compiler_flag:'`
12413 (eval echo "\"\$as_me:12413: $lt_compile\"" >&5)
12414 (eval "$lt_compile" 2>conftest.err)
12415 ac_status=$?
12416 cat conftest.err >&5
12417 echo "$as_me:12417: \$? = $ac_status" >&5
12418 if (exit $ac_status) && test -s "$ac_outfile"; then
12419 # The compiler can only warn and ignore the option if not recognized
12420 # So say no if there are warnings other than the usual output.
12421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12424 lt_prog_compiler_pic_works_CXX=yes
12425 fi
12426 fi
12427 $rm conftest*
12428
12429 fi
12430 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12431 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12432
12433 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12434 case $lt_prog_compiler_pic_CXX in
12435 "" | " "*) ;;
12436 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12437 esac
12438 else
12439 lt_prog_compiler_pic_CXX=
12440 lt_prog_compiler_can_build_shared_CXX=no
12441 fi
12442
12443 fi
12444 case $host_os in
12445 # For platforms which do not support PIC, -DPIC is meaningless:
12446 *djgpp*)
12447 lt_prog_compiler_pic_CXX=
12448 ;;
12449 *)
12450 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12451 ;;
12452 esac
12453
12454 #
12455 # Check to make sure the static flag actually works.
12456 #
12457 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12458 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12460 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463 lt_prog_compiler_static_works_CXX=no
12464 save_LDFLAGS="$LDFLAGS"
12465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12468 # The linker can only warn and ignore the option if not recognized
12469 # So say no if there are warnings
12470 if test -s conftest.err; then
12471 # Append any errors to the config.log.
12472 cat conftest.err 1>&5
12473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12475 if diff conftest.exp conftest.er2 >/dev/null; then
12476 lt_prog_compiler_static_works_CXX=yes
12477 fi
12478 else
12479 lt_prog_compiler_static_works_CXX=yes
12480 fi
12481 fi
12482 $rm conftest*
12483 LDFLAGS="$save_LDFLAGS"
12484
12485 fi
12486 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12487 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12488
12489 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12490 :
12491 else
12492 lt_prog_compiler_static_CXX=
12493 fi
12494
12495
12496 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12498 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 else
12501 lt_cv_prog_compiler_c_o_CXX=no
12502 $rm -r conftest 2>/dev/null
12503 mkdir conftest
12504 cd conftest
12505 mkdir out
12506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12507
12508 lt_compiler_flag="-o out/conftest2.$ac_objext"
12509 # Insert the option either (1) after the last *FLAGS variable, or
12510 # (2) before a word containing "conftest.", or (3) at the end.
12511 # Note that $ac_compile itself does not contain backslashes and begins
12512 # with a dollar sign (not a hyphen), so the echo should work correctly.
12513 lt_compile=`echo "$ac_compile" | $SED \
12514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12516 -e 's:$: $lt_compiler_flag:'`
12517 (eval echo "\"\$as_me:12517: $lt_compile\"" >&5)
12518 (eval "$lt_compile" 2>out/conftest.err)
12519 ac_status=$?
12520 cat out/conftest.err >&5
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12523 then
12524 # The compiler can only warn and ignore the option if not recognized
12525 # So say no if there are warnings
12526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12529 lt_cv_prog_compiler_c_o_CXX=yes
12530 fi
12531 fi
12532 chmod u+w . 2>&5
12533 $rm conftest*
12534 # SGI C++ compiler will create directory out/ii_files/ for
12535 # template instantiation
12536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12537 $rm out/* && rmdir out
12538 cd ..
12539 rmdir conftest
12540 $rm conftest*
12541
12542 fi
12543 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12545
12546
12547 hard_links="nottested"
12548 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12549 # do not overwrite the value of need_locks provided by the user
12550 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12552 hard_links=yes
12553 $rm conftest*
12554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12555 touch conftest.a
12556 ln conftest.a conftest.b 2>&5 || hard_links=no
12557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12558 { echo "$as_me:$LINENO: result: $hard_links" >&5
12559 echo "${ECHO_T}$hard_links" >&6; }
12560 if test "$hard_links" = no; then
12561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12563 need_locks=warn
12564 fi
12565 else
12566 need_locks=no
12567 fi
12568
12569 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12571
12572 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12573 case $host_os in
12574 aix4* | aix5*)
12575 # If we're using GNU nm, then we don't want the "-C" option.
12576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12577 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12578 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'
12579 else
12580 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'
12581 fi
12582 ;;
12583 pw32*)
12584 export_symbols_cmds_CXX="$ltdll_cmds"
12585 ;;
12586 cygwin* | mingw*)
12587 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'
12588 ;;
12589 *)
12590 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12591 ;;
12592 esac
12593
12594 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12595 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12596 test "$ld_shlibs_CXX" = no && can_build_shared=no
12597
12598 #
12599 # Do we need to explicitly link libc?
12600 #
12601 case "x$archive_cmds_need_lc_CXX" in
12602 x|xyes)
12603 # Assume -lc should be added
12604 archive_cmds_need_lc_CXX=yes
12605
12606 if test "$enable_shared" = yes && test "$GCC" = yes; then
12607 case $archive_cmds_CXX in
12608 *'~'*)
12609 # FIXME: we may have to deal with multi-command sequences.
12610 ;;
12611 '$CC '*)
12612 # Test whether the compiler implicitly links with -lc since on some
12613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12614 # to ld, don't add -lc before -lgcc.
12615 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12616 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12617 $rm conftest*
12618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12619
12620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } 2>conftest.err; then
12625 soname=conftest
12626 lib=conftest
12627 libobjs=conftest.$ac_objext
12628 deplibs=
12629 wl=$lt_prog_compiler_wl_CXX
12630 pic_flag=$lt_prog_compiler_pic_CXX
12631 compiler_flags=-v
12632 linker_flags=-v
12633 verstring=
12634 output_objdir=.
12635 libname=conftest
12636 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12637 allow_undefined_flag_CXX=
12638 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12639 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }
12643 then
12644 archive_cmds_need_lc_CXX=no
12645 else
12646 archive_cmds_need_lc_CXX=yes
12647 fi
12648 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12649 else
12650 cat conftest.err 1>&5
12651 fi
12652 $rm conftest*
12653 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12654 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12655 ;;
12656 esac
12657 fi
12658 ;;
12659 esac
12660
12661 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12662 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12663 library_names_spec=
12664 libname_spec='lib$name'
12665 soname_spec=
12666 shrext_cmds=".so"
12667 postinstall_cmds=
12668 postuninstall_cmds=
12669 finish_cmds=
12670 finish_eval=
12671 shlibpath_var=
12672 shlibpath_overrides_runpath=unknown
12673 version_type=none
12674 dynamic_linker="$host_os ld.so"
12675 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12676
12677 need_lib_prefix=unknown
12678 hardcode_into_libs=no
12679
12680 # when you set need_version to no, make sure it does not cause -set_version
12681 # flags to be left without arguments
12682 need_version=unknown
12683
12684 case $host_os in
12685 aix3*)
12686 version_type=linux
12687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12688 shlibpath_var=LIBPATH
12689
12690 # AIX 3 has no versioning support, so we append a major version to the name.
12691 soname_spec='${libname}${release}${shared_ext}$major'
12692 ;;
12693
12694 aix4* | aix5*)
12695 version_type=linux
12696 need_lib_prefix=no
12697 need_version=no
12698 hardcode_into_libs=yes
12699 if test "$host_cpu" = ia64; then
12700 # AIX 5 supports IA64
12701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12702 shlibpath_var=LD_LIBRARY_PATH
12703 else
12704 # With GCC up to 2.95.x, collect2 would create an import file
12705 # for dependence libraries. The import file would start with
12706 # the line `#! .'. This would cause the generated library to
12707 # depend on `.', always an invalid library. This was fixed in
12708 # development snapshots of GCC prior to 3.0.
12709 case $host_os in
12710 aix4 | aix4.[01] | aix4.[01].*)
12711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12712 echo ' yes '
12713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12714 :
12715 else
12716 can_build_shared=no
12717 fi
12718 ;;
12719 esac
12720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12721 # soname into executable. Probably we can add versioning support to
12722 # collect2, so additional links can be useful in future.
12723 if test "$aix_use_runtimelinking" = yes; then
12724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12725 # instead of lib<name>.a to let people know that these are not
12726 # typical AIX shared libraries.
12727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728 else
12729 # We preserve .a as extension for shared libraries through AIX4.2
12730 # and later when we are not doing run time linking.
12731 library_names_spec='${libname}${release}.a $libname.a'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 fi
12734 shlibpath_var=LIBPATH
12735 fi
12736 ;;
12737
12738 amigaos*)
12739 library_names_spec='$libname.ixlibrary $libname.a'
12740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12741 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'
12742 ;;
12743
12744 beos*)
12745 library_names_spec='${libname}${shared_ext}'
12746 dynamic_linker="$host_os ld.so"
12747 shlibpath_var=LIBRARY_PATH
12748 ;;
12749
12750 bsdi[45]*)
12751 version_type=linux
12752 need_version=no
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12756 shlibpath_var=LD_LIBRARY_PATH
12757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12759 # the default ld.so.conf also contains /usr/contrib/lib and
12760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12761 # libtool to hard-code these into programs
12762 ;;
12763
12764 cygwin* | mingw* | pw32*)
12765 version_type=windows
12766 shrext_cmds=".dll"
12767 need_version=no
12768 need_lib_prefix=no
12769
12770 case $GCC,$host_os in
12771 yes,cygwin* | yes,mingw* | yes,pw32*)
12772 library_names_spec='$libname.dll.a'
12773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12774 postinstall_cmds='base_file=`basename \${file}`~
12775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12776 dldir=$destdir/`dirname \$dlpath`~
12777 test -d \$dldir || mkdir -p \$dldir~
12778 $install_prog $dir/$dlname \$dldir/$dlname~
12779 chmod a+x \$dldir/$dlname'
12780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12781 dlpath=$dir/\$dldll~
12782 $rm \$dlpath'
12783 shlibpath_overrides_runpath=yes
12784
12785 case $host_os in
12786 cygwin*)
12787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12790 ;;
12791 mingw*)
12792 # MinGW DLLs use traditional 'lib' prefix
12793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12796 # It is most probably a Windows format PATH printed by
12797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12798 # path with ; separators, and with drive letters. We can handle the
12799 # drive letters (cygwin fileutils understands them), so leave them,
12800 # especially as we might pass files found there to a mingw objdump,
12801 # which wouldn't understand a cygwinified path. Ahh.
12802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12803 else
12804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12805 fi
12806 ;;
12807 pw32*)
12808 # pw32 DLLs use 'pw' prefix rather than 'lib'
12809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12810 ;;
12811 esac
12812 ;;
12813
12814 *)
12815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12816 ;;
12817 esac
12818 dynamic_linker='Win32 ld.exe'
12819 # FIXME: first we should search . and the directory the executable is in
12820 shlibpath_var=PATH
12821 ;;
12822
12823 darwin* | rhapsody*)
12824 dynamic_linker="$host_os dyld"
12825 version_type=darwin
12826 need_lib_prefix=no
12827 need_version=no
12828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12829 soname_spec='${libname}${release}${major}$shared_ext'
12830 shlibpath_overrides_runpath=yes
12831 shlibpath_var=DYLD_LIBRARY_PATH
12832 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12833
12834 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12835 ;;
12836
12837 dgux*)
12838 version_type=linux
12839 need_lib_prefix=no
12840 need_version=no
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 shlibpath_var=LD_LIBRARY_PATH
12844 ;;
12845
12846 freebsd1*)
12847 dynamic_linker=no
12848 ;;
12849
12850 freebsd* | dragonfly*)
12851 # DragonFly does not have aout. When/if they implement a new
12852 # versioning mechanism, adjust this.
12853 if test -x /usr/bin/objformat; then
12854 objformat=`/usr/bin/objformat`
12855 else
12856 case $host_os in
12857 freebsd[123]*) objformat=aout ;;
12858 *) objformat=elf ;;
12859 esac
12860 fi
12861 version_type=freebsd-$objformat
12862 case $version_type in
12863 freebsd-elf*)
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12865 need_version=no
12866 need_lib_prefix=no
12867 ;;
12868 freebsd-*)
12869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12870 need_version=yes
12871 ;;
12872 esac
12873 shlibpath_var=LD_LIBRARY_PATH
12874 case $host_os in
12875 freebsd2*)
12876 shlibpath_overrides_runpath=yes
12877 ;;
12878 freebsd3.[01]* | freebsdelf3.[01]*)
12879 shlibpath_overrides_runpath=yes
12880 hardcode_into_libs=yes
12881 ;;
12882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12884 shlibpath_overrides_runpath=no
12885 hardcode_into_libs=yes
12886 ;;
12887 *) # from 4.6 on, and DragonFly
12888 shlibpath_overrides_runpath=yes
12889 hardcode_into_libs=yes
12890 ;;
12891 esac
12892 ;;
12893
12894 gnu*)
12895 version_type=linux
12896 need_lib_prefix=no
12897 need_version=no
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12899 soname_spec='${libname}${release}${shared_ext}$major'
12900 shlibpath_var=LD_LIBRARY_PATH
12901 hardcode_into_libs=yes
12902 ;;
12903
12904 hpux9* | hpux10* | hpux11*)
12905 # Give a soname corresponding to the major version so that dld.sl refuses to
12906 # link against other versions.
12907 version_type=sunos
12908 need_lib_prefix=no
12909 need_version=no
12910 case $host_cpu in
12911 ia64*)
12912 shrext_cmds='.so'
12913 hardcode_into_libs=yes
12914 dynamic_linker="$host_os dld.so"
12915 shlibpath_var=LD_LIBRARY_PATH
12916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12918 soname_spec='${libname}${release}${shared_ext}$major'
12919 if test "X$HPUX_IA64_MODE" = X32; then
12920 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12921 else
12922 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12923 fi
12924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12925 ;;
12926 hppa*64*)
12927 shrext_cmds='.sl'
12928 hardcode_into_libs=yes
12929 dynamic_linker="$host_os dld.sl"
12930 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12931 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12935 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12936 ;;
12937 *)
12938 shrext_cmds='.sl'
12939 dynamic_linker="$host_os dld.sl"
12940 shlibpath_var=SHLIB_PATH
12941 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943 soname_spec='${libname}${release}${shared_ext}$major'
12944 ;;
12945 esac
12946 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12947 postinstall_cmds='chmod 555 $lib'
12948 ;;
12949
12950 interix[3-9]*)
12951 version_type=linux
12952 need_lib_prefix=no
12953 need_version=no
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 shlibpath_overrides_runpath=no
12959 hardcode_into_libs=yes
12960 ;;
12961
12962 irix5* | irix6* | nonstopux*)
12963 case $host_os in
12964 nonstopux*) version_type=nonstopux ;;
12965 *)
12966 if test "$lt_cv_prog_gnu_ld" = yes; then
12967 version_type=linux
12968 else
12969 version_type=irix
12970 fi ;;
12971 esac
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}${release}${shared_ext} $libname${shared_ext}'
12976 case $host_os in
12977 irix5* | nonstopux*)
12978 libsuff= shlibsuff=
12979 ;;
12980 *)
12981 case $LD in # libtool.m4 will add one of these switches to LD
12982 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12983 libsuff= shlibsuff= libmagic=32-bit;;
12984 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12985 libsuff=32 shlibsuff=N32 libmagic=N32;;
12986 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12987 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12988 *) libsuff= shlibsuff= libmagic=never-match;;
12989 esac
12990 ;;
12991 esac
12992 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12993 shlibpath_overrides_runpath=no
12994 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12995 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12996 hardcode_into_libs=yes
12997 ;;
12998
12999 # No shared lib support for Linux oldld, aout, or coff.
13000 linux*oldld* | linux*aout* | linux*coff*)
13001 dynamic_linker=no
13002 ;;
13003
13004 # This must be Linux ELF.
13005 linux* | k*bsd*-gnu)
13006 version_type=linux
13007 need_lib_prefix=no
13008 need_version=no
13009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13010 soname_spec='${libname}${release}${shared_ext}$major'
13011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13012 shlibpath_var=LD_LIBRARY_PATH
13013 shlibpath_overrides_runpath=no
13014 # This implies no fast_install, which is unacceptable.
13015 # Some rework will be needed to allow for fast_install
13016 # before this can be enabled.
13017 hardcode_into_libs=yes
13018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13020
13021 # Append ld.so.conf contents to the search path
13022 if test -f /etc/ld.so.conf; then
13023 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13024 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13025 fi
13026
13027 # We used to test for /lib/ld.so.1 and disable shared libraries on
13028 # powerpc, because MkLinux only supported shared libraries with the
13029 # GNU dynamic linker. Since this was broken with cross compilers,
13030 # most powerpc-linux boxes support dynamic linking these days and
13031 # people can always --disable-shared, the test was removed, and we
13032 # assume the GNU/Linux dynamic linker is in use.
13033 dynamic_linker='GNU/Linux ld.so'
13034 ;;
13035
13036 netbsd*)
13037 version_type=sunos
13038 need_lib_prefix=no
13039 need_version=no
13040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13043 dynamic_linker='NetBSD (a.out) ld.so'
13044 else
13045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13046 soname_spec='${libname}${release}${shared_ext}$major'
13047 dynamic_linker='NetBSD ld.elf_so'
13048 fi
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=yes
13051 hardcode_into_libs=yes
13052 ;;
13053
13054 newsos6)
13055 version_type=linux
13056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13057 shlibpath_var=LD_LIBRARY_PATH
13058 shlibpath_overrides_runpath=yes
13059 ;;
13060
13061 nto-qnx*)
13062 version_type=linux
13063 need_lib_prefix=no
13064 need_version=no
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 shlibpath_overrides_runpath=yes
13069 ;;
13070
13071 openbsd*)
13072 version_type=sunos
13073 sys_lib_dlsearch_path_spec="/usr/lib"
13074 need_lib_prefix=no
13075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13076 case $host_os in
13077 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13078 *) need_version=no ;;
13079 esac
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13082 shlibpath_var=LD_LIBRARY_PATH
13083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13084 case $host_os in
13085 openbsd2.[89] | openbsd2.[89].*)
13086 shlibpath_overrides_runpath=no
13087 ;;
13088 *)
13089 shlibpath_overrides_runpath=yes
13090 ;;
13091 esac
13092 else
13093 shlibpath_overrides_runpath=yes
13094 fi
13095 ;;
13096
13097 os2*)
13098 libname_spec='$name'
13099 shrext_cmds=".dll"
13100 need_lib_prefix=no
13101 library_names_spec='$libname${shared_ext} $libname.a'
13102 dynamic_linker='OS/2 ld.exe'
13103 shlibpath_var=LIBPATH
13104 ;;
13105
13106 osf3* | osf4* | osf5*)
13107 version_type=osf
13108 need_lib_prefix=no
13109 need_version=no
13110 soname_spec='${libname}${release}${shared_ext}$major'
13111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13112 shlibpath_var=LD_LIBRARY_PATH
13113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13115 ;;
13116
13117 rdos*)
13118 dynamic_linker=no
13119 ;;
13120
13121 solaris*)
13122 version_type=linux
13123 need_lib_prefix=no
13124 need_version=no
13125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13126 soname_spec='${libname}${release}${shared_ext}$major'
13127 shlibpath_var=LD_LIBRARY_PATH
13128 shlibpath_overrides_runpath=yes
13129 hardcode_into_libs=yes
13130 # ldd complains unless libraries are executable
13131 postinstall_cmds='chmod +x $lib'
13132 ;;
13133
13134 sunos4*)
13135 version_type=sunos
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13137 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 shlibpath_overrides_runpath=yes
13140 if test "$with_gnu_ld" = yes; then
13141 need_lib_prefix=no
13142 fi
13143 need_version=yes
13144 ;;
13145
13146 sysv4 | sysv4.3*)
13147 version_type=linux
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13149 soname_spec='${libname}${release}${shared_ext}$major'
13150 shlibpath_var=LD_LIBRARY_PATH
13151 case $host_vendor in
13152 sni)
13153 shlibpath_overrides_runpath=no
13154 need_lib_prefix=no
13155 export_dynamic_flag_spec='${wl}-Blargedynsym'
13156 runpath_var=LD_RUN_PATH
13157 ;;
13158 siemens)
13159 need_lib_prefix=no
13160 ;;
13161 motorola)
13162 need_lib_prefix=no
13163 need_version=no
13164 shlibpath_overrides_runpath=no
13165 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13166 ;;
13167 esac
13168 ;;
13169
13170 sysv4*MP*)
13171 if test -d /usr/nec ;then
13172 version_type=linux
13173 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13174 soname_spec='$libname${shared_ext}.$major'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 fi
13177 ;;
13178
13179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13180 version_type=freebsd-elf
13181 need_lib_prefix=no
13182 need_version=no
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13184 soname_spec='${libname}${release}${shared_ext}$major'
13185 shlibpath_var=LD_LIBRARY_PATH
13186 hardcode_into_libs=yes
13187 if test "$with_gnu_ld" = yes; then
13188 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13189 shlibpath_overrides_runpath=no
13190 else
13191 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13192 shlibpath_overrides_runpath=yes
13193 case $host_os in
13194 sco3.2v5*)
13195 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13196 ;;
13197 esac
13198 fi
13199 sys_lib_dlsearch_path_spec='/usr/lib'
13200 ;;
13201
13202 uts4*)
13203 version_type=linux
13204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13205 soname_spec='${libname}${release}${shared_ext}$major'
13206 shlibpath_var=LD_LIBRARY_PATH
13207 ;;
13208
13209 *)
13210 dynamic_linker=no
13211 ;;
13212 esac
13213 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13214 echo "${ECHO_T}$dynamic_linker" >&6; }
13215 test "$dynamic_linker" = no && can_build_shared=no
13216
13217 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13218 if test "$GCC" = yes; then
13219 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13220 fi
13221
13222 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13223 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13224 hardcode_action_CXX=
13225 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13226 test -n "$runpath_var_CXX" || \
13227 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13228
13229 # We can hardcode non-existant directories.
13230 if test "$hardcode_direct_CXX" != no &&
13231 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13232 # have to relink, otherwise we might link with an installed library
13233 # when we should be linking with a yet-to-be-installed one
13234 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13235 test "$hardcode_minus_L_CXX" != no; then
13236 # Linking always hardcodes the temporary library directory.
13237 hardcode_action_CXX=relink
13238 else
13239 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13240 hardcode_action_CXX=immediate
13241 fi
13242 else
13243 # We cannot hardcode anything, or else we can only hardcode existing
13244 # directories.
13245 hardcode_action_CXX=unsupported
13246 fi
13247 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13248 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13249
13250 if test "$hardcode_action_CXX" = relink; then
13251 # Fast installation is not supported
13252 enable_fast_install=no
13253 elif test "$shlibpath_overrides_runpath" = yes ||
13254 test "$enable_shared" = no; then
13255 # Fast installation is not necessary
13256 enable_fast_install=needless
13257 fi
13258
13259
13260 # The else clause should only fire when bootstrapping the
13261 # libtool distribution, otherwise you forgot to ship ltmain.sh
13262 # with your package, and you will get complaints that there are
13263 # no rules to generate ltmain.sh.
13264 if test -f "$ltmain"; then
13265 # See if we are running on zsh, and set the options which allow our commands through
13266 # without removal of \ escapes.
13267 if test -n "${ZSH_VERSION+set}" ; then
13268 setopt NO_GLOB_SUBST
13269 fi
13270 # Now quote all the things that may contain metacharacters while being
13271 # careful not to overquote the AC_SUBSTed values. We take copies of the
13272 # variables and quote the copies for generation of the libtool script.
13273 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13274 SED SHELL STRIP \
13275 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13276 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13277 deplibs_check_method reload_flag reload_cmds need_locks \
13278 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13279 lt_cv_sys_global_symbol_to_c_name_address \
13280 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13281 old_postinstall_cmds old_postuninstall_cmds \
13282 compiler_CXX \
13283 CC_CXX \
13284 LD_CXX \
13285 lt_prog_compiler_wl_CXX \
13286 lt_prog_compiler_pic_CXX \
13287 lt_prog_compiler_static_CXX \
13288 lt_prog_compiler_no_builtin_flag_CXX \
13289 export_dynamic_flag_spec_CXX \
13290 thread_safe_flag_spec_CXX \
13291 whole_archive_flag_spec_CXX \
13292 enable_shared_with_static_runtimes_CXX \
13293 old_archive_cmds_CXX \
13294 old_archive_from_new_cmds_CXX \
13295 predep_objects_CXX \
13296 postdep_objects_CXX \
13297 predeps_CXX \
13298 postdeps_CXX \
13299 compiler_lib_search_path_CXX \
13300 archive_cmds_CXX \
13301 archive_expsym_cmds_CXX \
13302 postinstall_cmds_CXX \
13303 postuninstall_cmds_CXX \
13304 old_archive_from_expsyms_cmds_CXX \
13305 allow_undefined_flag_CXX \
13306 no_undefined_flag_CXX \
13307 export_symbols_cmds_CXX \
13308 hardcode_libdir_flag_spec_CXX \
13309 hardcode_libdir_flag_spec_ld_CXX \
13310 hardcode_libdir_separator_CXX \
13311 hardcode_automatic_CXX \
13312 module_cmds_CXX \
13313 module_expsym_cmds_CXX \
13314 lt_cv_prog_compiler_c_o_CXX \
13315 fix_srcfile_path_CXX \
13316 exclude_expsyms_CXX \
13317 include_expsyms_CXX; do
13318
13319 case $var in
13320 old_archive_cmds_CXX | \
13321 old_archive_from_new_cmds_CXX | \
13322 archive_cmds_CXX | \
13323 archive_expsym_cmds_CXX | \
13324 module_cmds_CXX | \
13325 module_expsym_cmds_CXX | \
13326 old_archive_from_expsyms_cmds_CXX | \
13327 export_symbols_cmds_CXX | \
13328 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13329 postinstall_cmds | postuninstall_cmds | \
13330 old_postinstall_cmds | old_postuninstall_cmds | \
13331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13332 # Double-quote double-evaled strings.
13333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13334 ;;
13335 *)
13336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13337 ;;
13338 esac
13339 done
13340
13341 case $lt_echo in
13342 *'\$0 --fallback-echo"')
13343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13344 ;;
13345 esac
13346
13347 cfgfile="$ofile"
13348
13349 cat <<__EOF__ >> "$cfgfile"
13350 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13351
13352 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13353
13354 # Shell to use when invoking shell scripts.
13355 SHELL=$lt_SHELL
13356
13357 # Whether or not to build shared libraries.
13358 build_libtool_libs=$enable_shared
13359
13360 # Whether or not to build static libraries.
13361 build_old_libs=$enable_static
13362
13363 # Whether or not to add -lc for building shared libraries.
13364 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13365
13366 # Whether or not to disallow shared libs when runtime libs are static
13367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13368
13369 # Whether or not to optimize for fast installation.
13370 fast_install=$enable_fast_install
13371
13372 # The host system.
13373 host_alias=$host_alias
13374 host=$host
13375 host_os=$host_os
13376
13377 # The build system.
13378 build_alias=$build_alias
13379 build=$build
13380 build_os=$build_os
13381
13382 # An echo program that does not interpret backslashes.
13383 echo=$lt_echo
13384
13385 # The archiver.
13386 AR=$lt_AR
13387 AR_FLAGS=$lt_AR_FLAGS
13388
13389 # A C compiler.
13390 LTCC=$lt_LTCC
13391
13392 # LTCC compiler flags.
13393 LTCFLAGS=$lt_LTCFLAGS
13394
13395 # A language-specific compiler.
13396 CC=$lt_compiler_CXX
13397
13398 # Is the compiler the GNU C compiler?
13399 with_gcc=$GCC_CXX
13400
13401 # An ERE matcher.
13402 EGREP=$lt_EGREP
13403
13404 # The linker used to build libraries.
13405 LD=$lt_LD_CXX
13406
13407 # Whether we need hard or soft links.
13408 LN_S=$lt_LN_S
13409
13410 # A BSD-compatible nm program.
13411 NM=$lt_NM
13412
13413 # A symbol stripping program
13414 STRIP=$lt_STRIP
13415
13416 # Used to examine libraries when file_magic_cmd begins "file"
13417 MAGIC_CMD=$MAGIC_CMD
13418
13419 # Used on cygwin: DLL creation program.
13420 DLLTOOL="$DLLTOOL"
13421
13422 # Used on cygwin: object dumper.
13423 OBJDUMP="$OBJDUMP"
13424
13425 # Used on cygwin: assembler.
13426 AS="$AS"
13427
13428 # The name of the directory that contains temporary libtool files.
13429 objdir=$objdir
13430
13431 # How to create reloadable object files.
13432 reload_flag=$lt_reload_flag
13433 reload_cmds=$lt_reload_cmds
13434
13435 # How to pass a linker flag through the compiler.
13436 wl=$lt_lt_prog_compiler_wl_CXX
13437
13438 # Object file suffix (normally "o").
13439 objext="$ac_objext"
13440
13441 # Old archive suffix (normally "a").
13442 libext="$libext"
13443
13444 # Shared library suffix (normally ".so").
13445 shrext_cmds='$shrext_cmds'
13446
13447 # Executable file suffix (normally "").
13448 exeext="$exeext"
13449
13450 # Additional compiler flags for building library objects.
13451 pic_flag=$lt_lt_prog_compiler_pic_CXX
13452 pic_mode=$pic_mode
13453
13454 # What is the maximum length of a command?
13455 max_cmd_len=$lt_cv_sys_max_cmd_len
13456
13457 # Does compiler simultaneously support -c and -o options?
13458 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13459
13460 # Must we lock files when doing compilation?
13461 need_locks=$lt_need_locks
13462
13463 # Do we need the lib prefix for modules?
13464 need_lib_prefix=$need_lib_prefix
13465
13466 # Do we need a version for libraries?
13467 need_version=$need_version
13468
13469 # Whether dlopen is supported.
13470 dlopen_support=$enable_dlopen
13471
13472 # Whether dlopen of programs is supported.
13473 dlopen_self=$enable_dlopen_self
13474
13475 # Whether dlopen of statically linked programs is supported.
13476 dlopen_self_static=$enable_dlopen_self_static
13477
13478 # Compiler flag to prevent dynamic linking.
13479 link_static_flag=$lt_lt_prog_compiler_static_CXX
13480
13481 # Compiler flag to turn off builtin functions.
13482 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13483
13484 # Compiler flag to allow reflexive dlopens.
13485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13486
13487 # Compiler flag to generate shared objects directly from archives.
13488 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13489
13490 # Compiler flag to generate thread-safe objects.
13491 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13492
13493 # Library versioning type.
13494 version_type=$version_type
13495
13496 # Format of library name prefix.
13497 libname_spec=$lt_libname_spec
13498
13499 # List of archive names. First name is the real one, the rest are links.
13500 # The last name is the one that the linker finds with -lNAME.
13501 library_names_spec=$lt_library_names_spec
13502
13503 # The coded name of the library, if different from the real name.
13504 soname_spec=$lt_soname_spec
13505
13506 # Commands used to build and install an old-style archive.
13507 RANLIB=$lt_RANLIB
13508 old_archive_cmds=$lt_old_archive_cmds_CXX
13509 old_postinstall_cmds=$lt_old_postinstall_cmds
13510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13511
13512 # Create an old-style archive from a shared archive.
13513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13514
13515 # Create a temporary old-style archive to link instead of a shared archive.
13516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13517
13518 # Commands used to build and install a shared archive.
13519 archive_cmds=$lt_archive_cmds_CXX
13520 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13521 postinstall_cmds=$lt_postinstall_cmds
13522 postuninstall_cmds=$lt_postuninstall_cmds
13523
13524 # Commands used to build a loadable module (assumed same as above if empty)
13525 module_cmds=$lt_module_cmds_CXX
13526 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13527
13528 # Commands to strip libraries.
13529 old_striplib=$lt_old_striplib
13530 striplib=$lt_striplib
13531
13532 # Dependencies to place before the objects being linked to create a
13533 # shared library.
13534 predep_objects=$lt_predep_objects_CXX
13535
13536 # Dependencies to place after the objects being linked to create a
13537 # shared library.
13538 postdep_objects=$lt_postdep_objects_CXX
13539
13540 # Dependencies to place before the objects being linked to create a
13541 # shared library.
13542 predeps=$lt_predeps_CXX
13543
13544 # Dependencies to place after the objects being linked to create a
13545 # shared library.
13546 postdeps=$lt_postdeps_CXX
13547
13548 # The library search path used internally by the compiler when linking
13549 # a shared library.
13550 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13551
13552 # Method to check whether dependent libraries are shared objects.
13553 deplibs_check_method=$lt_deplibs_check_method
13554
13555 # Command to use when deplibs_check_method == file_magic.
13556 file_magic_cmd=$lt_file_magic_cmd
13557
13558 # Flag that allows shared libraries with undefined symbols to be built.
13559 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13560
13561 # Flag that forces no undefined symbols.
13562 no_undefined_flag=$lt_no_undefined_flag_CXX
13563
13564 # Commands used to finish a libtool library installation in a directory.
13565 finish_cmds=$lt_finish_cmds
13566
13567 # Same as above, but a single script fragment to be evaled but not shown.
13568 finish_eval=$lt_finish_eval
13569
13570 # Take the output of nm and produce a listing of raw symbols and C names.
13571 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13572
13573 # Transform the output of nm in a proper C declaration
13574 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13575
13576 # Transform the output of nm in a C name address pair
13577 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13578
13579 # This is the shared library runtime path variable.
13580 runpath_var=$runpath_var
13581
13582 # This is the shared library path variable.
13583 shlibpath_var=$shlibpath_var
13584
13585 # Is shlibpath searched before the hard-coded library search path?
13586 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13587
13588 # How to hardcode a shared library path into an executable.
13589 hardcode_action=$hardcode_action_CXX
13590
13591 # Whether we should hardcode library paths into libraries.
13592 hardcode_into_libs=$hardcode_into_libs
13593
13594 # Flag to hardcode \$libdir into a binary during linking.
13595 # This must work even if \$libdir does not exist.
13596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13597
13598 # If ld is used when linking, flag to hardcode \$libdir into
13599 # a binary during linking. This must work even if \$libdir does
13600 # not exist.
13601 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13602
13603 # Whether we need a single -rpath flag with a separated argument.
13604 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13605
13606 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13607 # resulting binary.
13608 hardcode_direct=$hardcode_direct_CXX
13609
13610 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13611 # resulting binary.
13612 hardcode_minus_L=$hardcode_minus_L_CXX
13613
13614 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13615 # the resulting binary.
13616 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13617
13618 # Set to yes if building a shared library automatically hardcodes DIR into the library
13619 # and all subsequent libraries and executables linked against it.
13620 hardcode_automatic=$hardcode_automatic_CXX
13621
13622 # Variables whose values should be saved in libtool wrapper scripts and
13623 # restored at relink time.
13624 variables_saved_for_relink="$variables_saved_for_relink"
13625
13626 # Whether libtool must link a program against all its dependency libraries.
13627 link_all_deplibs=$link_all_deplibs_CXX
13628
13629 # Compile-time system search path for libraries
13630 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13631
13632 # Run-time system search path for libraries
13633 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13634
13635 # Fix the shell variable \$srcfile for the compiler.
13636 fix_srcfile_path=$lt_fix_srcfile_path
13637
13638 # Set to yes if exported symbols are required.
13639 always_export_symbols=$always_export_symbols_CXX
13640
13641 # The commands to list exported symbols.
13642 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13643
13644 # The commands to extract the exported symbol list from a shared archive.
13645 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13646
13647 # Symbols that should not be listed in the preloaded symbols.
13648 exclude_expsyms=$lt_exclude_expsyms_CXX
13649
13650 # Symbols that must always be exported.
13651 include_expsyms=$lt_include_expsyms_CXX
13652
13653 # ### END LIBTOOL TAG CONFIG: $tagname
13654
13655 __EOF__
13656
13657
13658 else
13659 # If there is no Makefile yet, we rely on a make rule to execute
13660 # `config.status --recheck' to rerun these tests and create the
13661 # libtool script then.
13662 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13663 if test -f "$ltmain_in"; then
13664 test -f Makefile && make "$ltmain"
13665 fi
13666 fi
13667
13668
13669 ac_ext=c
13670 ac_cpp='$CPP $CPPFLAGS'
13671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13674
13675 CC=$lt_save_CC
13676 LDCXX=$LD
13677 LD=$lt_save_LD
13678 GCC=$lt_save_GCC
13679 with_gnu_ldcxx=$with_gnu_ld
13680 with_gnu_ld=$lt_save_with_gnu_ld
13681 lt_cv_path_LDCXX=$lt_cv_path_LD
13682 lt_cv_path_LD=$lt_save_path_LD
13683 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13684 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13685
13686 else
13687 tagname=""
13688 fi
13689 ;;
13690
13691 F77)
13692 if test -n "$F77" && test "X$F77" != "Xno"; then
13693
13694 ac_ext=f
13695 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13696 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13697 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13698
13699
13700 archive_cmds_need_lc_F77=no
13701 allow_undefined_flag_F77=
13702 always_export_symbols_F77=no
13703 archive_expsym_cmds_F77=
13704 export_dynamic_flag_spec_F77=
13705 hardcode_direct_F77=no
13706 hardcode_libdir_flag_spec_F77=
13707 hardcode_libdir_flag_spec_ld_F77=
13708 hardcode_libdir_separator_F77=
13709 hardcode_minus_L_F77=no
13710 hardcode_automatic_F77=no
13711 module_cmds_F77=
13712 module_expsym_cmds_F77=
13713 link_all_deplibs_F77=unknown
13714 old_archive_cmds_F77=$old_archive_cmds
13715 no_undefined_flag_F77=
13716 whole_archive_flag_spec_F77=
13717 enable_shared_with_static_runtimes_F77=no
13718
13719 # Source file extension for f77 test sources.
13720 ac_ext=f
13721
13722 # Object file extension for compiled f77 test sources.
13723 objext=o
13724 objext_F77=$objext
13725
13726 # Code to be used in simple compile tests
13727 lt_simple_compile_test_code="\
13728 subroutine t
13729 return
13730 end
13731 "
13732
13733 # Code to be used in simple link tests
13734 lt_simple_link_test_code="\
13735 program t
13736 end
13737 "
13738
13739 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13740
13741 # If no C compiler was specified, use CC.
13742 LTCC=${LTCC-"$CC"}
13743
13744 # If no C compiler flags were specified, use CFLAGS.
13745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13746
13747 # Allow CC to be a program name with arguments.
13748 compiler=$CC
13749
13750
13751 # save warnings/boilerplate of simple test code
13752 ac_outfile=conftest.$ac_objext
13753 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13754 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13755 _lt_compiler_boilerplate=`cat conftest.err`
13756 $rm conftest*
13757
13758 ac_outfile=conftest.$ac_objext
13759 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13760 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13761 _lt_linker_boilerplate=`cat conftest.err`
13762 $rm conftest*
13763
13764
13765 # Allow CC to be a program name with arguments.
13766 lt_save_CC="$CC"
13767 CC=${F77-"f77"}
13768 compiler=$CC
13769 compiler_F77=$CC
13770 for cc_temp in $compiler""; do
13771 case $cc_temp in
13772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13774 \-*) ;;
13775 *) break;;
13776 esac
13777 done
13778 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13779
13780
13781 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13782 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13783 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13784 echo "${ECHO_T}$can_build_shared" >&6; }
13785
13786 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13787 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13788 test "$can_build_shared" = "no" && enable_shared=no
13789
13790 # On AIX, shared libraries and static libraries use the same namespace, and
13791 # are all built from PIC.
13792 case $host_os in
13793 aix3*)
13794 test "$enable_shared" = yes && enable_static=no
13795 if test -n "$RANLIB"; then
13796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13797 postinstall_cmds='$RANLIB $lib'
13798 fi
13799 ;;
13800 aix4* | aix5*)
13801 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13802 test "$enable_shared" = yes && enable_static=no
13803 fi
13804 ;;
13805 esac
13806 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13807 echo "${ECHO_T}$enable_shared" >&6; }
13808
13809 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13810 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13811 # Make sure either enable_shared or enable_static is yes.
13812 test "$enable_shared" = yes || enable_static=yes
13813 { echo "$as_me:$LINENO: result: $enable_static" >&5
13814 echo "${ECHO_T}$enable_static" >&6; }
13815
13816 GCC_F77="$G77"
13817 LD_F77="$LD"
13818
13819 lt_prog_compiler_wl_F77=
13820 lt_prog_compiler_pic_F77=
13821 lt_prog_compiler_static_F77=
13822
13823 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13824 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13825
13826 if test "$GCC" = yes; then
13827 lt_prog_compiler_wl_F77='-Wl,'
13828 lt_prog_compiler_static_F77='-static'
13829
13830 case $host_os in
13831 aix*)
13832 # All AIX code is PIC.
13833 if test "$host_cpu" = ia64; then
13834 # AIX 5 now supports IA64 processor
13835 lt_prog_compiler_static_F77='-Bstatic'
13836 fi
13837 ;;
13838
13839 amigaos*)
13840 # FIXME: we need at least 68020 code to build shared libraries, but
13841 # adding the `-m68020' flag to GCC prevents building anything better,
13842 # like `-m68040'.
13843 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13844 ;;
13845
13846 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13847 # PIC is the default for these OSes.
13848 ;;
13849
13850 mingw* | cygwin* | pw32* | os2*)
13851 # This hack is so that the source file can tell whether it is being
13852 # built for inclusion in a dll (and should export symbols for example).
13853 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13854 # (--disable-auto-import) libraries
13855 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13856 ;;
13857
13858 darwin* | rhapsody*)
13859 # PIC is the default on this platform
13860 # Common symbols not allowed in MH_DYLIB files
13861 lt_prog_compiler_pic_F77='-fno-common'
13862 ;;
13863
13864 interix[3-9]*)
13865 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13866 # Instead, we relocate shared libraries at runtime.
13867 ;;
13868
13869 msdosdjgpp*)
13870 # Just because we use GCC doesn't mean we suddenly get shared libraries
13871 # on systems that don't support them.
13872 lt_prog_compiler_can_build_shared_F77=no
13873 enable_shared=no
13874 ;;
13875
13876 sysv4*MP*)
13877 if test -d /usr/nec; then
13878 lt_prog_compiler_pic_F77=-Kconform_pic
13879 fi
13880 ;;
13881
13882 hpux*)
13883 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13884 # not for PA HP-UX.
13885 case $host_cpu in
13886 hppa*64*|ia64*)
13887 # +Z the default
13888 ;;
13889 *)
13890 lt_prog_compiler_pic_F77='-fPIC'
13891 ;;
13892 esac
13893 ;;
13894
13895 *)
13896 lt_prog_compiler_pic_F77='-fPIC'
13897 ;;
13898 esac
13899 else
13900 # PORTME Check for flag to pass linker flags through the system compiler.
13901 case $host_os in
13902 aix*)
13903 lt_prog_compiler_wl_F77='-Wl,'
13904 if test "$host_cpu" = ia64; then
13905 # AIX 5 now supports IA64 processor
13906 lt_prog_compiler_static_F77='-Bstatic'
13907 else
13908 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13909 fi
13910 ;;
13911 darwin*)
13912 # PIC is the default on this platform
13913 # Common symbols not allowed in MH_DYLIB files
13914 case $cc_basename in
13915 xlc*)
13916 lt_prog_compiler_pic_F77='-qnocommon'
13917 lt_prog_compiler_wl_F77='-Wl,'
13918 ;;
13919 esac
13920 ;;
13921
13922 mingw* | cygwin* | pw32* | os2*)
13923 # This hack is so that the source file can tell whether it is being
13924 # built for inclusion in a dll (and should export symbols for example).
13925 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13926 ;;
13927
13928 hpux9* | hpux10* | hpux11*)
13929 lt_prog_compiler_wl_F77='-Wl,'
13930 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13931 # not for PA HP-UX.
13932 case $host_cpu in
13933 hppa*64*|ia64*)
13934 # +Z the default
13935 ;;
13936 *)
13937 lt_prog_compiler_pic_F77='+Z'
13938 ;;
13939 esac
13940 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13941 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13942 ;;
13943
13944 irix5* | irix6* | nonstopux*)
13945 lt_prog_compiler_wl_F77='-Wl,'
13946 # PIC (with -KPIC) is the default.
13947 lt_prog_compiler_static_F77='-non_shared'
13948 ;;
13949
13950 newsos6)
13951 lt_prog_compiler_pic_F77='-KPIC'
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 ;;
13954
13955 linux* | k*bsd*-gnu)
13956 case $cc_basename in
13957 icc* | ecc*)
13958 lt_prog_compiler_wl_F77='-Wl,'
13959 lt_prog_compiler_pic_F77='-KPIC'
13960 lt_prog_compiler_static_F77='-static'
13961 ;;
13962 pgcc* | pgf77* | pgf90* | pgf95*)
13963 # Portland Group compilers (*not* the Pentium gcc compiler,
13964 # which looks to be a dead project)
13965 lt_prog_compiler_wl_F77='-Wl,'
13966 lt_prog_compiler_pic_F77='-fpic'
13967 lt_prog_compiler_static_F77='-Bstatic'
13968 ;;
13969 ccc*)
13970 lt_prog_compiler_wl_F77='-Wl,'
13971 # All Alpha code is PIC.
13972 lt_prog_compiler_static_F77='-non_shared'
13973 ;;
13974 *)
13975 case `$CC -V 2>&1 | sed 5q` in
13976 *Sun\ C*)
13977 # Sun C 5.9
13978 lt_prog_compiler_pic_F77='-KPIC'
13979 lt_prog_compiler_static_F77='-Bstatic'
13980 lt_prog_compiler_wl_F77='-Wl,'
13981 ;;
13982 *Sun\ F*)
13983 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13984 lt_prog_compiler_pic_F77='-KPIC'
13985 lt_prog_compiler_static_F77='-Bstatic'
13986 lt_prog_compiler_wl_F77=''
13987 ;;
13988 esac
13989 ;;
13990 esac
13991 ;;
13992
13993 osf3* | osf4* | osf5*)
13994 lt_prog_compiler_wl_F77='-Wl,'
13995 # All OSF/1 code is PIC.
13996 lt_prog_compiler_static_F77='-non_shared'
13997 ;;
13998
13999 rdos*)
14000 lt_prog_compiler_static_F77='-non_shared'
14001 ;;
14002
14003 solaris*)
14004 lt_prog_compiler_pic_F77='-KPIC'
14005 lt_prog_compiler_static_F77='-Bstatic'
14006 case $cc_basename in
14007 f77* | f90* | f95*)
14008 lt_prog_compiler_wl_F77='-Qoption ld ';;
14009 *)
14010 lt_prog_compiler_wl_F77='-Wl,';;
14011 esac
14012 ;;
14013
14014 sunos4*)
14015 lt_prog_compiler_wl_F77='-Qoption ld '
14016 lt_prog_compiler_pic_F77='-PIC'
14017 lt_prog_compiler_static_F77='-Bstatic'
14018 ;;
14019
14020 sysv4 | sysv4.2uw2* | sysv4.3*)
14021 lt_prog_compiler_wl_F77='-Wl,'
14022 lt_prog_compiler_pic_F77='-KPIC'
14023 lt_prog_compiler_static_F77='-Bstatic'
14024 ;;
14025
14026 sysv4*MP*)
14027 if test -d /usr/nec ;then
14028 lt_prog_compiler_pic_F77='-Kconform_pic'
14029 lt_prog_compiler_static_F77='-Bstatic'
14030 fi
14031 ;;
14032
14033 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14034 lt_prog_compiler_wl_F77='-Wl,'
14035 lt_prog_compiler_pic_F77='-KPIC'
14036 lt_prog_compiler_static_F77='-Bstatic'
14037 ;;
14038
14039 unicos*)
14040 lt_prog_compiler_wl_F77='-Wl,'
14041 lt_prog_compiler_can_build_shared_F77=no
14042 ;;
14043
14044 uts4*)
14045 lt_prog_compiler_pic_F77='-pic'
14046 lt_prog_compiler_static_F77='-Bstatic'
14047 ;;
14048
14049 *)
14050 lt_prog_compiler_can_build_shared_F77=no
14051 ;;
14052 esac
14053 fi
14054
14055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14056 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14057
14058 #
14059 # Check to make sure the PIC flag actually works.
14060 #
14061 if test -n "$lt_prog_compiler_pic_F77"; then
14062
14063 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14064 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14065 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 lt_prog_compiler_pic_works_F77=no
14069 ac_outfile=conftest.$ac_objext
14070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14071 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14072 # Insert the option either (1) after the last *FLAGS variable, or
14073 # (2) before a word containing "conftest.", or (3) at the end.
14074 # Note that $ac_compile itself does not contain backslashes and begins
14075 # with a dollar sign (not a hyphen), so the echo should work correctly.
14076 # The option is referenced via a variable to avoid confusing sed.
14077 lt_compile=`echo "$ac_compile" | $SED \
14078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14080 -e 's:$: $lt_compiler_flag:'`
14081 (eval echo "\"\$as_me:14081: $lt_compile\"" >&5)
14082 (eval "$lt_compile" 2>conftest.err)
14083 ac_status=$?
14084 cat conftest.err >&5
14085 echo "$as_me:14085: \$? = $ac_status" >&5
14086 if (exit $ac_status) && test -s "$ac_outfile"; then
14087 # The compiler can only warn and ignore the option if not recognized
14088 # So say no if there are warnings other than the usual output.
14089 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14090 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14091 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14092 lt_prog_compiler_pic_works_F77=yes
14093 fi
14094 fi
14095 $rm conftest*
14096
14097 fi
14098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14099 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14100
14101 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14102 case $lt_prog_compiler_pic_F77 in
14103 "" | " "*) ;;
14104 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14105 esac
14106 else
14107 lt_prog_compiler_pic_F77=
14108 lt_prog_compiler_can_build_shared_F77=no
14109 fi
14110
14111 fi
14112 case $host_os in
14113 # For platforms which do not support PIC, -DPIC is meaningless:
14114 *djgpp*)
14115 lt_prog_compiler_pic_F77=
14116 ;;
14117 *)
14118 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14119 ;;
14120 esac
14121
14122 #
14123 # Check to make sure the static flag actually works.
14124 #
14125 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14126 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14127 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14128 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131 lt_prog_compiler_static_works_F77=no
14132 save_LDFLAGS="$LDFLAGS"
14133 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14134 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14135 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14136 # The linker can only warn and ignore the option if not recognized
14137 # So say no if there are warnings
14138 if test -s conftest.err; then
14139 # Append any errors to the config.log.
14140 cat conftest.err 1>&5
14141 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14142 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14143 if diff conftest.exp conftest.er2 >/dev/null; then
14144 lt_prog_compiler_static_works_F77=yes
14145 fi
14146 else
14147 lt_prog_compiler_static_works_F77=yes
14148 fi
14149 fi
14150 $rm conftest*
14151 LDFLAGS="$save_LDFLAGS"
14152
14153 fi
14154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14155 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14156
14157 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14158 :
14159 else
14160 lt_prog_compiler_static_F77=
14161 fi
14162
14163
14164 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14166 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 else
14169 lt_cv_prog_compiler_c_o_F77=no
14170 $rm -r conftest 2>/dev/null
14171 mkdir conftest
14172 cd conftest
14173 mkdir out
14174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14175
14176 lt_compiler_flag="-o out/conftest2.$ac_objext"
14177 # Insert the option either (1) after the last *FLAGS variable, or
14178 # (2) before a word containing "conftest.", or (3) at the end.
14179 # Note that $ac_compile itself does not contain backslashes and begins
14180 # with a dollar sign (not a hyphen), so the echo should work correctly.
14181 lt_compile=`echo "$ac_compile" | $SED \
14182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14184 -e 's:$: $lt_compiler_flag:'`
14185 (eval echo "\"\$as_me:14185: $lt_compile\"" >&5)
14186 (eval "$lt_compile" 2>out/conftest.err)
14187 ac_status=$?
14188 cat out/conftest.err >&5
14189 echo "$as_me:14189: \$? = $ac_status" >&5
14190 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14191 then
14192 # The compiler can only warn and ignore the option if not recognized
14193 # So say no if there are warnings
14194 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14195 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14196 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14197 lt_cv_prog_compiler_c_o_F77=yes
14198 fi
14199 fi
14200 chmod u+w . 2>&5
14201 $rm conftest*
14202 # SGI C++ compiler will create directory out/ii_files/ for
14203 # template instantiation
14204 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14205 $rm out/* && rmdir out
14206 cd ..
14207 rmdir conftest
14208 $rm conftest*
14209
14210 fi
14211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14213
14214
14215 hard_links="nottested"
14216 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14217 # do not overwrite the value of need_locks provided by the user
14218 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14220 hard_links=yes
14221 $rm conftest*
14222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14223 touch conftest.a
14224 ln conftest.a conftest.b 2>&5 || hard_links=no
14225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14226 { echo "$as_me:$LINENO: result: $hard_links" >&5
14227 echo "${ECHO_T}$hard_links" >&6; }
14228 if test "$hard_links" = no; then
14229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14231 need_locks=warn
14232 fi
14233 else
14234 need_locks=no
14235 fi
14236
14237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14239
14240 runpath_var=
14241 allow_undefined_flag_F77=
14242 enable_shared_with_static_runtimes_F77=no
14243 archive_cmds_F77=
14244 archive_expsym_cmds_F77=
14245 old_archive_From_new_cmds_F77=
14246 old_archive_from_expsyms_cmds_F77=
14247 export_dynamic_flag_spec_F77=
14248 whole_archive_flag_spec_F77=
14249 thread_safe_flag_spec_F77=
14250 hardcode_libdir_flag_spec_F77=
14251 hardcode_libdir_flag_spec_ld_F77=
14252 hardcode_libdir_separator_F77=
14253 hardcode_direct_F77=no
14254 hardcode_minus_L_F77=no
14255 hardcode_shlibpath_var_F77=unsupported
14256 link_all_deplibs_F77=unknown
14257 hardcode_automatic_F77=no
14258 module_cmds_F77=
14259 module_expsym_cmds_F77=
14260 always_export_symbols_F77=no
14261 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14262 # include_expsyms should be a list of space-separated symbols to be *always*
14263 # included in the symbol list
14264 include_expsyms_F77=
14265 # exclude_expsyms can be an extended regexp of symbols to exclude
14266 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14267 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14268 # as well as any symbol that contains `d'.
14269 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14270 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14271 # platforms (ab)use it in PIC code, but their linkers get confused if
14272 # the symbol is explicitly referenced. Since portable code cannot
14273 # rely on this symbol name, it's probably fine to never include it in
14274 # preloaded symbol tables.
14275 extract_expsyms_cmds=
14276 # Just being paranoid about ensuring that cc_basename is set.
14277 for cc_temp in $compiler""; do
14278 case $cc_temp in
14279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14281 \-*) ;;
14282 *) break;;
14283 esac
14284 done
14285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14286
14287 case $host_os in
14288 cygwin* | mingw* | pw32*)
14289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14290 # When not using gcc, we currently assume that we are using
14291 # Microsoft Visual C++.
14292 if test "$GCC" != yes; then
14293 with_gnu_ld=no
14294 fi
14295 ;;
14296 interix*)
14297 # we just hope/assume this is gcc and not c89 (= MSVC++)
14298 with_gnu_ld=yes
14299 ;;
14300 openbsd*)
14301 with_gnu_ld=no
14302 ;;
14303 esac
14304
14305 ld_shlibs_F77=yes
14306 if test "$with_gnu_ld" = yes; then
14307 # If archive_cmds runs LD, not CC, wlarc should be empty
14308 wlarc='${wl}'
14309
14310 # Set some defaults for GNU ld with shared library support. These
14311 # are reset later if shared libraries are not supported. Putting them
14312 # here allows them to be overridden if necessary.
14313 runpath_var=LD_RUN_PATH
14314 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14315 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14316 # ancient GNU ld didn't support --whole-archive et. al.
14317 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14318 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14319 else
14320 whole_archive_flag_spec_F77=
14321 fi
14322 supports_anon_versioning=no
14323 case `$LD -v 2>/dev/null` in
14324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14327 *\ 2.11.*) ;; # other 2.11 versions
14328 *) supports_anon_versioning=yes ;;
14329 esac
14330
14331 # See if GNU ld supports shared libraries.
14332 case $host_os in
14333 aix3* | aix4* | aix5*)
14334 # On AIX/PPC, the GNU linker is very broken
14335 if test "$host_cpu" != ia64; then
14336 ld_shlibs_F77=no
14337 cat <<EOF 1>&2
14338
14339 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14340 *** to be unable to reliably create shared libraries on AIX.
14341 *** Therefore, libtool is disabling shared libraries support. If you
14342 *** really care for shared libraries, you may want to modify your PATH
14343 *** so that a non-GNU linker is found, and then restart.
14344
14345 EOF
14346 fi
14347 ;;
14348
14349 amigaos*)
14350 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)'
14351 hardcode_libdir_flag_spec_F77='-L$libdir'
14352 hardcode_minus_L_F77=yes
14353
14354 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
14355 # that the semantics of dynamic libraries on AmigaOS, at least up
14356 # to version 4, is to share data among multiple programs linked
14357 # with the same dynamic library. Since this doesn't match the
14358 # behavior of shared libraries on other platforms, we can't use
14359 # them.
14360 ld_shlibs_F77=no
14361 ;;
14362
14363 beos*)
14364 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14365 allow_undefined_flag_F77=unsupported
14366 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
14367 # support --undefined. This deserves some investigation. FIXME
14368 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14369 else
14370 ld_shlibs_F77=no
14371 fi
14372 ;;
14373
14374 cygwin* | mingw* | pw32*)
14375 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14376 # as there is no search path for DLLs.
14377 hardcode_libdir_flag_spec_F77='-L$libdir'
14378 allow_undefined_flag_F77=unsupported
14379 always_export_symbols_F77=no
14380 enable_shared_with_static_runtimes_F77=yes
14381 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14382
14383 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14384 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14385 # If the export-symbols file already is a .def file (1st line
14386 # is EXPORTS), use it as is; otherwise, prepend...
14387 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14388 cp $export_symbols $output_objdir/$soname.def;
14389 else
14390 echo EXPORTS > $output_objdir/$soname.def;
14391 cat $export_symbols >> $output_objdir/$soname.def;
14392 fi~
14393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14394 else
14395 ld_shlibs_F77=no
14396 fi
14397 ;;
14398
14399 interix[3-9]*)
14400 hardcode_direct_F77=no
14401 hardcode_shlibpath_var_F77=no
14402 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14403 export_dynamic_flag_spec_F77='${wl}-E'
14404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14405 # Instead, shared libraries are loaded at an image base (0x10000000 by
14406 # default) and relocated if they conflict, which is a slow very memory
14407 # consuming and fragmenting process. To avoid this, we pick a random,
14408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14410 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'
14411 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'
14412 ;;
14413
14414 gnu* | linux* | k*bsd*-gnu)
14415 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14416 tmp_addflag=
14417 case $cc_basename,$host_cpu in
14418 pgcc*) # Portland Group C compiler
14419 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'
14420 tmp_addflag=' $pic_flag'
14421 ;;
14422 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14423 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'
14424 tmp_addflag=' $pic_flag -Mnomain' ;;
14425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14426 tmp_addflag=' -i_dynamic' ;;
14427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14428 tmp_addflag=' -i_dynamic -nofor_main' ;;
14429 ifc* | ifort*) # Intel Fortran compiler
14430 tmp_addflag=' -nofor_main' ;;
14431 esac
14432 case `$CC -V 2>&1 | sed 5q` in
14433 *Sun\ C*) # Sun C 5.9
14434 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14435 tmp_sharedflag='-G' ;;
14436 *Sun\ F*) # Sun Fortran 8.3
14437 tmp_sharedflag='-G' ;;
14438 *)
14439 tmp_sharedflag='-shared' ;;
14440 esac
14441 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14442
14443 if test $supports_anon_versioning = yes; then
14444 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14445 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14446 $echo "local: *; };" >> $output_objdir/$libname.ver~
14447 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14448 fi
14449 else
14450 ld_shlibs_F77=no
14451 fi
14452 ;;
14453
14454 netbsd*)
14455 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14456 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14457 wlarc=
14458 else
14459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14460 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14461 fi
14462 ;;
14463
14464 solaris*)
14465 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14466 ld_shlibs_F77=no
14467 cat <<EOF 1>&2
14468
14469 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14470 *** create shared libraries on Solaris systems. Therefore, libtool
14471 *** is disabling shared libraries support. We urge you to upgrade GNU
14472 *** binutils to release 2.9.1 or newer. Another option is to modify
14473 *** your PATH or compiler configuration so that the native linker is
14474 *** used, and then restart.
14475
14476 EOF
14477 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14480 else
14481 ld_shlibs_F77=no
14482 fi
14483 ;;
14484
14485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14486 case `$LD -v 2>&1` in
14487 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14488 ld_shlibs_F77=no
14489 cat <<_LT_EOF 1>&2
14490
14491 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14492 *** reliably create shared libraries on SCO systems. Therefore, libtool
14493 *** is disabling shared libraries support. We urge you to upgrade GNU
14494 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14495 *** your PATH or compiler configuration so that the native linker is
14496 *** used, and then restart.
14497
14498 _LT_EOF
14499 ;;
14500 *)
14501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14502 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14503 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14504 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14505 else
14506 ld_shlibs_F77=no
14507 fi
14508 ;;
14509 esac
14510 ;;
14511
14512 sunos4*)
14513 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14514 wlarc=
14515 hardcode_direct_F77=yes
14516 hardcode_shlibpath_var_F77=no
14517 ;;
14518
14519 *)
14520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14522 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14523 else
14524 ld_shlibs_F77=no
14525 fi
14526 ;;
14527 esac
14528
14529 if test "$ld_shlibs_F77" = no; then
14530 runpath_var=
14531 hardcode_libdir_flag_spec_F77=
14532 export_dynamic_flag_spec_F77=
14533 whole_archive_flag_spec_F77=
14534 fi
14535 else
14536 # PORTME fill in a description of your system's linker (not GNU ld)
14537 case $host_os in
14538 aix3*)
14539 allow_undefined_flag_F77=unsupported
14540 always_export_symbols_F77=yes
14541 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'
14542 # Note: this linker hardcodes the directories in LIBPATH if there
14543 # are no directories specified by -L.
14544 hardcode_minus_L_F77=yes
14545 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14546 # Neither direct hardcoding nor static linking is supported with a
14547 # broken collect2.
14548 hardcode_direct_F77=unsupported
14549 fi
14550 ;;
14551
14552 aix4* | aix5*)
14553 if test "$host_cpu" = ia64; then
14554 # On IA64, the linker does run time linking by default, so we don't
14555 # have to do anything special.
14556 aix_use_runtimelinking=no
14557 exp_sym_flag='-Bexport'
14558 no_entry_flag=""
14559 else
14560 # If we're using GNU nm, then we don't want the "-C" option.
14561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14562 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14563 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'
14564 else
14565 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'
14566 fi
14567 aix_use_runtimelinking=no
14568
14569 # Test if we are trying to use run time linking or normal
14570 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14571 # need to do runtime linking.
14572 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14573 for ld_flag in $LDFLAGS; do
14574 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14575 aix_use_runtimelinking=yes
14576 break
14577 fi
14578 done
14579 ;;
14580 esac
14581
14582 exp_sym_flag='-bexport'
14583 no_entry_flag='-bnoentry'
14584 fi
14585
14586 # When large executables or shared objects are built, AIX ld can
14587 # have problems creating the table of contents. If linking a library
14588 # or program results in "error TOC overflow" add -mminimal-toc to
14589 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14590 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14591
14592 archive_cmds_F77=''
14593 hardcode_direct_F77=yes
14594 hardcode_libdir_separator_F77=':'
14595 link_all_deplibs_F77=yes
14596
14597 if test "$GCC" = yes; then
14598 case $host_os in aix4.[012]|aix4.[012].*)
14599 # We only want to do this on AIX 4.2 and lower, the check
14600 # below for broken collect2 doesn't work under 4.3+
14601 collect2name=`${CC} -print-prog-name=collect2`
14602 if test -f "$collect2name" && \
14603 strings "$collect2name" | grep resolve_lib_name >/dev/null
14604 then
14605 # We have reworked collect2
14606 :
14607 else
14608 # We have old collect2
14609 hardcode_direct_F77=unsupported
14610 # It fails to find uninstalled libraries when the uninstalled
14611 # path is not listed in the libpath. Setting hardcode_minus_L
14612 # to unsupported forces relinking
14613 hardcode_minus_L_F77=yes
14614 hardcode_libdir_flag_spec_F77='-L$libdir'
14615 hardcode_libdir_separator_F77=
14616 fi
14617 ;;
14618 esac
14619 shared_flag='-shared'
14620 if test "$aix_use_runtimelinking" = yes; then
14621 shared_flag="$shared_flag "'${wl}-G'
14622 fi
14623 else
14624 # not using gcc
14625 if test "$host_cpu" = ia64; then
14626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14627 # chokes on -Wl,-G. The following line is correct:
14628 shared_flag='-G'
14629 else
14630 if test "$aix_use_runtimelinking" = yes; then
14631 shared_flag='${wl}-G'
14632 else
14633 shared_flag='${wl}-bM:SRE'
14634 fi
14635 fi
14636 fi
14637
14638 # It seems that -bexpall does not export symbols beginning with
14639 # underscore (_), so it is better to generate a list of symbols to export.
14640 always_export_symbols_F77=yes
14641 if test "$aix_use_runtimelinking" = yes; then
14642 # Warning - without using the other runtime loading flags (-brtl),
14643 # -berok will link without error, but may produce a broken library.
14644 allow_undefined_flag_F77='-berok'
14645 # Determine the default libpath from the value encoded in an empty executable.
14646 cat >conftest.$ac_ext <<_ACEOF
14647 program main
14648
14649 end
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (ac_try="$ac_link"
14653 case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656 esac
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_link") 2>conftest.er1
14659 ac_status=$?
14660 grep -v '^ *+' conftest.er1 >conftest.err
14661 rm -f conftest.er1
14662 cat conftest.err >&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); } && {
14665 test -z "$ac_f77_werror_flag" ||
14666 test ! -s conftest.err
14667 } && test -s conftest$ac_exeext &&
14668 $as_test_x conftest$ac_exeext; then
14669
14670 lt_aix_libpath_sed='
14671 /Import File Strings/,/^$/ {
14672 /^0/ {
14673 s/^0 *\(.*\)$/\1/
14674 p
14675 }
14676 }'
14677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14678 # Check for a 64-bit object if we didn't find anything.
14679 if test -z "$aix_libpath"; then
14680 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14681 fi
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686
14687 fi
14688
14689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14690 conftest$ac_exeext conftest.$ac_ext
14691 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14692
14693 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14694 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"
14695 else
14696 if test "$host_cpu" = ia64; then
14697 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14698 allow_undefined_flag_F77="-z nodefs"
14699 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"
14700 else
14701 # Determine the default libpath from the value encoded in an empty executable.
14702 cat >conftest.$ac_ext <<_ACEOF
14703 program main
14704
14705 end
14706 _ACEOF
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (ac_try="$ac_link"
14709 case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_link") 2>conftest.er1
14715 ac_status=$?
14716 grep -v '^ *+' conftest.er1 >conftest.err
14717 rm -f conftest.er1
14718 cat conftest.err >&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } && {
14721 test -z "$ac_f77_werror_flag" ||
14722 test ! -s conftest.err
14723 } && test -s conftest$ac_exeext &&
14724 $as_test_x conftest$ac_exeext; then
14725
14726 lt_aix_libpath_sed='
14727 /Import File Strings/,/^$/ {
14728 /^0/ {
14729 s/^0 *\(.*\)$/\1/
14730 p
14731 }
14732 }'
14733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14734 # Check for a 64-bit object if we didn't find anything.
14735 if test -z "$aix_libpath"; then
14736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14737 fi
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742
14743 fi
14744
14745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14746 conftest$ac_exeext conftest.$ac_ext
14747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14748
14749 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14750 # Warning - without using the other run time loading flags,
14751 # -berok will link without error, but may produce a broken library.
14752 no_undefined_flag_F77=' ${wl}-bernotok'
14753 allow_undefined_flag_F77=' ${wl}-berok'
14754 # Exported symbols can be pulled into shared objects from archives
14755 whole_archive_flag_spec_F77='$convenience'
14756 archive_cmds_need_lc_F77=yes
14757 # This is similar to how AIX traditionally builds its shared libraries.
14758 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'
14759 fi
14760 fi
14761 ;;
14762
14763 amigaos*)
14764 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)'
14765 hardcode_libdir_flag_spec_F77='-L$libdir'
14766 hardcode_minus_L_F77=yes
14767 # see comment about different semantics on the GNU ld section
14768 ld_shlibs_F77=no
14769 ;;
14770
14771 bsdi[45]*)
14772 export_dynamic_flag_spec_F77=-rdynamic
14773 ;;
14774
14775 cygwin* | mingw* | pw32*)
14776 # When not using gcc, we currently assume that we are using
14777 # Microsoft Visual C++.
14778 # hardcode_libdir_flag_spec is actually meaningless, as there is
14779 # no search path for DLLs.
14780 hardcode_libdir_flag_spec_F77=' '
14781 allow_undefined_flag_F77=unsupported
14782 # Tell ltmain to make .lib files, not .a files.
14783 libext=lib
14784 # Tell ltmain to make .dll files, not .so files.
14785 shrext_cmds=".dll"
14786 # FIXME: Setting linknames here is a bad hack.
14787 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14788 # The linker will automatically build a .lib file if we build a DLL.
14789 old_archive_From_new_cmds_F77='true'
14790 # FIXME: Should let the user specify the lib program.
14791 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14792 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14793 enable_shared_with_static_runtimes_F77=yes
14794 ;;
14795
14796 darwin* | rhapsody*)
14797 case $host_os in
14798 rhapsody* | darwin1.[012])
14799 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14800 ;;
14801 *) # Darwin 1.3 on
14802 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14803 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14804 else
14805 case ${MACOSX_DEPLOYMENT_TARGET} in
14806 10.[012])
14807 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14808 ;;
14809 10.*)
14810 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14811 ;;
14812 esac
14813 fi
14814 ;;
14815 esac
14816 archive_cmds_need_lc_F77=no
14817 hardcode_direct_F77=no
14818 hardcode_automatic_F77=yes
14819 hardcode_shlibpath_var_F77=unsupported
14820 whole_archive_flag_spec_F77=''
14821 link_all_deplibs_F77=yes
14822 if test "$GCC" = yes ; then
14823 output_verbose_link_cmd='echo'
14824 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14825 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14826 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14827 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}'
14828 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}'
14829 else
14830 case $cc_basename in
14831 xlc*)
14832 output_verbose_link_cmd='echo'
14833 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14834 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14835 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14836 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14837 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}'
14838 ;;
14839 *)
14840 ld_shlibs_F77=no
14841 ;;
14842 esac
14843 fi
14844 ;;
14845
14846 dgux*)
14847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848 hardcode_libdir_flag_spec_F77='-L$libdir'
14849 hardcode_shlibpath_var_F77=no
14850 ;;
14851
14852 freebsd1*)
14853 ld_shlibs_F77=no
14854 ;;
14855
14856 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14857 # support. Future versions do this automatically, but an explicit c++rt0.o
14858 # does not break anything, and helps significantly (at the cost of a little
14859 # extra space).
14860 freebsd2.2*)
14861 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14862 hardcode_libdir_flag_spec_F77='-R$libdir'
14863 hardcode_direct_F77=yes
14864 hardcode_shlibpath_var_F77=no
14865 ;;
14866
14867 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14868 freebsd2*)
14869 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14870 hardcode_direct_F77=yes
14871 hardcode_minus_L_F77=yes
14872 hardcode_shlibpath_var_F77=no
14873 ;;
14874
14875 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14876 freebsd* | dragonfly*)
14877 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14878 hardcode_libdir_flag_spec_F77='-R$libdir'
14879 hardcode_direct_F77=yes
14880 hardcode_shlibpath_var_F77=no
14881 ;;
14882
14883 hpux9*)
14884 if test "$GCC" = yes; then
14885 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'
14886 else
14887 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'
14888 fi
14889 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14890 hardcode_libdir_separator_F77=:
14891 hardcode_direct_F77=yes
14892
14893 # hardcode_minus_L: Not really in the search PATH,
14894 # but as the default location of the library.
14895 hardcode_minus_L_F77=yes
14896 export_dynamic_flag_spec_F77='${wl}-E'
14897 ;;
14898
14899 hpux10*)
14900 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14901 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14902 else
14903 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14904 fi
14905 if test "$with_gnu_ld" = no; then
14906 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14907 hardcode_libdir_separator_F77=:
14908
14909 hardcode_direct_F77=yes
14910 export_dynamic_flag_spec_F77='${wl}-E'
14911
14912 # hardcode_minus_L: Not really in the search PATH,
14913 # but as the default location of the library.
14914 hardcode_minus_L_F77=yes
14915 fi
14916 ;;
14917
14918 hpux11*)
14919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14920 case $host_cpu in
14921 hppa*64*)
14922 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14923 ;;
14924 ia64*)
14925 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14926 ;;
14927 *)
14928 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14929 ;;
14930 esac
14931 else
14932 case $host_cpu in
14933 hppa*64*)
14934 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14935 ;;
14936 ia64*)
14937 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14938 ;;
14939 *)
14940 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14941 ;;
14942 esac
14943 fi
14944 if test "$with_gnu_ld" = no; then
14945 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14946 hardcode_libdir_separator_F77=:
14947
14948 case $host_cpu in
14949 hppa*64*|ia64*)
14950 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14951 hardcode_direct_F77=no
14952 hardcode_shlibpath_var_F77=no
14953 ;;
14954 *)
14955 hardcode_direct_F77=yes
14956 export_dynamic_flag_spec_F77='${wl}-E'
14957
14958 # hardcode_minus_L: Not really in the search PATH,
14959 # but as the default location of the library.
14960 hardcode_minus_L_F77=yes
14961 ;;
14962 esac
14963 fi
14964 ;;
14965
14966 irix5* | irix6* | nonstopux*)
14967 if test "$GCC" = yes; then
14968 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'
14969 else
14970 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'
14971 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14972 fi
14973 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14974 hardcode_libdir_separator_F77=:
14975 link_all_deplibs_F77=yes
14976 ;;
14977
14978 netbsd*)
14979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14980 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14981 else
14982 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14983 fi
14984 hardcode_libdir_flag_spec_F77='-R$libdir'
14985 hardcode_direct_F77=yes
14986 hardcode_shlibpath_var_F77=no
14987 ;;
14988
14989 newsos6)
14990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14991 hardcode_direct_F77=yes
14992 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14993 hardcode_libdir_separator_F77=:
14994 hardcode_shlibpath_var_F77=no
14995 ;;
14996
14997 openbsd*)
14998 if test -f /usr/libexec/ld.so; then
14999 hardcode_direct_F77=yes
15000 hardcode_shlibpath_var_F77=no
15001 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15002 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15003 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15004 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15005 export_dynamic_flag_spec_F77='${wl}-E'
15006 else
15007 case $host_os in
15008 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15009 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15010 hardcode_libdir_flag_spec_F77='-R$libdir'
15011 ;;
15012 *)
15013 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15014 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15015 ;;
15016 esac
15017 fi
15018 else
15019 ld_shlibs_F77=no
15020 fi
15021 ;;
15022
15023 os2*)
15024 hardcode_libdir_flag_spec_F77='-L$libdir'
15025 hardcode_minus_L_F77=yes
15026 allow_undefined_flag_F77=unsupported
15027 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'
15028 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15029 ;;
15030
15031 osf3*)
15032 if test "$GCC" = yes; then
15033 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15034 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'
15035 else
15036 allow_undefined_flag_F77=' -expect_unresolved \*'
15037 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'
15038 fi
15039 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15040 hardcode_libdir_separator_F77=:
15041 ;;
15042
15043 osf4* | osf5*) # as osf3* with the addition of -msym flag
15044 if test "$GCC" = yes; then
15045 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15046 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'
15047 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15048 else
15049 allow_undefined_flag_F77=' -expect_unresolved \*'
15050 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'
15051 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~
15052 $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'
15053
15054 # Both c and cxx compiler support -rpath directly
15055 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15056 fi
15057 hardcode_libdir_separator_F77=:
15058 ;;
15059
15060 solaris*)
15061 no_undefined_flag_F77=' -z text'
15062 if test "$GCC" = yes; then
15063 wlarc='${wl}'
15064 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15065 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15066 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15067 else
15068 wlarc=''
15069 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15070 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15072 fi
15073 hardcode_libdir_flag_spec_F77='-R$libdir'
15074 hardcode_shlibpath_var_F77=no
15075 case $host_os in
15076 solaris2.[0-5] | solaris2.[0-5].*) ;;
15077 *)
15078 # The compiler driver will combine and reorder linker options,
15079 # but understands `-z linker_flag'. GCC discards it without `$wl',
15080 # but is careful enough not to reorder.
15081 # Supported since Solaris 2.6 (maybe 2.5.1?)
15082 if test "$GCC" = yes; then
15083 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15084 else
15085 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15086 fi
15087 ;;
15088 esac
15089 link_all_deplibs_F77=yes
15090 ;;
15091
15092 sunos4*)
15093 if test "x$host_vendor" = xsequent; then
15094 # Use $CC to link under sequent, because it throws in some extra .o
15095 # files that make .init and .fini sections work.
15096 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15097 else
15098 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15099 fi
15100 hardcode_libdir_flag_spec_F77='-L$libdir'
15101 hardcode_direct_F77=yes
15102 hardcode_minus_L_F77=yes
15103 hardcode_shlibpath_var_F77=no
15104 ;;
15105
15106 sysv4)
15107 case $host_vendor in
15108 sni)
15109 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15110 hardcode_direct_F77=yes # is this really true???
15111 ;;
15112 siemens)
15113 ## LD is ld it makes a PLAMLIB
15114 ## CC just makes a GrossModule.
15115 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15116 reload_cmds_F77='$CC -r -o $output$reload_objs'
15117 hardcode_direct_F77=no
15118 ;;
15119 motorola)
15120 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15122 ;;
15123 esac
15124 runpath_var='LD_RUN_PATH'
15125 hardcode_shlibpath_var_F77=no
15126 ;;
15127
15128 sysv4.3*)
15129 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15130 hardcode_shlibpath_var_F77=no
15131 export_dynamic_flag_spec_F77='-Bexport'
15132 ;;
15133
15134 sysv4*MP*)
15135 if test -d /usr/nec; then
15136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15137 hardcode_shlibpath_var_F77=no
15138 runpath_var=LD_RUN_PATH
15139 hardcode_runpath_var=yes
15140 ld_shlibs_F77=yes
15141 fi
15142 ;;
15143
15144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15145 no_undefined_flag_F77='${wl}-z,text'
15146 archive_cmds_need_lc_F77=no
15147 hardcode_shlibpath_var_F77=no
15148 runpath_var='LD_RUN_PATH'
15149
15150 if test "$GCC" = yes; then
15151 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15153 else
15154 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15156 fi
15157 ;;
15158
15159 sysv5* | sco3.2v5* | sco5v6*)
15160 # Note: We can NOT use -z defs as we might desire, because we do not
15161 # link with -lc, and that would cause any symbols used from libc to
15162 # always be unresolved, which means just about no library would
15163 # ever link correctly. If we're not using GNU ld we use -z text
15164 # though, which does catch some bad symbols but isn't as heavy-handed
15165 # as -z defs.
15166 no_undefined_flag_F77='${wl}-z,text'
15167 allow_undefined_flag_F77='${wl}-z,nodefs'
15168 archive_cmds_need_lc_F77=no
15169 hardcode_shlibpath_var_F77=no
15170 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15171 hardcode_libdir_separator_F77=':'
15172 link_all_deplibs_F77=yes
15173 export_dynamic_flag_spec_F77='${wl}-Bexport'
15174 runpath_var='LD_RUN_PATH'
15175
15176 if test "$GCC" = yes; then
15177 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15178 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15179 else
15180 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15181 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15182 fi
15183 ;;
15184
15185 uts4*)
15186 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15187 hardcode_libdir_flag_spec_F77='-L$libdir'
15188 hardcode_shlibpath_var_F77=no
15189 ;;
15190
15191 *)
15192 ld_shlibs_F77=no
15193 ;;
15194 esac
15195 fi
15196
15197 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15198 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15199 test "$ld_shlibs_F77" = no && can_build_shared=no
15200
15201 #
15202 # Do we need to explicitly link libc?
15203 #
15204 case "x$archive_cmds_need_lc_F77" in
15205 x|xyes)
15206 # Assume -lc should be added
15207 archive_cmds_need_lc_F77=yes
15208
15209 if test "$enable_shared" = yes && test "$GCC" = yes; then
15210 case $archive_cmds_F77 in
15211 *'~'*)
15212 # FIXME: we may have to deal with multi-command sequences.
15213 ;;
15214 '$CC '*)
15215 # Test whether the compiler implicitly links with -lc since on some
15216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15217 # to ld, don't add -lc before -lgcc.
15218 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15219 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15220 $rm conftest*
15221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15222
15223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15224 (eval $ac_compile) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } 2>conftest.err; then
15228 soname=conftest
15229 lib=conftest
15230 libobjs=conftest.$ac_objext
15231 deplibs=
15232 wl=$lt_prog_compiler_wl_F77
15233 pic_flag=$lt_prog_compiler_pic_F77
15234 compiler_flags=-v
15235 linker_flags=-v
15236 verstring=
15237 output_objdir=.
15238 libname=conftest
15239 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15240 allow_undefined_flag_F77=
15241 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15242 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15243 ac_status=$?
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }
15246 then
15247 archive_cmds_need_lc_F77=no
15248 else
15249 archive_cmds_need_lc_F77=yes
15250 fi
15251 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15252 else
15253 cat conftest.err 1>&5
15254 fi
15255 $rm conftest*
15256 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15257 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15258 ;;
15259 esac
15260 fi
15261 ;;
15262 esac
15263
15264 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15265 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15266 library_names_spec=
15267 libname_spec='lib$name'
15268 soname_spec=
15269 shrext_cmds=".so"
15270 postinstall_cmds=
15271 postuninstall_cmds=
15272 finish_cmds=
15273 finish_eval=
15274 shlibpath_var=
15275 shlibpath_overrides_runpath=unknown
15276 version_type=none
15277 dynamic_linker="$host_os ld.so"
15278 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15279
15280 need_lib_prefix=unknown
15281 hardcode_into_libs=no
15282
15283 # when you set need_version to no, make sure it does not cause -set_version
15284 # flags to be left without arguments
15285 need_version=unknown
15286
15287 case $host_os in
15288 aix3*)
15289 version_type=linux
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15291 shlibpath_var=LIBPATH
15292
15293 # AIX 3 has no versioning support, so we append a major version to the name.
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 ;;
15296
15297 aix4* | aix5*)
15298 version_type=linux
15299 need_lib_prefix=no
15300 need_version=no
15301 hardcode_into_libs=yes
15302 if test "$host_cpu" = ia64; then
15303 # AIX 5 supports IA64
15304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 else
15307 # With GCC up to 2.95.x, collect2 would create an import file
15308 # for dependence libraries. The import file would start with
15309 # the line `#! .'. This would cause the generated library to
15310 # depend on `.', always an invalid library. This was fixed in
15311 # development snapshots of GCC prior to 3.0.
15312 case $host_os in
15313 aix4 | aix4.[01] | aix4.[01].*)
15314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15315 echo ' yes '
15316 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15317 :
15318 else
15319 can_build_shared=no
15320 fi
15321 ;;
15322 esac
15323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15324 # soname into executable. Probably we can add versioning support to
15325 # collect2, so additional links can be useful in future.
15326 if test "$aix_use_runtimelinking" = yes; then
15327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15328 # instead of lib<name>.a to let people know that these are not
15329 # typical AIX shared libraries.
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 else
15332 # We preserve .a as extension for shared libraries through AIX4.2
15333 # and later when we are not doing run time linking.
15334 library_names_spec='${libname}${release}.a $libname.a'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 fi
15337 shlibpath_var=LIBPATH
15338 fi
15339 ;;
15340
15341 amigaos*)
15342 library_names_spec='$libname.ixlibrary $libname.a'
15343 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15344 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'
15345 ;;
15346
15347 beos*)
15348 library_names_spec='${libname}${shared_ext}'
15349 dynamic_linker="$host_os ld.so"
15350 shlibpath_var=LIBRARY_PATH
15351 ;;
15352
15353 bsdi[45]*)
15354 version_type=linux
15355 need_version=no
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15359 shlibpath_var=LD_LIBRARY_PATH
15360 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15361 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15362 # the default ld.so.conf also contains /usr/contrib/lib and
15363 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15364 # libtool to hard-code these into programs
15365 ;;
15366
15367 cygwin* | mingw* | pw32*)
15368 version_type=windows
15369 shrext_cmds=".dll"
15370 need_version=no
15371 need_lib_prefix=no
15372
15373 case $GCC,$host_os in
15374 yes,cygwin* | yes,mingw* | yes,pw32*)
15375 library_names_spec='$libname.dll.a'
15376 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15377 postinstall_cmds='base_file=`basename \${file}`~
15378 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15379 dldir=$destdir/`dirname \$dlpath`~
15380 test -d \$dldir || mkdir -p \$dldir~
15381 $install_prog $dir/$dlname \$dldir/$dlname~
15382 chmod a+x \$dldir/$dlname'
15383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15384 dlpath=$dir/\$dldll~
15385 $rm \$dlpath'
15386 shlibpath_overrides_runpath=yes
15387
15388 case $host_os in
15389 cygwin*)
15390 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15391 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15392 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15393 ;;
15394 mingw*)
15395 # MinGW DLLs use traditional 'lib' prefix
15396 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15397 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15398 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15399 # It is most probably a Windows format PATH printed by
15400 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15401 # path with ; separators, and with drive letters. We can handle the
15402 # drive letters (cygwin fileutils understands them), so leave them,
15403 # especially as we might pass files found there to a mingw objdump,
15404 # which wouldn't understand a cygwinified path. Ahh.
15405 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15406 else
15407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15408 fi
15409 ;;
15410 pw32*)
15411 # pw32 DLLs use 'pw' prefix rather than 'lib'
15412 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15413 ;;
15414 esac
15415 ;;
15416
15417 *)
15418 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15419 ;;
15420 esac
15421 dynamic_linker='Win32 ld.exe'
15422 # FIXME: first we should search . and the directory the executable is in
15423 shlibpath_var=PATH
15424 ;;
15425
15426 darwin* | rhapsody*)
15427 dynamic_linker="$host_os dyld"
15428 version_type=darwin
15429 need_lib_prefix=no
15430 need_version=no
15431 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15432 soname_spec='${libname}${release}${major}$shared_ext'
15433 shlibpath_overrides_runpath=yes
15434 shlibpath_var=DYLD_LIBRARY_PATH
15435 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15436
15437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15438 ;;
15439
15440 dgux*)
15441 version_type=linux
15442 need_lib_prefix=no
15443 need_version=no
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 ;;
15448
15449 freebsd1*)
15450 dynamic_linker=no
15451 ;;
15452
15453 freebsd* | dragonfly*)
15454 # DragonFly does not have aout. When/if they implement a new
15455 # versioning mechanism, adjust this.
15456 if test -x /usr/bin/objformat; then
15457 objformat=`/usr/bin/objformat`
15458 else
15459 case $host_os in
15460 freebsd[123]*) objformat=aout ;;
15461 *) objformat=elf ;;
15462 esac
15463 fi
15464 version_type=freebsd-$objformat
15465 case $version_type in
15466 freebsd-elf*)
15467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15468 need_version=no
15469 need_lib_prefix=no
15470 ;;
15471 freebsd-*)
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15473 need_version=yes
15474 ;;
15475 esac
15476 shlibpath_var=LD_LIBRARY_PATH
15477 case $host_os in
15478 freebsd2*)
15479 shlibpath_overrides_runpath=yes
15480 ;;
15481 freebsd3.[01]* | freebsdelf3.[01]*)
15482 shlibpath_overrides_runpath=yes
15483 hardcode_into_libs=yes
15484 ;;
15485 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15486 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15487 shlibpath_overrides_runpath=no
15488 hardcode_into_libs=yes
15489 ;;
15490 *) # from 4.6 on, and DragonFly
15491 shlibpath_overrides_runpath=yes
15492 hardcode_into_libs=yes
15493 ;;
15494 esac
15495 ;;
15496
15497 gnu*)
15498 version_type=linux
15499 need_lib_prefix=no
15500 need_version=no
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15502 soname_spec='${libname}${release}${shared_ext}$major'
15503 shlibpath_var=LD_LIBRARY_PATH
15504 hardcode_into_libs=yes
15505 ;;
15506
15507 hpux9* | hpux10* | hpux11*)
15508 # Give a soname corresponding to the major version so that dld.sl refuses to
15509 # link against other versions.
15510 version_type=sunos
15511 need_lib_prefix=no
15512 need_version=no
15513 case $host_cpu in
15514 ia64*)
15515 shrext_cmds='.so'
15516 hardcode_into_libs=yes
15517 dynamic_linker="$host_os dld.so"
15518 shlibpath_var=LD_LIBRARY_PATH
15519 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 if test "X$HPUX_IA64_MODE" = X32; then
15523 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15524 else
15525 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15526 fi
15527 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528 ;;
15529 hppa*64*)
15530 shrext_cmds='.sl'
15531 hardcode_into_libs=yes
15532 dynamic_linker="$host_os dld.sl"
15533 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15534 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15539 ;;
15540 *)
15541 shrext_cmds='.sl'
15542 dynamic_linker="$host_os dld.sl"
15543 shlibpath_var=SHLIB_PATH
15544 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 ;;
15548 esac
15549 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15550 postinstall_cmds='chmod 555 $lib'
15551 ;;
15552
15553 interix[3-9]*)
15554 version_type=linux
15555 need_lib_prefix=no
15556 need_version=no
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15560 shlibpath_var=LD_LIBRARY_PATH
15561 shlibpath_overrides_runpath=no
15562 hardcode_into_libs=yes
15563 ;;
15564
15565 irix5* | irix6* | nonstopux*)
15566 case $host_os in
15567 nonstopux*) version_type=nonstopux ;;
15568 *)
15569 if test "$lt_cv_prog_gnu_ld" = yes; then
15570 version_type=linux
15571 else
15572 version_type=irix
15573 fi ;;
15574 esac
15575 need_lib_prefix=no
15576 need_version=no
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15579 case $host_os in
15580 irix5* | nonstopux*)
15581 libsuff= shlibsuff=
15582 ;;
15583 *)
15584 case $LD in # libtool.m4 will add one of these switches to LD
15585 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15586 libsuff= shlibsuff= libmagic=32-bit;;
15587 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15588 libsuff=32 shlibsuff=N32 libmagic=N32;;
15589 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15590 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15591 *) libsuff= shlibsuff= libmagic=never-match;;
15592 esac
15593 ;;
15594 esac
15595 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15596 shlibpath_overrides_runpath=no
15597 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15598 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15599 hardcode_into_libs=yes
15600 ;;
15601
15602 # No shared lib support for Linux oldld, aout, or coff.
15603 linux*oldld* | linux*aout* | linux*coff*)
15604 dynamic_linker=no
15605 ;;
15606
15607 # This must be Linux ELF.
15608 linux* | k*bsd*-gnu)
15609 version_type=linux
15610 need_lib_prefix=no
15611 need_version=no
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 shlibpath_overrides_runpath=no
15617 # This implies no fast_install, which is unacceptable.
15618 # Some rework will be needed to allow for fast_install
15619 # before this can be enabled.
15620 hardcode_into_libs=yes
15621 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15622 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15623
15624 # Append ld.so.conf contents to the search path
15625 if test -f /etc/ld.so.conf; then
15626 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15627 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15628 fi
15629
15630 # We used to test for /lib/ld.so.1 and disable shared libraries on
15631 # powerpc, because MkLinux only supported shared libraries with the
15632 # GNU dynamic linker. Since this was broken with cross compilers,
15633 # most powerpc-linux boxes support dynamic linking these days and
15634 # people can always --disable-shared, the test was removed, and we
15635 # assume the GNU/Linux dynamic linker is in use.
15636 dynamic_linker='GNU/Linux ld.so'
15637 ;;
15638
15639 netbsd*)
15640 version_type=sunos
15641 need_lib_prefix=no
15642 need_version=no
15643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15646 dynamic_linker='NetBSD (a.out) ld.so'
15647 else
15648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15649 soname_spec='${libname}${release}${shared_ext}$major'
15650 dynamic_linker='NetBSD ld.elf_so'
15651 fi
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=yes
15654 hardcode_into_libs=yes
15655 ;;
15656
15657 newsos6)
15658 version_type=linux
15659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 shlibpath_overrides_runpath=yes
15662 ;;
15663
15664 nto-qnx*)
15665 version_type=linux
15666 need_lib_prefix=no
15667 need_version=no
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15669 soname_spec='${libname}${release}${shared_ext}$major'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes
15672 ;;
15673
15674 openbsd*)
15675 version_type=sunos
15676 sys_lib_dlsearch_path_spec="/usr/lib"
15677 need_lib_prefix=no
15678 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15679 case $host_os in
15680 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15681 *) need_version=no ;;
15682 esac
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15687 case $host_os in
15688 openbsd2.[89] | openbsd2.[89].*)
15689 shlibpath_overrides_runpath=no
15690 ;;
15691 *)
15692 shlibpath_overrides_runpath=yes
15693 ;;
15694 esac
15695 else
15696 shlibpath_overrides_runpath=yes
15697 fi
15698 ;;
15699
15700 os2*)
15701 libname_spec='$name'
15702 shrext_cmds=".dll"
15703 need_lib_prefix=no
15704 library_names_spec='$libname${shared_ext} $libname.a'
15705 dynamic_linker='OS/2 ld.exe'
15706 shlibpath_var=LIBPATH
15707 ;;
15708
15709 osf3* | osf4* | osf5*)
15710 version_type=osf
15711 need_lib_prefix=no
15712 need_version=no
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15717 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15718 ;;
15719
15720 rdos*)
15721 dynamic_linker=no
15722 ;;
15723
15724 solaris*)
15725 version_type=linux
15726 need_lib_prefix=no
15727 need_version=no
15728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 shlibpath_var=LD_LIBRARY_PATH
15731 shlibpath_overrides_runpath=yes
15732 hardcode_into_libs=yes
15733 # ldd complains unless libraries are executable
15734 postinstall_cmds='chmod +x $lib'
15735 ;;
15736
15737 sunos4*)
15738 version_type=sunos
15739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15740 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15741 shlibpath_var=LD_LIBRARY_PATH
15742 shlibpath_overrides_runpath=yes
15743 if test "$with_gnu_ld" = yes; then
15744 need_lib_prefix=no
15745 fi
15746 need_version=yes
15747 ;;
15748
15749 sysv4 | sysv4.3*)
15750 version_type=linux
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 case $host_vendor in
15755 sni)
15756 shlibpath_overrides_runpath=no
15757 need_lib_prefix=no
15758 export_dynamic_flag_spec='${wl}-Blargedynsym'
15759 runpath_var=LD_RUN_PATH
15760 ;;
15761 siemens)
15762 need_lib_prefix=no
15763 ;;
15764 motorola)
15765 need_lib_prefix=no
15766 need_version=no
15767 shlibpath_overrides_runpath=no
15768 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15769 ;;
15770 esac
15771 ;;
15772
15773 sysv4*MP*)
15774 if test -d /usr/nec ;then
15775 version_type=linux
15776 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15777 soname_spec='$libname${shared_ext}.$major'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 fi
15780 ;;
15781
15782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15783 version_type=freebsd-elf
15784 need_lib_prefix=no
15785 need_version=no
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15787 soname_spec='${libname}${release}${shared_ext}$major'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 hardcode_into_libs=yes
15790 if test "$with_gnu_ld" = yes; then
15791 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15792 shlibpath_overrides_runpath=no
15793 else
15794 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15795 shlibpath_overrides_runpath=yes
15796 case $host_os in
15797 sco3.2v5*)
15798 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15799 ;;
15800 esac
15801 fi
15802 sys_lib_dlsearch_path_spec='/usr/lib'
15803 ;;
15804
15805 uts4*)
15806 version_type=linux
15807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 shlibpath_var=LD_LIBRARY_PATH
15810 ;;
15811
15812 *)
15813 dynamic_linker=no
15814 ;;
15815 esac
15816 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15817 echo "${ECHO_T}$dynamic_linker" >&6; }
15818 test "$dynamic_linker" = no && can_build_shared=no
15819
15820 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15821 if test "$GCC" = yes; then
15822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15823 fi
15824
15825 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15826 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15827 hardcode_action_F77=
15828 if test -n "$hardcode_libdir_flag_spec_F77" || \
15829 test -n "$runpath_var_F77" || \
15830 test "X$hardcode_automatic_F77" = "Xyes" ; then
15831
15832 # We can hardcode non-existant directories.
15833 if test "$hardcode_direct_F77" != no &&
15834 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15835 # have to relink, otherwise we might link with an installed library
15836 # when we should be linking with a yet-to-be-installed one
15837 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15838 test "$hardcode_minus_L_F77" != no; then
15839 # Linking always hardcodes the temporary library directory.
15840 hardcode_action_F77=relink
15841 else
15842 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15843 hardcode_action_F77=immediate
15844 fi
15845 else
15846 # We cannot hardcode anything, or else we can only hardcode existing
15847 # directories.
15848 hardcode_action_F77=unsupported
15849 fi
15850 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15851 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15852
15853 if test "$hardcode_action_F77" = relink; then
15854 # Fast installation is not supported
15855 enable_fast_install=no
15856 elif test "$shlibpath_overrides_runpath" = yes ||
15857 test "$enable_shared" = no; then
15858 # Fast installation is not necessary
15859 enable_fast_install=needless
15860 fi
15861
15862
15863 # The else clause should only fire when bootstrapping the
15864 # libtool distribution, otherwise you forgot to ship ltmain.sh
15865 # with your package, and you will get complaints that there are
15866 # no rules to generate ltmain.sh.
15867 if test -f "$ltmain"; then
15868 # See if we are running on zsh, and set the options which allow our commands through
15869 # without removal of \ escapes.
15870 if test -n "${ZSH_VERSION+set}" ; then
15871 setopt NO_GLOB_SUBST
15872 fi
15873 # Now quote all the things that may contain metacharacters while being
15874 # careful not to overquote the AC_SUBSTed values. We take copies of the
15875 # variables and quote the copies for generation of the libtool script.
15876 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15877 SED SHELL STRIP \
15878 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15879 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15880 deplibs_check_method reload_flag reload_cmds need_locks \
15881 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15882 lt_cv_sys_global_symbol_to_c_name_address \
15883 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15884 old_postinstall_cmds old_postuninstall_cmds \
15885 compiler_F77 \
15886 CC_F77 \
15887 LD_F77 \
15888 lt_prog_compiler_wl_F77 \
15889 lt_prog_compiler_pic_F77 \
15890 lt_prog_compiler_static_F77 \
15891 lt_prog_compiler_no_builtin_flag_F77 \
15892 export_dynamic_flag_spec_F77 \
15893 thread_safe_flag_spec_F77 \
15894 whole_archive_flag_spec_F77 \
15895 enable_shared_with_static_runtimes_F77 \
15896 old_archive_cmds_F77 \
15897 old_archive_from_new_cmds_F77 \
15898 predep_objects_F77 \
15899 postdep_objects_F77 \
15900 predeps_F77 \
15901 postdeps_F77 \
15902 compiler_lib_search_path_F77 \
15903 archive_cmds_F77 \
15904 archive_expsym_cmds_F77 \
15905 postinstall_cmds_F77 \
15906 postuninstall_cmds_F77 \
15907 old_archive_from_expsyms_cmds_F77 \
15908 allow_undefined_flag_F77 \
15909 no_undefined_flag_F77 \
15910 export_symbols_cmds_F77 \
15911 hardcode_libdir_flag_spec_F77 \
15912 hardcode_libdir_flag_spec_ld_F77 \
15913 hardcode_libdir_separator_F77 \
15914 hardcode_automatic_F77 \
15915 module_cmds_F77 \
15916 module_expsym_cmds_F77 \
15917 lt_cv_prog_compiler_c_o_F77 \
15918 fix_srcfile_path_F77 \
15919 exclude_expsyms_F77 \
15920 include_expsyms_F77; do
15921
15922 case $var in
15923 old_archive_cmds_F77 | \
15924 old_archive_from_new_cmds_F77 | \
15925 archive_cmds_F77 | \
15926 archive_expsym_cmds_F77 | \
15927 module_cmds_F77 | \
15928 module_expsym_cmds_F77 | \
15929 old_archive_from_expsyms_cmds_F77 | \
15930 export_symbols_cmds_F77 | \
15931 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15932 postinstall_cmds | postuninstall_cmds | \
15933 old_postinstall_cmds | old_postuninstall_cmds | \
15934 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15935 # Double-quote double-evaled strings.
15936 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15937 ;;
15938 *)
15939 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15940 ;;
15941 esac
15942 done
15943
15944 case $lt_echo in
15945 *'\$0 --fallback-echo"')
15946 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15947 ;;
15948 esac
15949
15950 cfgfile="$ofile"
15951
15952 cat <<__EOF__ >> "$cfgfile"
15953 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15954
15955 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15956
15957 # Shell to use when invoking shell scripts.
15958 SHELL=$lt_SHELL
15959
15960 # Whether or not to build shared libraries.
15961 build_libtool_libs=$enable_shared
15962
15963 # Whether or not to build static libraries.
15964 build_old_libs=$enable_static
15965
15966 # Whether or not to add -lc for building shared libraries.
15967 build_libtool_need_lc=$archive_cmds_need_lc_F77
15968
15969 # Whether or not to disallow shared libs when runtime libs are static
15970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15971
15972 # Whether or not to optimize for fast installation.
15973 fast_install=$enable_fast_install
15974
15975 # The host system.
15976 host_alias=$host_alias
15977 host=$host
15978 host_os=$host_os
15979
15980 # The build system.
15981 build_alias=$build_alias
15982 build=$build
15983 build_os=$build_os
15984
15985 # An echo program that does not interpret backslashes.
15986 echo=$lt_echo
15987
15988 # The archiver.
15989 AR=$lt_AR
15990 AR_FLAGS=$lt_AR_FLAGS
15991
15992 # A C compiler.
15993 LTCC=$lt_LTCC
15994
15995 # LTCC compiler flags.
15996 LTCFLAGS=$lt_LTCFLAGS
15997
15998 # A language-specific compiler.
15999 CC=$lt_compiler_F77
16000
16001 # Is the compiler the GNU C compiler?
16002 with_gcc=$GCC_F77
16003
16004 # An ERE matcher.
16005 EGREP=$lt_EGREP
16006
16007 # The linker used to build libraries.
16008 LD=$lt_LD_F77
16009
16010 # Whether we need hard or soft links.
16011 LN_S=$lt_LN_S
16012
16013 # A BSD-compatible nm program.
16014 NM=$lt_NM
16015
16016 # A symbol stripping program
16017 STRIP=$lt_STRIP
16018
16019 # Used to examine libraries when file_magic_cmd begins "file"
16020 MAGIC_CMD=$MAGIC_CMD
16021
16022 # Used on cygwin: DLL creation program.
16023 DLLTOOL="$DLLTOOL"
16024
16025 # Used on cygwin: object dumper.
16026 OBJDUMP="$OBJDUMP"
16027
16028 # Used on cygwin: assembler.
16029 AS="$AS"
16030
16031 # The name of the directory that contains temporary libtool files.
16032 objdir=$objdir
16033
16034 # How to create reloadable object files.
16035 reload_flag=$lt_reload_flag
16036 reload_cmds=$lt_reload_cmds
16037
16038 # How to pass a linker flag through the compiler.
16039 wl=$lt_lt_prog_compiler_wl_F77
16040
16041 # Object file suffix (normally "o").
16042 objext="$ac_objext"
16043
16044 # Old archive suffix (normally "a").
16045 libext="$libext"
16046
16047 # Shared library suffix (normally ".so").
16048 shrext_cmds='$shrext_cmds'
16049
16050 # Executable file suffix (normally "").
16051 exeext="$exeext"
16052
16053 # Additional compiler flags for building library objects.
16054 pic_flag=$lt_lt_prog_compiler_pic_F77
16055 pic_mode=$pic_mode
16056
16057 # What is the maximum length of a command?
16058 max_cmd_len=$lt_cv_sys_max_cmd_len
16059
16060 # Does compiler simultaneously support -c and -o options?
16061 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16062
16063 # Must we lock files when doing compilation?
16064 need_locks=$lt_need_locks
16065
16066 # Do we need the lib prefix for modules?
16067 need_lib_prefix=$need_lib_prefix
16068
16069 # Do we need a version for libraries?
16070 need_version=$need_version
16071
16072 # Whether dlopen is supported.
16073 dlopen_support=$enable_dlopen
16074
16075 # Whether dlopen of programs is supported.
16076 dlopen_self=$enable_dlopen_self
16077
16078 # Whether dlopen of statically linked programs is supported.
16079 dlopen_self_static=$enable_dlopen_self_static
16080
16081 # Compiler flag to prevent dynamic linking.
16082 link_static_flag=$lt_lt_prog_compiler_static_F77
16083
16084 # Compiler flag to turn off builtin functions.
16085 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16086
16087 # Compiler flag to allow reflexive dlopens.
16088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16089
16090 # Compiler flag to generate shared objects directly from archives.
16091 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16092
16093 # Compiler flag to generate thread-safe objects.
16094 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16095
16096 # Library versioning type.
16097 version_type=$version_type
16098
16099 # Format of library name prefix.
16100 libname_spec=$lt_libname_spec
16101
16102 # List of archive names. First name is the real one, the rest are links.
16103 # The last name is the one that the linker finds with -lNAME.
16104 library_names_spec=$lt_library_names_spec
16105
16106 # The coded name of the library, if different from the real name.
16107 soname_spec=$lt_soname_spec
16108
16109 # Commands used to build and install an old-style archive.
16110 RANLIB=$lt_RANLIB
16111 old_archive_cmds=$lt_old_archive_cmds_F77
16112 old_postinstall_cmds=$lt_old_postinstall_cmds
16113 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16114
16115 # Create an old-style archive from a shared archive.
16116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16117
16118 # Create a temporary old-style archive to link instead of a shared archive.
16119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16120
16121 # Commands used to build and install a shared archive.
16122 archive_cmds=$lt_archive_cmds_F77
16123 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16124 postinstall_cmds=$lt_postinstall_cmds
16125 postuninstall_cmds=$lt_postuninstall_cmds
16126
16127 # Commands used to build a loadable module (assumed same as above if empty)
16128 module_cmds=$lt_module_cmds_F77
16129 module_expsym_cmds=$lt_module_expsym_cmds_F77
16130
16131 # Commands to strip libraries.
16132 old_striplib=$lt_old_striplib
16133 striplib=$lt_striplib
16134
16135 # Dependencies to place before the objects being linked to create a
16136 # shared library.
16137 predep_objects=$lt_predep_objects_F77
16138
16139 # Dependencies to place after the objects being linked to create a
16140 # shared library.
16141 postdep_objects=$lt_postdep_objects_F77
16142
16143 # Dependencies to place before the objects being linked to create a
16144 # shared library.
16145 predeps=$lt_predeps_F77
16146
16147 # Dependencies to place after the objects being linked to create a
16148 # shared library.
16149 postdeps=$lt_postdeps_F77
16150
16151 # The library search path used internally by the compiler when linking
16152 # a shared library.
16153 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16154
16155 # Method to check whether dependent libraries are shared objects.
16156 deplibs_check_method=$lt_deplibs_check_method
16157
16158 # Command to use when deplibs_check_method == file_magic.
16159 file_magic_cmd=$lt_file_magic_cmd
16160
16161 # Flag that allows shared libraries with undefined symbols to be built.
16162 allow_undefined_flag=$lt_allow_undefined_flag_F77
16163
16164 # Flag that forces no undefined symbols.
16165 no_undefined_flag=$lt_no_undefined_flag_F77
16166
16167 # Commands used to finish a libtool library installation in a directory.
16168 finish_cmds=$lt_finish_cmds
16169
16170 # Same as above, but a single script fragment to be evaled but not shown.
16171 finish_eval=$lt_finish_eval
16172
16173 # Take the output of nm and produce a listing of raw symbols and C names.
16174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16175
16176 # Transform the output of nm in a proper C declaration
16177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16178
16179 # Transform the output of nm in a C name address pair
16180 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16181
16182 # This is the shared library runtime path variable.
16183 runpath_var=$runpath_var
16184
16185 # This is the shared library path variable.
16186 shlibpath_var=$shlibpath_var
16187
16188 # Is shlibpath searched before the hard-coded library search path?
16189 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16190
16191 # How to hardcode a shared library path into an executable.
16192 hardcode_action=$hardcode_action_F77
16193
16194 # Whether we should hardcode library paths into libraries.
16195 hardcode_into_libs=$hardcode_into_libs
16196
16197 # Flag to hardcode \$libdir into a binary during linking.
16198 # This must work even if \$libdir does not exist.
16199 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16200
16201 # If ld is used when linking, flag to hardcode \$libdir into
16202 # a binary during linking. This must work even if \$libdir does
16203 # not exist.
16204 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16205
16206 # Whether we need a single -rpath flag with a separated argument.
16207 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16208
16209 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16210 # resulting binary.
16211 hardcode_direct=$hardcode_direct_F77
16212
16213 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16214 # resulting binary.
16215 hardcode_minus_L=$hardcode_minus_L_F77
16216
16217 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16218 # the resulting binary.
16219 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16220
16221 # Set to yes if building a shared library automatically hardcodes DIR into the library
16222 # and all subsequent libraries and executables linked against it.
16223 hardcode_automatic=$hardcode_automatic_F77
16224
16225 # Variables whose values should be saved in libtool wrapper scripts and
16226 # restored at relink time.
16227 variables_saved_for_relink="$variables_saved_for_relink"
16228
16229 # Whether libtool must link a program against all its dependency libraries.
16230 link_all_deplibs=$link_all_deplibs_F77
16231
16232 # Compile-time system search path for libraries
16233 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16234
16235 # Run-time system search path for libraries
16236 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16237
16238 # Fix the shell variable \$srcfile for the compiler.
16239 fix_srcfile_path=$lt_fix_srcfile_path
16240
16241 # Set to yes if exported symbols are required.
16242 always_export_symbols=$always_export_symbols_F77
16243
16244 # The commands to list exported symbols.
16245 export_symbols_cmds=$lt_export_symbols_cmds_F77
16246
16247 # The commands to extract the exported symbol list from a shared archive.
16248 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16249
16250 # Symbols that should not be listed in the preloaded symbols.
16251 exclude_expsyms=$lt_exclude_expsyms_F77
16252
16253 # Symbols that must always be exported.
16254 include_expsyms=$lt_include_expsyms_F77
16255
16256 # ### END LIBTOOL TAG CONFIG: $tagname
16257
16258 __EOF__
16259
16260
16261 else
16262 # If there is no Makefile yet, we rely on a make rule to execute
16263 # `config.status --recheck' to rerun these tests and create the
16264 # libtool script then.
16265 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16266 if test -f "$ltmain_in"; then
16267 test -f Makefile && make "$ltmain"
16268 fi
16269 fi
16270
16271
16272 ac_ext=c
16273 ac_cpp='$CPP $CPPFLAGS'
16274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16277
16278 CC="$lt_save_CC"
16279
16280 else
16281 tagname=""
16282 fi
16283 ;;
16284
16285 GCJ)
16286 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16287
16288
16289 # Source file extension for Java test sources.
16290 ac_ext=java
16291
16292 # Object file extension for compiled Java test sources.
16293 objext=o
16294 objext_GCJ=$objext
16295
16296 # Code to be used in simple compile tests
16297 lt_simple_compile_test_code="class foo {}"
16298
16299 # Code to be used in simple link tests
16300 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16301
16302 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16303
16304 # If no C compiler was specified, use CC.
16305 LTCC=${LTCC-"$CC"}
16306
16307 # If no C compiler flags were specified, use CFLAGS.
16308 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16309
16310 # Allow CC to be a program name with arguments.
16311 compiler=$CC
16312
16313
16314 # save warnings/boilerplate of simple test code
16315 ac_outfile=conftest.$ac_objext
16316 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16317 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16318 _lt_compiler_boilerplate=`cat conftest.err`
16319 $rm conftest*
16320
16321 ac_outfile=conftest.$ac_objext
16322 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16323 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16324 _lt_linker_boilerplate=`cat conftest.err`
16325 $rm conftest*
16326
16327
16328 # Allow CC to be a program name with arguments.
16329 lt_save_CC="$CC"
16330 CC=${GCJ-"gcj"}
16331 compiler=$CC
16332 compiler_GCJ=$CC
16333 for cc_temp in $compiler""; do
16334 case $cc_temp in
16335 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16336 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16337 \-*) ;;
16338 *) break;;
16339 esac
16340 done
16341 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16342
16343
16344 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16345 archive_cmds_need_lc_GCJ=no
16346
16347 old_archive_cmds_GCJ=$old_archive_cmds
16348
16349
16350 lt_prog_compiler_no_builtin_flag_GCJ=
16351
16352 if test "$GCC" = yes; then
16353 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16354
16355
16356 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16357 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16358 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361 lt_cv_prog_compiler_rtti_exceptions=no
16362 ac_outfile=conftest.$ac_objext
16363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16364 lt_compiler_flag="-fno-rtti -fno-exceptions"
16365 # Insert the option either (1) after the last *FLAGS variable, or
16366 # (2) before a word containing "conftest.", or (3) at the end.
16367 # Note that $ac_compile itself does not contain backslashes and begins
16368 # with a dollar sign (not a hyphen), so the echo should work correctly.
16369 # The option is referenced via a variable to avoid confusing sed.
16370 lt_compile=`echo "$ac_compile" | $SED \
16371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16373 -e 's:$: $lt_compiler_flag:'`
16374 (eval echo "\"\$as_me:16374: $lt_compile\"" >&5)
16375 (eval "$lt_compile" 2>conftest.err)
16376 ac_status=$?
16377 cat conftest.err >&5
16378 echo "$as_me:16378: \$? = $ac_status" >&5
16379 if (exit $ac_status) && test -s "$ac_outfile"; then
16380 # The compiler can only warn and ignore the option if not recognized
16381 # So say no if there are warnings other than the usual output.
16382 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16384 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16385 lt_cv_prog_compiler_rtti_exceptions=yes
16386 fi
16387 fi
16388 $rm conftest*
16389
16390 fi
16391 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16392 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16393
16394 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16395 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16396 else
16397 :
16398 fi
16399
16400 fi
16401
16402 lt_prog_compiler_wl_GCJ=
16403 lt_prog_compiler_pic_GCJ=
16404 lt_prog_compiler_static_GCJ=
16405
16406 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16407 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16408
16409 if test "$GCC" = yes; then
16410 lt_prog_compiler_wl_GCJ='-Wl,'
16411 lt_prog_compiler_static_GCJ='-static'
16412
16413 case $host_os in
16414 aix*)
16415 # All AIX code is PIC.
16416 if test "$host_cpu" = ia64; then
16417 # AIX 5 now supports IA64 processor
16418 lt_prog_compiler_static_GCJ='-Bstatic'
16419 fi
16420 ;;
16421
16422 amigaos*)
16423 # FIXME: we need at least 68020 code to build shared libraries, but
16424 # adding the `-m68020' flag to GCC prevents building anything better,
16425 # like `-m68040'.
16426 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16427 ;;
16428
16429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16430 # PIC is the default for these OSes.
16431 ;;
16432
16433 mingw* | cygwin* | pw32* | os2*)
16434 # This hack is so that the source file can tell whether it is being
16435 # built for inclusion in a dll (and should export symbols for example).
16436 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16437 # (--disable-auto-import) libraries
16438 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16439 ;;
16440
16441 darwin* | rhapsody*)
16442 # PIC is the default on this platform
16443 # Common symbols not allowed in MH_DYLIB files
16444 lt_prog_compiler_pic_GCJ='-fno-common'
16445 ;;
16446
16447 interix[3-9]*)
16448 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16449 # Instead, we relocate shared libraries at runtime.
16450 ;;
16451
16452 msdosdjgpp*)
16453 # Just because we use GCC doesn't mean we suddenly get shared libraries
16454 # on systems that don't support them.
16455 lt_prog_compiler_can_build_shared_GCJ=no
16456 enable_shared=no
16457 ;;
16458
16459 sysv4*MP*)
16460 if test -d /usr/nec; then
16461 lt_prog_compiler_pic_GCJ=-Kconform_pic
16462 fi
16463 ;;
16464
16465 hpux*)
16466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16467 # not for PA HP-UX.
16468 case $host_cpu in
16469 hppa*64*|ia64*)
16470 # +Z the default
16471 ;;
16472 *)
16473 lt_prog_compiler_pic_GCJ='-fPIC'
16474 ;;
16475 esac
16476 ;;
16477
16478 *)
16479 lt_prog_compiler_pic_GCJ='-fPIC'
16480 ;;
16481 esac
16482 else
16483 # PORTME Check for flag to pass linker flags through the system compiler.
16484 case $host_os in
16485 aix*)
16486 lt_prog_compiler_wl_GCJ='-Wl,'
16487 if test "$host_cpu" = ia64; then
16488 # AIX 5 now supports IA64 processor
16489 lt_prog_compiler_static_GCJ='-Bstatic'
16490 else
16491 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16492 fi
16493 ;;
16494 darwin*)
16495 # PIC is the default on this platform
16496 # Common symbols not allowed in MH_DYLIB files
16497 case $cc_basename in
16498 xlc*)
16499 lt_prog_compiler_pic_GCJ='-qnocommon'
16500 lt_prog_compiler_wl_GCJ='-Wl,'
16501 ;;
16502 esac
16503 ;;
16504
16505 mingw* | cygwin* | pw32* | os2*)
16506 # This hack is so that the source file can tell whether it is being
16507 # built for inclusion in a dll (and should export symbols for example).
16508 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16509 ;;
16510
16511 hpux9* | hpux10* | hpux11*)
16512 lt_prog_compiler_wl_GCJ='-Wl,'
16513 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16514 # not for PA HP-UX.
16515 case $host_cpu in
16516 hppa*64*|ia64*)
16517 # +Z the default
16518 ;;
16519 *)
16520 lt_prog_compiler_pic_GCJ='+Z'
16521 ;;
16522 esac
16523 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16524 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16525 ;;
16526
16527 irix5* | irix6* | nonstopux*)
16528 lt_prog_compiler_wl_GCJ='-Wl,'
16529 # PIC (with -KPIC) is the default.
16530 lt_prog_compiler_static_GCJ='-non_shared'
16531 ;;
16532
16533 newsos6)
16534 lt_prog_compiler_pic_GCJ='-KPIC'
16535 lt_prog_compiler_static_GCJ='-Bstatic'
16536 ;;
16537
16538 linux* | k*bsd*-gnu)
16539 case $cc_basename in
16540 icc* | ecc*)
16541 lt_prog_compiler_wl_GCJ='-Wl,'
16542 lt_prog_compiler_pic_GCJ='-KPIC'
16543 lt_prog_compiler_static_GCJ='-static'
16544 ;;
16545 pgcc* | pgf77* | pgf90* | pgf95*)
16546 # Portland Group compilers (*not* the Pentium gcc compiler,
16547 # which looks to be a dead project)
16548 lt_prog_compiler_wl_GCJ='-Wl,'
16549 lt_prog_compiler_pic_GCJ='-fpic'
16550 lt_prog_compiler_static_GCJ='-Bstatic'
16551 ;;
16552 ccc*)
16553 lt_prog_compiler_wl_GCJ='-Wl,'
16554 # All Alpha code is PIC.
16555 lt_prog_compiler_static_GCJ='-non_shared'
16556 ;;
16557 *)
16558 case `$CC -V 2>&1 | sed 5q` in
16559 *Sun\ C*)
16560 # Sun C 5.9
16561 lt_prog_compiler_pic_GCJ='-KPIC'
16562 lt_prog_compiler_static_GCJ='-Bstatic'
16563 lt_prog_compiler_wl_GCJ='-Wl,'
16564 ;;
16565 *Sun\ F*)
16566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16567 lt_prog_compiler_pic_GCJ='-KPIC'
16568 lt_prog_compiler_static_GCJ='-Bstatic'
16569 lt_prog_compiler_wl_GCJ=''
16570 ;;
16571 esac
16572 ;;
16573 esac
16574 ;;
16575
16576 osf3* | osf4* | osf5*)
16577 lt_prog_compiler_wl_GCJ='-Wl,'
16578 # All OSF/1 code is PIC.
16579 lt_prog_compiler_static_GCJ='-non_shared'
16580 ;;
16581
16582 rdos*)
16583 lt_prog_compiler_static_GCJ='-non_shared'
16584 ;;
16585
16586 solaris*)
16587 lt_prog_compiler_pic_GCJ='-KPIC'
16588 lt_prog_compiler_static_GCJ='-Bstatic'
16589 case $cc_basename in
16590 f77* | f90* | f95*)
16591 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16592 *)
16593 lt_prog_compiler_wl_GCJ='-Wl,';;
16594 esac
16595 ;;
16596
16597 sunos4*)
16598 lt_prog_compiler_wl_GCJ='-Qoption ld '
16599 lt_prog_compiler_pic_GCJ='-PIC'
16600 lt_prog_compiler_static_GCJ='-Bstatic'
16601 ;;
16602
16603 sysv4 | sysv4.2uw2* | sysv4.3*)
16604 lt_prog_compiler_wl_GCJ='-Wl,'
16605 lt_prog_compiler_pic_GCJ='-KPIC'
16606 lt_prog_compiler_static_GCJ='-Bstatic'
16607 ;;
16608
16609 sysv4*MP*)
16610 if test -d /usr/nec ;then
16611 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16612 lt_prog_compiler_static_GCJ='-Bstatic'
16613 fi
16614 ;;
16615
16616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16617 lt_prog_compiler_wl_GCJ='-Wl,'
16618 lt_prog_compiler_pic_GCJ='-KPIC'
16619 lt_prog_compiler_static_GCJ='-Bstatic'
16620 ;;
16621
16622 unicos*)
16623 lt_prog_compiler_wl_GCJ='-Wl,'
16624 lt_prog_compiler_can_build_shared_GCJ=no
16625 ;;
16626
16627 uts4*)
16628 lt_prog_compiler_pic_GCJ='-pic'
16629 lt_prog_compiler_static_GCJ='-Bstatic'
16630 ;;
16631
16632 *)
16633 lt_prog_compiler_can_build_shared_GCJ=no
16634 ;;
16635 esac
16636 fi
16637
16638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16639 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16640
16641 #
16642 # Check to make sure the PIC flag actually works.
16643 #
16644 if test -n "$lt_prog_compiler_pic_GCJ"; then
16645
16646 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16647 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16648 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16649 echo $ECHO_N "(cached) $ECHO_C" >&6
16650 else
16651 lt_prog_compiler_pic_works_GCJ=no
16652 ac_outfile=conftest.$ac_objext
16653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16654 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16655 # Insert the option either (1) after the last *FLAGS variable, or
16656 # (2) before a word containing "conftest.", or (3) at the end.
16657 # Note that $ac_compile itself does not contain backslashes and begins
16658 # with a dollar sign (not a hyphen), so the echo should work correctly.
16659 # The option is referenced via a variable to avoid confusing sed.
16660 lt_compile=`echo "$ac_compile" | $SED \
16661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16663 -e 's:$: $lt_compiler_flag:'`
16664 (eval echo "\"\$as_me:16664: $lt_compile\"" >&5)
16665 (eval "$lt_compile" 2>conftest.err)
16666 ac_status=$?
16667 cat conftest.err >&5
16668 echo "$as_me:16668: \$? = $ac_status" >&5
16669 if (exit $ac_status) && test -s "$ac_outfile"; then
16670 # The compiler can only warn and ignore the option if not recognized
16671 # So say no if there are warnings other than the usual output.
16672 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16675 lt_prog_compiler_pic_works_GCJ=yes
16676 fi
16677 fi
16678 $rm conftest*
16679
16680 fi
16681 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16682 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16683
16684 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16685 case $lt_prog_compiler_pic_GCJ in
16686 "" | " "*) ;;
16687 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16688 esac
16689 else
16690 lt_prog_compiler_pic_GCJ=
16691 lt_prog_compiler_can_build_shared_GCJ=no
16692 fi
16693
16694 fi
16695 case $host_os in
16696 # For platforms which do not support PIC, -DPIC is meaningless:
16697 *djgpp*)
16698 lt_prog_compiler_pic_GCJ=
16699 ;;
16700 *)
16701 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16702 ;;
16703 esac
16704
16705 #
16706 # Check to make sure the static flag actually works.
16707 #
16708 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16709 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16710 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16711 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714 lt_prog_compiler_static_works_GCJ=no
16715 save_LDFLAGS="$LDFLAGS"
16716 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16717 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16718 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16719 # The linker can only warn and ignore the option if not recognized
16720 # So say no if there are warnings
16721 if test -s conftest.err; then
16722 # Append any errors to the config.log.
16723 cat conftest.err 1>&5
16724 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16725 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16726 if diff conftest.exp conftest.er2 >/dev/null; then
16727 lt_prog_compiler_static_works_GCJ=yes
16728 fi
16729 else
16730 lt_prog_compiler_static_works_GCJ=yes
16731 fi
16732 fi
16733 $rm conftest*
16734 LDFLAGS="$save_LDFLAGS"
16735
16736 fi
16737 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16738 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16739
16740 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16741 :
16742 else
16743 lt_prog_compiler_static_GCJ=
16744 fi
16745
16746
16747 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16748 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16749 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16750 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752 lt_cv_prog_compiler_c_o_GCJ=no
16753 $rm -r conftest 2>/dev/null
16754 mkdir conftest
16755 cd conftest
16756 mkdir out
16757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16758
16759 lt_compiler_flag="-o out/conftest2.$ac_objext"
16760 # Insert the option either (1) after the last *FLAGS variable, or
16761 # (2) before a word containing "conftest.", or (3) at the end.
16762 # Note that $ac_compile itself does not contain backslashes and begins
16763 # with a dollar sign (not a hyphen), so the echo should work correctly.
16764 lt_compile=`echo "$ac_compile" | $SED \
16765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16767 -e 's:$: $lt_compiler_flag:'`
16768 (eval echo "\"\$as_me:16768: $lt_compile\"" >&5)
16769 (eval "$lt_compile" 2>out/conftest.err)
16770 ac_status=$?
16771 cat out/conftest.err >&5
16772 echo "$as_me:16772: \$? = $ac_status" >&5
16773 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16774 then
16775 # The compiler can only warn and ignore the option if not recognized
16776 # So say no if there are warnings
16777 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16780 lt_cv_prog_compiler_c_o_GCJ=yes
16781 fi
16782 fi
16783 chmod u+w . 2>&5
16784 $rm conftest*
16785 # SGI C++ compiler will create directory out/ii_files/ for
16786 # template instantiation
16787 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16788 $rm out/* && rmdir out
16789 cd ..
16790 rmdir conftest
16791 $rm conftest*
16792
16793 fi
16794 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16795 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16796
16797
16798 hard_links="nottested"
16799 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16800 # do not overwrite the value of need_locks provided by the user
16801 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16802 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16803 hard_links=yes
16804 $rm conftest*
16805 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16806 touch conftest.a
16807 ln conftest.a conftest.b 2>&5 || hard_links=no
16808 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16809 { echo "$as_me:$LINENO: result: $hard_links" >&5
16810 echo "${ECHO_T}$hard_links" >&6; }
16811 if test "$hard_links" = no; then
16812 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16813 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16814 need_locks=warn
16815 fi
16816 else
16817 need_locks=no
16818 fi
16819
16820 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16821 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16822
16823 runpath_var=
16824 allow_undefined_flag_GCJ=
16825 enable_shared_with_static_runtimes_GCJ=no
16826 archive_cmds_GCJ=
16827 archive_expsym_cmds_GCJ=
16828 old_archive_From_new_cmds_GCJ=
16829 old_archive_from_expsyms_cmds_GCJ=
16830 export_dynamic_flag_spec_GCJ=
16831 whole_archive_flag_spec_GCJ=
16832 thread_safe_flag_spec_GCJ=
16833 hardcode_libdir_flag_spec_GCJ=
16834 hardcode_libdir_flag_spec_ld_GCJ=
16835 hardcode_libdir_separator_GCJ=
16836 hardcode_direct_GCJ=no
16837 hardcode_minus_L_GCJ=no
16838 hardcode_shlibpath_var_GCJ=unsupported
16839 link_all_deplibs_GCJ=unknown
16840 hardcode_automatic_GCJ=no
16841 module_cmds_GCJ=
16842 module_expsym_cmds_GCJ=
16843 always_export_symbols_GCJ=no
16844 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16845 # include_expsyms should be a list of space-separated symbols to be *always*
16846 # included in the symbol list
16847 include_expsyms_GCJ=
16848 # exclude_expsyms can be an extended regexp of symbols to exclude
16849 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16850 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16851 # as well as any symbol that contains `d'.
16852 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16854 # platforms (ab)use it in PIC code, but their linkers get confused if
16855 # the symbol is explicitly referenced. Since portable code cannot
16856 # rely on this symbol name, it's probably fine to never include it in
16857 # preloaded symbol tables.
16858 extract_expsyms_cmds=
16859 # Just being paranoid about ensuring that cc_basename is set.
16860 for cc_temp in $compiler""; do
16861 case $cc_temp in
16862 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16863 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16864 \-*) ;;
16865 *) break;;
16866 esac
16867 done
16868 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16869
16870 case $host_os in
16871 cygwin* | mingw* | pw32*)
16872 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16873 # When not using gcc, we currently assume that we are using
16874 # Microsoft Visual C++.
16875 if test "$GCC" != yes; then
16876 with_gnu_ld=no
16877 fi
16878 ;;
16879 interix*)
16880 # we just hope/assume this is gcc and not c89 (= MSVC++)
16881 with_gnu_ld=yes
16882 ;;
16883 openbsd*)
16884 with_gnu_ld=no
16885 ;;
16886 esac
16887
16888 ld_shlibs_GCJ=yes
16889 if test "$with_gnu_ld" = yes; then
16890 # If archive_cmds runs LD, not CC, wlarc should be empty
16891 wlarc='${wl}'
16892
16893 # Set some defaults for GNU ld with shared library support. These
16894 # are reset later if shared libraries are not supported. Putting them
16895 # here allows them to be overridden if necessary.
16896 runpath_var=LD_RUN_PATH
16897 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16898 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16899 # ancient GNU ld didn't support --whole-archive et. al.
16900 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16901 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16902 else
16903 whole_archive_flag_spec_GCJ=
16904 fi
16905 supports_anon_versioning=no
16906 case `$LD -v 2>/dev/null` in
16907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16910 *\ 2.11.*) ;; # other 2.11 versions
16911 *) supports_anon_versioning=yes ;;
16912 esac
16913
16914 # See if GNU ld supports shared libraries.
16915 case $host_os in
16916 aix3* | aix4* | aix5*)
16917 # On AIX/PPC, the GNU linker is very broken
16918 if test "$host_cpu" != ia64; then
16919 ld_shlibs_GCJ=no
16920 cat <<EOF 1>&2
16921
16922 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16923 *** to be unable to reliably create shared libraries on AIX.
16924 *** Therefore, libtool is disabling shared libraries support. If you
16925 *** really care for shared libraries, you may want to modify your PATH
16926 *** so that a non-GNU linker is found, and then restart.
16927
16928 EOF
16929 fi
16930 ;;
16931
16932 amigaos*)
16933 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)'
16934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16935 hardcode_minus_L_GCJ=yes
16936
16937 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
16938 # that the semantics of dynamic libraries on AmigaOS, at least up
16939 # to version 4, is to share data among multiple programs linked
16940 # with the same dynamic library. Since this doesn't match the
16941 # behavior of shared libraries on other platforms, we can't use
16942 # them.
16943 ld_shlibs_GCJ=no
16944 ;;
16945
16946 beos*)
16947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16948 allow_undefined_flag_GCJ=unsupported
16949 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
16950 # support --undefined. This deserves some investigation. FIXME
16951 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16952 else
16953 ld_shlibs_GCJ=no
16954 fi
16955 ;;
16956
16957 cygwin* | mingw* | pw32*)
16958 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16959 # as there is no search path for DLLs.
16960 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16961 allow_undefined_flag_GCJ=unsupported
16962 always_export_symbols_GCJ=no
16963 enable_shared_with_static_runtimes_GCJ=yes
16964 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16965
16966 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16967 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16968 # If the export-symbols file already is a .def file (1st line
16969 # is EXPORTS), use it as is; otherwise, prepend...
16970 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16971 cp $export_symbols $output_objdir/$soname.def;
16972 else
16973 echo EXPORTS > $output_objdir/$soname.def;
16974 cat $export_symbols >> $output_objdir/$soname.def;
16975 fi~
16976 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16977 else
16978 ld_shlibs_GCJ=no
16979 fi
16980 ;;
16981
16982 interix[3-9]*)
16983 hardcode_direct_GCJ=no
16984 hardcode_shlibpath_var_GCJ=no
16985 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16986 export_dynamic_flag_spec_GCJ='${wl}-E'
16987 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16988 # Instead, shared libraries are loaded at an image base (0x10000000 by
16989 # default) and relocated if they conflict, which is a slow very memory
16990 # consuming and fragmenting process. To avoid this, we pick a random,
16991 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16992 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16993 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'
16994 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'
16995 ;;
16996
16997 gnu* | linux* | k*bsd*-gnu)
16998 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16999 tmp_addflag=
17000 case $cc_basename,$host_cpu in
17001 pgcc*) # Portland Group C compiler
17002 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'
17003 tmp_addflag=' $pic_flag'
17004 ;;
17005 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17006 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'
17007 tmp_addflag=' $pic_flag -Mnomain' ;;
17008 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17009 tmp_addflag=' -i_dynamic' ;;
17010 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17011 tmp_addflag=' -i_dynamic -nofor_main' ;;
17012 ifc* | ifort*) # Intel Fortran compiler
17013 tmp_addflag=' -nofor_main' ;;
17014 esac
17015 case `$CC -V 2>&1 | sed 5q` in
17016 *Sun\ C*) # Sun C 5.9
17017 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17018 tmp_sharedflag='-G' ;;
17019 *Sun\ F*) # Sun Fortran 8.3
17020 tmp_sharedflag='-G' ;;
17021 *)
17022 tmp_sharedflag='-shared' ;;
17023 esac
17024 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17025
17026 if test $supports_anon_versioning = yes; then
17027 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17028 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17029 $echo "local: *; };" >> $output_objdir/$libname.ver~
17030 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17031 fi
17032 else
17033 ld_shlibs_GCJ=no
17034 fi
17035 ;;
17036
17037 netbsd*)
17038 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17039 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17040 wlarc=
17041 else
17042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17043 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17044 fi
17045 ;;
17046
17047 solaris*)
17048 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17049 ld_shlibs_GCJ=no
17050 cat <<EOF 1>&2
17051
17052 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17053 *** create shared libraries on Solaris systems. Therefore, libtool
17054 *** is disabling shared libraries support. We urge you to upgrade GNU
17055 *** binutils to release 2.9.1 or newer. Another option is to modify
17056 *** your PATH or compiler configuration so that the native linker is
17057 *** used, and then restart.
17058
17059 EOF
17060 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17061 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17062 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17063 else
17064 ld_shlibs_GCJ=no
17065 fi
17066 ;;
17067
17068 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17069 case `$LD -v 2>&1` in
17070 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17071 ld_shlibs_GCJ=no
17072 cat <<_LT_EOF 1>&2
17073
17074 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17075 *** reliably create shared libraries on SCO systems. Therefore, libtool
17076 *** is disabling shared libraries support. We urge you to upgrade GNU
17077 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17078 *** your PATH or compiler configuration so that the native linker is
17079 *** used, and then restart.
17080
17081 _LT_EOF
17082 ;;
17083 *)
17084 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17085 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17086 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17087 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17088 else
17089 ld_shlibs_GCJ=no
17090 fi
17091 ;;
17092 esac
17093 ;;
17094
17095 sunos4*)
17096 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17097 wlarc=
17098 hardcode_direct_GCJ=yes
17099 hardcode_shlibpath_var_GCJ=no
17100 ;;
17101
17102 *)
17103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17105 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17106 else
17107 ld_shlibs_GCJ=no
17108 fi
17109 ;;
17110 esac
17111
17112 if test "$ld_shlibs_GCJ" = no; then
17113 runpath_var=
17114 hardcode_libdir_flag_spec_GCJ=
17115 export_dynamic_flag_spec_GCJ=
17116 whole_archive_flag_spec_GCJ=
17117 fi
17118 else
17119 # PORTME fill in a description of your system's linker (not GNU ld)
17120 case $host_os in
17121 aix3*)
17122 allow_undefined_flag_GCJ=unsupported
17123 always_export_symbols_GCJ=yes
17124 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'
17125 # Note: this linker hardcodes the directories in LIBPATH if there
17126 # are no directories specified by -L.
17127 hardcode_minus_L_GCJ=yes
17128 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17129 # Neither direct hardcoding nor static linking is supported with a
17130 # broken collect2.
17131 hardcode_direct_GCJ=unsupported
17132 fi
17133 ;;
17134
17135 aix4* | aix5*)
17136 if test "$host_cpu" = ia64; then
17137 # On IA64, the linker does run time linking by default, so we don't
17138 # have to do anything special.
17139 aix_use_runtimelinking=no
17140 exp_sym_flag='-Bexport'
17141 no_entry_flag=""
17142 else
17143 # If we're using GNU nm, then we don't want the "-C" option.
17144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17145 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17146 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'
17147 else
17148 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'
17149 fi
17150 aix_use_runtimelinking=no
17151
17152 # Test if we are trying to use run time linking or normal
17153 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17154 # need to do runtime linking.
17155 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17156 for ld_flag in $LDFLAGS; do
17157 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17158 aix_use_runtimelinking=yes
17159 break
17160 fi
17161 done
17162 ;;
17163 esac
17164
17165 exp_sym_flag='-bexport'
17166 no_entry_flag='-bnoentry'
17167 fi
17168
17169 # When large executables or shared objects are built, AIX ld can
17170 # have problems creating the table of contents. If linking a library
17171 # or program results in "error TOC overflow" add -mminimal-toc to
17172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17174
17175 archive_cmds_GCJ=''
17176 hardcode_direct_GCJ=yes
17177 hardcode_libdir_separator_GCJ=':'
17178 link_all_deplibs_GCJ=yes
17179
17180 if test "$GCC" = yes; then
17181 case $host_os in aix4.[012]|aix4.[012].*)
17182 # We only want to do this on AIX 4.2 and lower, the check
17183 # below for broken collect2 doesn't work under 4.3+
17184 collect2name=`${CC} -print-prog-name=collect2`
17185 if test -f "$collect2name" && \
17186 strings "$collect2name" | grep resolve_lib_name >/dev/null
17187 then
17188 # We have reworked collect2
17189 :
17190 else
17191 # We have old collect2
17192 hardcode_direct_GCJ=unsupported
17193 # It fails to find uninstalled libraries when the uninstalled
17194 # path is not listed in the libpath. Setting hardcode_minus_L
17195 # to unsupported forces relinking
17196 hardcode_minus_L_GCJ=yes
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_libdir_separator_GCJ=
17199 fi
17200 ;;
17201 esac
17202 shared_flag='-shared'
17203 if test "$aix_use_runtimelinking" = yes; then
17204 shared_flag="$shared_flag "'${wl}-G'
17205 fi
17206 else
17207 # not using gcc
17208 if test "$host_cpu" = ia64; then
17209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17210 # chokes on -Wl,-G. The following line is correct:
17211 shared_flag='-G'
17212 else
17213 if test "$aix_use_runtimelinking" = yes; then
17214 shared_flag='${wl}-G'
17215 else
17216 shared_flag='${wl}-bM:SRE'
17217 fi
17218 fi
17219 fi
17220
17221 # It seems that -bexpall does not export symbols beginning with
17222 # underscore (_), so it is better to generate a list of symbols to export.
17223 always_export_symbols_GCJ=yes
17224 if test "$aix_use_runtimelinking" = yes; then
17225 # Warning - without using the other runtime loading flags (-brtl),
17226 # -berok will link without error, but may produce a broken library.
17227 allow_undefined_flag_GCJ='-berok'
17228 # Determine the default libpath from the value encoded in an empty executable.
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235
17236 int
17237 main ()
17238 {
17239
17240 ;
17241 return 0;
17242 }
17243 _ACEOF
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249 esac
17250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest$ac_exeext &&
17261 $as_test_x conftest$ac_exeext; then
17262
17263 lt_aix_libpath_sed='
17264 /Import File Strings/,/^$/ {
17265 /^0/ {
17266 s/^0 *\(.*\)$/\1/
17267 p
17268 }
17269 }'
17270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17271 # Check for a 64-bit object if we didn't find anything.
17272 if test -z "$aix_libpath"; then
17273 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17274 fi
17275 else
17276 echo "$as_me: failed program was:" >&5
17277 sed 's/^/| /' conftest.$ac_ext >&5
17278
17279
17280 fi
17281
17282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17283 conftest$ac_exeext conftest.$ac_ext
17284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17285
17286 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17287 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"
17288 else
17289 if test "$host_cpu" = ia64; then
17290 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17291 allow_undefined_flag_GCJ="-z nodefs"
17292 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"
17293 else
17294 # Determine the default libpath from the value encoded in an empty executable.
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301
17302 int
17303 main ()
17304 {
17305
17306 ;
17307 return 0;
17308 }
17309 _ACEOF
17310 rm -f conftest.$ac_objext conftest$ac_exeext
17311 if { (ac_try="$ac_link"
17312 case "(($ac_try" in
17313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17314 *) ac_try_echo=$ac_try;;
17315 esac
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext &&
17327 $as_test_x conftest$ac_exeext; then
17328
17329 lt_aix_libpath_sed='
17330 /Import File Strings/,/^$/ {
17331 /^0/ {
17332 s/^0 *\(.*\)$/\1/
17333 p
17334 }
17335 }'
17336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17337 # Check for a 64-bit object if we didn't find anything.
17338 if test -z "$aix_libpath"; then
17339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17340 fi
17341 else
17342 echo "$as_me: failed program was:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17344
17345
17346 fi
17347
17348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17349 conftest$ac_exeext conftest.$ac_ext
17350 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17351
17352 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17353 # Warning - without using the other run time loading flags,
17354 # -berok will link without error, but may produce a broken library.
17355 no_undefined_flag_GCJ=' ${wl}-bernotok'
17356 allow_undefined_flag_GCJ=' ${wl}-berok'
17357 # Exported symbols can be pulled into shared objects from archives
17358 whole_archive_flag_spec_GCJ='$convenience'
17359 archive_cmds_need_lc_GCJ=yes
17360 # This is similar to how AIX traditionally builds its shared libraries.
17361 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'
17362 fi
17363 fi
17364 ;;
17365
17366 amigaos*)
17367 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)'
17368 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17369 hardcode_minus_L_GCJ=yes
17370 # see comment about different semantics on the GNU ld section
17371 ld_shlibs_GCJ=no
17372 ;;
17373
17374 bsdi[45]*)
17375 export_dynamic_flag_spec_GCJ=-rdynamic
17376 ;;
17377
17378 cygwin* | mingw* | pw32*)
17379 # When not using gcc, we currently assume that we are using
17380 # Microsoft Visual C++.
17381 # hardcode_libdir_flag_spec is actually meaningless, as there is
17382 # no search path for DLLs.
17383 hardcode_libdir_flag_spec_GCJ=' '
17384 allow_undefined_flag_GCJ=unsupported
17385 # Tell ltmain to make .lib files, not .a files.
17386 libext=lib
17387 # Tell ltmain to make .dll files, not .so files.
17388 shrext_cmds=".dll"
17389 # FIXME: Setting linknames here is a bad hack.
17390 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17391 # The linker will automatically build a .lib file if we build a DLL.
17392 old_archive_From_new_cmds_GCJ='true'
17393 # FIXME: Should let the user specify the lib program.
17394 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17395 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17396 enable_shared_with_static_runtimes_GCJ=yes
17397 ;;
17398
17399 darwin* | rhapsody*)
17400 case $host_os in
17401 rhapsody* | darwin1.[012])
17402 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17403 ;;
17404 *) # Darwin 1.3 on
17405 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17406 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17407 else
17408 case ${MACOSX_DEPLOYMENT_TARGET} in
17409 10.[012])
17410 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17411 ;;
17412 10.*)
17413 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17414 ;;
17415 esac
17416 fi
17417 ;;
17418 esac
17419 archive_cmds_need_lc_GCJ=no
17420 hardcode_direct_GCJ=no
17421 hardcode_automatic_GCJ=yes
17422 hardcode_shlibpath_var_GCJ=unsupported
17423 whole_archive_flag_spec_GCJ=''
17424 link_all_deplibs_GCJ=yes
17425 if test "$GCC" = yes ; then
17426 output_verbose_link_cmd='echo'
17427 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17428 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17430 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}'
17431 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}'
17432 else
17433 case $cc_basename in
17434 xlc*)
17435 output_verbose_link_cmd='echo'
17436 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17437 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17438 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17439 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17440 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}'
17441 ;;
17442 *)
17443 ld_shlibs_GCJ=no
17444 ;;
17445 esac
17446 fi
17447 ;;
17448
17449 dgux*)
17450 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17451 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17452 hardcode_shlibpath_var_GCJ=no
17453 ;;
17454
17455 freebsd1*)
17456 ld_shlibs_GCJ=no
17457 ;;
17458
17459 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17460 # support. Future versions do this automatically, but an explicit c++rt0.o
17461 # does not break anything, and helps significantly (at the cost of a little
17462 # extra space).
17463 freebsd2.2*)
17464 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17465 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17466 hardcode_direct_GCJ=yes
17467 hardcode_shlibpath_var_GCJ=no
17468 ;;
17469
17470 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17471 freebsd2*)
17472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17473 hardcode_direct_GCJ=yes
17474 hardcode_minus_L_GCJ=yes
17475 hardcode_shlibpath_var_GCJ=no
17476 ;;
17477
17478 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17479 freebsd* | dragonfly*)
17480 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17481 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17482 hardcode_direct_GCJ=yes
17483 hardcode_shlibpath_var_GCJ=no
17484 ;;
17485
17486 hpux9*)
17487 if test "$GCC" = yes; then
17488 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'
17489 else
17490 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'
17491 fi
17492 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17493 hardcode_libdir_separator_GCJ=:
17494 hardcode_direct_GCJ=yes
17495
17496 # hardcode_minus_L: Not really in the search PATH,
17497 # but as the default location of the library.
17498 hardcode_minus_L_GCJ=yes
17499 export_dynamic_flag_spec_GCJ='${wl}-E'
17500 ;;
17501
17502 hpux10*)
17503 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17504 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17505 else
17506 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17507 fi
17508 if test "$with_gnu_ld" = no; then
17509 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17510 hardcode_libdir_separator_GCJ=:
17511
17512 hardcode_direct_GCJ=yes
17513 export_dynamic_flag_spec_GCJ='${wl}-E'
17514
17515 # hardcode_minus_L: Not really in the search PATH,
17516 # but as the default location of the library.
17517 hardcode_minus_L_GCJ=yes
17518 fi
17519 ;;
17520
17521 hpux11*)
17522 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17523 case $host_cpu in
17524 hppa*64*)
17525 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17526 ;;
17527 ia64*)
17528 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17529 ;;
17530 *)
17531 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17532 ;;
17533 esac
17534 else
17535 case $host_cpu in
17536 hppa*64*)
17537 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17538 ;;
17539 ia64*)
17540 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17541 ;;
17542 *)
17543 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17544 ;;
17545 esac
17546 fi
17547 if test "$with_gnu_ld" = no; then
17548 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17549 hardcode_libdir_separator_GCJ=:
17550
17551 case $host_cpu in
17552 hppa*64*|ia64*)
17553 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17554 hardcode_direct_GCJ=no
17555 hardcode_shlibpath_var_GCJ=no
17556 ;;
17557 *)
17558 hardcode_direct_GCJ=yes
17559 export_dynamic_flag_spec_GCJ='${wl}-E'
17560
17561 # hardcode_minus_L: Not really in the search PATH,
17562 # but as the default location of the library.
17563 hardcode_minus_L_GCJ=yes
17564 ;;
17565 esac
17566 fi
17567 ;;
17568
17569 irix5* | irix6* | nonstopux*)
17570 if test "$GCC" = yes; then
17571 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'
17572 else
17573 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'
17574 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17575 fi
17576 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17577 hardcode_libdir_separator_GCJ=:
17578 link_all_deplibs_GCJ=yes
17579 ;;
17580
17581 netbsd*)
17582 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17583 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17584 else
17585 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17586 fi
17587 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17588 hardcode_direct_GCJ=yes
17589 hardcode_shlibpath_var_GCJ=no
17590 ;;
17591
17592 newsos6)
17593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17594 hardcode_direct_GCJ=yes
17595 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17596 hardcode_libdir_separator_GCJ=:
17597 hardcode_shlibpath_var_GCJ=no
17598 ;;
17599
17600 openbsd*)
17601 if test -f /usr/libexec/ld.so; then
17602 hardcode_direct_GCJ=yes
17603 hardcode_shlibpath_var_GCJ=no
17604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17605 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17606 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17607 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17608 export_dynamic_flag_spec_GCJ='${wl}-E'
17609 else
17610 case $host_os in
17611 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17612 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17614 ;;
17615 *)
17616 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17618 ;;
17619 esac
17620 fi
17621 else
17622 ld_shlibs_GCJ=no
17623 fi
17624 ;;
17625
17626 os2*)
17627 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17628 hardcode_minus_L_GCJ=yes
17629 allow_undefined_flag_GCJ=unsupported
17630 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'
17631 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17632 ;;
17633
17634 osf3*)
17635 if test "$GCC" = yes; then
17636 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17637 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'
17638 else
17639 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17640 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'
17641 fi
17642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17643 hardcode_libdir_separator_GCJ=:
17644 ;;
17645
17646 osf4* | osf5*) # as osf3* with the addition of -msym flag
17647 if test "$GCC" = yes; then
17648 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17649 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'
17650 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17651 else
17652 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17653 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'
17654 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~
17655 $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'
17656
17657 # Both c and cxx compiler support -rpath directly
17658 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17659 fi
17660 hardcode_libdir_separator_GCJ=:
17661 ;;
17662
17663 solaris*)
17664 no_undefined_flag_GCJ=' -z text'
17665 if test "$GCC" = yes; then
17666 wlarc='${wl}'
17667 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17668 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17669 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17670 else
17671 wlarc=''
17672 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17673 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17674 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17675 fi
17676 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17677 hardcode_shlibpath_var_GCJ=no
17678 case $host_os in
17679 solaris2.[0-5] | solaris2.[0-5].*) ;;
17680 *)
17681 # The compiler driver will combine and reorder linker options,
17682 # but understands `-z linker_flag'. GCC discards it without `$wl',
17683 # but is careful enough not to reorder.
17684 # Supported since Solaris 2.6 (maybe 2.5.1?)
17685 if test "$GCC" = yes; then
17686 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17687 else
17688 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17689 fi
17690 ;;
17691 esac
17692 link_all_deplibs_GCJ=yes
17693 ;;
17694
17695 sunos4*)
17696 if test "x$host_vendor" = xsequent; then
17697 # Use $CC to link under sequent, because it throws in some extra .o
17698 # files that make .init and .fini sections work.
17699 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17700 else
17701 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17702 fi
17703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17704 hardcode_direct_GCJ=yes
17705 hardcode_minus_L_GCJ=yes
17706 hardcode_shlibpath_var_GCJ=no
17707 ;;
17708
17709 sysv4)
17710 case $host_vendor in
17711 sni)
17712 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17713 hardcode_direct_GCJ=yes # is this really true???
17714 ;;
17715 siemens)
17716 ## LD is ld it makes a PLAMLIB
17717 ## CC just makes a GrossModule.
17718 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17719 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17720 hardcode_direct_GCJ=no
17721 ;;
17722 motorola)
17723 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17725 ;;
17726 esac
17727 runpath_var='LD_RUN_PATH'
17728 hardcode_shlibpath_var_GCJ=no
17729 ;;
17730
17731 sysv4.3*)
17732 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17733 hardcode_shlibpath_var_GCJ=no
17734 export_dynamic_flag_spec_GCJ='-Bexport'
17735 ;;
17736
17737 sysv4*MP*)
17738 if test -d /usr/nec; then
17739 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17740 hardcode_shlibpath_var_GCJ=no
17741 runpath_var=LD_RUN_PATH
17742 hardcode_runpath_var=yes
17743 ld_shlibs_GCJ=yes
17744 fi
17745 ;;
17746
17747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17748 no_undefined_flag_GCJ='${wl}-z,text'
17749 archive_cmds_need_lc_GCJ=no
17750 hardcode_shlibpath_var_GCJ=no
17751 runpath_var='LD_RUN_PATH'
17752
17753 if test "$GCC" = yes; then
17754 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17755 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17756 else
17757 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759 fi
17760 ;;
17761
17762 sysv5* | sco3.2v5* | sco5v6*)
17763 # Note: We can NOT use -z defs as we might desire, because we do not
17764 # link with -lc, and that would cause any symbols used from libc to
17765 # always be unresolved, which means just about no library would
17766 # ever link correctly. If we're not using GNU ld we use -z text
17767 # though, which does catch some bad symbols but isn't as heavy-handed
17768 # as -z defs.
17769 no_undefined_flag_GCJ='${wl}-z,text'
17770 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17771 archive_cmds_need_lc_GCJ=no
17772 hardcode_shlibpath_var_GCJ=no
17773 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17774 hardcode_libdir_separator_GCJ=':'
17775 link_all_deplibs_GCJ=yes
17776 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17777 runpath_var='LD_RUN_PATH'
17778
17779 if test "$GCC" = yes; then
17780 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17781 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17782 else
17783 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 fi
17786 ;;
17787
17788 uts4*)
17789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17790 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17791 hardcode_shlibpath_var_GCJ=no
17792 ;;
17793
17794 *)
17795 ld_shlibs_GCJ=no
17796 ;;
17797 esac
17798 fi
17799
17800 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17801 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17802 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17803
17804 #
17805 # Do we need to explicitly link libc?
17806 #
17807 case "x$archive_cmds_need_lc_GCJ" in
17808 x|xyes)
17809 # Assume -lc should be added
17810 archive_cmds_need_lc_GCJ=yes
17811
17812 if test "$enable_shared" = yes && test "$GCC" = yes; then
17813 case $archive_cmds_GCJ in
17814 *'~'*)
17815 # FIXME: we may have to deal with multi-command sequences.
17816 ;;
17817 '$CC '*)
17818 # Test whether the compiler implicitly links with -lc since on some
17819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17820 # to ld, don't add -lc before -lgcc.
17821 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17822 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17823 $rm conftest*
17824 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17825
17826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17827 (eval $ac_compile) 2>&5
17828 ac_status=$?
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); } 2>conftest.err; then
17831 soname=conftest
17832 lib=conftest
17833 libobjs=conftest.$ac_objext
17834 deplibs=
17835 wl=$lt_prog_compiler_wl_GCJ
17836 pic_flag=$lt_prog_compiler_pic_GCJ
17837 compiler_flags=-v
17838 linker_flags=-v
17839 verstring=
17840 output_objdir=.
17841 libname=conftest
17842 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17843 allow_undefined_flag_GCJ=
17844 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17845 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }
17849 then
17850 archive_cmds_need_lc_GCJ=no
17851 else
17852 archive_cmds_need_lc_GCJ=yes
17853 fi
17854 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17855 else
17856 cat conftest.err 1>&5
17857 fi
17858 $rm conftest*
17859 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17860 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17861 ;;
17862 esac
17863 fi
17864 ;;
17865 esac
17866
17867 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17868 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17869 library_names_spec=
17870 libname_spec='lib$name'
17871 soname_spec=
17872 shrext_cmds=".so"
17873 postinstall_cmds=
17874 postuninstall_cmds=
17875 finish_cmds=
17876 finish_eval=
17877 shlibpath_var=
17878 shlibpath_overrides_runpath=unknown
17879 version_type=none
17880 dynamic_linker="$host_os ld.so"
17881 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17882
17883 need_lib_prefix=unknown
17884 hardcode_into_libs=no
17885
17886 # when you set need_version to no, make sure it does not cause -set_version
17887 # flags to be left without arguments
17888 need_version=unknown
17889
17890 case $host_os in
17891 aix3*)
17892 version_type=linux
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17894 shlibpath_var=LIBPATH
17895
17896 # AIX 3 has no versioning support, so we append a major version to the name.
17897 soname_spec='${libname}${release}${shared_ext}$major'
17898 ;;
17899
17900 aix4* | aix5*)
17901 version_type=linux
17902 need_lib_prefix=no
17903 need_version=no
17904 hardcode_into_libs=yes
17905 if test "$host_cpu" = ia64; then
17906 # AIX 5 supports IA64
17907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17908 shlibpath_var=LD_LIBRARY_PATH
17909 else
17910 # With GCC up to 2.95.x, collect2 would create an import file
17911 # for dependence libraries. The import file would start with
17912 # the line `#! .'. This would cause the generated library to
17913 # depend on `.', always an invalid library. This was fixed in
17914 # development snapshots of GCC prior to 3.0.
17915 case $host_os in
17916 aix4 | aix4.[01] | aix4.[01].*)
17917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17918 echo ' yes '
17919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17920 :
17921 else
17922 can_build_shared=no
17923 fi
17924 ;;
17925 esac
17926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17927 # soname into executable. Probably we can add versioning support to
17928 # collect2, so additional links can be useful in future.
17929 if test "$aix_use_runtimelinking" = yes; then
17930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17931 # instead of lib<name>.a to let people know that these are not
17932 # typical AIX shared libraries.
17933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17934 else
17935 # We preserve .a as extension for shared libraries through AIX4.2
17936 # and later when we are not doing run time linking.
17937 library_names_spec='${libname}${release}.a $libname.a'
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 fi
17940 shlibpath_var=LIBPATH
17941 fi
17942 ;;
17943
17944 amigaos*)
17945 library_names_spec='$libname.ixlibrary $libname.a'
17946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17947 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'
17948 ;;
17949
17950 beos*)
17951 library_names_spec='${libname}${shared_ext}'
17952 dynamic_linker="$host_os ld.so"
17953 shlibpath_var=LIBRARY_PATH
17954 ;;
17955
17956 bsdi[45]*)
17957 version_type=linux
17958 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17965 # the default ld.so.conf also contains /usr/contrib/lib and
17966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17967 # libtool to hard-code these into programs
17968 ;;
17969
17970 cygwin* | mingw* | pw32*)
17971 version_type=windows
17972 shrext_cmds=".dll"
17973 need_version=no
17974 need_lib_prefix=no
17975
17976 case $GCC,$host_os in
17977 yes,cygwin* | yes,mingw* | yes,pw32*)
17978 library_names_spec='$libname.dll.a'
17979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17980 postinstall_cmds='base_file=`basename \${file}`~
17981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17982 dldir=$destdir/`dirname \$dlpath`~
17983 test -d \$dldir || mkdir -p \$dldir~
17984 $install_prog $dir/$dlname \$dldir/$dlname~
17985 chmod a+x \$dldir/$dlname'
17986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17987 dlpath=$dir/\$dldll~
17988 $rm \$dlpath'
17989 shlibpath_overrides_runpath=yes
17990
17991 case $host_os in
17992 cygwin*)
17993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17995 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17996 ;;
17997 mingw*)
17998 # MinGW DLLs use traditional 'lib' prefix
17999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18001 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18002 # It is most probably a Windows format PATH printed by
18003 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18004 # path with ; separators, and with drive letters. We can handle the
18005 # drive letters (cygwin fileutils understands them), so leave them,
18006 # especially as we might pass files found there to a mingw objdump,
18007 # which wouldn't understand a cygwinified path. Ahh.
18008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18009 else
18010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18011 fi
18012 ;;
18013 pw32*)
18014 # pw32 DLLs use 'pw' prefix rather than 'lib'
18015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18016 ;;
18017 esac
18018 ;;
18019
18020 *)
18021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18022 ;;
18023 esac
18024 dynamic_linker='Win32 ld.exe'
18025 # FIXME: first we should search . and the directory the executable is in
18026 shlibpath_var=PATH
18027 ;;
18028
18029 darwin* | rhapsody*)
18030 dynamic_linker="$host_os dyld"
18031 version_type=darwin
18032 need_lib_prefix=no
18033 need_version=no
18034 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18035 soname_spec='${libname}${release}${major}$shared_ext'
18036 shlibpath_overrides_runpath=yes
18037 shlibpath_var=DYLD_LIBRARY_PATH
18038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18039
18040 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18041 ;;
18042
18043 dgux*)
18044 version_type=linux
18045 need_lib_prefix=no
18046 need_version=no
18047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18048 soname_spec='${libname}${release}${shared_ext}$major'
18049 shlibpath_var=LD_LIBRARY_PATH
18050 ;;
18051
18052 freebsd1*)
18053 dynamic_linker=no
18054 ;;
18055
18056 freebsd* | dragonfly*)
18057 # DragonFly does not have aout. When/if they implement a new
18058 # versioning mechanism, adjust this.
18059 if test -x /usr/bin/objformat; then
18060 objformat=`/usr/bin/objformat`
18061 else
18062 case $host_os in
18063 freebsd[123]*) objformat=aout ;;
18064 *) objformat=elf ;;
18065 esac
18066 fi
18067 version_type=freebsd-$objformat
18068 case $version_type in
18069 freebsd-elf*)
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18071 need_version=no
18072 need_lib_prefix=no
18073 ;;
18074 freebsd-*)
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18076 need_version=yes
18077 ;;
18078 esac
18079 shlibpath_var=LD_LIBRARY_PATH
18080 case $host_os in
18081 freebsd2*)
18082 shlibpath_overrides_runpath=yes
18083 ;;
18084 freebsd3.[01]* | freebsdelf3.[01]*)
18085 shlibpath_overrides_runpath=yes
18086 hardcode_into_libs=yes
18087 ;;
18088 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18089 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18090 shlibpath_overrides_runpath=no
18091 hardcode_into_libs=yes
18092 ;;
18093 *) # from 4.6 on, and DragonFly
18094 shlibpath_overrides_runpath=yes
18095 hardcode_into_libs=yes
18096 ;;
18097 esac
18098 ;;
18099
18100 gnu*)
18101 version_type=linux
18102 need_lib_prefix=no
18103 need_version=no
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 hardcode_into_libs=yes
18108 ;;
18109
18110 hpux9* | hpux10* | hpux11*)
18111 # Give a soname corresponding to the major version so that dld.sl refuses to
18112 # link against other versions.
18113 version_type=sunos
18114 need_lib_prefix=no
18115 need_version=no
18116 case $host_cpu in
18117 ia64*)
18118 shrext_cmds='.so'
18119 hardcode_into_libs=yes
18120 dynamic_linker="$host_os dld.so"
18121 shlibpath_var=LD_LIBRARY_PATH
18122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18124 soname_spec='${libname}${release}${shared_ext}$major'
18125 if test "X$HPUX_IA64_MODE" = X32; then
18126 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18127 else
18128 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18129 fi
18130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18131 ;;
18132 hppa*64*)
18133 shrext_cmds='.sl'
18134 hardcode_into_libs=yes
18135 dynamic_linker="$host_os dld.sl"
18136 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18139 soname_spec='${libname}${release}${shared_ext}$major'
18140 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18142 ;;
18143 *)
18144 shrext_cmds='.sl'
18145 dynamic_linker="$host_os dld.sl"
18146 shlibpath_var=SHLIB_PATH
18147 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18149 soname_spec='${libname}${release}${shared_ext}$major'
18150 ;;
18151 esac
18152 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18153 postinstall_cmds='chmod 555 $lib'
18154 ;;
18155
18156 interix[3-9]*)
18157 version_type=linux
18158 need_lib_prefix=no
18159 need_version=no
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18163 shlibpath_var=LD_LIBRARY_PATH
18164 shlibpath_overrides_runpath=no
18165 hardcode_into_libs=yes
18166 ;;
18167
18168 irix5* | irix6* | nonstopux*)
18169 case $host_os in
18170 nonstopux*) version_type=nonstopux ;;
18171 *)
18172 if test "$lt_cv_prog_gnu_ld" = yes; then
18173 version_type=linux
18174 else
18175 version_type=irix
18176 fi ;;
18177 esac
18178 need_lib_prefix=no
18179 need_version=no
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18182 case $host_os in
18183 irix5* | nonstopux*)
18184 libsuff= shlibsuff=
18185 ;;
18186 *)
18187 case $LD in # libtool.m4 will add one of these switches to LD
18188 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18189 libsuff= shlibsuff= libmagic=32-bit;;
18190 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18191 libsuff=32 shlibsuff=N32 libmagic=N32;;
18192 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18193 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18194 *) libsuff= shlibsuff= libmagic=never-match;;
18195 esac
18196 ;;
18197 esac
18198 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18199 shlibpath_overrides_runpath=no
18200 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18201 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18202 hardcode_into_libs=yes
18203 ;;
18204
18205 # No shared lib support for Linux oldld, aout, or coff.
18206 linux*oldld* | linux*aout* | linux*coff*)
18207 dynamic_linker=no
18208 ;;
18209
18210 # This must be Linux ELF.
18211 linux* | k*bsd*-gnu)
18212 version_type=linux
18213 need_lib_prefix=no
18214 need_version=no
18215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18216 soname_spec='${libname}${release}${shared_ext}$major'
18217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath=no
18220 # This implies no fast_install, which is unacceptable.
18221 # Some rework will be needed to allow for fast_install
18222 # before this can be enabled.
18223 hardcode_into_libs=yes
18224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18226
18227 # Append ld.so.conf contents to the search path
18228 if test -f /etc/ld.so.conf; then
18229 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18230 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18231 fi
18232
18233 # We used to test for /lib/ld.so.1 and disable shared libraries on
18234 # powerpc, because MkLinux only supported shared libraries with the
18235 # GNU dynamic linker. Since this was broken with cross compilers,
18236 # most powerpc-linux boxes support dynamic linking these days and
18237 # people can always --disable-shared, the test was removed, and we
18238 # assume the GNU/Linux dynamic linker is in use.
18239 dynamic_linker='GNU/Linux ld.so'
18240 ;;
18241
18242 netbsd*)
18243 version_type=sunos
18244 need_lib_prefix=no
18245 need_version=no
18246 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18249 dynamic_linker='NetBSD (a.out) ld.so'
18250 else
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 dynamic_linker='NetBSD ld.elf_so'
18254 fi
18255 shlibpath_var=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath=yes
18257 hardcode_into_libs=yes
18258 ;;
18259
18260 newsos6)
18261 version_type=linux
18262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18263 shlibpath_var=LD_LIBRARY_PATH
18264 shlibpath_overrides_runpath=yes
18265 ;;
18266
18267 nto-qnx*)
18268 version_type=linux
18269 need_lib_prefix=no
18270 need_version=no
18271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272 soname_spec='${libname}${release}${shared_ext}$major'
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=yes
18275 ;;
18276
18277 openbsd*)
18278 version_type=sunos
18279 sys_lib_dlsearch_path_spec="/usr/lib"
18280 need_lib_prefix=no
18281 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18282 case $host_os in
18283 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18284 *) need_version=no ;;
18285 esac
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18288 shlibpath_var=LD_LIBRARY_PATH
18289 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18290 case $host_os in
18291 openbsd2.[89] | openbsd2.[89].*)
18292 shlibpath_overrides_runpath=no
18293 ;;
18294 *)
18295 shlibpath_overrides_runpath=yes
18296 ;;
18297 esac
18298 else
18299 shlibpath_overrides_runpath=yes
18300 fi
18301 ;;
18302
18303 os2*)
18304 libname_spec='$name'
18305 shrext_cmds=".dll"
18306 need_lib_prefix=no
18307 library_names_spec='$libname${shared_ext} $libname.a'
18308 dynamic_linker='OS/2 ld.exe'
18309 shlibpath_var=LIBPATH
18310 ;;
18311
18312 osf3* | osf4* | osf5*)
18313 version_type=osf
18314 need_lib_prefix=no
18315 need_version=no
18316 soname_spec='${libname}${release}${shared_ext}$major'
18317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18318 shlibpath_var=LD_LIBRARY_PATH
18319 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18320 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18321 ;;
18322
18323 rdos*)
18324 dynamic_linker=no
18325 ;;
18326
18327 solaris*)
18328 version_type=linux
18329 need_lib_prefix=no
18330 need_version=no
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LD_LIBRARY_PATH
18334 shlibpath_overrides_runpath=yes
18335 hardcode_into_libs=yes
18336 # ldd complains unless libraries are executable
18337 postinstall_cmds='chmod +x $lib'
18338 ;;
18339
18340 sunos4*)
18341 version_type=sunos
18342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18343 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18344 shlibpath_var=LD_LIBRARY_PATH
18345 shlibpath_overrides_runpath=yes
18346 if test "$with_gnu_ld" = yes; then
18347 need_lib_prefix=no
18348 fi
18349 need_version=yes
18350 ;;
18351
18352 sysv4 | sysv4.3*)
18353 version_type=linux
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 shlibpath_var=LD_LIBRARY_PATH
18357 case $host_vendor in
18358 sni)
18359 shlibpath_overrides_runpath=no
18360 need_lib_prefix=no
18361 export_dynamic_flag_spec='${wl}-Blargedynsym'
18362 runpath_var=LD_RUN_PATH
18363 ;;
18364 siemens)
18365 need_lib_prefix=no
18366 ;;
18367 motorola)
18368 need_lib_prefix=no
18369 need_version=no
18370 shlibpath_overrides_runpath=no
18371 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18372 ;;
18373 esac
18374 ;;
18375
18376 sysv4*MP*)
18377 if test -d /usr/nec ;then
18378 version_type=linux
18379 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18380 soname_spec='$libname${shared_ext}.$major'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 fi
18383 ;;
18384
18385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18386 version_type=freebsd-elf
18387 need_lib_prefix=no
18388 need_version=no
18389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18390 soname_spec='${libname}${release}${shared_ext}$major'
18391 shlibpath_var=LD_LIBRARY_PATH
18392 hardcode_into_libs=yes
18393 if test "$with_gnu_ld" = yes; then
18394 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18395 shlibpath_overrides_runpath=no
18396 else
18397 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18398 shlibpath_overrides_runpath=yes
18399 case $host_os in
18400 sco3.2v5*)
18401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18402 ;;
18403 esac
18404 fi
18405 sys_lib_dlsearch_path_spec='/usr/lib'
18406 ;;
18407
18408 uts4*)
18409 version_type=linux
18410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 shlibpath_var=LD_LIBRARY_PATH
18413 ;;
18414
18415 *)
18416 dynamic_linker=no
18417 ;;
18418 esac
18419 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18420 echo "${ECHO_T}$dynamic_linker" >&6; }
18421 test "$dynamic_linker" = no && can_build_shared=no
18422
18423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18424 if test "$GCC" = yes; then
18425 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18426 fi
18427
18428 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18429 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18430 hardcode_action_GCJ=
18431 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18432 test -n "$runpath_var_GCJ" || \
18433 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18434
18435 # We can hardcode non-existant directories.
18436 if test "$hardcode_direct_GCJ" != no &&
18437 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18438 # have to relink, otherwise we might link with an installed library
18439 # when we should be linking with a yet-to-be-installed one
18440 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18441 test "$hardcode_minus_L_GCJ" != no; then
18442 # Linking always hardcodes the temporary library directory.
18443 hardcode_action_GCJ=relink
18444 else
18445 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18446 hardcode_action_GCJ=immediate
18447 fi
18448 else
18449 # We cannot hardcode anything, or else we can only hardcode existing
18450 # directories.
18451 hardcode_action_GCJ=unsupported
18452 fi
18453 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18454 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18455
18456 if test "$hardcode_action_GCJ" = relink; then
18457 # Fast installation is not supported
18458 enable_fast_install=no
18459 elif test "$shlibpath_overrides_runpath" = yes ||
18460 test "$enable_shared" = no; then
18461 # Fast installation is not necessary
18462 enable_fast_install=needless
18463 fi
18464
18465
18466 # The else clause should only fire when bootstrapping the
18467 # libtool distribution, otherwise you forgot to ship ltmain.sh
18468 # with your package, and you will get complaints that there are
18469 # no rules to generate ltmain.sh.
18470 if test -f "$ltmain"; then
18471 # See if we are running on zsh, and set the options which allow our commands through
18472 # without removal of \ escapes.
18473 if test -n "${ZSH_VERSION+set}" ; then
18474 setopt NO_GLOB_SUBST
18475 fi
18476 # Now quote all the things that may contain metacharacters while being
18477 # careful not to overquote the AC_SUBSTed values. We take copies of the
18478 # variables and quote the copies for generation of the libtool script.
18479 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18480 SED SHELL STRIP \
18481 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18482 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18483 deplibs_check_method reload_flag reload_cmds need_locks \
18484 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18485 lt_cv_sys_global_symbol_to_c_name_address \
18486 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18487 old_postinstall_cmds old_postuninstall_cmds \
18488 compiler_GCJ \
18489 CC_GCJ \
18490 LD_GCJ \
18491 lt_prog_compiler_wl_GCJ \
18492 lt_prog_compiler_pic_GCJ \
18493 lt_prog_compiler_static_GCJ \
18494 lt_prog_compiler_no_builtin_flag_GCJ \
18495 export_dynamic_flag_spec_GCJ \
18496 thread_safe_flag_spec_GCJ \
18497 whole_archive_flag_spec_GCJ \
18498 enable_shared_with_static_runtimes_GCJ \
18499 old_archive_cmds_GCJ \
18500 old_archive_from_new_cmds_GCJ \
18501 predep_objects_GCJ \
18502 postdep_objects_GCJ \
18503 predeps_GCJ \
18504 postdeps_GCJ \
18505 compiler_lib_search_path_GCJ \
18506 archive_cmds_GCJ \
18507 archive_expsym_cmds_GCJ \
18508 postinstall_cmds_GCJ \
18509 postuninstall_cmds_GCJ \
18510 old_archive_from_expsyms_cmds_GCJ \
18511 allow_undefined_flag_GCJ \
18512 no_undefined_flag_GCJ \
18513 export_symbols_cmds_GCJ \
18514 hardcode_libdir_flag_spec_GCJ \
18515 hardcode_libdir_flag_spec_ld_GCJ \
18516 hardcode_libdir_separator_GCJ \
18517 hardcode_automatic_GCJ \
18518 module_cmds_GCJ \
18519 module_expsym_cmds_GCJ \
18520 lt_cv_prog_compiler_c_o_GCJ \
18521 fix_srcfile_path_GCJ \
18522 exclude_expsyms_GCJ \
18523 include_expsyms_GCJ; do
18524
18525 case $var in
18526 old_archive_cmds_GCJ | \
18527 old_archive_from_new_cmds_GCJ | \
18528 archive_cmds_GCJ | \
18529 archive_expsym_cmds_GCJ | \
18530 module_cmds_GCJ | \
18531 module_expsym_cmds_GCJ | \
18532 old_archive_from_expsyms_cmds_GCJ | \
18533 export_symbols_cmds_GCJ | \
18534 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18535 postinstall_cmds | postuninstall_cmds | \
18536 old_postinstall_cmds | old_postuninstall_cmds | \
18537 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18538 # Double-quote double-evaled strings.
18539 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18540 ;;
18541 *)
18542 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18543 ;;
18544 esac
18545 done
18546
18547 case $lt_echo in
18548 *'\$0 --fallback-echo"')
18549 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18550 ;;
18551 esac
18552
18553 cfgfile="$ofile"
18554
18555 cat <<__EOF__ >> "$cfgfile"
18556 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18557
18558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18559
18560 # Shell to use when invoking shell scripts.
18561 SHELL=$lt_SHELL
18562
18563 # Whether or not to build shared libraries.
18564 build_libtool_libs=$enable_shared
18565
18566 # Whether or not to build static libraries.
18567 build_old_libs=$enable_static
18568
18569 # Whether or not to add -lc for building shared libraries.
18570 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18571
18572 # Whether or not to disallow shared libs when runtime libs are static
18573 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18574
18575 # Whether or not to optimize for fast installation.
18576 fast_install=$enable_fast_install
18577
18578 # The host system.
18579 host_alias=$host_alias
18580 host=$host
18581 host_os=$host_os
18582
18583 # The build system.
18584 build_alias=$build_alias
18585 build=$build
18586 build_os=$build_os
18587
18588 # An echo program that does not interpret backslashes.
18589 echo=$lt_echo
18590
18591 # The archiver.
18592 AR=$lt_AR
18593 AR_FLAGS=$lt_AR_FLAGS
18594
18595 # A C compiler.
18596 LTCC=$lt_LTCC
18597
18598 # LTCC compiler flags.
18599 LTCFLAGS=$lt_LTCFLAGS
18600
18601 # A language-specific compiler.
18602 CC=$lt_compiler_GCJ
18603
18604 # Is the compiler the GNU C compiler?
18605 with_gcc=$GCC_GCJ
18606
18607 # An ERE matcher.
18608 EGREP=$lt_EGREP
18609
18610 # The linker used to build libraries.
18611 LD=$lt_LD_GCJ
18612
18613 # Whether we need hard or soft links.
18614 LN_S=$lt_LN_S
18615
18616 # A BSD-compatible nm program.
18617 NM=$lt_NM
18618
18619 # A symbol stripping program
18620 STRIP=$lt_STRIP
18621
18622 # Used to examine libraries when file_magic_cmd begins "file"
18623 MAGIC_CMD=$MAGIC_CMD
18624
18625 # Used on cygwin: DLL creation program.
18626 DLLTOOL="$DLLTOOL"
18627
18628 # Used on cygwin: object dumper.
18629 OBJDUMP="$OBJDUMP"
18630
18631 # Used on cygwin: assembler.
18632 AS="$AS"
18633
18634 # The name of the directory that contains temporary libtool files.
18635 objdir=$objdir
18636
18637 # How to create reloadable object files.
18638 reload_flag=$lt_reload_flag
18639 reload_cmds=$lt_reload_cmds
18640
18641 # How to pass a linker flag through the compiler.
18642 wl=$lt_lt_prog_compiler_wl_GCJ
18643
18644 # Object file suffix (normally "o").
18645 objext="$ac_objext"
18646
18647 # Old archive suffix (normally "a").
18648 libext="$libext"
18649
18650 # Shared library suffix (normally ".so").
18651 shrext_cmds='$shrext_cmds'
18652
18653 # Executable file suffix (normally "").
18654 exeext="$exeext"
18655
18656 # Additional compiler flags for building library objects.
18657 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18658 pic_mode=$pic_mode
18659
18660 # What is the maximum length of a command?
18661 max_cmd_len=$lt_cv_sys_max_cmd_len
18662
18663 # Does compiler simultaneously support -c and -o options?
18664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18665
18666 # Must we lock files when doing compilation?
18667 need_locks=$lt_need_locks
18668
18669 # Do we need the lib prefix for modules?
18670 need_lib_prefix=$need_lib_prefix
18671
18672 # Do we need a version for libraries?
18673 need_version=$need_version
18674
18675 # Whether dlopen is supported.
18676 dlopen_support=$enable_dlopen
18677
18678 # Whether dlopen of programs is supported.
18679 dlopen_self=$enable_dlopen_self
18680
18681 # Whether dlopen of statically linked programs is supported.
18682 dlopen_self_static=$enable_dlopen_self_static
18683
18684 # Compiler flag to prevent dynamic linking.
18685 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18686
18687 # Compiler flag to turn off builtin functions.
18688 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18689
18690 # Compiler flag to allow reflexive dlopens.
18691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18692
18693 # Compiler flag to generate shared objects directly from archives.
18694 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18695
18696 # Compiler flag to generate thread-safe objects.
18697 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18698
18699 # Library versioning type.
18700 version_type=$version_type
18701
18702 # Format of library name prefix.
18703 libname_spec=$lt_libname_spec
18704
18705 # List of archive names. First name is the real one, the rest are links.
18706 # The last name is the one that the linker finds with -lNAME.
18707 library_names_spec=$lt_library_names_spec
18708
18709 # The coded name of the library, if different from the real name.
18710 soname_spec=$lt_soname_spec
18711
18712 # Commands used to build and install an old-style archive.
18713 RANLIB=$lt_RANLIB
18714 old_archive_cmds=$lt_old_archive_cmds_GCJ
18715 old_postinstall_cmds=$lt_old_postinstall_cmds
18716 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18717
18718 # Create an old-style archive from a shared archive.
18719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18720
18721 # Create a temporary old-style archive to link instead of a shared archive.
18722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18723
18724 # Commands used to build and install a shared archive.
18725 archive_cmds=$lt_archive_cmds_GCJ
18726 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18727 postinstall_cmds=$lt_postinstall_cmds
18728 postuninstall_cmds=$lt_postuninstall_cmds
18729
18730 # Commands used to build a loadable module (assumed same as above if empty)
18731 module_cmds=$lt_module_cmds_GCJ
18732 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18733
18734 # Commands to strip libraries.
18735 old_striplib=$lt_old_striplib
18736 striplib=$lt_striplib
18737
18738 # Dependencies to place before the objects being linked to create a
18739 # shared library.
18740 predep_objects=$lt_predep_objects_GCJ
18741
18742 # Dependencies to place after the objects being linked to create a
18743 # shared library.
18744 postdep_objects=$lt_postdep_objects_GCJ
18745
18746 # Dependencies to place before the objects being linked to create a
18747 # shared library.
18748 predeps=$lt_predeps_GCJ
18749
18750 # Dependencies to place after the objects being linked to create a
18751 # shared library.
18752 postdeps=$lt_postdeps_GCJ
18753
18754 # The library search path used internally by the compiler when linking
18755 # a shared library.
18756 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18757
18758 # Method to check whether dependent libraries are shared objects.
18759 deplibs_check_method=$lt_deplibs_check_method
18760
18761 # Command to use when deplibs_check_method == file_magic.
18762 file_magic_cmd=$lt_file_magic_cmd
18763
18764 # Flag that allows shared libraries with undefined symbols to be built.
18765 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18766
18767 # Flag that forces no undefined symbols.
18768 no_undefined_flag=$lt_no_undefined_flag_GCJ
18769
18770 # Commands used to finish a libtool library installation in a directory.
18771 finish_cmds=$lt_finish_cmds
18772
18773 # Same as above, but a single script fragment to be evaled but not shown.
18774 finish_eval=$lt_finish_eval
18775
18776 # Take the output of nm and produce a listing of raw symbols and C names.
18777 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18778
18779 # Transform the output of nm in a proper C declaration
18780 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18781
18782 # Transform the output of nm in a C name address pair
18783 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18784
18785 # This is the shared library runtime path variable.
18786 runpath_var=$runpath_var
18787
18788 # This is the shared library path variable.
18789 shlibpath_var=$shlibpath_var
18790
18791 # Is shlibpath searched before the hard-coded library search path?
18792 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18793
18794 # How to hardcode a shared library path into an executable.
18795 hardcode_action=$hardcode_action_GCJ
18796
18797 # Whether we should hardcode library paths into libraries.
18798 hardcode_into_libs=$hardcode_into_libs
18799
18800 # Flag to hardcode \$libdir into a binary during linking.
18801 # This must work even if \$libdir does not exist.
18802 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18803
18804 # If ld is used when linking, flag to hardcode \$libdir into
18805 # a binary during linking. This must work even if \$libdir does
18806 # not exist.
18807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18808
18809 # Whether we need a single -rpath flag with a separated argument.
18810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18811
18812 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18813 # resulting binary.
18814 hardcode_direct=$hardcode_direct_GCJ
18815
18816 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18817 # resulting binary.
18818 hardcode_minus_L=$hardcode_minus_L_GCJ
18819
18820 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18821 # the resulting binary.
18822 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18823
18824 # Set to yes if building a shared library automatically hardcodes DIR into the library
18825 # and all subsequent libraries and executables linked against it.
18826 hardcode_automatic=$hardcode_automatic_GCJ
18827
18828 # Variables whose values should be saved in libtool wrapper scripts and
18829 # restored at relink time.
18830 variables_saved_for_relink="$variables_saved_for_relink"
18831
18832 # Whether libtool must link a program against all its dependency libraries.
18833 link_all_deplibs=$link_all_deplibs_GCJ
18834
18835 # Compile-time system search path for libraries
18836 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18837
18838 # Run-time system search path for libraries
18839 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18840
18841 # Fix the shell variable \$srcfile for the compiler.
18842 fix_srcfile_path=$lt_fix_srcfile_path
18843
18844 # Set to yes if exported symbols are required.
18845 always_export_symbols=$always_export_symbols_GCJ
18846
18847 # The commands to list exported symbols.
18848 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18849
18850 # The commands to extract the exported symbol list from a shared archive.
18851 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18852
18853 # Symbols that should not be listed in the preloaded symbols.
18854 exclude_expsyms=$lt_exclude_expsyms_GCJ
18855
18856 # Symbols that must always be exported.
18857 include_expsyms=$lt_include_expsyms_GCJ
18858
18859 # ### END LIBTOOL TAG CONFIG: $tagname
18860
18861 __EOF__
18862
18863
18864 else
18865 # If there is no Makefile yet, we rely on a make rule to execute
18866 # `config.status --recheck' to rerun these tests and create the
18867 # libtool script then.
18868 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18869 if test -f "$ltmain_in"; then
18870 test -f Makefile && make "$ltmain"
18871 fi
18872 fi
18873
18874
18875 ac_ext=c
18876 ac_cpp='$CPP $CPPFLAGS'
18877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18880
18881 CC="$lt_save_CC"
18882
18883 else
18884 tagname=""
18885 fi
18886 ;;
18887
18888 RC)
18889
18890
18891 # Source file extension for RC test sources.
18892 ac_ext=rc
18893
18894 # Object file extension for compiled RC test sources.
18895 objext=o
18896 objext_RC=$objext
18897
18898 # Code to be used in simple compile tests
18899 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18900
18901 # Code to be used in simple link tests
18902 lt_simple_link_test_code="$lt_simple_compile_test_code"
18903
18904 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18905
18906 # If no C compiler was specified, use CC.
18907 LTCC=${LTCC-"$CC"}
18908
18909 # If no C compiler flags were specified, use CFLAGS.
18910 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18911
18912 # Allow CC to be a program name with arguments.
18913 compiler=$CC
18914
18915
18916 # save warnings/boilerplate of simple test code
18917 ac_outfile=conftest.$ac_objext
18918 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18919 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18920 _lt_compiler_boilerplate=`cat conftest.err`
18921 $rm conftest*
18922
18923 ac_outfile=conftest.$ac_objext
18924 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18925 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18926 _lt_linker_boilerplate=`cat conftest.err`
18927 $rm conftest*
18928
18929
18930 # Allow CC to be a program name with arguments.
18931 lt_save_CC="$CC"
18932 CC=${RC-"windres"}
18933 compiler=$CC
18934 compiler_RC=$CC
18935 for cc_temp in $compiler""; do
18936 case $cc_temp in
18937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18939 \-*) ;;
18940 *) break;;
18941 esac
18942 done
18943 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18944
18945 lt_cv_prog_compiler_c_o_RC=yes
18946
18947 # The else clause should only fire when bootstrapping the
18948 # libtool distribution, otherwise you forgot to ship ltmain.sh
18949 # with your package, and you will get complaints that there are
18950 # no rules to generate ltmain.sh.
18951 if test -f "$ltmain"; then
18952 # See if we are running on zsh, and set the options which allow our commands through
18953 # without removal of \ escapes.
18954 if test -n "${ZSH_VERSION+set}" ; then
18955 setopt NO_GLOB_SUBST
18956 fi
18957 # Now quote all the things that may contain metacharacters while being
18958 # careful not to overquote the AC_SUBSTed values. We take copies of the
18959 # variables and quote the copies for generation of the libtool script.
18960 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18961 SED SHELL STRIP \
18962 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18963 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18964 deplibs_check_method reload_flag reload_cmds need_locks \
18965 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18966 lt_cv_sys_global_symbol_to_c_name_address \
18967 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18968 old_postinstall_cmds old_postuninstall_cmds \
18969 compiler_RC \
18970 CC_RC \
18971 LD_RC \
18972 lt_prog_compiler_wl_RC \
18973 lt_prog_compiler_pic_RC \
18974 lt_prog_compiler_static_RC \
18975 lt_prog_compiler_no_builtin_flag_RC \
18976 export_dynamic_flag_spec_RC \
18977 thread_safe_flag_spec_RC \
18978 whole_archive_flag_spec_RC \
18979 enable_shared_with_static_runtimes_RC \
18980 old_archive_cmds_RC \
18981 old_archive_from_new_cmds_RC \
18982 predep_objects_RC \
18983 postdep_objects_RC \
18984 predeps_RC \
18985 postdeps_RC \
18986 compiler_lib_search_path_RC \
18987 archive_cmds_RC \
18988 archive_expsym_cmds_RC \
18989 postinstall_cmds_RC \
18990 postuninstall_cmds_RC \
18991 old_archive_from_expsyms_cmds_RC \
18992 allow_undefined_flag_RC \
18993 no_undefined_flag_RC \
18994 export_symbols_cmds_RC \
18995 hardcode_libdir_flag_spec_RC \
18996 hardcode_libdir_flag_spec_ld_RC \
18997 hardcode_libdir_separator_RC \
18998 hardcode_automatic_RC \
18999 module_cmds_RC \
19000 module_expsym_cmds_RC \
19001 lt_cv_prog_compiler_c_o_RC \
19002 fix_srcfile_path_RC \
19003 exclude_expsyms_RC \
19004 include_expsyms_RC; do
19005
19006 case $var in
19007 old_archive_cmds_RC | \
19008 old_archive_from_new_cmds_RC | \
19009 archive_cmds_RC | \
19010 archive_expsym_cmds_RC | \
19011 module_cmds_RC | \
19012 module_expsym_cmds_RC | \
19013 old_archive_from_expsyms_cmds_RC | \
19014 export_symbols_cmds_RC | \
19015 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19016 postinstall_cmds | postuninstall_cmds | \
19017 old_postinstall_cmds | old_postuninstall_cmds | \
19018 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19019 # Double-quote double-evaled strings.
19020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19021 ;;
19022 *)
19023 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19024 ;;
19025 esac
19026 done
19027
19028 case $lt_echo in
19029 *'\$0 --fallback-echo"')
19030 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19031 ;;
19032 esac
19033
19034 cfgfile="$ofile"
19035
19036 cat <<__EOF__ >> "$cfgfile"
19037 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19038
19039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19040
19041 # Shell to use when invoking shell scripts.
19042 SHELL=$lt_SHELL
19043
19044 # Whether or not to build shared libraries.
19045 build_libtool_libs=$enable_shared
19046
19047 # Whether or not to build static libraries.
19048 build_old_libs=$enable_static
19049
19050 # Whether or not to add -lc for building shared libraries.
19051 build_libtool_need_lc=$archive_cmds_need_lc_RC
19052
19053 # Whether or not to disallow shared libs when runtime libs are static
19054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19055
19056 # Whether or not to optimize for fast installation.
19057 fast_install=$enable_fast_install
19058
19059 # The host system.
19060 host_alias=$host_alias
19061 host=$host
19062 host_os=$host_os
19063
19064 # The build system.
19065 build_alias=$build_alias
19066 build=$build
19067 build_os=$build_os
19068
19069 # An echo program that does not interpret backslashes.
19070 echo=$lt_echo
19071
19072 # The archiver.
19073 AR=$lt_AR
19074 AR_FLAGS=$lt_AR_FLAGS
19075
19076 # A C compiler.
19077 LTCC=$lt_LTCC
19078
19079 # LTCC compiler flags.
19080 LTCFLAGS=$lt_LTCFLAGS
19081
19082 # A language-specific compiler.
19083 CC=$lt_compiler_RC
19084
19085 # Is the compiler the GNU C compiler?
19086 with_gcc=$GCC_RC
19087
19088 # An ERE matcher.
19089 EGREP=$lt_EGREP
19090
19091 # The linker used to build libraries.
19092 LD=$lt_LD_RC
19093
19094 # Whether we need hard or soft links.
19095 LN_S=$lt_LN_S
19096
19097 # A BSD-compatible nm program.
19098 NM=$lt_NM
19099
19100 # A symbol stripping program
19101 STRIP=$lt_STRIP
19102
19103 # Used to examine libraries when file_magic_cmd begins "file"
19104 MAGIC_CMD=$MAGIC_CMD
19105
19106 # Used on cygwin: DLL creation program.
19107 DLLTOOL="$DLLTOOL"
19108
19109 # Used on cygwin: object dumper.
19110 OBJDUMP="$OBJDUMP"
19111
19112 # Used on cygwin: assembler.
19113 AS="$AS"
19114
19115 # The name of the directory that contains temporary libtool files.
19116 objdir=$objdir
19117
19118 # How to create reloadable object files.
19119 reload_flag=$lt_reload_flag
19120 reload_cmds=$lt_reload_cmds
19121
19122 # How to pass a linker flag through the compiler.
19123 wl=$lt_lt_prog_compiler_wl_RC
19124
19125 # Object file suffix (normally "o").
19126 objext="$ac_objext"
19127
19128 # Old archive suffix (normally "a").
19129 libext="$libext"
19130
19131 # Shared library suffix (normally ".so").
19132 shrext_cmds='$shrext_cmds'
19133
19134 # Executable file suffix (normally "").
19135 exeext="$exeext"
19136
19137 # Additional compiler flags for building library objects.
19138 pic_flag=$lt_lt_prog_compiler_pic_RC
19139 pic_mode=$pic_mode
19140
19141 # What is the maximum length of a command?
19142 max_cmd_len=$lt_cv_sys_max_cmd_len
19143
19144 # Does compiler simultaneously support -c and -o options?
19145 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19146
19147 # Must we lock files when doing compilation?
19148 need_locks=$lt_need_locks
19149
19150 # Do we need the lib prefix for modules?
19151 need_lib_prefix=$need_lib_prefix
19152
19153 # Do we need a version for libraries?
19154 need_version=$need_version
19155
19156 # Whether dlopen is supported.
19157 dlopen_support=$enable_dlopen
19158
19159 # Whether dlopen of programs is supported.
19160 dlopen_self=$enable_dlopen_self
19161
19162 # Whether dlopen of statically linked programs is supported.
19163 dlopen_self_static=$enable_dlopen_self_static
19164
19165 # Compiler flag to prevent dynamic linking.
19166 link_static_flag=$lt_lt_prog_compiler_static_RC
19167
19168 # Compiler flag to turn off builtin functions.
19169 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19170
19171 # Compiler flag to allow reflexive dlopens.
19172 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19173
19174 # Compiler flag to generate shared objects directly from archives.
19175 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19176
19177 # Compiler flag to generate thread-safe objects.
19178 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19179
19180 # Library versioning type.
19181 version_type=$version_type
19182
19183 # Format of library name prefix.
19184 libname_spec=$lt_libname_spec
19185
19186 # List of archive names. First name is the real one, the rest are links.
19187 # The last name is the one that the linker finds with -lNAME.
19188 library_names_spec=$lt_library_names_spec
19189
19190 # The coded name of the library, if different from the real name.
19191 soname_spec=$lt_soname_spec
19192
19193 # Commands used to build and install an old-style archive.
19194 RANLIB=$lt_RANLIB
19195 old_archive_cmds=$lt_old_archive_cmds_RC
19196 old_postinstall_cmds=$lt_old_postinstall_cmds
19197 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19198
19199 # Create an old-style archive from a shared archive.
19200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19201
19202 # Create a temporary old-style archive to link instead of a shared archive.
19203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19204
19205 # Commands used to build and install a shared archive.
19206 archive_cmds=$lt_archive_cmds_RC
19207 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19208 postinstall_cmds=$lt_postinstall_cmds
19209 postuninstall_cmds=$lt_postuninstall_cmds
19210
19211 # Commands used to build a loadable module (assumed same as above if empty)
19212 module_cmds=$lt_module_cmds_RC
19213 module_expsym_cmds=$lt_module_expsym_cmds_RC
19214
19215 # Commands to strip libraries.
19216 old_striplib=$lt_old_striplib
19217 striplib=$lt_striplib
19218
19219 # Dependencies to place before the objects being linked to create a
19220 # shared library.
19221 predep_objects=$lt_predep_objects_RC
19222
19223 # Dependencies to place after the objects being linked to create a
19224 # shared library.
19225 postdep_objects=$lt_postdep_objects_RC
19226
19227 # Dependencies to place before the objects being linked to create a
19228 # shared library.
19229 predeps=$lt_predeps_RC
19230
19231 # Dependencies to place after the objects being linked to create a
19232 # shared library.
19233 postdeps=$lt_postdeps_RC
19234
19235 # The library search path used internally by the compiler when linking
19236 # a shared library.
19237 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19238
19239 # Method to check whether dependent libraries are shared objects.
19240 deplibs_check_method=$lt_deplibs_check_method
19241
19242 # Command to use when deplibs_check_method == file_magic.
19243 file_magic_cmd=$lt_file_magic_cmd
19244
19245 # Flag that allows shared libraries with undefined symbols to be built.
19246 allow_undefined_flag=$lt_allow_undefined_flag_RC
19247
19248 # Flag that forces no undefined symbols.
19249 no_undefined_flag=$lt_no_undefined_flag_RC
19250
19251 # Commands used to finish a libtool library installation in a directory.
19252 finish_cmds=$lt_finish_cmds
19253
19254 # Same as above, but a single script fragment to be evaled but not shown.
19255 finish_eval=$lt_finish_eval
19256
19257 # Take the output of nm and produce a listing of raw symbols and C names.
19258 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19259
19260 # Transform the output of nm in a proper C declaration
19261 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19262
19263 # Transform the output of nm in a C name address pair
19264 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19265
19266 # This is the shared library runtime path variable.
19267 runpath_var=$runpath_var
19268
19269 # This is the shared library path variable.
19270 shlibpath_var=$shlibpath_var
19271
19272 # Is shlibpath searched before the hard-coded library search path?
19273 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19274
19275 # How to hardcode a shared library path into an executable.
19276 hardcode_action=$hardcode_action_RC
19277
19278 # Whether we should hardcode library paths into libraries.
19279 hardcode_into_libs=$hardcode_into_libs
19280
19281 # Flag to hardcode \$libdir into a binary during linking.
19282 # This must work even if \$libdir does not exist.
19283 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19284
19285 # If ld is used when linking, flag to hardcode \$libdir into
19286 # a binary during linking. This must work even if \$libdir does
19287 # not exist.
19288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19289
19290 # Whether we need a single -rpath flag with a separated argument.
19291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19292
19293 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19294 # resulting binary.
19295 hardcode_direct=$hardcode_direct_RC
19296
19297 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19298 # resulting binary.
19299 hardcode_minus_L=$hardcode_minus_L_RC
19300
19301 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19302 # the resulting binary.
19303 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19304
19305 # Set to yes if building a shared library automatically hardcodes DIR into the library
19306 # and all subsequent libraries and executables linked against it.
19307 hardcode_automatic=$hardcode_automatic_RC
19308
19309 # Variables whose values should be saved in libtool wrapper scripts and
19310 # restored at relink time.
19311 variables_saved_for_relink="$variables_saved_for_relink"
19312
19313 # Whether libtool must link a program against all its dependency libraries.
19314 link_all_deplibs=$link_all_deplibs_RC
19315
19316 # Compile-time system search path for libraries
19317 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19318
19319 # Run-time system search path for libraries
19320 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19321
19322 # Fix the shell variable \$srcfile for the compiler.
19323 fix_srcfile_path=$lt_fix_srcfile_path
19324
19325 # Set to yes if exported symbols are required.
19326 always_export_symbols=$always_export_symbols_RC
19327
19328 # The commands to list exported symbols.
19329 export_symbols_cmds=$lt_export_symbols_cmds_RC
19330
19331 # The commands to extract the exported symbol list from a shared archive.
19332 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19333
19334 # Symbols that should not be listed in the preloaded symbols.
19335 exclude_expsyms=$lt_exclude_expsyms_RC
19336
19337 # Symbols that must always be exported.
19338 include_expsyms=$lt_include_expsyms_RC
19339
19340 # ### END LIBTOOL TAG CONFIG: $tagname
19341
19342 __EOF__
19343
19344
19345 else
19346 # If there is no Makefile yet, we rely on a make rule to execute
19347 # `config.status --recheck' to rerun these tests and create the
19348 # libtool script then.
19349 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19350 if test -f "$ltmain_in"; then
19351 test -f Makefile && make "$ltmain"
19352 fi
19353 fi
19354
19355
19356 ac_ext=c
19357 ac_cpp='$CPP $CPPFLAGS'
19358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19361
19362 CC="$lt_save_CC"
19363
19364 ;;
19365
19366 *)
19367 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19368 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19369 { (exit 1); exit 1; }; }
19370 ;;
19371 esac
19372
19373 # Append the new tag name to the list of available tags.
19374 if test -n "$tagname" ; then
19375 available_tags="$available_tags $tagname"
19376 fi
19377 fi
19378 done
19379 IFS="$lt_save_ifs"
19380
19381 # Now substitute the updated list of available tags.
19382 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19383 mv "${ofile}T" "$ofile"
19384 chmod +x "$ofile"
19385 else
19386 rm -f "${ofile}T"
19387 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19388 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19389 { (exit 1); exit 1; }; }
19390 fi
19391 fi
19392
19393
19394
19395 # This can be used to rebuild libtool when needed
19396 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19397
19398 # Always use our own libtool.
19399 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19400
19401 # Prevent multiple expansion
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423 # Check for dependencies
19424
19425
19426 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19427 if test -n "$ac_tool_prefix"; then
19428 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19429 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19432 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19434 else
19435 case $PKG_CONFIG in
19436 [\\/]* | ?:[\\/]*)
19437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19438 ;;
19439 *)
19440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441 for as_dir in $PATH
19442 do
19443 IFS=$as_save_IFS
19444 test -z "$as_dir" && as_dir=.
19445 for ac_exec_ext in '' $ac_executable_extensions; do
19446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19449 break 2
19450 fi
19451 done
19452 done
19453 IFS=$as_save_IFS
19454
19455 ;;
19456 esac
19457 fi
19458 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19459 if test -n "$PKG_CONFIG"; then
19460 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19461 echo "${ECHO_T}$PKG_CONFIG" >&6; }
19462 else
19463 { echo "$as_me:$LINENO: result: no" >&5
19464 echo "${ECHO_T}no" >&6; }
19465 fi
19466
19467
19468 fi
19469 if test -z "$ac_cv_path_PKG_CONFIG"; then
19470 ac_pt_PKG_CONFIG=$PKG_CONFIG
19471 # Extract the first word of "pkg-config", so it can be a program name with args.
19472 set dummy pkg-config; ac_word=$2
19473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19475 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 else
19478 case $ac_pt_PKG_CONFIG in
19479 [\\/]* | ?:[\\/]*)
19480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19481 ;;
19482 *)
19483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19484 for as_dir in $PATH
19485 do
19486 IFS=$as_save_IFS
19487 test -z "$as_dir" && as_dir=.
19488 for ac_exec_ext in '' $ac_executable_extensions; do
19489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19490 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19492 break 2
19493 fi
19494 done
19495 done
19496 IFS=$as_save_IFS
19497
19498 ;;
19499 esac
19500 fi
19501 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19502 if test -n "$ac_pt_PKG_CONFIG"; then
19503 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19504 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
19505 else
19506 { echo "$as_me:$LINENO: result: no" >&5
19507 echo "${ECHO_T}no" >&6; }
19508 fi
19509
19510 if test "x$ac_pt_PKG_CONFIG" = x; then
19511 PKG_CONFIG=""
19512 else
19513 case $cross_compiling:$ac_tool_warned in
19514 yes:)
19515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19516 whose name does not start with the host triplet. If you think this
19517 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
19518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19519 whose name does not start with the host triplet. If you think this
19520 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
19521 ac_tool_warned=yes ;;
19522 esac
19523 PKG_CONFIG=$ac_pt_PKG_CONFIG
19524 fi
19525 else
19526 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19527 fi
19528
19529 fi
19530 if test -n "$PKG_CONFIG"; then
19531 _pkg_min_version=0.9.0
19532 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19533 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
19534 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19535 { echo "$as_me:$LINENO: result: yes" >&5
19536 echo "${ECHO_T}yes" >&6; }
19537 else
19538 { echo "$as_me:$LINENO: result: no" >&5
19539 echo "${ECHO_T}no" >&6; }
19540 PKG_CONFIG=""
19541 fi
19542
19543 fi
19544
19545 pkg_failed=no
19546 { echo "$as_me:$LINENO: checking for XINERAMA" >&5
19547 echo $ECHO_N "checking for XINERAMA... $ECHO_C" >&6; }
19548
19549 if test -n "$XINERAMA_CFLAGS"; then
19550 pkg_cv_XINERAMA_CFLAGS="$XINERAMA_CFLAGS"
19551 elif test -n "$PKG_CONFIG"; then
19552 if test -n "$PKG_CONFIG" && \
19553 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto\"") >&5
19554 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto") 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; then
19558 pkg_cv_XINERAMA_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xextproto xineramaproto" 2>/dev/null`
19559 else
19560 pkg_failed=yes
19561 fi
19562 else
19563 pkg_failed=untried
19564 fi
19565 if test -n "$XINERAMA_LIBS"; then
19566 pkg_cv_XINERAMA_LIBS="$XINERAMA_LIBS"
19567 elif test -n "$PKG_CONFIG"; then
19568 if test -n "$PKG_CONFIG" && \
19569 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xext xextproto xineramaproto\"") >&5
19570 ($PKG_CONFIG --exists --print-errors "x11 xext xextproto xineramaproto") 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; then
19574 pkg_cv_XINERAMA_LIBS=`$PKG_CONFIG --libs "x11 xext xextproto xineramaproto" 2>/dev/null`
19575 else
19576 pkg_failed=yes
19577 fi
19578 else
19579 pkg_failed=untried
19580 fi
19581
19582
19583
19584 if test $pkg_failed = yes; then
19585
19586 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19587 _pkg_short_errors_supported=yes
19588 else
19589 _pkg_short_errors_supported=no
19590 fi
19591 if test $_pkg_short_errors_supported = yes; then
19592 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext xextproto xineramaproto" 2>&1`
19593 else
19594 XINERAMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext xextproto xineramaproto" 2>&1`
19595 fi
19596 # Put the nasty error message in config.log where it belongs
19597 echo "$XINERAMA_PKG_ERRORS" >&5
19598
19599 { { echo "$as_me:$LINENO: error: Package requirements (x11 xext xextproto xineramaproto) were not met:
19600
19601 $XINERAMA_PKG_ERRORS
19602
19603 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19604 installed software in a non-standard prefix.
19605
19606 Alternatively, you may set the environment variables XINERAMA_CFLAGS
19607 and XINERAMA_LIBS to avoid the need to call pkg-config.
19608 See the pkg-config man page for more details.
19609 " >&5
19610 echo "$as_me: error: Package requirements (x11 xext xextproto xineramaproto) were not met:
19611
19612 $XINERAMA_PKG_ERRORS
19613
19614 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19615 installed software in a non-standard prefix.
19616
19617 Alternatively, you may set the environment variables XINERAMA_CFLAGS
19618 and XINERAMA_LIBS to avoid the need to call pkg-config.
19619 See the pkg-config man page for more details.
19620 " >&2;}
19621 { (exit 1); exit 1; }; }
19622 elif test $pkg_failed = untried; then
19623 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
19624 is in your PATH or set the PKG_CONFIG environment variable to the full
19625 path to pkg-config.
19626
19627 Alternatively, you may set the environment variables XINERAMA_CFLAGS
19628 and XINERAMA_LIBS to avoid the need to call pkg-config.
19629 See the pkg-config man page for more details.
19630
19631 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19632 See \`config.log' for more details." >&5
19633 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
19634 is in your PATH or set the PKG_CONFIG environment variable to the full
19635 path to pkg-config.
19636
19637 Alternatively, you may set the environment variables XINERAMA_CFLAGS
19638 and XINERAMA_LIBS to avoid the need to call pkg-config.
19639 See the pkg-config man page for more details.
19640
19641 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19642 See \`config.log' for more details." >&2;}
19643 { (exit 1); exit 1; }; }
19644 else
19645 XINERAMA_CFLAGS=$pkg_cv_XINERAMA_CFLAGS
19646 XINERAMA_LIBS=$pkg_cv_XINERAMA_LIBS
19647 { echo "$as_me:$LINENO: result: yes" >&5
19648 echo "${ECHO_T}yes" >&6; }
19649 :
19650 fi
19651
19652
19653
19654
19655
19656
19657 # Allow checking code with lint, sparse, etc.
19658
19659 # Check whether --with-lint was given.
19660 if test "${with_lint+set}" = set; then
19661 withval=$with_lint; use_lint=$withval
19662 else
19663 use_lint=no
19664 fi
19665
19666 if test "x$use_lint" = "xyes" ; then
19667 LINT="lint"
19668 else
19669 LINT="$use_lint"
19670 fi
19671 if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
19672 case $LINT in
19673 lint|*/lint)
19674 case $host_os in
19675 solaris*)
19676 LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19677 ;;
19678 esac
19679 ;;
19680 esac
19681 fi
19682
19683
19684
19685 if test x$LINT != xno; then
19686 LINT_TRUE=
19687 LINT_FALSE='#'
19688 else
19689 LINT_TRUE='#'
19690 LINT_FALSE=
19691 fi
19692
19693
19694
19695 LINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
19696
19697
19698 # Check whether --enable-malloc0returnsnull was given.
19699 if test "${enable_malloc0returnsnull+set}" = set; then
19700 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19701 else
19702 MALLOC_ZERO_RETURNS_NULL=auto
19703 fi
19704
19705
19706 { echo "$as_me:$LINENO: checking whether malloc(0) returns NULL" >&5
19707 echo $ECHO_N "checking whether malloc(0) returns NULL... $ECHO_C" >&6; }
19708 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19709 if test "$cross_compiling" = yes; then
19710 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19711 See \`config.log' for more details." >&5
19712 echo "$as_me: error: cannot run test program while cross compiling
19713 See \`config.log' for more details." >&2;}
19714 { (exit 1); exit 1; }; }
19715 else
19716 cat >conftest.$ac_ext <<_ACEOF
19717
19718 char *malloc();
19719 char *realloc();
19720 char *calloc();
19721 main() {
19722 char *m0, *r0, *c0, *p;
19723 m0 = malloc(0);
19724 p = malloc(10);
19725 r0 = realloc(p,0);
19726 c0 = calloc(0);
19727 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1);
19728 }
19729 _ACEOF
19730 rm -f conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_link") 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19747 ac_status=$?
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; }; then
19750 MALLOC_ZERO_RETURNS_NULL=yes
19751 else
19752 echo "$as_me: program exited with status $ac_status" >&5
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ( exit $ac_status )
19757 MALLOC_ZERO_RETURNS_NULL=no
19758 fi
19759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19760 fi
19761
19762
19763 fi
19764 { echo "$as_me:$LINENO: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19765 echo "${ECHO_T}$MALLOC_ZERO_RETURNS_NULL" >&6; }
19766
19767 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19768 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19769 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19770 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19771 else
19772 MALLOC_ZERO_CFLAGS=""
19773 XMALLOC_ZERO_CFLAGS=""
19774 XTMALLOC_ZERO_CFLAGS=""
19775 fi
19776
19777
19778
19779
19780
19781
19782
19783
19784 if test x$APP_MAN_SUFFIX = x ; then
19785 APP_MAN_SUFFIX=1
19786 fi
19787 if test x$APP_MAN_DIR = x ; then
19788 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19789 fi
19790
19791 if test x$LIB_MAN_SUFFIX = x ; then
19792 LIB_MAN_SUFFIX=3
19793 fi
19794 if test x$LIB_MAN_DIR = x ; then
19795 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19796 fi
19797
19798 if test x$FILE_MAN_SUFFIX = x ; then
19799 case $host_os in
19800 solaris*) FILE_MAN_SUFFIX=4 ;;
19801 *) FILE_MAN_SUFFIX=5 ;;
19802 esac
19803 fi
19804 if test x$FILE_MAN_DIR = x ; then
19805 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19806 fi
19807
19808 if test x$MISC_MAN_SUFFIX = x ; then
19809 case $host_os in
19810 solaris*) MISC_MAN_SUFFIX=5 ;;
19811 *) MISC_MAN_SUFFIX=7 ;;
19812 esac
19813 fi
19814 if test x$MISC_MAN_DIR = x ; then
19815 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19816 fi
19817
19818 if test x$DRIVER_MAN_SUFFIX = x ; then
19819 case $host_os in
19820 solaris*) DRIVER_MAN_SUFFIX=7 ;;
19821 *) DRIVER_MAN_SUFFIX=4 ;;
19822 esac
19823 fi
19824 if test x$DRIVER_MAN_DIR = x ; then
19825 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19826 fi
19827
19828 if test x$ADMIN_MAN_SUFFIX = x ; then
19829 case $host_os in
19830 solaris*) ADMIN_MAN_SUFFIX=1m ;;
19831 *) ADMIN_MAN_SUFFIX=8 ;;
19832 esac
19833 fi
19834 if test x$ADMIN_MAN_DIR = x ; then
19835 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19836 fi
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854 # Check whether --with-release-version was given.
19855 if test "${with_release_version+set}" = set; then
19856 withval=$with_release_version; RELEASE_VERSION="$withval"
19857 else
19858 RELEASE_VERSION=""
19859 fi
19860
19861 if test "x$RELEASE_VERSION" != "x"; then
19862 PACKAGE="$PACKAGE-$RELEASE_VERSION"
19863 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19864 { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19865 echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19866 fi
19867
19868 cat >>confdefs.h <<_ACEOF
19869 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19870 _ACEOF
19871
19872 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19873 if test "x$PVM" = "x"; then
19874 PVM="0"
19875 fi
19876
19877 cat >>confdefs.h <<_ACEOF
19878 #define PACKAGE_VERSION_MINOR $PVM
19879 _ACEOF
19880
19881 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19882 if test "x$PVP" = "x"; then
19883 PVP="0"
19884 fi
19885
19886 cat >>confdefs.h <<_ACEOF
19887 #define PACKAGE_VERSION_PATCHLEVEL $PVP
19888 _ACEOF
19889
19890
19891
19892 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xinerama.pc"
19893
19894 cat >confcache <<\_ACEOF
19895 # This file is a shell script that caches the results of configure
19896 # tests run on this system so they can be shared between configure
19897 # scripts and configure runs, see configure's option --config-cache.
19898 # It is not useful on other systems. If it contains results you don't
19899 # want to keep, you may remove or edit it.
19900 #
19901 # config.status only pays attention to the cache file if you give it
19902 # the --recheck option to rerun configure.
19903 #
19904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19906 # following values.
19907
19908 _ACEOF
19909
19910 # The following way of writing the cache mishandles newlines in values,
19911 # but we know of no workaround that is simple, portable, and efficient.
19912 # So, we kill variables containing newlines.
19913 # Ultrix sh set writes to stderr and can't be redirected directly,
19914 # and sets the high bit in the cache file unless we assign to the vars.
19915 (
19916 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19917 eval ac_val=\$$ac_var
19918 case $ac_val in #(
19919 *${as_nl}*)
19920 case $ac_var in #(
19921 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19922 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19923 esac
19924 case $ac_var in #(
19925 _ | IFS | as_nl) ;; #(
19926 *) $as_unset $ac_var ;;
19927 esac ;;
19928 esac
19929 done
19930
19931 (set) 2>&1 |
19932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19933 *${as_nl}ac_space=\ *)
19934 # `set' does not quote correctly, so add quotes (double-quote
19935 # substitution turns \\\\ into \\, and sed turns \\ into \).
19936 sed -n \
19937 "s/'/'\\\\''/g;
19938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19939 ;; #(
19940 *)
19941 # `set' quotes correctly as required by POSIX, so do not add quotes.
19942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19943 ;;
19944 esac |
19945 sort
19946 ) |
19947 sed '
19948 /^ac_cv_env_/b end
19949 t clear
19950 :clear
19951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19952 t end
19953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19954 :end' >>confcache
19955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19956 if test -w "$cache_file"; then
19957 test "x$cache_file" != "x/dev/null" &&
19958 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19959 echo "$as_me: updating cache $cache_file" >&6;}
19960 cat confcache >$cache_file
19961 else
19962 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19963 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19964 fi
19965 fi
19966 rm -f confcache
19967
19968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19969 # Let make expand exec_prefix.
19970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19971
19972 DEFS=-DHAVE_CONFIG_H
19973
19974 ac_libobjs=
19975 ac_ltlibobjs=
19976 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19977 # 1. Remove the extension, and $U if already installed.
19978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19979 ac_i=`echo "$ac_i" | sed "$ac_script"`
19980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19981 # will be set to the directory where LIBOBJS objects are built.
19982 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19983 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19984 done
19985 LIBOBJS=$ac_libobjs
19986
19987 LTLIBOBJS=$ac_ltlibobjs
19988
19989
19990 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19991 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19992 Usually this means the macro was only invoked conditionally." >&5
19993 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19994 Usually this means the macro was only invoked conditionally." >&2;}
19995 { (exit 1); exit 1; }; }
19996 fi
19997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19998 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19999 Usually this means the macro was only invoked conditionally." >&5
20000 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20001 Usually this means the macro was only invoked conditionally." >&2;}
20002 { (exit 1); exit 1; }; }
20003 fi
20004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20005 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20006 Usually this means the macro was only invoked conditionally." >&5
20007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20008 Usually this means the macro was only invoked conditionally." >&2;}
20009 { (exit 1); exit 1; }; }
20010 fi
20011 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20012 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20013 Usually this means the macro was only invoked conditionally." >&5
20014 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20015 Usually this means the macro was only invoked conditionally." >&2;}
20016 { (exit 1); exit 1; }; }
20017 fi
20018 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20019 { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
20020 Usually this means the macro was only invoked conditionally." >&5
20021 echo "$as_me: error: conditional \"LINT\" was never defined.
20022 Usually this means the macro was only invoked conditionally." >&2;}
20023 { (exit 1); exit 1; }; }
20024 fi
20025
20026 : ${CONFIG_STATUS=./config.status}
20027 ac_clean_files_save=$ac_clean_files
20028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20029 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20030 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20031 cat >$CONFIG_STATUS <<_ACEOF
20032 #! $SHELL
20033 # Generated by $as_me.
20034 # Run this file to recreate the current configuration.
20035 # Compiler output produced by configure, useful for debugging
20036 # configure, is in config.log if it exists.
20037
20038 debug=false
20039 ac_cs_recheck=false
20040 ac_cs_silent=false
20041 SHELL=\${CONFIG_SHELL-$SHELL}
20042 _ACEOF
20043
20044 cat >>$CONFIG_STATUS <<\_ACEOF
20045 ## --------------------- ##
20046 ## M4sh Initialization. ##
20047 ## --------------------- ##
20048
20049 # Be more Bourne compatible
20050 DUALCASE=1; export DUALCASE # for MKS sh
20051 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20052 emulate sh
20053 NULLCMD=:
20054 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20055 # is contrary to our usage. Disable this feature.
20056 alias -g '${1+"$@"}'='"$@"'
20057 setopt NO_GLOB_SUBST
20058 else
20059 case `(set -o) 2>/dev/null` in
20060 *posix*) set -o posix ;;
20061 esac
20062
20063 fi
20064
20065
20066
20067
20068 # PATH needs CR
20069 # Avoid depending upon Character Ranges.
20070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20073 as_cr_digits='0123456789'
20074 as_cr_alnum=$as_cr_Letters$as_cr_digits
20075
20076 # The user is always right.
20077 if test "${PATH_SEPARATOR+set}" != set; then
20078 echo "#! /bin/sh" >conf$$.sh
20079 echo "exit 0" >>conf$$.sh
20080 chmod +x conf$$.sh
20081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20082 PATH_SEPARATOR=';'
20083 else
20084 PATH_SEPARATOR=:
20085 fi
20086 rm -f conf$$.sh
20087 fi
20088
20089 # Support unset when possible.
20090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20091 as_unset=unset
20092 else
20093 as_unset=false
20094 fi
20095
20096
20097 # IFS
20098 # We need space, tab and new line, in precisely that order. Quoting is
20099 # there to prevent editors from complaining about space-tab.
20100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20101 # splitting by setting IFS to empty value.)
20102 as_nl='
20103 '
20104 IFS=" "" $as_nl"
20105
20106 # Find who we are. Look in the path if we contain no directory separator.
20107 case $0 in
20108 *[\\/]* ) as_myself=$0 ;;
20109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20110 for as_dir in $PATH
20111 do
20112 IFS=$as_save_IFS
20113 test -z "$as_dir" && as_dir=.
20114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20115 done
20116 IFS=$as_save_IFS
20117
20118 ;;
20119 esac
20120 # We did not find ourselves, most probably we were run as `sh COMMAND'
20121 # in which case we are not to be found in the path.
20122 if test "x$as_myself" = x; then
20123 as_myself=$0
20124 fi
20125 if test ! -f "$as_myself"; then
20126 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20127 { (exit 1); exit 1; }
20128 fi
20129
20130 # Work around bugs in pre-3.0 UWIN ksh.
20131 for as_var in ENV MAIL MAILPATH
20132 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20133 done
20134 PS1='$ '
20135 PS2='> '
20136 PS4='+ '
20137
20138 # NLS nuisances.
20139 for as_var in \
20140 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20141 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20142 LC_TELEPHONE LC_TIME
20143 do
20144 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20145 eval $as_var=C; export $as_var
20146 else
20147 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20148 fi
20149 done
20150
20151 # Required to use basename.
20152 if expr a : '\(a\)' >/dev/null 2>&1 &&
20153 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20154 as_expr=expr
20155 else
20156 as_expr=false
20157 fi
20158
20159 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20160 as_basename=basename
20161 else
20162 as_basename=false
20163 fi
20164
20165
20166 # Name of the executable.
20167 as_me=`$as_basename -- "$0" ||
20168 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20169 X"$0" : 'X\(//\)$' \| \
20170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20171 echo X/"$0" |
20172 sed '/^.*\/\([^/][^/]*\)\/*$/{
20173 s//\1/
20174 q
20175 }
20176 /^X\/\(\/\/\)$/{
20177 s//\1/
20178 q
20179 }
20180 /^X\/\(\/\).*/{
20181 s//\1/
20182 q
20183 }
20184 s/.*/./; q'`
20185
20186 # CDPATH.
20187 $as_unset CDPATH
20188
20189
20190
20191 as_lineno_1=$LINENO
20192 as_lineno_2=$LINENO
20193 test "x$as_lineno_1" != "x$as_lineno_2" &&
20194 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20195
20196 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20197 # uniformly replaced by the line number. The first 'sed' inserts a
20198 # line-number line after each line using $LINENO; the second 'sed'
20199 # does the real work. The second script uses 'N' to pair each
20200 # line-number line with the line containing $LINENO, and appends
20201 # trailing '-' during substitution so that $LINENO is not a special
20202 # case at line end.
20203 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20204 # scripts with optimization help from Paolo Bonzini. Blame Lee
20205 # E. McMahon (1931-1989) for sed's syntax. :-)
20206 sed -n '
20207 p
20208 /[$]LINENO/=
20209 ' <$as_myself |
20210 sed '
20211 s/[$]LINENO.*/&-/
20212 t lineno
20213 b
20214 :lineno
20215 N
20216 :loop
20217 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20218 t loop
20219 s/-\n.*//
20220 ' >$as_me.lineno &&
20221 chmod +x "$as_me.lineno" ||
20222 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20223 { (exit 1); exit 1; }; }
20224
20225 # Don't try to exec as it changes $[0], causing all sort of problems
20226 # (the dirname of $[0] is not the place where we might find the
20227 # original and so on. Autoconf is especially sensitive to this).
20228 . "./$as_me.lineno"
20229 # Exit status is that of the last command.
20230 exit
20231 }
20232
20233
20234 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20235 as_dirname=dirname
20236 else
20237 as_dirname=false
20238 fi
20239
20240 ECHO_C= ECHO_N= ECHO_T=
20241 case `echo -n x` in
20242 -n*)
20243 case `echo 'x\c'` in
20244 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20245 *) ECHO_C='\c';;
20246 esac;;
20247 *)
20248 ECHO_N='-n';;
20249 esac
20250
20251 if expr a : '\(a\)' >/dev/null 2>&1 &&
20252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20253 as_expr=expr
20254 else
20255 as_expr=false
20256 fi
20257
20258 rm -f conf$$ conf$$.exe conf$$.file
20259 if test -d conf$$.dir; then
20260 rm -f conf$$.dir/conf$$.file
20261 else
20262 rm -f conf$$.dir
20263 mkdir conf$$.dir
20264 fi
20265 echo >conf$$.file
20266 if ln -s conf$$.file conf$$ 2>/dev/null; then
20267 as_ln_s='ln -s'
20268 # ... but there are two gotchas:
20269 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20270 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20271 # In both cases, we have to default to `cp -p'.
20272 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20273 as_ln_s='cp -p'
20274 elif ln conf$$.file conf$$ 2>/dev/null; then
20275 as_ln_s=ln
20276 else
20277 as_ln_s='cp -p'
20278 fi
20279 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20280 rmdir conf$$.dir 2>/dev/null
20281
20282 if mkdir -p . 2>/dev/null; then
20283 as_mkdir_p=:
20284 else
20285 test -d ./-p && rmdir ./-p
20286 as_mkdir_p=false
20287 fi
20288
20289 if test -x / >/dev/null 2>&1; then
20290 as_test_x='test -x'
20291 else
20292 if ls -dL / >/dev/null 2>&1; then
20293 as_ls_L_option=L
20294 else
20295 as_ls_L_option=
20296 fi
20297 as_test_x='
20298 eval sh -c '\''
20299 if test -d "$1"; then
20300 test -d "$1/.";
20301 else
20302 case $1 in
20303 -*)set "./$1";;
20304 esac;
20305 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20306 ???[sx]*):;;*)false;;esac;fi
20307 '\'' sh
20308 '
20309 fi
20310 as_executable_p=$as_test_x
20311
20312 # Sed expression to map a string onto a valid CPP name.
20313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20314
20315 # Sed expression to map a string onto a valid variable name.
20316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20317
20318
20319 exec 6>&1
20320
20321 # Save the log message, to keep $[0] and so on meaningful, and to
20322 # report actual input values of CONFIG_FILES etc. instead of their
20323 # values after options handling.
20324 ac_log="
20325 This file was extended by libXinerama $as_me 1.0.3, which was
20326 generated by GNU Autoconf 2.61. Invocation command line was
20327
20328 CONFIG_FILES = $CONFIG_FILES
20329 CONFIG_HEADERS = $CONFIG_HEADERS
20330 CONFIG_LINKS = $CONFIG_LINKS
20331 CONFIG_COMMANDS = $CONFIG_COMMANDS
20332 $ $0 $@
20333
20334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20335 "
20336
20337 _ACEOF
20338
20339 cat >>$CONFIG_STATUS <<_ACEOF
20340 # Files that config.status was made for.
20341 config_files="$ac_config_files"
20342 config_headers="$ac_config_headers"
20343 config_commands="$ac_config_commands"
20344
20345 _ACEOF
20346
20347 cat >>$CONFIG_STATUS <<\_ACEOF
20348 ac_cs_usage="\
20349 \`$as_me' instantiates files from templates according to the
20350 current configuration.
20351
20352 Usage: $0 [OPTIONS] [FILE]...
20353
20354 -h, --help print this help, then exit
20355 -V, --version print version number and configuration settings, then exit
20356 -q, --quiet do not print progress messages
20357 -d, --debug don't remove temporary files
20358 --recheck update $as_me by reconfiguring in the same conditions
20359 --file=FILE[:TEMPLATE]
20360 instantiate the configuration file FILE
20361 --header=FILE[:TEMPLATE]
20362 instantiate the configuration header FILE
20363
20364 Configuration files:
20365 $config_files
20366
20367 Configuration headers:
20368 $config_headers
20369
20370 Configuration commands:
20371 $config_commands
20372
20373 Report bugs to <bug-autoconf (at] gnu.org>."
20374
20375 _ACEOF
20376 cat >>$CONFIG_STATUS <<_ACEOF
20377 ac_cs_version="\\
20378 libXinerama config.status 1.0.3
20379 configured by $0, generated by GNU Autoconf 2.61,
20380 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20381
20382 Copyright (C) 2006 Free Software Foundation, Inc.
20383 This config.status script is free software; the Free Software Foundation
20384 gives unlimited permission to copy, distribute and modify it."
20385
20386 ac_pwd='$ac_pwd'
20387 srcdir='$srcdir'
20388 INSTALL='$INSTALL'
20389 MKDIR_P='$MKDIR_P'
20390 _ACEOF
20391
20392 cat >>$CONFIG_STATUS <<\_ACEOF
20393 # If no file are specified by the user, then we need to provide default
20394 # value. By we need to know if files were specified by the user.
20395 ac_need_defaults=:
20396 while test $# != 0
20397 do
20398 case $1 in
20399 --*=*)
20400 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20401 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20402 ac_shift=:
20403 ;;
20404 *)
20405 ac_option=$1
20406 ac_optarg=$2
20407 ac_shift=shift
20408 ;;
20409 esac
20410
20411 case $ac_option in
20412 # Handling of the options.
20413 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20414 ac_cs_recheck=: ;;
20415 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20416 echo "$ac_cs_version"; exit ;;
20417 --debug | --debu | --deb | --de | --d | -d )
20418 debug=: ;;
20419 --file | --fil | --fi | --f )
20420 $ac_shift
20421 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20422 ac_need_defaults=false;;
20423 --header | --heade | --head | --hea )
20424 $ac_shift
20425 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20426 ac_need_defaults=false;;
20427 --he | --h)
20428 # Conflict between --help and --header
20429 { echo "$as_me: error: ambiguous option: $1
20430 Try \`$0 --help' for more information." >&2
20431 { (exit 1); exit 1; }; };;
20432 --help | --hel | -h )
20433 echo "$ac_cs_usage"; exit ;;
20434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20436 ac_cs_silent=: ;;
20437
20438 # This is an error.
20439 -*) { echo "$as_me: error: unrecognized option: $1
20440 Try \`$0 --help' for more information." >&2
20441 { (exit 1); exit 1; }; } ;;
20442
20443 *) ac_config_targets="$ac_config_targets $1"
20444 ac_need_defaults=false ;;
20445
20446 esac
20447 shift
20448 done
20449
20450 ac_configure_extra_args=
20451
20452 if $ac_cs_silent; then
20453 exec 6>/dev/null
20454 ac_configure_extra_args="$ac_configure_extra_args --silent"
20455 fi
20456
20457 _ACEOF
20458 cat >>$CONFIG_STATUS <<_ACEOF
20459 if \$ac_cs_recheck; then
20460 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20461 CONFIG_SHELL=$SHELL
20462 export CONFIG_SHELL
20463 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20464 fi
20465
20466 _ACEOF
20467 cat >>$CONFIG_STATUS <<\_ACEOF
20468 exec 5>>config.log
20469 {
20470 echo
20471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20472 ## Running $as_me. ##
20473 _ASBOX
20474 echo "$ac_log"
20475 } >&5
20476
20477 _ACEOF
20478 cat >>$CONFIG_STATUS <<_ACEOF
20479 #
20480 # INIT-COMMANDS
20481 #
20482 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20483
20484 _ACEOF
20485
20486 cat >>$CONFIG_STATUS <<\_ACEOF
20487
20488 # Handling of arguments.
20489 for ac_config_target in $ac_config_targets
20490 do
20491 case $ac_config_target in
20492 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20493 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20494 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20495 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20496 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20497 "xinerama.pc") CONFIG_FILES="$CONFIG_FILES xinerama.pc" ;;
20498
20499 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20501 { (exit 1); exit 1; }; };;
20502 esac
20503 done
20504
20505
20506 # If the user did not use the arguments to specify the items to instantiate,
20507 # then the envvar interface is used. Set only those that are not.
20508 # We use the long form for the default assignment because of an extremely
20509 # bizarre bug on SunOS 4.1.3.
20510 if $ac_need_defaults; then
20511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20514 fi
20515
20516 # Have a temporary directory for convenience. Make it in the build tree
20517 # simply because there is no reason against having it here, and in addition,
20518 # creating and moving files from /tmp can sometimes cause problems.
20519 # Hook for its removal unless debugging.
20520 # Note that there is a small window in which the directory will not be cleaned:
20521 # after its creation but before its name has been assigned to `$tmp'.
20522 $debug ||
20523 {
20524 tmp=
20525 trap 'exit_status=$?
20526 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20527 ' 0
20528 trap '{ (exit 1); exit 1; }' 1 2 13 15
20529 }
20530 # Create a (secure) tmp directory for tmp files.
20531
20532 {
20533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20534 test -n "$tmp" && test -d "$tmp"
20535 } ||
20536 {
20537 tmp=./conf$$-$RANDOM
20538 (umask 077 && mkdir "$tmp")
20539 } ||
20540 {
20541 echo "$me: cannot create a temporary directory in ." >&2
20542 { (exit 1); exit 1; }
20543 }
20544
20545 #
20546 # Set up the sed scripts for CONFIG_FILES section.
20547 #
20548
20549 # No need to generate the scripts if there are no CONFIG_FILES.
20550 # This happens for instance when ./config.status config.h
20551 if test -n "$CONFIG_FILES"; then
20552
20553 _ACEOF
20554
20555
20556
20557 ac_delim='%!_!# '
20558 for ac_last_try in false false false false false :; do
20559 cat >conf$$subs.sed <<_ACEOF
20560 SHELL!$SHELL$ac_delim
20561 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20562 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20563 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20564 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20565 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20566 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20567 exec_prefix!$exec_prefix$ac_delim
20568 prefix!$prefix$ac_delim
20569 program_transform_name!$program_transform_name$ac_delim
20570 bindir!$bindir$ac_delim
20571 sbindir!$sbindir$ac_delim
20572 libexecdir!$libexecdir$ac_delim
20573 datarootdir!$datarootdir$ac_delim
20574 datadir!$datadir$ac_delim
20575 sysconfdir!$sysconfdir$ac_delim
20576 sharedstatedir!$sharedstatedir$ac_delim
20577 localstatedir!$localstatedir$ac_delim
20578 includedir!$includedir$ac_delim
20579 oldincludedir!$oldincludedir$ac_delim
20580 docdir!$docdir$ac_delim
20581 infodir!$infodir$ac_delim
20582 htmldir!$htmldir$ac_delim
20583 dvidir!$dvidir$ac_delim
20584 pdfdir!$pdfdir$ac_delim
20585 psdir!$psdir$ac_delim
20586 libdir!$libdir$ac_delim
20587 localedir!$localedir$ac_delim
20588 mandir!$mandir$ac_delim
20589 DEFS!$DEFS$ac_delim
20590 ECHO_C!$ECHO_C$ac_delim
20591 ECHO_N!$ECHO_N$ac_delim
20592 ECHO_T!$ECHO_T$ac_delim
20593 LIBS!$LIBS$ac_delim
20594 build_alias!$build_alias$ac_delim
20595 host_alias!$host_alias$ac_delim
20596 target_alias!$target_alias$ac_delim
20597 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20598 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20599 INSTALL_DATA!$INSTALL_DATA$ac_delim
20600 am__isrc!$am__isrc$ac_delim
20601 CYGPATH_W!$CYGPATH_W$ac_delim
20602 PACKAGE!$PACKAGE$ac_delim
20603 VERSION!$VERSION$ac_delim
20604 ACLOCAL!$ACLOCAL$ac_delim
20605 AUTOCONF!$AUTOCONF$ac_delim
20606 AUTOMAKE!$AUTOMAKE$ac_delim
20607 AUTOHEADER!$AUTOHEADER$ac_delim
20608 MAKEINFO!$MAKEINFO$ac_delim
20609 install_sh!$install_sh$ac_delim
20610 STRIP!$STRIP$ac_delim
20611 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20612 mkdir_p!$mkdir_p$ac_delim
20613 AWK!$AWK$ac_delim
20614 SET_MAKE!$SET_MAKE$ac_delim
20615 am__leading_dot!$am__leading_dot$ac_delim
20616 AMTAR!$AMTAR$ac_delim
20617 am__tar!$am__tar$ac_delim
20618 am__untar!$am__untar$ac_delim
20619 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
20620 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
20621 MAINT!$MAINT$ac_delim
20622 CC!$CC$ac_delim
20623 CFLAGS!$CFLAGS$ac_delim
20624 LDFLAGS!$LDFLAGS$ac_delim
20625 CPPFLAGS!$CPPFLAGS$ac_delim
20626 ac_ct_CC!$ac_ct_CC$ac_delim
20627 EXEEXT!$EXEEXT$ac_delim
20628 OBJEXT!$OBJEXT$ac_delim
20629 DEPDIR!$DEPDIR$ac_delim
20630 am__include!$am__include$ac_delim
20631 am__quote!$am__quote$ac_delim
20632 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20633 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20634 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20635 CCDEPMODE!$CCDEPMODE$ac_delim
20636 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20637 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20638 build!$build$ac_delim
20639 build_cpu!$build_cpu$ac_delim
20640 build_vendor!$build_vendor$ac_delim
20641 build_os!$build_os$ac_delim
20642 host!$host$ac_delim
20643 host_cpu!$host_cpu$ac_delim
20644 host_vendor!$host_vendor$ac_delim
20645 host_os!$host_os$ac_delim
20646 SED!$SED$ac_delim
20647 GREP!$GREP$ac_delim
20648 EGREP!$EGREP$ac_delim
20649 LN_S!$LN_S$ac_delim
20650 ECHO!$ECHO$ac_delim
20651 AR!$AR$ac_delim
20652 RANLIB!$RANLIB$ac_delim
20653 CPP!$CPP$ac_delim
20654 CXX!$CXX$ac_delim
20655 CXXFLAGS!$CXXFLAGS$ac_delim
20656 ac_ct_CXX!$ac_ct_CXX$ac_delim
20657 _ACEOF
20658
20659 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20660 break
20661 elif $ac_last_try; then
20662 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20663 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20664 { (exit 1); exit 1; }; }
20665 else
20666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20667 fi
20668 done
20669
20670 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20671 if test -n "$ac_eof"; then
20672 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20673 ac_eof=`expr $ac_eof + 1`
20674 fi
20675
20676 cat >>$CONFIG_STATUS <<_ACEOF
20677 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20679 _ACEOF
20680 sed '
20681 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20682 s/^/s,@/; s/!/@,|#_!!_#|/
20683 :n
20684 t n
20685 s/'"$ac_delim"'$/,g/; t
20686 s/$/\\/; p
20687 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20688 ' >>$CONFIG_STATUS <conf$$subs.sed
20689 rm -f conf$$subs.sed
20690 cat >>$CONFIG_STATUS <<_ACEOF
20691 CEOF$ac_eof
20692 _ACEOF
20693
20694
20695 ac_delim='%!_!# '
20696 for ac_last_try in false false false false false :; do
20697 cat >conf$$subs.sed <<_ACEOF
20698 CXXDEPMODE!$CXXDEPMODE$ac_delim
20699 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
20700 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
20701 CXXCPP!$CXXCPP$ac_delim
20702 F77!$F77$ac_delim
20703 FFLAGS!$FFLAGS$ac_delim
20704 ac_ct_F77!$ac_ct_F77$ac_delim
20705 LIBTOOL!$LIBTOOL$ac_delim
20706 PKG_CONFIG!$PKG_CONFIG$ac_delim
20707 XINERAMA_CFLAGS!$XINERAMA_CFLAGS$ac_delim
20708 XINERAMA_LIBS!$XINERAMA_LIBS$ac_delim
20709 LINT!$LINT$ac_delim
20710 LINT_FLAGS!$LINT_FLAGS$ac_delim
20711 LINT_TRUE!$LINT_TRUE$ac_delim
20712 LINT_FALSE!$LINT_FALSE$ac_delim
20713 MALLOC_ZERO_CFLAGS!$MALLOC_ZERO_CFLAGS$ac_delim
20714 XMALLOC_ZERO_CFLAGS!$XMALLOC_ZERO_CFLAGS$ac_delim
20715 XTMALLOC_ZERO_CFLAGS!$XTMALLOC_ZERO_CFLAGS$ac_delim
20716 APP_MAN_SUFFIX!$APP_MAN_SUFFIX$ac_delim
20717 LIB_MAN_SUFFIX!$LIB_MAN_SUFFIX$ac_delim
20718 FILE_MAN_SUFFIX!$FILE_MAN_SUFFIX$ac_delim
20719 MISC_MAN_SUFFIX!$MISC_MAN_SUFFIX$ac_delim
20720 DRIVER_MAN_SUFFIX!$DRIVER_MAN_SUFFIX$ac_delim
20721 ADMIN_MAN_SUFFIX!$ADMIN_MAN_SUFFIX$ac_delim
20722 APP_MAN_DIR!$APP_MAN_DIR$ac_delim
20723 LIB_MAN_DIR!$LIB_MAN_DIR$ac_delim
20724 FILE_MAN_DIR!$FILE_MAN_DIR$ac_delim
20725 MISC_MAN_DIR!$MISC_MAN_DIR$ac_delim
20726 DRIVER_MAN_DIR!$DRIVER_MAN_DIR$ac_delim
20727 ADMIN_MAN_DIR!$ADMIN_MAN_DIR$ac_delim
20728 LIBOBJS!$LIBOBJS$ac_delim
20729 LTLIBOBJS!$LTLIBOBJS$ac_delim
20730 _ACEOF
20731
20732 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
20733 break
20734 elif $ac_last_try; then
20735 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20736 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20737 { (exit 1); exit 1; }; }
20738 else
20739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20740 fi
20741 done
20742
20743 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20744 if test -n "$ac_eof"; then
20745 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20746 ac_eof=`expr $ac_eof + 1`
20747 fi
20748
20749 cat >>$CONFIG_STATUS <<_ACEOF
20750 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20752 _ACEOF
20753 sed '
20754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20755 s/^/s,@/; s/!/@,|#_!!_#|/
20756 :n
20757 t n
20758 s/'"$ac_delim"'$/,g/; t
20759 s/$/\\/; p
20760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20761 ' >>$CONFIG_STATUS <conf$$subs.sed
20762 rm -f conf$$subs.sed
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 :end
20765 s/|#_!!_#|//g
20766 CEOF$ac_eof
20767 _ACEOF
20768
20769
20770 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20771 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20772 # trailing colons and then remove the whole line if VPATH becomes empty
20773 # (actually we leave an empty line to preserve line numbers).
20774 if test "x$srcdir" = x.; then
20775 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20776 s/:*\$(srcdir):*/:/
20777 s/:*\${srcdir}:*/:/
20778 s/:*@srcdir@:*/:/
20779 s/^\([^=]*=[ ]*\):*/\1/
20780 s/:*$//
20781 s/^[^=]*=[ ]*$//
20782 }'
20783 fi
20784
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786 fi # test -n "$CONFIG_FILES"
20787
20788
20789 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20790 do
20791 case $ac_tag in
20792 :[FHLC]) ac_mode=$ac_tag; continue;;
20793 esac
20794 case $ac_mode$ac_tag in
20795 :[FHL]*:*);;
20796 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20797 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20798 { (exit 1); exit 1; }; };;
20799 :[FH]-) ac_tag=-:-;;
20800 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20801 esac
20802 ac_save_IFS=$IFS
20803 IFS=:
20804 set x $ac_tag
20805 IFS=$ac_save_IFS
20806 shift
20807 ac_file=$1
20808 shift
20809
20810 case $ac_mode in
20811 :L) ac_source=$1;;
20812 :[FH])
20813 ac_file_inputs=
20814 for ac_f
20815 do
20816 case $ac_f in
20817 -) ac_f="$tmp/stdin";;
20818 *) # Look for the file first in the build tree, then in the source tree
20819 # (if the path is not absolute). The absolute path cannot be DOS-style,
20820 # because $ac_f cannot contain `:'.
20821 test -f "$ac_f" ||
20822 case $ac_f in
20823 [\\/$]*) false;;
20824 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20825 esac ||
20826 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20827 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20828 { (exit 1); exit 1; }; };;
20829 esac
20830 ac_file_inputs="$ac_file_inputs $ac_f"
20831 done
20832
20833 # Let's still pretend it is `configure' which instantiates (i.e., don't
20834 # use $as_me), people would be surprised to read:
20835 # /* config.h. Generated by config.status. */
20836 configure_input="Generated from "`IFS=:
20837 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20838 if test x"$ac_file" != x-; then
20839 configure_input="$ac_file. $configure_input"
20840 { echo "$as_me:$LINENO: creating $ac_file" >&5
20841 echo "$as_me: creating $ac_file" >&6;}
20842 fi
20843
20844 case $ac_tag in
20845 *:-:* | *:-) cat >"$tmp/stdin";;
20846 esac
20847 ;;
20848 esac
20849
20850 ac_dir=`$as_dirname -- "$ac_file" ||
20851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20852 X"$ac_file" : 'X\(//\)[^/]' \| \
20853 X"$ac_file" : 'X\(//\)$' \| \
20854 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20855 echo X"$ac_file" |
20856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20857 s//\1/
20858 q
20859 }
20860 /^X\(\/\/\)[^/].*/{
20861 s//\1/
20862 q
20863 }
20864 /^X\(\/\/\)$/{
20865 s//\1/
20866 q
20867 }
20868 /^X\(\/\).*/{
20869 s//\1/
20870 q
20871 }
20872 s/.*/./; q'`
20873 { as_dir="$ac_dir"
20874 case $as_dir in #(
20875 -*) as_dir=./$as_dir;;
20876 esac
20877 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20878 as_dirs=
20879 while :; do
20880 case $as_dir in #(
20881 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20882 *) as_qdir=$as_dir;;
20883 esac
20884 as_dirs="'$as_qdir' $as_dirs"
20885 as_dir=`$as_dirname -- "$as_dir" ||
20886 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20887 X"$as_dir" : 'X\(//\)[^/]' \| \
20888 X"$as_dir" : 'X\(//\)$' \| \
20889 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20890 echo X"$as_dir" |
20891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20892 s//\1/
20893 q
20894 }
20895 /^X\(\/\/\)[^/].*/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\/\)$/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\).*/{
20904 s//\1/
20905 q
20906 }
20907 s/.*/./; q'`
20908 test -d "$as_dir" && break
20909 done
20910 test -z "$as_dirs" || eval "mkdir $as_dirs"
20911 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20912 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20913 { (exit 1); exit 1; }; }; }
20914 ac_builddir=.
20915
20916 case "$ac_dir" in
20917 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20918 *)
20919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20920 # A ".." for each directory in $ac_dir_suffix.
20921 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20922 case $ac_top_builddir_sub in
20923 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20924 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20925 esac ;;
20926 esac
20927 ac_abs_top_builddir=$ac_pwd
20928 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20929 # for backward compatibility:
20930 ac_top_builddir=$ac_top_build_prefix
20931
20932 case $srcdir in
20933 .) # We are building in place.
20934 ac_srcdir=.
20935 ac_top_srcdir=$ac_top_builddir_sub
20936 ac_abs_top_srcdir=$ac_pwd ;;
20937 [\\/]* | ?:[\\/]* ) # Absolute name.
20938 ac_srcdir=$srcdir$ac_dir_suffix;
20939 ac_top_srcdir=$srcdir
20940 ac_abs_top_srcdir=$srcdir ;;
20941 *) # Relative name.
20942 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20943 ac_top_srcdir=$ac_top_build_prefix$srcdir
20944 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20945 esac
20946 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20947
20948
20949 case $ac_mode in
20950 :F)
20951 #
20952 # CONFIG_FILE
20953 #
20954
20955 case $INSTALL in
20956 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20957 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20958 esac
20959 ac_MKDIR_P=$MKDIR_P
20960 case $MKDIR_P in
20961 [\\/$]* | ?:[\\/]* ) ;;
20962 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20963 esac
20964 _ACEOF
20965
20966 cat >>$CONFIG_STATUS <<\_ACEOF
20967 # If the template does not know about datarootdir, expand it.
20968 # FIXME: This hack should be removed a few years after 2.60.
20969 ac_datarootdir_hack=; ac_datarootdir_seen=
20970
20971 case `sed -n '/datarootdir/ {
20972 p
20973 q
20974 }
20975 /@datadir@/p
20976 /@docdir@/p
20977 /@infodir@/p
20978 /@localedir@/p
20979 /@mandir@/p
20980 ' $ac_file_inputs` in
20981 *datarootdir*) ac_datarootdir_seen=yes;;
20982 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20983 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20984 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20985 _ACEOF
20986 cat >>$CONFIG_STATUS <<_ACEOF
20987 ac_datarootdir_hack='
20988 s&@datadir@&$datadir&g
20989 s&@docdir@&$docdir&g
20990 s&@infodir@&$infodir&g
20991 s&@localedir@&$localedir&g
20992 s&@mandir@&$mandir&g
20993 s&\\\${datarootdir}&$datarootdir&g' ;;
20994 esac
20995 _ACEOF
20996
20997 # Neutralize VPATH when `$srcdir' = `.'.
20998 # Shell code in configure.ac might set extrasub.
20999 # FIXME: do we really want to maintain this feature?
21000 cat >>$CONFIG_STATUS <<_ACEOF
21001 sed "$ac_vpsub
21002 $extrasub
21003 _ACEOF
21004 cat >>$CONFIG_STATUS <<\_ACEOF
21005 :t
21006 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21007 s&@configure_input@&$configure_input&;t t
21008 s&@top_builddir@&$ac_top_builddir_sub&;t t
21009 s&@srcdir@&$ac_srcdir&;t t
21010 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21011 s&@top_srcdir@&$ac_top_srcdir&;t t
21012 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21013 s&@builddir@&$ac_builddir&;t t
21014 s&@abs_builddir@&$ac_abs_builddir&;t t
21015 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21016 s&@INSTALL@&$ac_INSTALL&;t t
21017 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21018 $ac_datarootdir_hack
21019 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21020
21021 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21022 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21023 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21024 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21025 which seems to be undefined. Please make sure it is defined." >&5
21026 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21027 which seems to be undefined. Please make sure it is defined." >&2;}
21028
21029 rm -f "$tmp/stdin"
21030 case $ac_file in
21031 -) cat "$tmp/out"; rm -f "$tmp/out";;
21032 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21033 esac
21034 ;;
21035 :H)
21036 #
21037 # CONFIG_HEADER
21038 #
21039 _ACEOF
21040
21041 # Transform confdefs.h into a sed script `conftest.defines', that
21042 # substitutes the proper values into config.h.in to produce config.h.
21043 rm -f conftest.defines conftest.tail
21044 # First, append a space to every undef/define line, to ease matching.
21045 echo 's/$/ /' >conftest.defines
21046 # Then, protect against being on the right side of a sed subst, or in
21047 # an unquoted here document, in config.status. If some macros were
21048 # called several times there might be several #defines for the same
21049 # symbol, which is useless. But do not sort them, since the last
21050 # AC_DEFINE must be honored.
21051 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21052 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21053 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21054 # PARAMS is the parameter list in the macro definition--in most cases, it's
21055 # just an empty string.
21056 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21057 ac_dB='\\)[ (].*,\\1define\\2'
21058 ac_dC=' '
21059 ac_dD=' ,'
21060
21061 uniq confdefs.h |
21062 sed -n '
21063 t rset
21064 :rset
21065 s/^[ ]*#[ ]*define[ ][ ]*//
21066 t ok
21067 d
21068 :ok
21069 s/[\\&,]/\\&/g
21070 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21071 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21072 ' >>conftest.defines
21073
21074 # Remove the space that was appended to ease matching.
21075 # Then replace #undef with comments. This is necessary, for
21076 # example, in the case of _POSIX_SOURCE, which is predefined and required
21077 # on some systems where configure will not decide to define it.
21078 # (The regexp can be short, since the line contains either #define or #undef.)
21079 echo 's/ $//
21080 s,^[ #]*u.*,/* & */,' >>conftest.defines
21081
21082 # Break up conftest.defines:
21083 ac_max_sed_lines=50
21084
21085 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21086 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21087 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21088 # et cetera.
21089 ac_in='$ac_file_inputs'
21090 ac_out='"$tmp/out1"'
21091 ac_nxt='"$tmp/out2"'
21092
21093 while :
21094 do
21095 # Write a here document:
21096 cat >>$CONFIG_STATUS <<_ACEOF
21097 # First, check the format of the line:
21098 cat >"\$tmp/defines.sed" <<\\CEOF
21099 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21100 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21101 b
21102 :def
21103 _ACEOF
21104 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21105 echo 'CEOF
21106 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21107 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21108 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21109 grep . conftest.tail >/dev/null || break
21110 rm -f conftest.defines
21111 mv conftest.tail conftest.defines
21112 done
21113 rm -f conftest.defines conftest.tail
21114
21115 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21116 cat >>$CONFIG_STATUS <<\_ACEOF
21117 if test x"$ac_file" != x-; then
21118 echo "/* $configure_input */" >"$tmp/config.h"
21119 cat "$ac_result" >>"$tmp/config.h"
21120 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21122 echo "$as_me: $ac_file is unchanged" >&6;}
21123 else
21124 rm -f $ac_file
21125 mv "$tmp/config.h" $ac_file
21126 fi
21127 else
21128 echo "/* $configure_input */"
21129 cat "$ac_result"
21130 fi
21131 rm -f "$tmp/out12"
21132 # Compute $ac_file's index in $config_headers.
21133 _am_arg=$ac_file
21134 _am_stamp_count=1
21135 for _am_header in $config_headers :; do
21136 case $_am_header in
21137 $_am_arg | $_am_arg:* )
21138 break ;;
21139 * )
21140 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21141 esac
21142 done
21143 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21144 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21145 X"$_am_arg" : 'X\(//\)[^/]' \| \
21146 X"$_am_arg" : 'X\(//\)$' \| \
21147 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21148 echo X"$_am_arg" |
21149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21150 s//\1/
21151 q
21152 }
21153 /^X\(\/\/\)[^/].*/{
21154 s//\1/
21155 q
21156 }
21157 /^X\(\/\/\)$/{
21158 s//\1/
21159 q
21160 }
21161 /^X\(\/\).*/{
21162 s//\1/
21163 q
21164 }
21165 s/.*/./; q'`/stamp-h$_am_stamp_count
21166 ;;
21167
21168 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21169 echo "$as_me: executing $ac_file commands" >&6;}
21170 ;;
21171 esac
21172
21173
21174 case $ac_file$ac_mode in
21175 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21176 # Strip MF so we end up with the name of the file.
21177 mf=`echo "$mf" | sed -e 's/:.*$//'`
21178 # Check whether this is an Automake generated Makefile or not.
21179 # We used to match only the files named `Makefile.in', but
21180 # some people rename them; so instead we look at the file content.
21181 # Grep'ing the first line is not enough: some people post-process
21182 # each Makefile.in and add a new line on top of each file to say so.
21183 # Grep'ing the whole file is not good either: AIX grep has a line
21184 # limit of 2048, but all sed's we know have understand at least 4000.
21185 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21186 dirpart=`$as_dirname -- "$mf" ||
21187 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21188 X"$mf" : 'X\(//\)[^/]' \| \
21189 X"$mf" : 'X\(//\)$' \| \
21190 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21191 echo X"$mf" |
21192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21193 s//\1/
21194 q
21195 }
21196 /^X\(\/\/\)[^/].*/{
21197 s//\1/
21198 q
21199 }
21200 /^X\(\/\/\)$/{
21201 s//\1/
21202 q
21203 }
21204 /^X\(\/\).*/{
21205 s//\1/
21206 q
21207 }
21208 s/.*/./; q'`
21209 else
21210 continue
21211 fi
21212 # Extract the definition of DEPDIR, am__include, and am__quote
21213 # from the Makefile without running `make'.
21214 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21215 test -z "$DEPDIR" && continue
21216 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21217 test -z "am__include" && continue
21218 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21219 # When using ansi2knr, U may be empty or an underscore; expand it
21220 U=`sed -n 's/^U = //p' < "$mf"`
21221 # Find all dependency output files, they are included files with
21222 # $(DEPDIR) in their names. We invoke sed twice because it is the
21223 # simplest approach to changing $(DEPDIR) to its actual value in the
21224 # expansion.
21225 for file in `sed -n "
21226 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21227 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21228 # Make sure the directory exists.
21229 test -f "$dirpart/$file" && continue
21230 fdir=`$as_dirname -- "$file" ||
21231 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21232 X"$file" : 'X\(//\)[^/]' \| \
21233 X"$file" : 'X\(//\)$' \| \
21234 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21235 echo X"$file" |
21236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21237 s//\1/
21238 q
21239 }
21240 /^X\(\/\/\)[^/].*/{
21241 s//\1/
21242 q
21243 }
21244 /^X\(\/\/\)$/{
21245 s//\1/
21246 q
21247 }
21248 /^X\(\/\).*/{
21249 s//\1/
21250 q
21251 }
21252 s/.*/./; q'`
21253 { as_dir=$dirpart/$fdir
21254 case $as_dir in #(
21255 -*) as_dir=./$as_dir;;
21256 esac
21257 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21258 as_dirs=
21259 while :; do
21260 case $as_dir in #(
21261 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21262 *) as_qdir=$as_dir;;
21263 esac
21264 as_dirs="'$as_qdir' $as_dirs"
21265 as_dir=`$as_dirname -- "$as_dir" ||
21266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21267 X"$as_dir" : 'X\(//\)[^/]' \| \
21268 X"$as_dir" : 'X\(//\)$' \| \
21269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21270 echo X"$as_dir" |
21271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21272 s//\1/
21273 q
21274 }
21275 /^X\(\/\/\)[^/].*/{
21276 s//\1/
21277 q
21278 }
21279 /^X\(\/\/\)$/{
21280 s//\1/
21281 q
21282 }
21283 /^X\(\/\).*/{
21284 s//\1/
21285 q
21286 }
21287 s/.*/./; q'`
21288 test -d "$as_dir" && break
21289 done
21290 test -z "$as_dirs" || eval "mkdir $as_dirs"
21291 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21292 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21293 { (exit 1); exit 1; }; }; }
21294 # echo "creating $dirpart/$file"
21295 echo '# dummy' > "$dirpart/$file"
21296 done
21297 done
21298 ;;
21299
21300 esac
21301 done # for ac_tag
21302
21303
21304 { (exit 0); exit 0; }
21305 _ACEOF
21306 chmod +x $CONFIG_STATUS
21307 ac_clean_files=$ac_clean_files_save
21308
21309
21310 # configure is writing to config.log, and then calls config.status.
21311 # config.status does its own redirection, appending to config.log.
21312 # Unfortunately, on DOS this fails, as config.log is still kept open
21313 # by configure, so config.status won't be able to write to it; its
21314 # output is simply discarded. So we exec the FD to /dev/null,
21315 # effectively closing config.log, so it can be properly (re)opened and
21316 # appended to by config.status. When coming back to configure, we
21317 # need to make the FD available again.
21318 if test "$no_create" != yes; then
21319 ac_cs_success=:
21320 ac_config_status_args=
21321 test "$silent" = yes &&
21322 ac_config_status_args="$ac_config_status_args --quiet"
21323 exec 5>/dev/null
21324 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21325 exec 5>>config.log
21326 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21327 # would make configure fail if this is the last instruction.
21328 $ac_cs_success || { (exit 1); exit 1; }
21329 fi
21330
21331