configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="fonts.dtd"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 MAINTAINER_MODE_TRUE
829 MAINTAINER_MODE_FALSE
830 MAINT
831 LIBT_CURRENT
832 LIBT_REVISION
833 LIBT_VERSION_INFO
834 LIBT_CURRENT_MINUS_AGE
835 CC
836 CFLAGS
837 LDFLAGS
838 CPPFLAGS
839 ac_ct_CC
840 EXEEXT
841 OBJEXT
842 DEPDIR
843 am__include
844 am__quote
845 AMDEP_TRUE
846 AMDEP_FALSE
847 AMDEPBACKSLASH
848 CCDEPMODE
849 am__fastdepCC_TRUE
850 am__fastdepCC_FALSE
851 LN_S
852 build
853 build_cpu
854 build_vendor
855 build_os
856 host
857 host_cpu
858 host_vendor
859 host_os
860 SED
861 GREP
862 EGREP
863 ECHO
864 AR
865 RANLIB
866 DSYMUTIL
867 NMEDIT
868 DLLTOOL
869 AS
870 OBJDUMP
871 CPP
872 CXX
873 CXXFLAGS
874 ac_ct_CXX
875 CXXDEPMODE
876 am__fastdepCXX_TRUE
877 am__fastdepCXX_FALSE
878 CXXCPP
879 F77
880 FFLAGS
881 ac_ct_F77
882 LIBTOOL
883 DOLT_BASH
884 LTCOMPILE
885 LTCXXCOMPILE
886 OS_WIN32_TRUE
887 OS_WIN32_FALSE
888 ms_librarian
889 MS_LIB_AVAILABLE_TRUE
890 MS_LIB_AVAILABLE_FALSE
891 WARN_CFLAGS
892 CROSS_COMPILING_TRUE
893 CROSS_COMPILING_FALSE
894 CC_FOR_BUILD
895 EXEEXT_FOR_BUILD
896 ARCHITECTURE
897 ICONV_LIBS
898 ft_config
899 FREETYPE_LIBS
900 FREETYPE_CFLAGS
901 HAVE_XMLPARSE_H
902 HAVE_EXPAT
903 EXPAT_CFLAGS
904 EXPAT_LIBS
905 PKG_CONFIG
906 LIBXML2_CFLAGS
907 LIBXML2_LIBS
908 FC_DEFAULT_FONTS
909 FC_ADD_FONTS
910 FC_FONTPATH
911 fc_cachedir
912 FC_CACHEDIR
913 FC_FONTDATE
914 confdir
915 CONFDIR
916 ORTH_FILES
917 HASDOCBOOK
918 USEDOCBOOK_TRUE
919 USEDOCBOOK_FALSE
920 ENABLE_DOCS_TRUE
921 ENABLE_DOCS_FALSE
922 DOCSRC
923 DOCMAN3
924 DOCDIR
925 LIBOBJS
926 LTLIBOBJS'
927 ac_subst_files=''
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 CXX
938 CXXFLAGS
939 CCC
940 CXXCPP
941 F77
942 FFLAGS
943 PKG_CONFIG
944 LIBXML2_CFLAGS
945 LIBXML2_LIBS'
946
947
948 # Initialize some variables set by options.
949 ac_init_help=
950 ac_init_version=false
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
953 cache_file=/dev/null
954 exec_prefix=NONE
955 no_create=
956 no_recursion=
957 prefix=NONE
958 program_prefix=NONE
959 program_suffix=NONE
960 program_transform_name=s,x,x,
961 silent=
962 site=
963 srcdir=
964 verbose=
965 x_includes=NONE
966 x_libraries=NONE
967
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
986 htmldir='${docdir}'
987 dvidir='${docdir}'
988 pdfdir='${docdir}'
989 psdir='${docdir}'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
993
994 ac_prev=
995 ac_dashdash=
996 for ac_option
997 do
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1001 ac_prev=
1002 continue
1003 fi
1004
1005 case $ac_option in
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *) ac_optarg=yes ;;
1008 esac
1009
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012 case $ac_dashdash$ac_option in
1013 --)
1014 ac_dashdash=yes ;;
1015
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1020
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1025
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1032
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1035
1036 -datadir | --datadir | --datadi | --datad)
1037 ac_prev=datadir ;;
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1040
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1047
1048 -disable-* | --disable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1055 eval enable_$ac_feature=no ;;
1056
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1061
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1066
1067 -enable-* | --enable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1074 eval enable_$ac_feature=\$ac_optarg ;;
1075
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1084
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1088
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1095
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1100
1101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1106
1107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1113
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1118
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1123
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1130
1131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1135
1136 -localstatedir | --localstatedir | --localstatedi | --localstated \
1137 | --localstate | --localstat | --localsta | --localst | --locals)
1138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1141 localstatedir=$ac_optarg ;;
1142
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1147
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1151
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1154 no_create=yes ;;
1155
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1159
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1168
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1173
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1180
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1187
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1204
1205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1209
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1214
1215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1271 eval with_$ac_package=\$ac_optarg ;;
1272
1273 -without-* | --without-*)
1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1280 eval with_$ac_package=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) { echo "$as_me: error: unrecognized option: $ac_option
1301 Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1303 ;;
1304
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 ;;
1321
1322 esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1329 fi
1330
1331 # Be sure to have absolute directory names.
1332 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1336 do
1337 eval ac_val=\$$ac_var
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343 { (exit 1); exit 1; }; }
1344 done
1345
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1349 build=$build_alias
1350 host=$host_alias
1351 target=$target_alias
1352
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362 fi
1363
1364 ac_tool_prefix=
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367 test "$silent" = yes && exec 6>/dev/null
1368
1369
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 { echo "$as_me: error: Working directory cannot be determined" >&2
1374 { (exit 1); exit 1; }; }
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 { echo "$as_me: error: pwd does not report name of working directory" >&2
1377 { (exit 1); exit 1; }; }
1378
1379
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$0" ||
1385 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$0" : 'X\(//\)[^/]' \| \
1387 X"$0" : 'X\(//\)$' \| \
1388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1389 echo X"$0" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1410 fi
1411 else
1412 ac_srcdir_defaulted=no
1413 fi
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1417 { (exit 1); exit 1; }; }
1418 fi
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1422 { (exit 1); exit 1; }; }
1423 pwd)`
1424 # When building in place, set srcdir=.
1425 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1427 fi
1428 # Remove unnecessary trailing slashes from srcdir.
1429 # Double slashes in file names in object file debugging info
1430 # mess up M-x gdb in Emacs.
1431 case $srcdir in
1432 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 esac
1434 for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439 done
1440
1441 #
1442 # Report the --help message.
1443 #
1444 if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
1448 \`configure' configures this package to adapt to many kinds of systems.
1449
1450 Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453 VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455 Defaults for the options are specified in brackets.
1456
1457 Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
1468 Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
1470 [$ac_default_prefix]
1471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 [PREFIX]
1473
1474 By default, \`make install' will install all the files in
1475 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477 for instance \`--prefix=\$HOME'.
1478
1479 For better control, use the options below.
1480
1481 Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
1485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
1501 _ACEOF
1502
1503 cat <<\_ACEOF
1504
1505 Program names:
1506 --program-prefix=PREFIX prepend PREFIX to installed program names
1507 --program-suffix=SUFFIX append SUFFIX to installed program names
1508 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509
1510 System types:
1511 --build=BUILD configure for building on BUILD [guessed]
1512 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1513 _ACEOF
1514 fi
1515
1516 if test -n "$ac_init_help"; then
1517
1518 cat <<\_ACEOF
1519
1520 Optional Features:
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-maintainer-mode enable make rules and dependencies not useful
1524 (and sometimes confusing) to the casual installer
1525 --disable-dependency-tracking speeds up one-time build
1526 --enable-dependency-tracking do not reject slow dependency extractors
1527 --enable-shared[=PKGS] build shared libraries [default=yes]
1528 --enable-static[=PKGS] build static libraries [default=yes]
1529 --enable-fast-install[=PKGS]
1530 optimize for fast installation [default=yes]
1531 --disable-libtool-lock avoid locking (might break parallel builds)
1532 --enable-libxml2 Use libxml2 instead of Expat
1533 --disable-docs Don't build and install documentation
1534
1535 Optional Packages:
1536 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1539 --with-pic try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-tags[=TAGS] include additional configurations [automatic]
1542 --with-arch=ARCH Force architecture to ARCH
1543 --with-freetype-config=PROG Use FreeType configuration program PROG
1544 --with-expat=DIR Use Expat in DIR
1545 --with-expat-includes=DIR Use Expat includes in DIR
1546 --with-expat-lib=DIR Use Expat library in DIR
1547 --with-default-fonts=DIR Use fonts from DIR when config is busted
1548 --with-add-fonts=DIR1,DIR2,...Find additional fonts in DIR1,DIR2,...
1549 --with-cache-dir=DIR Use DIR to store cache files (default /var/cache/fontconfig)
1550 --with-confdir=DIR Use DIR to store configuration files (default /etc/fonts)
1551 --with-docdir=DIR Use DIR to store documentation files (default ${datadir}/doc/fontconfig)
1552
1553 Some influential environment variables:
1554 CC C compiler command
1555 CFLAGS C compiler flags
1556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
1558 LIBS libraries to pass to the linker, e.g. -l<library>
1559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
1561 CPP C preprocessor
1562 CXX C++ compiler command
1563 CXXFLAGS C++ compiler flags
1564 CXXCPP C++ preprocessor
1565 F77 Fortran 77 compiler command
1566 FFLAGS Fortran 77 compiler flags
1567 PKG_CONFIG path to pkg-config utility
1568 LIBXML2_CFLAGS
1569 C compiler flags for LIBXML2, overriding pkg-config
1570 LIBXML2_LIBS
1571 linker flags for LIBXML2, overriding pkg-config
1572
1573 Use these variables to override the choices made by `configure' or to help
1574 it to find libraries and programs with nonstandard names/locations.
1575
1576 _ACEOF
1577 ac_status=$?
1578 fi
1579
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" || continue
1584 ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603 .) # We are building in place.
1604 ac_srcdir=.
1605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
1608 ac_srcdir=$srcdir$ac_dir_suffix;
1609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
1626 else
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
1630 done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635 cat <<\_ACEOF
1636 configure
1637 generated by GNU Autoconf 2.61
1638
1639 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1640 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644 exit
1645 fi
1646 cat >config.log <<_ACEOF
1647 This file contains any messages produced by compilers while
1648 running configure, to aid debugging if configure makes a mistake.
1649
1650 It was created by $as_me, which was
1651 generated by GNU Autoconf 2.61. Invocation command line was
1652
1653 $ $0 $@
1654
1655 _ACEOF
1656 exec 5>>config.log
1657 {
1658 cat <<_ASUNAME
1659 ## --------- ##
1660 ## Platform. ##
1661 ## --------- ##
1662
1663 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668
1669 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671
1672 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1675 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1676 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1679
1680 _ASUNAME
1681
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 echo "PATH: $as_dir"
1688 done
1689 IFS=$as_save_IFS
1690
1691 } >&5
1692
1693 cat >&5 <<_ACEOF
1694
1695
1696 ## ----------- ##
1697 ## Core tests. ##
1698 ## ----------- ##
1699
1700 _ACEOF
1701
1702
1703 # Keep a trace of the command line.
1704 # Strip out --no-create and --no-recursion so they do not pile up.
1705 # Strip out --silent because we don't want to record it for future runs.
1706 # Also quote any args containing shell meta-characters.
1707 # Make two passes to allow for proper duplicate-argument suppression.
1708 ac_configure_args=
1709 ac_configure_args0=
1710 ac_configure_args1=
1711 ac_must_keep_next=false
1712 for ac_pass in 1 2
1713 do
1714 for ac_arg
1715 do
1716 case $ac_arg in
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1720 continue ;;
1721 *\'*)
1722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 case $ac_pass in
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726 2)
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
1729 ac_must_keep_next=false # Got value, back to normal.
1730 else
1731 case $ac_arg in
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 esac
1739 ;;
1740 -* ) ac_must_keep_next=true ;;
1741 esac
1742 fi
1743 ac_configure_args="$ac_configure_args '$ac_arg'"
1744 ;;
1745 esac
1746 done
1747 done
1748 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1750
1751 # When interrupted or exit'd, cleanup temporary files, and complete
1752 # config.log. We remove comments because anyway the quotes in there
1753 # would cause problems or look ugly.
1754 # WARNING: Use '\'' to represent an apostrophe within the trap.
1755 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1756 trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1758 {
1759 echo
1760
1761 cat <<\_ASBOX
1762 ## ---------------- ##
1763 ## Cache variables. ##
1764 ## ---------------- ##
1765 _ASBOX
1766 echo
1767 # The following way of writing the cache mishandles newlines in values,
1768 (
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1771 case $ac_val in #(
1772 *${as_nl}*)
1773 case $ac_var in #(
1774 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 esac
1777 case $ac_var in #(
1778 _ | IFS | as_nl) ;; #(
1779 *) $as_unset $ac_var ;;
1780 esac ;;
1781 esac
1782 done
1783 (set) 2>&1 |
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1786 sed -n \
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 ;; #(
1790 *)
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792 ;;
1793 esac |
1794 sort
1795 )
1796 echo
1797
1798 cat <<\_ASBOX
1799 ## ----------------- ##
1800 ## Output variables. ##
1801 ## ----------------- ##
1802 _ASBOX
1803 echo
1804 for ac_var in $ac_subst_vars
1805 do
1806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 echo "$ac_var='\''$ac_val'\''"
1811 done | sort
1812 echo
1813
1814 if test -n "$ac_subst_files"; then
1815 cat <<\_ASBOX
1816 ## ------------------- ##
1817 ## File substitutions. ##
1818 ## ------------------- ##
1819 _ASBOX
1820 echo
1821 for ac_var in $ac_subst_files
1822 do
1823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 echo "$ac_var='\''$ac_val'\''"
1828 done | sort
1829 echo
1830 fi
1831
1832 if test -s confdefs.h; then
1833 cat <<\_ASBOX
1834 ## ----------- ##
1835 ## confdefs.h. ##
1836 ## ----------- ##
1837 _ASBOX
1838 echo
1839 cat confdefs.h
1840 echo
1841 fi
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1845 } >&5
1846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848 exit $exit_status
1849 ' 0
1850 for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852 done
1853 ac_signal=0
1854
1855 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1856 rm -f -r conftest* confdefs.h
1857
1858 # Predefined preprocessor variables.
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_NAME "$PACKAGE_NAME"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1872 _ACEOF
1873
1874
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_STRING "$PACKAGE_STRING"
1877 _ACEOF
1878
1879
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882 _ACEOF
1883
1884
1885 # Let the site file select an alternate cache file if it wants to.
1886 # Prefer explicitly selected file to automatically selected ones.
1887 if test -n "$CONFIG_SITE"; then
1888 set x "$CONFIG_SITE"
1889 elif test "x$prefix" != xNONE; then
1890 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891 else
1892 set x "$ac_default_prefix/share/config.site" \
1893 "$ac_default_prefix/etc/config.site"
1894 fi
1895 shift
1896 for ac_site_file
1897 do
1898 if test -r "$ac_site_file"; then
1899 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900 echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1902 . "$ac_site_file"
1903 fi
1904 done
1905
1906 if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911 echo "$as_me: loading cache $cache_file" >&6;}
1912 case $cache_file in
1913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
1915 esac
1916 fi
1917 else
1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919 echo "$as_me: creating cache $cache_file" >&6;}
1920 >$cache_file
1921 fi
1922
1923 # Check that the precious variables saved in the cache have kept the same
1924 # value.
1925 ac_cache_corrupted=false
1926 for ac_var in $ac_precious_vars; do
1927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
1929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
1931 case $ac_old_set,$ac_new_set in
1932 set,)
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,set)
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1940 ,);;
1941 *)
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
1943 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1946 echo "$as_me: former value: $ac_old_val" >&2;}
1947 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1948 echo "$as_me: current value: $ac_new_val" >&2;}
1949 ac_cache_corrupted=:
1950 fi;;
1951 esac
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1954 case $ac_new_val in
1955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;;
1957 esac
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961 esac
1962 fi
1963 done
1964 if $ac_cache_corrupted; then
1965 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1970 fi
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988 ac_ext=c
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993
1994
1995
1996
1997 am__api_version="1.9"
1998 ac_aux_dir=
1999 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2000 if test -f "$ac_dir/install-sh"; then
2001 ac_aux_dir=$ac_dir
2002 ac_install_sh="$ac_aux_dir/install-sh -c"
2003 break
2004 elif test -f "$ac_dir/install.sh"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/install.sh -c"
2007 break
2008 elif test -f "$ac_dir/shtool"; then
2009 ac_aux_dir=$ac_dir
2010 ac_install_sh="$ac_aux_dir/shtool install -c"
2011 break
2012 fi
2013 done
2014 if test -z "$ac_aux_dir"; then
2015 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2016 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2017 { (exit 1); exit 1; }; }
2018 fi
2019
2020 # These three variables are undocumented and unsupported,
2021 # and are intended to be withdrawn in a future Autoconf release.
2022 # They can cause serious problems if a builder's source tree is in a directory
2023 # whose full name contains unusual characters.
2024 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2025 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2026 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2027
2028
2029 # Find a good install program. We prefer a C program (faster),
2030 # so one script is as good as another. But avoid the broken or
2031 # incompatible versions:
2032 # SysV /etc/install, /usr/sbin/install
2033 # SunOS /usr/etc/install
2034 # IRIX /sbin/install
2035 # AIX /bin/install
2036 # AmigaOS /C/install, which installs bootblocks on floppy discs
2037 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2038 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2039 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2040 # OS/2's system install, which has a completely different semantic
2041 # ./install, which can be erroneously created by make from ./install.sh.
2042 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2043 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2044 if test -z "$INSTALL"; then
2045 if test "${ac_cv_path_install+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051 IFS=$as_save_IFS
2052 test -z "$as_dir" && as_dir=.
2053 # Account for people who put trailing slashes in PATH elements.
2054 case $as_dir/ in
2055 ./ | .// | /cC/* | \
2056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2058 /usr/ucb/* ) ;;
2059 *)
2060 # OSF1 and SCO ODT 3.0 have their own names for install.
2061 # Don't use installbsd from OSF since it installs stuff as root
2062 # by default.
2063 for ac_prog in ginstall scoinst install; do
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2066 if test $ac_prog = install &&
2067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2068 # AIX install. It has an incompatible calling convention.
2069 :
2070 elif test $ac_prog = install &&
2071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2072 # program-specific install script used by HP pwplus--don't use.
2073 :
2074 else
2075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2076 break 3
2077 fi
2078 fi
2079 done
2080 done
2081 ;;
2082 esac
2083 done
2084 IFS=$as_save_IFS
2085
2086
2087 fi
2088 if test "${ac_cv_path_install+set}" = set; then
2089 INSTALL=$ac_cv_path_install
2090 else
2091 # As a last resort, use the slow shell script. Don't cache a
2092 # value for INSTALL within a source directory, because that will
2093 # break other packages using the cache if that directory is
2094 # removed, or if the value is a relative name.
2095 INSTALL=$ac_install_sh
2096 fi
2097 fi
2098 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2099 echo "${ECHO_T}$INSTALL" >&6; }
2100
2101 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2102 # It thinks the first close brace ends the variable substitution.
2103 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2104
2105 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2106
2107 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2108
2109 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2110 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2111 # Just in case
2112 sleep 1
2113 echo timestamp > conftest.file
2114 # Do `set' in a subshell so we don't clobber the current shell's
2115 # arguments. Must try -L first in case configure is actually a
2116 # symlink; some systems play weird games with the mod time of symlinks
2117 # (eg FreeBSD returns the mod time of the symlink's containing
2118 # directory).
2119 if (
2120 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2121 if test "$*" = "X"; then
2122 # -L didn't work.
2123 set X `ls -t $srcdir/configure conftest.file`
2124 fi
2125 rm -f conftest.file
2126 if test "$*" != "X $srcdir/configure conftest.file" \
2127 && test "$*" != "X conftest.file $srcdir/configure"; then
2128
2129 # If neither matched, then we have a broken ls. This can happen
2130 # if, for instance, CONFIG_SHELL is bash and it inherits a
2131 # broken ls alias from the environment. This has actually
2132 # happened. Such a system could not be considered "sane".
2133 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2134 alias in your environment" >&5
2135 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2136 alias in your environment" >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139
2140 test "$2" = conftest.file
2141 )
2142 then
2143 # Ok.
2144 :
2145 else
2146 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2147 Check your system clock" >&5
2148 echo "$as_me: error: newly created file is older than distributed files!
2149 Check your system clock" >&2;}
2150 { (exit 1); exit 1; }; }
2151 fi
2152 { echo "$as_me:$LINENO: result: yes" >&5
2153 echo "${ECHO_T}yes" >&6; }
2154 test "$program_prefix" != NONE &&
2155 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2156 # Use a double $ so make ignores it.
2157 test "$program_suffix" != NONE &&
2158 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2159 # Double any \ or $. echo might interpret backslashes.
2160 # By default was `s,x,x', remove it if useless.
2161 cat <<\_ACEOF >conftest.sed
2162 s/[\\$]/&&/g;s/;s,x,x,$//
2163 _ACEOF
2164 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2165 rm -f conftest.sed
2166
2167 # expand $ac_aux_dir to an absolute path
2168 am_aux_dir=`cd $ac_aux_dir && pwd`
2169
2170 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2171 # Use eval to expand $SHELL
2172 if eval "$MISSING --run true"; then
2173 am_missing_run="$MISSING --run "
2174 else
2175 am_missing_run=
2176 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2177 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2178 fi
2179
2180 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2181 # We used to keeping the `.' as first argument, in order to
2182 # allow $(mkdir_p) to be used without argument. As in
2183 # $(mkdir_p) $(somedir)
2184 # where $(somedir) is conditionally defined. However this is wrong
2185 # for two reasons:
2186 # 1. if the package is installed by a user who cannot write `.'
2187 # make install will fail,
2188 # 2. the above comment should most certainly read
2189 # $(mkdir_p) $(DESTDIR)$(somedir)
2190 # so it does not work when $(somedir) is undefined and
2191 # $(DESTDIR) is not.
2192 # To support the latter case, we have to write
2193 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2194 # so the `.' trick is pointless.
2195 mkdir_p='mkdir -p --'
2196 else
2197 # On NextStep and OpenStep, the `mkdir' command does not
2198 # recognize any option. It will interpret all options as
2199 # directories to create, and then abort because `.' already
2200 # exists.
2201 for d in ./-p ./--version;
2202 do
2203 test -d $d && rmdir $d
2204 done
2205 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2206 if test -f "$ac_aux_dir/mkinstalldirs"; then
2207 mkdir_p='$(mkinstalldirs)'
2208 else
2209 mkdir_p='$(install_sh) -d'
2210 fi
2211 fi
2212
2213 for ac_prog in gawk mawk nawk awk
2214 do
2215 # Extract the first word of "$ac_prog", so it can be a program name with args.
2216 set dummy $ac_prog; ac_word=$2
2217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2219 if test "${ac_cv_prog_AWK+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 if test -n "$AWK"; then
2223 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2224 else
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2232 ac_cv_prog_AWK="$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
2235 fi
2236 done
2237 done
2238 IFS=$as_save_IFS
2239
2240 fi
2241 fi
2242 AWK=$ac_cv_prog_AWK
2243 if test -n "$AWK"; then
2244 { echo "$as_me:$LINENO: result: $AWK" >&5
2245 echo "${ECHO_T}$AWK" >&6; }
2246 else
2247 { echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6; }
2249 fi
2250
2251
2252 test -n "$AWK" && break
2253 done
2254
2255 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2256 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2257 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2258 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 cat >conftest.make <<\_ACEOF
2262 SHELL = /bin/sh
2263 all:
2264 @echo '@@@%%%=$(MAKE)=@@@%%%'
2265 _ACEOF
2266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2267 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2268 *@@@%%%=?*=@@@%%%*)
2269 eval ac_cv_prog_make_${ac_make}_set=yes;;
2270 *)
2271 eval ac_cv_prog_make_${ac_make}_set=no;;
2272 esac
2273 rm -f conftest.make
2274 fi
2275 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2276 { echo "$as_me:$LINENO: result: yes" >&5
2277 echo "${ECHO_T}yes" >&6; }
2278 SET_MAKE=
2279 else
2280 { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2282 SET_MAKE="MAKE=${MAKE-make}"
2283 fi
2284
2285 rm -rf .tst 2>/dev/null
2286 mkdir .tst 2>/dev/null
2287 if test -d .tst; then
2288 am__leading_dot=.
2289 else
2290 am__leading_dot=_
2291 fi
2292 rmdir .tst 2>/dev/null
2293
2294 # test to see if srcdir already configured
2295 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2296 test -f $srcdir/config.status; then
2297 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2298 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2299 { (exit 1); exit 1; }; }
2300 fi
2301
2302 # test whether we have cygpath
2303 if test -z "$CYGPATH_W"; then
2304 if (cygpath --version) >/dev/null 2>/dev/null; then
2305 CYGPATH_W='cygpath -w'
2306 else
2307 CYGPATH_W=echo
2308 fi
2309 fi
2310
2311
2312 # Define the identity of the package.
2313 PACKAGE=fontconfig
2314 VERSION=2.6.0
2315
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE "$PACKAGE"
2319 _ACEOF
2320
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define VERSION "$VERSION"
2324 _ACEOF
2325
2326 # Some tools Automake needs.
2327
2328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2329
2330
2331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2332
2333
2334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2335
2336
2337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2338
2339
2340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2341
2342 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2343
2344 # Installed binaries are usually stripped using `strip' when the user
2345 # run `make install-strip'. However `strip' might not be the right
2346 # tool to use in cross-compilation environments, therefore Automake
2347 # will honor the `STRIP' environment variable to overrule this program.
2348 if test "$cross_compiling" != no; then
2349 if test -n "$ac_tool_prefix"; then
2350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351 set dummy ${ac_tool_prefix}strip; ac_word=$2
2352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354 if test "${ac_cv_prog_STRIP+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 if test -n "$STRIP"; then
2358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2359 else
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371 done
2372 done
2373 IFS=$as_save_IFS
2374
2375 fi
2376 fi
2377 STRIP=$ac_cv_prog_STRIP
2378 if test -n "$STRIP"; then
2379 { echo "$as_me:$LINENO: result: $STRIP" >&5
2380 echo "${ECHO_T}$STRIP" >&6; }
2381 else
2382 { echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6; }
2384 fi
2385
2386
2387 fi
2388 if test -z "$ac_cv_prog_STRIP"; then
2389 ac_ct_STRIP=$STRIP
2390 # Extract the first word of "strip", so it can be a program name with args.
2391 set dummy strip; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 if test -n "$ac_ct_STRIP"; then
2398 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_ac_ct_STRIP="strip"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2414
2415 fi
2416 fi
2417 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2418 if test -n "$ac_ct_STRIP"; then
2419 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2420 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2421 else
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2424 fi
2425
2426 if test "x$ac_ct_STRIP" = x; then
2427 STRIP=":"
2428 else
2429 case $cross_compiling:$ac_tool_warned in
2430 yes:)
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet. If you think this
2436 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2438 esac
2439 STRIP=$ac_ct_STRIP
2440 fi
2441 else
2442 STRIP="$ac_cv_prog_STRIP"
2443 fi
2444
2445 fi
2446 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2447
2448 # We need awk for the "check" target. The system "awk" is bad on
2449 # some platforms.
2450 # Always define AMTAR for backward compatibility.
2451
2452 AMTAR=${AMTAR-"${am_missing_run}tar"}
2453
2454 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2455
2456
2457
2458
2459
2460 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2461 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2462 # Check whether --enable-maintainer-mode was given.
2463 if test "${enable_maintainer_mode+set}" = set; then
2464 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2465 else
2466 USE_MAINTAINER_MODE=no
2467 fi
2468
2469 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2470 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2471
2472
2473 if test $USE_MAINTAINER_MODE = yes; then
2474 MAINTAINER_MODE_TRUE=
2475 MAINTAINER_MODE_FALSE='#'
2476 else
2477 MAINTAINER_MODE_TRUE='#'
2478 MAINTAINER_MODE_FALSE=
2479 fi
2480
2481 MAINT=$MAINTAINER_MODE_TRUE
2482
2483
2484
2485
2486 LIBT_CURRENT=4
2487 LIBT_REVISION=0
2488
2489
2490 LIBT_AGE=3
2491
2492 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
2493
2494
2495 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
2496
2497
2498
2499 ac_config_headers="$ac_config_headers config.h"
2500
2501
2502 ac_ext=c
2503 ac_cpp='$CPP $CPPFLAGS'
2504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2514 else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 break 2
2528 fi
2529 done
2530 done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537 { echo "$as_me:$LINENO: result: $CC" >&5
2538 echo "${ECHO_T}$CC" >&6; }
2539 else
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2542 fi
2543
2544
2545 fi
2546 if test -z "$ac_cv_prog_CC"; then
2547 ac_ct_CC=$CC
2548 # Extract the first word of "gcc", so it can be a program name with args.
2549 set dummy gcc; ac_word=$2
2550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2553 echo $ECHO_N "(cached) $ECHO_C" >&6
2554 else
2555 if test -n "$ac_ct_CC"; then
2556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2557 else
2558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559 for as_dir in $PATH
2560 do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565 ac_cv_prog_ac_ct_CC="gcc"
2566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567 break 2
2568 fi
2569 done
2570 done
2571 IFS=$as_save_IFS
2572
2573 fi
2574 fi
2575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2576 if test -n "$ac_ct_CC"; then
2577 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2578 echo "${ECHO_T}$ac_ct_CC" >&6; }
2579 else
2580 { echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6; }
2582 fi
2583
2584 if test "x$ac_ct_CC" = x; then
2585 CC=""
2586 else
2587 case $cross_compiling:$ac_tool_warned in
2588 yes:)
2589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2590 whose name does not start with the host triplet. If you think this
2591 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2595 ac_tool_warned=yes ;;
2596 esac
2597 CC=$ac_ct_CC
2598 fi
2599 else
2600 CC="$ac_cv_prog_CC"
2601 fi
2602
2603 if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
2605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2606 set dummy ${ac_tool_prefix}cc; ac_word=$2
2607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2609 if test "${ac_cv_prog_CC+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_CC="${ac_tool_prefix}cc"
2623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626 done
2627 done
2628 IFS=$as_save_IFS
2629
2630 fi
2631 fi
2632 CC=$ac_cv_prog_CC
2633 if test -n "$CC"; then
2634 { echo "$as_me:$LINENO: result: $CC" >&5
2635 echo "${ECHO_T}$CC" >&6; }
2636 else
2637 { echo "$as_me:$LINENO: result: no" >&5
2638 echo "${ECHO_T}no" >&6; }
2639 fi
2640
2641
2642 fi
2643 fi
2644 if test -z "$CC"; then
2645 # Extract the first word of "cc", so it can be a program name with args.
2646 set dummy cc; ac_word=$2
2647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2649 if test "${ac_cv_prog_CC+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 if test -n "$CC"; then
2653 ac_cv_prog_CC="$CC" # Let the user override the test.
2654 else
2655 ac_prog_rejected=no
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2664 ac_prog_rejected=yes
2665 continue
2666 fi
2667 ac_cv_prog_CC="cc"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 if test $ac_prog_rejected = yes; then
2676 # We found a bogon in the path, so make sure we never use it.
2677 set dummy $ac_cv_prog_CC
2678 shift
2679 if test $# != 0; then
2680 # We chose a different compiler from the bogus one.
2681 # However, it has the same basename, so the bogon will be chosen
2682 # first if we set CC to just the basename; use the full file name.
2683 shift
2684 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2685 fi
2686 fi
2687 fi
2688 fi
2689 CC=$ac_cv_prog_CC
2690 if test -n "$CC"; then
2691 { echo "$as_me:$LINENO: result: $CC" >&5
2692 echo "${ECHO_T}$CC" >&6; }
2693 else
2694 { echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6; }
2696 fi
2697
2698
2699 fi
2700 if test -z "$CC"; then
2701 if test -n "$ac_tool_prefix"; then
2702 for ac_prog in cl.exe
2703 do
2704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2705 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_CC+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 CC=$ac_cv_prog_CC
2732 if test -n "$CC"; then
2733 { echo "$as_me:$LINENO: result: $CC" >&5
2734 echo "${ECHO_T}$CC" >&6; }
2735 else
2736 { echo "$as_me:$LINENO: result: no" >&5
2737 echo "${ECHO_T}no" >&6; }
2738 fi
2739
2740
2741 test -n "$CC" && break
2742 done
2743 fi
2744 if test -z "$CC"; then
2745 ac_ct_CC=$CC
2746 for ac_prog in cl.exe
2747 do
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy $ac_prog; ac_word=$2
2750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2752 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if test -n "$ac_ct_CC"; then
2756 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2757 else
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH
2760 do
2761 IFS=$as_save_IFS
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_ac_ct_CC="$ac_prog"
2766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 break 2
2768 fi
2769 done
2770 done
2771 IFS=$as_save_IFS
2772
2773 fi
2774 fi
2775 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2776 if test -n "$ac_ct_CC"; then
2777 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2778 echo "${ECHO_T}$ac_ct_CC" >&6; }
2779 else
2780 { echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6; }
2782 fi
2783
2784
2785 test -n "$ac_ct_CC" && break
2786 done
2787
2788 if test "x$ac_ct_CC" = x; then
2789 CC=""
2790 else
2791 case $cross_compiling:$ac_tool_warned in
2792 yes:)
2793 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
2796 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
2799 ac_tool_warned=yes ;;
2800 esac
2801 CC=$ac_ct_CC
2802 fi
2803 fi
2804
2805 fi
2806
2807
2808 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: no acceptable C compiler found in \$PATH
2811 See \`config.log' for more details." >&2;}
2812 { (exit 1); exit 1; }; }
2813
2814 # Provide some information about the compiler.
2815 echo "$as_me:$LINENO: checking for C compiler version" >&5
2816 ac_compiler=`set X $ac_compile; echo $2`
2817 { (ac_try="$ac_compiler --version >&5"
2818 case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compiler --version >&5") 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827 { (ac_try="$ac_compiler -v >&5"
2828 case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compiler -v >&5") 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }
2837 { (ac_try="$ac_compiler -V >&5"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compiler -V >&5") 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }
2847
2848 cat >conftest.$ac_ext <<_ACEOF
2849 /* confdefs.h. */
2850 _ACEOF
2851 cat confdefs.h >>conftest.$ac_ext
2852 cat >>conftest.$ac_ext <<_ACEOF
2853 /* end confdefs.h. */
2854
2855 int
2856 main ()
2857 {
2858
2859 ;
2860 return 0;
2861 }
2862 _ACEOF
2863 ac_clean_files_save=$ac_clean_files
2864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2865 # Try to create an executable without -o first, disregard a.out.
2866 # It will help us diagnose broken compilers, and finding out an intuition
2867 # of exeext.
2868 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2869 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2871 #
2872 # List of possible output files, starting from the most likely.
2873 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2874 # only as a last resort. b.out is created by i960 compilers.
2875 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2876 #
2877 # The IRIX 6 linker writes into existing files which may not be
2878 # executable, retaining their permissions. Remove them first so a
2879 # subsequent execution test works.
2880 ac_rmfiles=
2881 for ac_file in $ac_files
2882 do
2883 case $ac_file in
2884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2886 esac
2887 done
2888 rm -f $ac_rmfiles
2889
2890 if { (ac_try="$ac_link_default"
2891 case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_link_default") 2>&5
2897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; then
2900 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2901 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2902 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2903 # so that the user can short-circuit this test for compilers unknown to
2904 # Autoconf.
2905 for ac_file in $ac_files ''
2906 do
2907 test -f "$ac_file" || continue
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2910 ;;
2911 [ab].out )
2912 # We found the default executable, but exeext='' is most
2913 # certainly right.
2914 break;;
2915 *.* )
2916 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2917 then :; else
2918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2919 fi
2920 # We set ac_cv_exeext here because the later test for it is not
2921 # safe: cross compilers may not add the suffix if given an `-o'
2922 # argument, so we may need to know it at that point already.
2923 # Even if this section looks crufty: it has the advantage of
2924 # actually working.
2925 break;;
2926 * )
2927 break;;
2928 esac
2929 done
2930 test "$ac_cv_exeext" = no && ac_cv_exeext=
2931
2932 else
2933 ac_file=''
2934 fi
2935
2936 { echo "$as_me:$LINENO: result: $ac_file" >&5
2937 echo "${ECHO_T}$ac_file" >&6; }
2938 if test -z "$ac_file"; then
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: C compiler cannot create executables
2945 See \`config.log' for more details." >&2;}
2946 { (exit 77); exit 77; }; }
2947 fi
2948
2949 ac_exeext=$ac_cv_exeext
2950
2951 # Check that the compiler produces executables we can run. If not, either
2952 # the compiler is broken, or we cross compile.
2953 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2956 # If not cross compiling, check that we can run a simple program.
2957 if test "$cross_compiling" != yes; then
2958 if { ac_try='./$ac_file'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_try") 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 cross_compiling=no
2969 else
2970 if test "$cross_compiling" = maybe; then
2971 cross_compiling=yes
2972 else
2973 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2974 If you meant to cross compile, use \`--host'.
2975 See \`config.log' for more details." >&5
2976 echo "$as_me: error: cannot run C compiled programs.
2977 If you meant to cross compile, use \`--host'.
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }
2980 fi
2981 fi
2982 fi
2983 { echo "$as_me:$LINENO: result: yes" >&5
2984 echo "${ECHO_T}yes" >&6; }
2985
2986 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2987 ac_clean_files=$ac_clean_files_save
2988 # Check that the compiler produces executables we can run. If not, either
2989 # the compiler is broken, or we cross compile.
2990 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2991 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2992 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2993 echo "${ECHO_T}$cross_compiling" >&6; }
2994
2995 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2996 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2997 if { (ac_try="$ac_link"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_link") 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }; then
3007 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3008 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3009 # work properly (i.e., refer to `conftest.exe'), while it won't with
3010 # `rm'.
3011 for ac_file in conftest.exe conftest conftest.*; do
3012 test -f "$ac_file" || continue
3013 case $ac_file in
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016 break;;
3017 * ) break;;
3018 esac
3019 done
3020 else
3021 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3022 See \`config.log' for more details." >&5
3023 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3024 See \`config.log' for more details." >&2;}
3025 { (exit 1); exit 1; }; }
3026 fi
3027
3028 rm -f conftest$ac_cv_exeext
3029 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3030 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3031
3032 rm -f conftest.$ac_ext
3033 EXEEXT=$ac_cv_exeext
3034 ac_exeext=$EXEEXT
3035 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3036 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3037 if test "${ac_cv_objext+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 else
3040 cat >conftest.$ac_ext <<_ACEOF
3041 /* confdefs.h. */
3042 _ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3046
3047 int
3048 main ()
3049 {
3050
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.o conftest.obj
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; then
3066 for ac_file in conftest.o conftest.obj conftest.*; do
3067 test -f "$ac_file" || continue;
3068 case $ac_file in
3069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3070 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3071 break;;
3072 esac
3073 done
3074 else
3075 echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3079 See \`config.log' for more details." >&5
3080 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3081 See \`config.log' for more details." >&2;}
3082 { (exit 1); exit 1; }; }
3083 fi
3084
3085 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3086 fi
3087 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3088 echo "${ECHO_T}$ac_cv_objext" >&6; }
3089 OBJEXT=$ac_cv_objext
3090 ac_objext=$OBJEXT
3091 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3092 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3093 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3094 echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106 #ifndef __GNUC__
3107 choke me
3108 #endif
3109
3110 ;
3111 return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
3122 ac_status=$?
3123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); } && {
3128 test -z "$ac_c_werror_flag" ||
3129 test ! -s conftest.err
3130 } && test -s conftest.$ac_objext; then
3131 ac_compiler_gnu=yes
3132 else
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136 ac_compiler_gnu=no
3137 fi
3138
3139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3141
3142 fi
3143 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3144 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3145 GCC=`test $ac_compiler_gnu = yes && echo yes`
3146 ac_test_CFLAGS=${CFLAGS+set}
3147 ac_save_CFLAGS=$CFLAGS
3148 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3149 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_g+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3152 else
3153 ac_save_c_werror_flag=$ac_c_werror_flag
3154 ac_c_werror_flag=yes
3155 ac_cv_prog_cc_g=no
3156 CFLAGS="-g"
3157 cat >conftest.$ac_ext <<_ACEOF
3158 /* confdefs.h. */
3159 _ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3163
3164 int
3165 main ()
3166 {
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3180 ac_status=$?
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
3189 ac_cv_prog_cc_g=yes
3190 else
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194 CFLAGS=""
3195 cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h. */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h. */
3201
3202 int
3203 main ()
3204 {
3205
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); } && {
3224 test -z "$ac_c_werror_flag" ||
3225 test ! -s conftest.err
3226 } && test -s conftest.$ac_objext; then
3227 :
3228 else
3229 echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3233 CFLAGS="-g"
3234 cat >conftest.$ac_ext <<_ACEOF
3235 /* confdefs.h. */
3236 _ACEOF
3237 cat confdefs.h >>conftest.$ac_ext
3238 cat >>conftest.$ac_ext <<_ACEOF
3239 /* end confdefs.h. */
3240
3241 int
3242 main ()
3243 {
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 rm -f conftest.$ac_objext
3250 if { (ac_try="$ac_compile"
3251 case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_compile") 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } && {
3263 test -z "$ac_c_werror_flag" ||
3264 test ! -s conftest.err
3265 } && test -s conftest.$ac_objext; then
3266 ac_cv_prog_cc_g=yes
3267 else
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271
3272 fi
3273
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 fi
3276
3277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3278 fi
3279
3280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3281 ac_c_werror_flag=$ac_save_c_werror_flag
3282 fi
3283 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3285 if test "$ac_test_CFLAGS" = set; then
3286 CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288 if test "$GCC" = yes; then
3289 CFLAGS="-g -O2"
3290 else
3291 CFLAGS="-g"
3292 fi
3293 else
3294 if test "$GCC" = yes; then
3295 CFLAGS="-O2"
3296 else
3297 CFLAGS=
3298 fi
3299 fi
3300 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3301 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3302 if test "${ac_cv_prog_cc_c89+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 ac_cv_prog_cc_c89=no
3306 ac_save_CC=$CC
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321 char **p;
3322 int i;
3323 {
3324 return p[i];
3325 }
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3327 {
3328 char *s;
3329 va_list v;
3330 va_start (v,p);
3331 s = g (p, va_arg (v,int));
3332 va_end (v);
3333 return s;
3334 }
3335
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3337 function prototypes and stuff, but not '\xHH' hex character constants.
3338 These don't provoke an error unfortunately, instead are silently treated
3339 as 'x'. The following induces an error, until -std is added to get
3340 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3341 array size at least. It's necessary to write '\x00'==0 to get something
3342 that's true only with -std. */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344
3345 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3346 inside strings and character constants. */
3347 #define FOO(x) 'x'
3348 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3349
3350 int test (int i, double x);
3351 struct s1 {int (*f) (int a);};
3352 struct s2 {int (*f) (double a);};
3353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3354 int argc;
3355 char **argv;
3356 int
3357 main ()
3358 {
3359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3365 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 do
3367 CC="$ac_save_CC $ac_arg"
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } && {
3382 test -z "$ac_c_werror_flag" ||
3383 test ! -s conftest.err
3384 } && test -s conftest.$ac_objext; then
3385 ac_cv_prog_cc_c89=$ac_arg
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390
3391 fi
3392
3393 rm -f core conftest.err conftest.$ac_objext
3394 test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 done
3396 rm -f conftest.$ac_ext
3397 CC=$ac_save_CC
3398
3399 fi
3400 # AC_CACHE_VAL
3401 case "x$ac_cv_prog_cc_c89" in
3402 x)
3403 { echo "$as_me:$LINENO: result: none needed" >&5
3404 echo "${ECHO_T}none needed" >&6; } ;;
3405 xno)
3406 { echo "$as_me:$LINENO: result: unsupported" >&5
3407 echo "${ECHO_T}unsupported" >&6; } ;;
3408 *)
3409 CC="$CC $ac_cv_prog_cc_c89"
3410 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3412 esac
3413
3414
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 DEPDIR="${am__leading_dot}deps"
3421
3422 ac_config_commands="$ac_config_commands depfiles"
3423
3424
3425 am_make=${MAKE-make}
3426 cat > confinc << 'END'
3427 am__doit:
3428 @echo done
3429 .PHONY: am__doit
3430 END
3431 # If we don't find an include directive, just comment out the code.
3432 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3433 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3434 am__include="#"
3435 am__quote=
3436 _am_result=none
3437 # First try GNU make style include.
3438 echo "include confinc" > confmf
3439 # We grep out `Entering directory' and `Leaving directory'
3440 # messages which can occur if `w' ends up in MAKEFLAGS.
3441 # In particular we don't look at `^make:' because GNU make might
3442 # be invoked under some other name (usually "gmake"), in which
3443 # case it prints its new name instead of `make'.
3444 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3445 am__include=include
3446 am__quote=
3447 _am_result=GNU
3448 fi
3449 # Now try BSD make style include.
3450 if test "$am__include" = "#"; then
3451 echo '.include "confinc"' > confmf
3452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3453 am__include=.include
3454 am__quote="\""
3455 _am_result=BSD
3456 fi
3457 fi
3458
3459
3460 { echo "$as_me:$LINENO: result: $_am_result" >&5
3461 echo "${ECHO_T}$_am_result" >&6; }
3462 rm -f confinc confmf
3463
3464 # Check whether --enable-dependency-tracking was given.
3465 if test "${enable_dependency_tracking+set}" = set; then
3466 enableval=$enable_dependency_tracking;
3467 fi
3468
3469 if test "x$enable_dependency_tracking" != xno; then
3470 am_depcomp="$ac_aux_dir/depcomp"
3471 AMDEPBACKSLASH='\'
3472 fi
3473
3474
3475 if test "x$enable_dependency_tracking" != xno; then
3476 AMDEP_TRUE=
3477 AMDEP_FALSE='#'
3478 else
3479 AMDEP_TRUE='#'
3480 AMDEP_FALSE=
3481 fi
3482
3483
3484
3485
3486 depcc="$CC" am_compiler_list=
3487
3488 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3489 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3490 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3494 # We make a subdir and do the tests there. Otherwise we can end up
3495 # making bogus files that we don't know about and never remove. For
3496 # instance it was reported that on HP-UX the gcc test will end up
3497 # making a dummy file named `D' -- because `-MD' means `put the output
3498 # in D'.
3499 mkdir conftest.dir
3500 # Copy depcomp to subdir because otherwise we won't find it if we're
3501 # using a relative directory.
3502 cp "$am_depcomp" conftest.dir
3503 cd conftest.dir
3504 # We will build objects and dependencies in a subdirectory because
3505 # it helps to detect inapplicable dependency modes. For instance
3506 # both Tru64's cc and ICC support -MD to output dependencies as a
3507 # side effect of compilation, but ICC will put the dependencies in
3508 # the current directory while Tru64 will put them in the object
3509 # directory.
3510 mkdir sub
3511
3512 am_cv_CC_dependencies_compiler_type=none
3513 if test "$am_compiler_list" = ""; then
3514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3515 fi
3516 for depmode in $am_compiler_list; do
3517 # Setup a source with many dependencies, because some compilers
3518 # like to wrap large dependency lists on column 80 (with \), and
3519 # we should not choose a depcomp mode which is confused by this.
3520 #
3521 # We need to recreate these files for each test, as the compiler may
3522 # overwrite some of them when testing with obscure command lines.
3523 # This happens at least with the AIX C compiler.
3524 : > sub/conftest.c
3525 for i in 1 2 3 4 5 6; do
3526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3528 # Solaris 8's {/usr,}/bin/sh.
3529 touch sub/conftst$i.h
3530 done
3531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3532
3533 case $depmode in
3534 nosideeffect)
3535 # after this tag, mechanisms are not by side-effect, so they'll
3536 # only be used when explicitly requested
3537 if test "x$enable_dependency_tracking" = xyes; then
3538 continue
3539 else
3540 break
3541 fi
3542 ;;
3543 none) break ;;
3544 esac
3545 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3546 # mode. It turns out that the SunPro C++ compiler does not properly
3547 # handle `-M -o', and we need to detect this.
3548 if depmode=$depmode \
3549 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3551 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3552 >/dev/null 2>conftest.err &&
3553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3554 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3556 # icc doesn't choke on unknown options, it will just issue warnings
3557 # or remarks (even with -Werror). So we grep stderr for any message
3558 # that says an option was ignored or not supported.
3559 # When given -MP, icc 7.0 and 7.1 complain thusly:
3560 # icc: Command line warning: ignoring option '-M'; no argument required
3561 # The diagnosis changed in icc 8.0:
3562 # icc: Command line remark: option '-MP' not supported
3563 if (grep 'ignoring option' conftest.err ||
3564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3565 am_cv_CC_dependencies_compiler_type=$depmode
3566 break
3567 fi
3568 fi
3569 done
3570
3571 cd ..
3572 rm -rf conftest.dir
3573 else
3574 am_cv_CC_dependencies_compiler_type=none
3575 fi
3576
3577 fi
3578 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3579 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3580 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3581
3582
3583
3584 if
3585 test "x$enable_dependency_tracking" != xno \
3586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3587 am__fastdepCC_TRUE=
3588 am__fastdepCC_FALSE='#'
3589 else
3590 am__fastdepCC_TRUE='#'
3591 am__fastdepCC_FALSE=
3592 fi
3593
3594
3595 # Find a good install program. We prefer a C program (faster),
3596 # so one script is as good as another. But avoid the broken or
3597 # incompatible versions:
3598 # SysV /etc/install, /usr/sbin/install
3599 # SunOS /usr/etc/install
3600 # IRIX /sbin/install
3601 # AIX /bin/install
3602 # AmigaOS /C/install, which installs bootblocks on floppy discs
3603 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3604 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3605 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3606 # OS/2's system install, which has a completely different semantic
3607 # ./install, which can be erroneously created by make from ./install.sh.
3608 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3609 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3610 if test -z "$INSTALL"; then
3611 if test "${ac_cv_path_install+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617 IFS=$as_save_IFS
3618 test -z "$as_dir" && as_dir=.
3619 # Account for people who put trailing slashes in PATH elements.
3620 case $as_dir/ in
3621 ./ | .// | /cC/* | \
3622 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3623 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3624 /usr/ucb/* ) ;;
3625 *)
3626 # OSF1 and SCO ODT 3.0 have their own names for install.
3627 # Don't use installbsd from OSF since it installs stuff as root
3628 # by default.
3629 for ac_prog in ginstall scoinst install; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3632 if test $ac_prog = install &&
3633 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3634 # AIX install. It has an incompatible calling convention.
3635 :
3636 elif test $ac_prog = install &&
3637 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3638 # program-specific install script used by HP pwplus--don't use.
3639 :
3640 else
3641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3642 break 3
3643 fi
3644 fi
3645 done
3646 done
3647 ;;
3648 esac
3649 done
3650 IFS=$as_save_IFS
3651
3652
3653 fi
3654 if test "${ac_cv_path_install+set}" = set; then
3655 INSTALL=$ac_cv_path_install
3656 else
3657 # As a last resort, use the slow shell script. Don't cache a
3658 # value for INSTALL within a source directory, because that will
3659 # break other packages using the cache if that directory is
3660 # removed, or if the value is a relative name.
3661 INSTALL=$ac_install_sh
3662 fi
3663 fi
3664 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3665 echo "${ECHO_T}$INSTALL" >&6; }
3666
3667 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3668 # It thinks the first close brace ends the variable substitution.
3669 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3670
3671 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3672
3673 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3674
3675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3677 LN_S=$as_ln_s
3678 if test "$LN_S" = "ln -s"; then
3679 { echo "$as_me:$LINENO: result: yes" >&5
3680 echo "${ECHO_T}yes" >&6; }
3681 else
3682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3683 echo "${ECHO_T}no, using $LN_S" >&6; }
3684 fi
3685
3686
3687
3688 # Check whether --enable-shared was given.
3689 if test "${enable_shared+set}" = set; then
3690 enableval=$enable_shared; p=${PACKAGE-default}
3691 case $enableval in
3692 yes) enable_shared=yes ;;
3693 no) enable_shared=no ;;
3694 *)
3695 enable_shared=no
3696 # Look at the argument we got. We use all the common list separators.
3697 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3698 for pkg in $enableval; do
3699 IFS="$lt_save_ifs"
3700 if test "X$pkg" = "X$p"; then
3701 enable_shared=yes
3702 fi
3703 done
3704 IFS="$lt_save_ifs"
3705 ;;
3706 esac
3707 else
3708 enable_shared=yes
3709 fi
3710
3711
3712 # Check whether --enable-static was given.
3713 if test "${enable_static+set}" = set; then
3714 enableval=$enable_static; p=${PACKAGE-default}
3715 case $enableval in
3716 yes) enable_static=yes ;;
3717 no) enable_static=no ;;
3718 *)
3719 enable_static=no
3720 # Look at the argument we got. We use all the common list separators.
3721 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3722 for pkg in $enableval; do
3723 IFS="$lt_save_ifs"
3724 if test "X$pkg" = "X$p"; then
3725 enable_static=yes
3726 fi
3727 done
3728 IFS="$lt_save_ifs"
3729 ;;
3730 esac
3731 else
3732 enable_static=yes
3733 fi
3734
3735
3736 # Check whether --enable-fast-install was given.
3737 if test "${enable_fast_install+set}" = set; then
3738 enableval=$enable_fast_install; p=${PACKAGE-default}
3739 case $enableval in
3740 yes) enable_fast_install=yes ;;
3741 no) enable_fast_install=no ;;
3742 *)
3743 enable_fast_install=no
3744 # Look at the argument we got. We use all the common list separators.
3745 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3746 for pkg in $enableval; do
3747 IFS="$lt_save_ifs"
3748 if test "X$pkg" = "X$p"; then
3749 enable_fast_install=yes
3750 fi
3751 done
3752 IFS="$lt_save_ifs"
3753 ;;
3754 esac
3755 else
3756 enable_fast_install=yes
3757 fi
3758
3759
3760 # Make sure we can run config.sub.
3761 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3762 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3763 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3764 { (exit 1); exit 1; }; }
3765
3766 { echo "$as_me:$LINENO: checking build system type" >&5
3767 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3768 if test "${ac_cv_build+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 ac_build_alias=$build_alias
3772 test "x$ac_build_alias" = x &&
3773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3774 test "x$ac_build_alias" = x &&
3775 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3776 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3777 { (exit 1); exit 1; }; }
3778 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3779 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3780 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3781 { (exit 1); exit 1; }; }
3782
3783 fi
3784 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3785 echo "${ECHO_T}$ac_cv_build" >&6; }
3786 case $ac_cv_build in
3787 *-*-*) ;;
3788 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3789 echo "$as_me: error: invalid value of canonical build" >&2;}
3790 { (exit 1); exit 1; }; };;
3791 esac
3792 build=$ac_cv_build
3793 ac_save_IFS=$IFS; IFS='-'
3794 set x $ac_cv_build
3795 shift
3796 build_cpu=$1
3797 build_vendor=$2
3798 shift; shift
3799 # Remember, the first character of IFS is used to create $*,
3800 # except with old shells:
3801 build_os=$*
3802 IFS=$ac_save_IFS
3803 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3804
3805
3806 { echo "$as_me:$LINENO: checking host system type" >&5
3807 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3808 if test "${ac_cv_host+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test "x$host_alias" = x; then
3812 ac_cv_host=$ac_cv_build
3813 else
3814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3818 fi
3819
3820 fi
3821 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3822 echo "${ECHO_T}$ac_cv_host" >&6; }
3823 case $ac_cv_host in
3824 *-*-*) ;;
3825 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3826 echo "$as_me: error: invalid value of canonical host" >&2;}
3827 { (exit 1); exit 1; }; };;
3828 esac
3829 host=$ac_cv_host
3830 ac_save_IFS=$IFS; IFS='-'
3831 set x $ac_cv_host
3832 shift
3833 host_cpu=$1
3834 host_vendor=$2
3835 shift; shift
3836 # Remember, the first character of IFS is used to create $*,
3837 # except with old shells:
3838 host_os=$*
3839 IFS=$ac_save_IFS
3840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3841
3842
3843 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3844 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3845 if test "${lt_cv_path_SED+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 # Loop through the user's path and test for sed and gsed.
3849 # Then use that list of sed's as ones to test for truncation.
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH
3852 do
3853 IFS=$as_save_IFS
3854 test -z "$as_dir" && as_dir=.
3855 for lt_ac_prog in sed gsed; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3858 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3859 fi
3860 done
3861 done
3862 done
3863 IFS=$as_save_IFS
3864 lt_ac_max=0
3865 lt_ac_count=0
3866 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3867 # along with /bin/sed that truncates output.
3868 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3869 test ! -f $lt_ac_sed && continue
3870 cat /dev/null > conftest.in
3871 lt_ac_count=0
3872 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3873 # Check for GNU sed and select it if it is found.
3874 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3875 lt_cv_path_SED=$lt_ac_sed
3876 break
3877 fi
3878 while true; do
3879 cat conftest.in conftest.in >conftest.tmp
3880 mv conftest.tmp conftest.in
3881 cp conftest.in conftest.nl
3882 echo >>conftest.nl
3883 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3884 cmp -s conftest.out conftest.nl || break
3885 # 10000 chars as input seems more than enough
3886 test $lt_ac_count -gt 10 && break
3887 lt_ac_count=`expr $lt_ac_count + 1`
3888 if test $lt_ac_count -gt $lt_ac_max; then
3889 lt_ac_max=$lt_ac_count
3890 lt_cv_path_SED=$lt_ac_sed
3891 fi
3892 done
3893 done
3894
3895 fi
3896
3897 SED=$lt_cv_path_SED
3898
3899 { echo "$as_me:$LINENO: result: $SED" >&5
3900 echo "${ECHO_T}$SED" >&6; }
3901
3902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3904 if test "${ac_cv_path_GREP+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 # Extract the first word of "grep ggrep" to use in msg output
3908 if test -z "$GREP"; then
3909 set dummy grep ggrep; ac_prog_name=$2
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913 ac_path_GREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in grep ggrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3924 # Check for GNU ac_path_GREP and select it if it is found.
3925 # Check for GNU $ac_path_GREP
3926 case `"$ac_path_GREP" --version 2>&1` in
3927 *GNU*)
3928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3929 *)
3930 ac_count=0
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3932 while :
3933 do
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo 'GREP' >> "conftest.nl"
3938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 ac_count=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_GREP="$ac_path_GREP"
3944 ac_path_GREP_max=$ac_count
3945 fi
3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3948 done
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 esac
3951
3952
3953 $ac_path_GREP_found && break 3
3954 done
3955 done
3956
3957 done
3958 IFS=$as_save_IFS
3959
3960
3961 fi
3962
3963 GREP="$ac_cv_path_GREP"
3964 if test -z "$GREP"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967 { (exit 1); exit 1; }; }
3968 fi
3969
3970 else
3971 ac_cv_path_GREP=$GREP
3972 fi
3973
3974
3975 fi
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3978 GREP="$ac_cv_path_GREP"
3979
3980
3981 { echo "$as_me:$LINENO: checking for egrep" >&5
3982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987 then ac_cv_path_EGREP="$GREP -E"
3988 else
3989 # Extract the first word of "egrep" to use in msg output
3990 if test -z "$EGREP"; then
3991 set dummy egrep; ac_prog_name=$2
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 ac_path_EGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_prog in egrep; do
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4006 # Check for GNU ac_path_EGREP and select it if it is found.
4007 # Check for GNU $ac_path_EGREP
4008 case `"$ac_path_EGREP" --version 2>&1` in
4009 *GNU*)
4010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4011 *)
4012 ac_count=0
4013 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4014 while :
4015 do
4016 cat "conftest.in" "conftest.in" >"conftest.tmp"
4017 mv "conftest.tmp" "conftest.in"
4018 cp "conftest.in" "conftest.nl"
4019 echo 'EGREP' >> "conftest.nl"
4020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022 ac_count=`expr $ac_count + 1`
4023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024 # Best one so far, save it but keep looking for a better one
4025 ac_cv_path_EGREP="$ac_path_EGREP"
4026 ac_path_EGREP_max=$ac_count
4027 fi
4028 # 10*(2^10) chars as input seems more than enough
4029 test $ac_count -gt 10 && break
4030 done
4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034
4035 $ac_path_EGREP_found && break 3
4036 done
4037 done
4038
4039 done
4040 IFS=$as_save_IFS
4041
4042
4043 fi
4044
4045 EGREP="$ac_cv_path_EGREP"
4046 if test -z "$EGREP"; then
4047 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4049 { (exit 1); exit 1; }; }
4050 fi
4051
4052 else
4053 ac_cv_path_EGREP=$EGREP
4054 fi
4055
4056
4057 fi
4058 fi
4059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4061 EGREP="$ac_cv_path_EGREP"
4062
4063
4064
4065 # Check whether --with-gnu-ld was given.
4066 if test "${with_gnu_ld+set}" = set; then
4067 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4068 else
4069 with_gnu_ld=no
4070 fi
4071
4072 ac_prog=ld
4073 if test "$GCC" = yes; then
4074 # Check if gcc -print-prog-name=ld gives a path.
4075 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4076 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4077 case $host in
4078 *-*-mingw*)
4079 # gcc leaves a trailing carriage return which upsets mingw
4080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4081 *)
4082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4083 esac
4084 case $ac_prog in
4085 # Accept absolute paths.
4086 [\\/]* | ?:[\\/]*)
4087 re_direlt='/[^/][^/]*/\.\./'
4088 # Canonicalize the pathname of ld
4089 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4092 done
4093 test -z "$LD" && LD="$ac_prog"
4094 ;;
4095 "")
4096 # If it fails, then pretend we aren't using GCC.
4097 ac_prog=ld
4098 ;;
4099 *)
4100 # If it is relative, then search for the first ld in PATH.
4101 with_gnu_ld=unknown
4102 ;;
4103 esac
4104 elif test "$with_gnu_ld" = yes; then
4105 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4106 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4107 else
4108 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4110 fi
4111 if test "${lt_cv_path_LD+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 if test -z "$LD"; then
4115 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4116 for ac_dir in $PATH; do
4117 IFS="$lt_save_ifs"
4118 test -z "$ac_dir" && ac_dir=.
4119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4120 lt_cv_path_LD="$ac_dir/$ac_prog"
4121 # Check to see if the program is GNU ld. I'd rather use --version,
4122 # but apparently some variants of GNU ld only accept -v.
4123 # Break only if it was the GNU/non-GNU ld that we prefer.
4124 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4125 *GNU* | *'with BFD'*)
4126 test "$with_gnu_ld" != no && break
4127 ;;
4128 *)
4129 test "$with_gnu_ld" != yes && break
4130 ;;
4131 esac
4132 fi
4133 done
4134 IFS="$lt_save_ifs"
4135 else
4136 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4137 fi
4138 fi
4139
4140 LD="$lt_cv_path_LD"
4141 if test -n "$LD"; then
4142 { echo "$as_me:$LINENO: result: $LD" >&5
4143 echo "${ECHO_T}$LD" >&6; }
4144 else
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4147 fi
4148 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4149 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4150 { (exit 1); exit 1; }; }
4151 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4152 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4153 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4157 case `$LD -v 2>&1 </dev/null` in
4158 *GNU* | *'with BFD'*)
4159 lt_cv_prog_gnu_ld=yes
4160 ;;
4161 *)
4162 lt_cv_prog_gnu_ld=no
4163 ;;
4164 esac
4165 fi
4166 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4167 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4168 with_gnu_ld=$lt_cv_prog_gnu_ld
4169
4170
4171 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4172 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4173 if test "${lt_cv_ld_reload_flag+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 lt_cv_ld_reload_flag='-r'
4177 fi
4178 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4179 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4180 reload_flag=$lt_cv_ld_reload_flag
4181 case $reload_flag in
4182 "" | " "*) ;;
4183 *) reload_flag=" $reload_flag" ;;
4184 esac
4185 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4186 case $host_os in
4187 darwin*)
4188 if test "$GCC" = yes; then
4189 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4190 else
4191 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4192 fi
4193 ;;
4194 esac
4195
4196 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4197 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4198 if test "${lt_cv_path_NM+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201 if test -n "$NM"; then
4202 # Let the user override the test.
4203 lt_cv_path_NM="$NM"
4204 else
4205 lt_nm_to_check="${ac_tool_prefix}nm"
4206 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4207 lt_nm_to_check="$lt_nm_to_check nm"
4208 fi
4209 for lt_tmp_nm in $lt_nm_to_check; do
4210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4211 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4212 IFS="$lt_save_ifs"
4213 test -z "$ac_dir" && ac_dir=.
4214 tmp_nm="$ac_dir/$lt_tmp_nm"
4215 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4216 # Check to see if the nm accepts a BSD-compat flag.
4217 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4218 # nm: unknown option "B" ignored
4219 # Tru64's nm complains that /dev/null is an invalid object file
4220 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4221 */dev/null* | *'Invalid file or object type'*)
4222 lt_cv_path_NM="$tmp_nm -B"
4223 break
4224 ;;
4225 *)
4226 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4227 */dev/null*)
4228 lt_cv_path_NM="$tmp_nm -p"
4229 break
4230 ;;
4231 *)
4232 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4233 continue # so that we can try to find one that supports BSD flags
4234 ;;
4235 esac
4236 ;;
4237 esac
4238 fi
4239 done
4240 IFS="$lt_save_ifs"
4241 done
4242 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4243 fi
4244 fi
4245 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4246 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4247 NM="$lt_cv_path_NM"
4248
4249 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4250 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4251 if test "${lt_cv_deplibs_check_method+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254 lt_cv_file_magic_cmd='$MAGIC_CMD'
4255 lt_cv_file_magic_test_file=
4256 lt_cv_deplibs_check_method='unknown'
4257 # Need to set the preceding variable on all platforms that support
4258 # interlibrary dependencies.
4259 # 'none' -- dependencies not supported.
4260 # `unknown' -- same as none, but documents that we really don't know.
4261 # 'pass_all' -- all dependencies passed with no checks.
4262 # 'test_compile' -- check by making test program.
4263 # 'file_magic [[regex]]' -- check by looking for files in library path
4264 # which responds to the $file_magic_cmd with a given extended regex.
4265 # If you have `file' or equivalent on your system and you're not sure
4266 # whether `pass_all' will *always* work, you probably want this one.
4267
4268 case $host_os in
4269 aix[4-9]*)
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273 beos*)
4274 lt_cv_deplibs_check_method=pass_all
4275 ;;
4276
4277 bsdi[45]*)
4278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4279 lt_cv_file_magic_cmd='/usr/bin/file -L'
4280 lt_cv_file_magic_test_file=/shlib/libc.so
4281 ;;
4282
4283 cygwin*)
4284 # func_win32_libid is a shell function defined in ltmain.sh
4285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4286 lt_cv_file_magic_cmd='func_win32_libid'
4287 ;;
4288
4289 mingw* | pw32*)
4290 # Base MSYS/MinGW do not provide the 'file' command needed by
4291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4292 # unless we find 'file', for example because we are cross-compiling.
4293 if ( file / ) >/dev/null 2>&1; then
4294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4295 lt_cv_file_magic_cmd='func_win32_libid'
4296 else
4297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4298 lt_cv_file_magic_cmd='$OBJDUMP -f'
4299 fi
4300 ;;
4301
4302 darwin* | rhapsody*)
4303 lt_cv_deplibs_check_method=pass_all
4304 ;;
4305
4306 freebsd* | dragonfly*)
4307 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4308 case $host_cpu in
4309 i*86 )
4310 # Not sure whether the presence of OpenBSD here was a mistake.
4311 # Let's accept both of them until this is cleared up.
4312 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4313 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4315 ;;
4316 esac
4317 else
4318 lt_cv_deplibs_check_method=pass_all
4319 fi
4320 ;;
4321
4322 gnu*)
4323 lt_cv_deplibs_check_method=pass_all
4324 ;;
4325
4326 hpux10.20* | hpux11*)
4327 lt_cv_file_magic_cmd=/usr/bin/file
4328 case $host_cpu in
4329 ia64*)
4330 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4331 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4332 ;;
4333 hppa*64*)
4334 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]'
4335 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4336 ;;
4337 *)
4338 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4339 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4340 ;;
4341 esac
4342 ;;
4343
4344 interix[3-9]*)
4345 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4347 ;;
4348
4349 irix5* | irix6* | nonstopux*)
4350 case $LD in
4351 *-32|*"-32 ") libmagic=32-bit;;
4352 *-n32|*"-n32 ") libmagic=N32;;
4353 *-64|*"-64 ") libmagic=64-bit;;
4354 *) libmagic=never-match;;
4355 esac
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
4358
4359 # This must be Linux ELF.
4360 linux* | k*bsd*-gnu)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363
4364 netbsd* | netbsdelf*-gnu)
4365 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4367 else
4368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4369 fi
4370 ;;
4371
4372 newos6*)
4373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4374 lt_cv_file_magic_cmd=/usr/bin/file
4375 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4376 ;;
4377
4378 nto-qnx*)
4379 lt_cv_deplibs_check_method=unknown
4380 ;;
4381
4382 openbsd*)
4383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4385 else
4386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4387 fi
4388 ;;
4389
4390 osf3* | osf4* | osf5*)
4391 lt_cv_deplibs_check_method=pass_all
4392 ;;
4393
4394 rdos*)
4395 lt_cv_deplibs_check_method=pass_all
4396 ;;
4397
4398 solaris*)
4399 lt_cv_deplibs_check_method=pass_all
4400 ;;
4401
4402 sysv4 | sysv4.3*)
4403 case $host_vendor in
4404 motorola)
4405 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]'
4406 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4407 ;;
4408 ncr)
4409 lt_cv_deplibs_check_method=pass_all
4410 ;;
4411 sequent)
4412 lt_cv_file_magic_cmd='/bin/file'
4413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4414 ;;
4415 sni)
4416 lt_cv_file_magic_cmd='/bin/file'
4417 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4418 lt_cv_file_magic_test_file=/lib/libc.so
4419 ;;
4420 siemens)
4421 lt_cv_deplibs_check_method=pass_all
4422 ;;
4423 pc)
4424 lt_cv_deplibs_check_method=pass_all
4425 ;;
4426 esac
4427 ;;
4428
4429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4430 lt_cv_deplibs_check_method=pass_all
4431 ;;
4432 esac
4433
4434 fi
4435 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4436 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4437 file_magic_cmd=$lt_cv_file_magic_cmd
4438 deplibs_check_method=$lt_cv_deplibs_check_method
4439 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4440
4441
4442
4443
4444 # If no C compiler was specified, use CC.
4445 LTCC=${LTCC-"$CC"}
4446
4447 # If no C compiler flags were specified, use CFLAGS.
4448 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4449
4450 # Allow CC to be a program name with arguments.
4451 compiler=$CC
4452
4453
4454 # Check whether --enable-libtool-lock was given.
4455 if test "${enable_libtool_lock+set}" = set; then
4456 enableval=$enable_libtool_lock;
4457 fi
4458
4459 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4460
4461 # Some flags need to be propagated to the compiler or linker for good
4462 # libtool support.
4463 case $host in
4464 ia64-*-hpux*)
4465 # Find out which ABI we are using.
4466 echo 'int i;' > conftest.$ac_ext
4467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; then
4472 case `/usr/bin/file conftest.$ac_objext` in
4473 *ELF-32*)
4474 HPUX_IA64_MODE="32"
4475 ;;
4476 *ELF-64*)
4477 HPUX_IA64_MODE="64"
4478 ;;
4479 esac
4480 fi
4481 rm -rf conftest*
4482 ;;
4483 *-*-irix6*)
4484 # Find out which ABI we are using.
4485 echo '#line 4485 "configure"' > conftest.$ac_ext
4486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487 (eval $ac_compile) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; then
4491 if test "$lt_cv_prog_gnu_ld" = yes; then
4492 case `/usr/bin/file conftest.$ac_objext` in
4493 *32-bit*)
4494 LD="${LD-ld} -melf32bsmip"
4495 ;;
4496 *N32*)
4497 LD="${LD-ld} -melf32bmipn32"
4498 ;;
4499 *64-bit*)
4500 LD="${LD-ld} -melf64bmip"
4501 ;;
4502 esac
4503 else
4504 case `/usr/bin/file conftest.$ac_objext` in
4505 *32-bit*)
4506 LD="${LD-ld} -32"
4507 ;;
4508 *N32*)
4509 LD="${LD-ld} -n32"
4510 ;;
4511 *64-bit*)
4512 LD="${LD-ld} -64"
4513 ;;
4514 esac
4515 fi
4516 fi
4517 rm -rf conftest*
4518 ;;
4519
4520 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4521 s390*-*linux*|sparc*-*linux*)
4522 # Find out which ABI we are using.
4523 echo 'int i;' > conftest.$ac_ext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 case `/usr/bin/file conftest.o` in
4530 *32-bit*)
4531 case $host in
4532 x86_64-*kfreebsd*-gnu)
4533 LD="${LD-ld} -m elf_i386_fbsd"
4534 ;;
4535 x86_64-*linux*)
4536 LD="${LD-ld} -m elf_i386"
4537 ;;
4538 ppc64-*linux*|powerpc64-*linux*)
4539 LD="${LD-ld} -m elf32ppclinux"
4540 ;;
4541 s390x-*linux*)
4542 LD="${LD-ld} -m elf_s390"
4543 ;;
4544 sparc64-*linux*)
4545 LD="${LD-ld} -m elf32_sparc"
4546 ;;
4547 esac
4548 ;;
4549 *64-bit*)
4550 case $host in
4551 x86_64-*kfreebsd*-gnu)
4552 LD="${LD-ld} -m elf_x86_64_fbsd"
4553 ;;
4554 x86_64-*linux*)
4555 LD="${LD-ld} -m elf_x86_64"
4556 ;;
4557 ppc*-*linux*|powerpc*-*linux*)
4558 LD="${LD-ld} -m elf64ppc"
4559 ;;
4560 s390*-*linux*)
4561 LD="${LD-ld} -m elf64_s390"
4562 ;;
4563 sparc*-*linux*)
4564 LD="${LD-ld} -m elf64_sparc"
4565 ;;
4566 esac
4567 ;;
4568 esac
4569 fi
4570 rm -rf conftest*
4571 ;;
4572
4573 *-*-sco3.2v5*)
4574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4575 SAVE_CFLAGS="$CFLAGS"
4576 CFLAGS="$CFLAGS -belf"
4577 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4578 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4579 if test "${lt_cv_cc_needs_belf+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588 cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h. */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4594
4595 int
4596 main ()
4597 {
4598
4599 ;
4600 return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.$ac_objext conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4605 case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_link") 2>conftest.er1
4611 ac_status=$?
4612 grep -v '^ *+' conftest.er1 >conftest.err
4613 rm -f conftest.er1
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && {
4617 test -z "$ac_c_werror_flag" ||
4618 test ! -s conftest.err
4619 } && test -s conftest$ac_exeext &&
4620 $as_test_x conftest$ac_exeext; then
4621 lt_cv_cc_needs_belf=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 lt_cv_cc_needs_belf=no
4627 fi
4628
4629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4630 conftest$ac_exeext conftest.$ac_ext
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636
4637 fi
4638 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4639 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4642 CFLAGS="$SAVE_CFLAGS"
4643 fi
4644 ;;
4645 sparc*-*solaris*)
4646 # Find out which ABI we are using.
4647 echo 'int i;' > conftest.$ac_ext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4650 ac_status=$?
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }; then
4653 case `/usr/bin/file conftest.o` in
4654 *64-bit*)
4655 case $lt_cv_prog_gnu_ld in
4656 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4657 *)
4658 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4659 LD="${LD-ld} -64"
4660 fi
4661 ;;
4662 esac
4663 ;;
4664 esac
4665 fi
4666 rm -rf conftest*
4667 ;;
4668
4669 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 if test -n "$DLLTOOL"; then
4679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4691 fi
4692 done
4693 done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 DLLTOOL=$ac_cv_prog_DLLTOOL
4699 if test -n "$DLLTOOL"; then
4700 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4701 echo "${ECHO_T}$DLLTOOL" >&6; }
4702 else
4703 { echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6; }
4705 fi
4706
4707
4708 fi
4709 if test -z "$ac_cv_prog_DLLTOOL"; then
4710 ac_ct_DLLTOOL=$DLLTOOL
4711 # Extract the first word of "dlltool", so it can be a program name with args.
4712 set dummy dlltool; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 if test -n "$ac_ct_DLLTOOL"; then
4719 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4731 fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736 fi
4737 fi
4738 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4739 if test -n "$ac_ct_DLLTOOL"; then
4740 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4741 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4742 else
4743 { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4745 fi
4746
4747 if test "x$ac_ct_DLLTOOL" = x; then
4748 DLLTOOL="false"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4753 whose name does not start with the host triplet. If you think this
4754 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
4755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4756 whose name does not start with the host triplet. If you think this
4757 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
4758 ac_tool_warned=yes ;;
4759 esac
4760 DLLTOOL=$ac_ct_DLLTOOL
4761 fi
4762 else
4763 DLLTOOL="$ac_cv_prog_DLLTOOL"
4764 fi
4765
4766 if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4768 set dummy ${ac_tool_prefix}as; ac_word=$2
4769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771 if test "${ac_cv_prog_AS+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774 if test -n "$AS"; then
4775 ac_cv_prog_AS="$AS" # Let the user override the test.
4776 else
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH
4779 do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_AS="${ac_tool_prefix}as"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788 done
4789 done
4790 IFS=$as_save_IFS
4791
4792 fi
4793 fi
4794 AS=$ac_cv_prog_AS
4795 if test -n "$AS"; then
4796 { echo "$as_me:$LINENO: result: $AS" >&5
4797 echo "${ECHO_T}$AS" >&6; }
4798 else
4799 { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803
4804 fi
4805 if test -z "$ac_cv_prog_AS"; then
4806 ac_ct_AS=$AS
4807 # Extract the first word of "as", so it can be a program name with args.
4808 set dummy as; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 if test -n "$ac_ct_AS"; then
4815 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_ac_ct_AS="as"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830 IFS=$as_save_IFS
4831
4832 fi
4833 fi
4834 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4835 if test -n "$ac_ct_AS"; then
4836 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4837 echo "${ECHO_T}$ac_ct_AS" >&6; }
4838 else
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4841 fi
4842
4843 if test "x$ac_ct_AS" = x; then
4844 AS="false"
4845 else
4846 case $cross_compiling:$ac_tool_warned in
4847 yes:)
4848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4849 whose name does not start with the host triplet. If you think this
4850 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
4851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4852 whose name does not start with the host triplet. If you think this
4853 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
4854 ac_tool_warned=yes ;;
4855 esac
4856 AS=$ac_ct_AS
4857 fi
4858 else
4859 AS="$ac_cv_prog_AS"
4860 fi
4861
4862 if test -n "$ac_tool_prefix"; then
4863 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4864 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 if test -n "$OBJDUMP"; then
4871 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 OBJDUMP=$ac_cv_prog_OBJDUMP
4891 if test -n "$OBJDUMP"; then
4892 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4893 echo "${ECHO_T}$OBJDUMP" >&6; }
4894 else
4895 { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4897 fi
4898
4899
4900 fi
4901 if test -z "$ac_cv_prog_OBJDUMP"; then
4902 ac_ct_OBJDUMP=$OBJDUMP
4903 # Extract the first word of "objdump", so it can be a program name with args.
4904 set dummy objdump; ac_word=$2
4905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4907 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910 if test -n "$ac_ct_OBJDUMP"; then
4911 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4931 if test -n "$ac_ct_OBJDUMP"; then
4932 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4933 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4934 else
4935 { echo "$as_me:$LINENO: result: no" >&5
4936 echo "${ECHO_T}no" >&6; }
4937 fi
4938
4939 if test "x$ac_ct_OBJDUMP" = x; then
4940 OBJDUMP="false"
4941 else
4942 case $cross_compiling:$ac_tool_warned in
4943 yes:)
4944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet. If you think this
4946 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
4947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4948 whose name does not start with the host triplet. If you think this
4949 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
4950 ac_tool_warned=yes ;;
4951 esac
4952 OBJDUMP=$ac_ct_OBJDUMP
4953 fi
4954 else
4955 OBJDUMP="$ac_cv_prog_OBJDUMP"
4956 fi
4957
4958 ;;
4959
4960 esac
4961
4962 need_locks="$enable_libtool_lock"
4963
4964
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4971 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4972 # On Suns, sometimes $CPP names a directory.
4973 if test -n "$CPP" && test -d "$CPP"; then
4974 CPP=
4975 fi
4976 if test -z "$CPP"; then
4977 if test "${ac_cv_prog_CPP+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 # Double quotes because CPP needs to be expanded
4981 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4982 do
4983 ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4985 do
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 #ifdef __STDC__
4999 # include <limits.h>
5000 #else
5001 # include <assert.h>
5002 #endif
5003 Syntax error
5004 _ACEOF
5005 if { (ac_try="$ac_cpp conftest.$ac_ext"
5006 case "(($ac_try" in
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5012 ac_status=$?
5013 grep -v '^ *+' conftest.er1 >conftest.err
5014 rm -f conftest.er1
5015 cat conftest.err >&5
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); } >/dev/null && {
5018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5019 test ! -s conftest.err
5020 }; then
5021 :
5022 else
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 # Broken: fails on valid input.
5027 continue
5028 fi
5029
5030 rm -f conftest.err conftest.$ac_ext
5031
5032 # OK, works on sane cases. Now check whether nonexistent headers
5033 # can be detected and how.
5034 cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <ac_nonexistent.h>
5041 _ACEOF
5042 if { (ac_try="$ac_cpp conftest.$ac_ext"
5043 case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } >/dev/null && {
5055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 }; then
5058 # Broken: success on invalid input.
5059 continue
5060 else
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064 # Passes both tests.
5065 ac_preproc_ok=:
5066 break
5067 fi
5068
5069 rm -f conftest.err conftest.$ac_ext
5070
5071 done
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5075 break
5076 fi
5077
5078 done
5079 ac_cv_prog_CPP=$CPP
5080
5081 fi
5082 CPP=$ac_cv_prog_CPP
5083 else
5084 ac_cv_prog_CPP=$CPP
5085 fi
5086 { echo "$as_me:$LINENO: result: $CPP" >&5
5087 echo "${ECHO_T}$CPP" >&6; }
5088 ac_preproc_ok=false
5089 for ac_c_preproc_warn_flag in '' yes
5090 do
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #ifdef __STDC__
5104 # include <limits.h>
5105 #else
5106 # include <assert.h>
5107 #endif
5108 Syntax error
5109 _ACEOF
5110 if { (ac_try="$ac_cpp conftest.$ac_ext"
5111 case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5117 ac_status=$?
5118 grep -v '^ *+' conftest.er1 >conftest.err
5119 rm -f conftest.er1
5120 cat conftest.err >&5
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } >/dev/null && {
5123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5124 test ! -s conftest.err
5125 }; then
5126 :
5127 else
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 # Broken: fails on valid input.
5132 continue
5133 fi
5134
5135 rm -f conftest.err conftest.$ac_ext
5136
5137 # OK, works on sane cases. Now check whether nonexistent headers
5138 # can be detected and how.
5139 cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h. */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h. */
5145 #include <ac_nonexistent.h>
5146 _ACEOF
5147 if { (ac_try="$ac_cpp conftest.$ac_ext"
5148 case "(($ac_try" in
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5154 ac_status=$?
5155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } >/dev/null && {
5160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 }; then
5163 # Broken: success on invalid input.
5164 continue
5165 else
5166 echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5168
5169 # Passes both tests.
5170 ac_preproc_ok=:
5171 break
5172 fi
5173
5174 rm -f conftest.err conftest.$ac_ext
5175
5176 done
5177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5178 rm -f conftest.err conftest.$ac_ext
5179 if $ac_preproc_ok; then
5180 :
5181 else
5182 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5183 See \`config.log' for more details." >&5
5184 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5185 See \`config.log' for more details." >&2;}
5186 { (exit 1); exit 1; }; }
5187 fi
5188
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194
5195
5196 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5197 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5198 if test "${ac_cv_header_stdc+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 cat >conftest.$ac_ext <<_ACEOF
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 #include <stdlib.h>
5208 #include <stdarg.h>
5209 #include <string.h>
5210 #include <float.h>
5211
5212 int
5213 main ()
5214 {
5215
5216 ;
5217 return 0;
5218 }
5219 _ACEOF
5220 rm -f conftest.$ac_objext
5221 if { (ac_try="$ac_compile"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_compile") 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && {
5234 test -z "$ac_c_werror_flag" ||
5235 test ! -s conftest.err
5236 } && test -s conftest.$ac_objext; then
5237 ac_cv_header_stdc=yes
5238 else
5239 echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242 ac_cv_header_stdc=no
5243 fi
5244
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246
5247 if test $ac_cv_header_stdc = yes; then
5248 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 #include <string.h>
5256
5257 _ACEOF
5258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5259 $EGREP "memchr" >/dev/null 2>&1; then
5260 :
5261 else
5262 ac_cv_header_stdc=no
5263 fi
5264 rm -f conftest*
5265
5266 fi
5267
5268 if test $ac_cv_header_stdc = yes; then
5269 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5270 cat >conftest.$ac_ext <<_ACEOF
5271 /* confdefs.h. */
5272 _ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5276 #include <stdlib.h>
5277
5278 _ACEOF
5279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "free" >/dev/null 2>&1; then
5281 :
5282 else
5283 ac_cv_header_stdc=no
5284 fi
5285 rm -f conftest*
5286
5287 fi
5288
5289 if test $ac_cv_header_stdc = yes; then
5290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5291 if test "$cross_compiling" = yes; then
5292 :
5293 else
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ctype.h>
5301 #include <stdlib.h>
5302 #if ((' ' & 0x0FF) == 0x020)
5303 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5304 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5305 #else
5306 # define ISLOWER(c) \
5307 (('a' <= (c) && (c) <= 'i') \
5308 || ('j' <= (c) && (c) <= 'r') \
5309 || ('s' <= (c) && (c) <= 'z'))
5310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5311 #endif
5312
5313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5314 int
5315 main ()
5316 {
5317 int i;
5318 for (i = 0; i < 256; i++)
5319 if (XOR (islower (i), ISLOWER (i))
5320 || toupper (i) != TOUPPER (i))
5321 return 2;
5322 return 0;
5323 }
5324 _ACEOF
5325 rm -f conftest$ac_exeext
5326 if { (ac_try="$ac_link"
5327 case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330 esac
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_link") 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5336 { (case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_try") 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 :
5346 else
5347 echo "$as_me: program exited with status $ac_status" >&5
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5350
5351 ( exit $ac_status )
5352 ac_cv_header_stdc=no
5353 fi
5354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5355 fi
5356
5357
5358 fi
5359 fi
5360 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5361 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5362 if test $ac_cv_header_stdc = yes; then
5363
5364 cat >>confdefs.h <<\_ACEOF
5365 #define STDC_HEADERS 1
5366 _ACEOF
5367
5368 fi
5369
5370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5381 inttypes.h stdint.h unistd.h
5382 do
5383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5396
5397 #include <$ac_header>
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (ac_try="$ac_compile"
5401 case "(($ac_try" in
5402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5404 esac
5405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5406 (eval "$ac_compile") 2>conftest.er1
5407 ac_status=$?
5408 grep -v '^ *+' conftest.er1 >conftest.err
5409 rm -f conftest.er1
5410 cat conftest.err >&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } && {
5413 test -z "$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest.$ac_objext; then
5416 eval "$as_ac_Header=yes"
5417 else
5418 echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5420
5421 eval "$as_ac_Header=no"
5422 fi
5423
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 fi
5426 ac_res=`eval echo '${'$as_ac_Header'}'`
5427 { echo "$as_me:$LINENO: result: $ac_res" >&5
5428 echo "${ECHO_T}$ac_res" >&6; }
5429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5430 cat >>confdefs.h <<_ACEOF
5431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5432 _ACEOF
5433
5434 fi
5435
5436 done
5437
5438
5439
5440 for ac_header in dlfcn.h
5441 do
5442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 fi
5449 ac_res=`eval echo '${'$as_ac_Header'}'`
5450 { echo "$as_me:$LINENO: result: $ac_res" >&5
5451 echo "${ECHO_T}$ac_res" >&6; }
5452 else
5453 # Is the header compilable?
5454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5456 cat >conftest.$ac_ext <<_ACEOF
5457 /* confdefs.h. */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h. */
5462 $ac_includes_default
5463 #include <$ac_header>
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_header_compiler=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_header_compiler=no
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5492 echo "${ECHO_T}$ac_header_compiler" >&6; }
5493
5494 # Is the header present?
5495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 #include <$ac_header>
5504 _ACEOF
5505 if { (ac_try="$ac_cpp conftest.$ac_ext"
5506 case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509 esac
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } >/dev/null && {
5518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 }; then
5521 ac_header_preproc=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 ac_header_preproc=no
5527 fi
5528
5529 rm -f conftest.err conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5531 echo "${ECHO_T}$ac_header_preproc" >&6; }
5532
5533 # So? What about this header?
5534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5535 yes:no: )
5536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5540 ac_header_preproc=yes
5541 ;;
5542 no:yes:* )
5543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5555
5556 ;;
5557 esac
5558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 else
5563 eval "$as_ac_Header=\$ac_header_preproc"
5564 fi
5565 ac_res=`eval echo '${'$as_ac_Header'}'`
5566 { echo "$as_me:$LINENO: result: $ac_res" >&5
5567 echo "${ECHO_T}$ac_res" >&6; }
5568
5569 fi
5570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5571 cat >>confdefs.h <<_ACEOF
5572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5573 _ACEOF
5574
5575 fi
5576
5577 done
5578
5579 ac_ext=cpp
5580 ac_cpp='$CXXCPP $CPPFLAGS'
5581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5584 if test -z "$CXX"; then
5585 if test -n "$CCC"; then
5586 CXX=$CCC
5587 else
5588 if test -n "$ac_tool_prefix"; then
5589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5590 do
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5595 if test "${ac_cv_prog_CXX+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 if test -n "$CXX"; then
5599 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5603 do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5611 fi
5612 done
5613 done
5614 IFS=$as_save_IFS
5615
5616 fi
5617 fi
5618 CXX=$ac_cv_prog_CXX
5619 if test -n "$CXX"; then
5620 { echo "$as_me:$LINENO: result: $CXX" >&5
5621 echo "${ECHO_T}$CXX" >&6; }
5622 else
5623 { echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6; }
5625 fi
5626
5627
5628 test -n "$CXX" && break
5629 done
5630 fi
5631 if test -z "$CXX"; then
5632 ac_ct_CXX=$CXX
5633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5634 do
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5639 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641 else
5642 if test -n "$ac_ct_CXX"; then
5643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5644 else
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 for as_dir in $PATH
5647 do
5648 IFS=$as_save_IFS
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5652 ac_cv_prog_ac_ct_CXX="$ac_prog"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654 break 2
5655 fi
5656 done
5657 done
5658 IFS=$as_save_IFS
5659
5660 fi
5661 fi
5662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5663 if test -n "$ac_ct_CXX"; then
5664 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5665 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5666 else
5667 { echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6; }
5669 fi
5670
5671
5672 test -n "$ac_ct_CXX" && break
5673 done
5674
5675 if test "x$ac_ct_CXX" = x; then
5676 CXX="g++"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5681 whose name does not start with the host triplet. If you think this
5682 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
5683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5684 whose name does not start with the host triplet. If you think this
5685 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
5686 ac_tool_warned=yes ;;
5687 esac
5688 CXX=$ac_ct_CXX
5689 fi
5690 fi
5691
5692 fi
5693 fi
5694 # Provide some information about the compiler.
5695 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5696 ac_compiler=`set X $ac_compile; echo $2`
5697 { (ac_try="$ac_compiler --version >&5"
5698 case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compiler --version >&5") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }
5707 { (ac_try="$ac_compiler -v >&5"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler -v >&5") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5717 { (ac_try="$ac_compiler -V >&5"
5718 case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compiler -V >&5") 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }
5727
5728 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5729 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5730 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739
5740 int
5741 main ()
5742 {
5743 #ifndef __GNUC__
5744 choke me
5745 #endif
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_cxx_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_compiler_gnu=yes
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_compiler_gnu=no
5774 fi
5775
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5778
5779 fi
5780 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5781 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5782 GXX=`test $ac_compiler_gnu = yes && echo yes`
5783 ac_test_CXXFLAGS=${CXXFLAGS+set}
5784 ac_save_CXXFLAGS=$CXXFLAGS
5785 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5786 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5787 if test "${ac_cv_prog_cxx_g+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5791 ac_cxx_werror_flag=yes
5792 ac_cv_prog_cxx_g=no
5793 CXXFLAGS="-g"
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800
5801 int
5802 main ()
5803 {
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (ac_try="$ac_compile"
5811 case "(($ac_try" in
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5814 esac
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_compile") 2>conftest.er1
5817 ac_status=$?
5818 grep -v '^ *+' conftest.er1 >conftest.err
5819 rm -f conftest.er1
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest.$ac_objext; then
5826 ac_cv_prog_cxx_g=yes
5827 else
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 CXXFLAGS=""
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838
5839 int
5840 main ()
5841 {
5842
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_cxx_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest.$ac_objext; then
5864 :
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5870 CXXFLAGS="-g"
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877
5878 int
5879 main ()
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_cxx_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 ac_cv_prog_cxx_g=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908
5909 fi
5910
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912 fi
5913
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5919 fi
5920 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5921 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5922 if test "$ac_test_CXXFLAGS" = set; then
5923 CXXFLAGS=$ac_save_CXXFLAGS
5924 elif test $ac_cv_prog_cxx_g = yes; then
5925 if test "$GXX" = yes; then
5926 CXXFLAGS="-g -O2"
5927 else
5928 CXXFLAGS="-g"
5929 fi
5930 else
5931 if test "$GXX" = yes; then
5932 CXXFLAGS="-O2"
5933 else
5934 CXXFLAGS=
5935 fi
5936 fi
5937 ac_ext=cpp
5938 ac_cpp='$CXXCPP $CPPFLAGS'
5939 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5942
5943 depcc="$CXX" am_compiler_list=
5944
5945 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5946 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5947 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5951 # We make a subdir and do the tests there. Otherwise we can end up
5952 # making bogus files that we don't know about and never remove. For
5953 # instance it was reported that on HP-UX the gcc test will end up
5954 # making a dummy file named `D' -- because `-MD' means `put the output
5955 # in D'.
5956 mkdir conftest.dir
5957 # Copy depcomp to subdir because otherwise we won't find it if we're
5958 # using a relative directory.
5959 cp "$am_depcomp" conftest.dir
5960 cd conftest.dir
5961 # We will build objects and dependencies in a subdirectory because
5962 # it helps to detect inapplicable dependency modes. For instance
5963 # both Tru64's cc and ICC support -MD to output dependencies as a
5964 # side effect of compilation, but ICC will put the dependencies in
5965 # the current directory while Tru64 will put them in the object
5966 # directory.
5967 mkdir sub
5968
5969 am_cv_CXX_dependencies_compiler_type=none
5970 if test "$am_compiler_list" = ""; then
5971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5972 fi
5973 for depmode in $am_compiler_list; do
5974 # Setup a source with many dependencies, because some compilers
5975 # like to wrap large dependency lists on column 80 (with \), and
5976 # we should not choose a depcomp mode which is confused by this.
5977 #
5978 # We need to recreate these files for each test, as the compiler may
5979 # overwrite some of them when testing with obscure command lines.
5980 # This happens at least with the AIX C compiler.
5981 : > sub/conftest.c
5982 for i in 1 2 3 4 5 6; do
5983 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5984 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5985 # Solaris 8's {/usr,}/bin/sh.
5986 touch sub/conftst$i.h
5987 done
5988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5989
5990 case $depmode in
5991 nosideeffect)
5992 # after this tag, mechanisms are not by side-effect, so they'll
5993 # only be used when explicitly requested
5994 if test "x$enable_dependency_tracking" = xyes; then
5995 continue
5996 else
5997 break
5998 fi
5999 ;;
6000 none) break ;;
6001 esac
6002 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6003 # mode. It turns out that the SunPro C++ compiler does not properly
6004 # handle `-M -o', and we need to detect this.
6005 if depmode=$depmode \
6006 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6007 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6008 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6009 >/dev/null 2>conftest.err &&
6010 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6012 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6013 # icc doesn't choke on unknown options, it will just issue warnings
6014 # or remarks (even with -Werror). So we grep stderr for any message
6015 # that says an option was ignored or not supported.
6016 # When given -MP, icc 7.0 and 7.1 complain thusly:
6017 # icc: Command line warning: ignoring option '-M'; no argument required
6018 # The diagnosis changed in icc 8.0:
6019 # icc: Command line remark: option '-MP' not supported
6020 if (grep 'ignoring option' conftest.err ||
6021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6022 am_cv_CXX_dependencies_compiler_type=$depmode
6023 break
6024 fi
6025 fi
6026 done
6027
6028 cd ..
6029 rm -rf conftest.dir
6030 else
6031 am_cv_CXX_dependencies_compiler_type=none
6032 fi
6033
6034 fi
6035 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6036 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6037 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6038
6039
6040
6041 if
6042 test "x$enable_dependency_tracking" != xno \
6043 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6044 am__fastdepCXX_TRUE=
6045 am__fastdepCXX_FALSE='#'
6046 else
6047 am__fastdepCXX_TRUE='#'
6048 am__fastdepCXX_FALSE=
6049 fi
6050
6051
6052
6053
6054 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6055 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6056 (test "X$CXX" != "Xg++"))) ; then
6057 ac_ext=cpp
6058 ac_cpp='$CXXCPP $CPPFLAGS'
6059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6062 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6063 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6064 if test -z "$CXXCPP"; then
6065 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6066 echo $ECHO_N "(cached) $ECHO_C" >&6
6067 else
6068 # Double quotes because CXXCPP needs to be expanded
6069 for CXXCPP in "$CXX -E" "/lib/cpp"
6070 do
6071 ac_preproc_ok=false
6072 for ac_cxx_preproc_warn_flag in '' yes
6073 do
6074 # Use a header file that comes with gcc, so configuring glibc
6075 # with a fresh cross-compiler works.
6076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6077 # <limits.h> exists even on freestanding compilers.
6078 # On the NeXT, cc -E runs the code through the compiler's parser,
6079 # not just through cpp. "Syntax error" is here to catch this case.
6080 cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h. */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6086 #ifdef __STDC__
6087 # include <limits.h>
6088 #else
6089 # include <assert.h>
6090 #endif
6091 Syntax error
6092 _ACEOF
6093 if { (ac_try="$ac_cpp conftest.$ac_ext"
6094 case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097 esac
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } >/dev/null && {
6106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6107 test ! -s conftest.err
6108 }; then
6109 :
6110 else
6111 echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6113
6114 # Broken: fails on valid input.
6115 continue
6116 fi
6117
6118 rm -f conftest.err conftest.$ac_ext
6119
6120 # OK, works on sane cases. Now check whether nonexistent headers
6121 # can be detected and how.
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <ac_nonexistent.h>
6129 _ACEOF
6130 if { (ac_try="$ac_cpp conftest.$ac_ext"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6137 ac_status=$?
6138 grep -v '^ *+' conftest.er1 >conftest.err
6139 rm -f conftest.er1
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } >/dev/null && {
6143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6144 test ! -s conftest.err
6145 }; then
6146 # Broken: success on invalid input.
6147 continue
6148 else
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152 # Passes both tests.
6153 ac_preproc_ok=:
6154 break
6155 fi
6156
6157 rm -f conftest.err conftest.$ac_ext
6158
6159 done
6160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6161 rm -f conftest.err conftest.$ac_ext
6162 if $ac_preproc_ok; then
6163 break
6164 fi
6165
6166 done
6167 ac_cv_prog_CXXCPP=$CXXCPP
6168
6169 fi
6170 CXXCPP=$ac_cv_prog_CXXCPP
6171 else
6172 ac_cv_prog_CXXCPP=$CXXCPP
6173 fi
6174 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6175 echo "${ECHO_T}$CXXCPP" >&6; }
6176 ac_preproc_ok=false
6177 for ac_cxx_preproc_warn_flag in '' yes
6178 do
6179 # Use a header file that comes with gcc, so configuring glibc
6180 # with a fresh cross-compiler works.
6181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6182 # <limits.h> exists even on freestanding compilers.
6183 # On the NeXT, cc -E runs the code through the compiler's parser,
6184 # not just through cpp. "Syntax error" is here to catch this case.
6185 cat >conftest.$ac_ext <<_ACEOF
6186 /* confdefs.h. */
6187 _ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6191 #ifdef __STDC__
6192 # include <limits.h>
6193 #else
6194 # include <assert.h>
6195 #endif
6196 Syntax error
6197 _ACEOF
6198 if { (ac_try="$ac_cpp conftest.$ac_ext"
6199 case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202 esac
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } >/dev/null && {
6211 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6212 test ! -s conftest.err
6213 }; then
6214 :
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 # Broken: fails on valid input.
6220 continue
6221 fi
6222
6223 rm -f conftest.err conftest.$ac_ext
6224
6225 # OK, works on sane cases. Now check whether nonexistent headers
6226 # can be detected and how.
6227 cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h. */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 #include <ac_nonexistent.h>
6234 _ACEOF
6235 if { (ac_try="$ac_cpp conftest.$ac_ext"
6236 case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239 esac
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } >/dev/null && {
6248 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6249 test ! -s conftest.err
6250 }; then
6251 # Broken: success on invalid input.
6252 continue
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 # Passes both tests.
6258 ac_preproc_ok=:
6259 break
6260 fi
6261
6262 rm -f conftest.err conftest.$ac_ext
6263
6264 done
6265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6266 rm -f conftest.err conftest.$ac_ext
6267 if $ac_preproc_ok; then
6268 :
6269 else
6270 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6271 See \`config.log' for more details." >&5
6272 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6273 See \`config.log' for more details." >&2;}
6274 { (exit 1); exit 1; }; }
6275 fi
6276
6277 ac_ext=cpp
6278 ac_cpp='$CXXCPP $CPPFLAGS'
6279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6282
6283 fi
6284
6285
6286 ac_ext=f
6287 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6288 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6290 if test -n "$ac_tool_prefix"; then
6291 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
6292 do
6293 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6297 if test "${ac_cv_prog_F77+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 if test -n "$F77"; then
6301 ac_cv_prog_F77="$F77" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 F77=$ac_cv_prog_F77
6321 if test -n "$F77"; then
6322 { echo "$as_me:$LINENO: result: $F77" >&5
6323 echo "${ECHO_T}$F77" >&6; }
6324 else
6325 { echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6; }
6327 fi
6328
6329
6330 test -n "$F77" && break
6331 done
6332 fi
6333 if test -z "$F77"; then
6334 ac_ct_F77=$F77
6335 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
6336 do
6337 # Extract the first word of "$ac_prog", so it can be a program name with args.
6338 set dummy $ac_prog; ac_word=$2
6339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6341 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 if test -n "$ac_ct_F77"; then
6345 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6354 ac_cv_prog_ac_ct_F77="$ac_prog"
6355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6365 if test -n "$ac_ct_F77"; then
6366 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6367 echo "${ECHO_T}$ac_ct_F77" >&6; }
6368 else
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6371 fi
6372
6373
6374 test -n "$ac_ct_F77" && break
6375 done
6376
6377 if test "x$ac_ct_F77" = x; then
6378 F77=""
6379 else
6380 case $cross_compiling:$ac_tool_warned in
6381 yes:)
6382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6383 whose name does not start with the host triplet. If you think this
6384 configuration is useful to you, please write to autoconf@gnu.org." >&5
6385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6386 whose name does not start with the host triplet. If you think this
6387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 F77=$ac_ct_F77
6391 fi
6392 fi
6393
6394
6395 # Provide some information about the compiler.
6396 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6397 ac_compiler=`set X $ac_compile; echo $2`
6398 { (ac_try="$ac_compiler --version >&5"
6399 case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_compiler --version >&5") 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }
6408 { (ac_try="$ac_compiler -v >&5"
6409 case "(($ac_try" in
6410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411 *) ac_try_echo=$ac_try;;
6412 esac
6413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6414 (eval "$ac_compiler -v >&5") 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }
6418 { (ac_try="$ac_compiler -V >&5"
6419 case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compiler -V >&5") 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }
6428 rm -f a.out
6429
6430 # If we don't use `.F' as extension, the preprocessor is not run on the
6431 # input file. (Note that this only needs to work for GNU compilers.)
6432 ac_save_ext=$ac_ext
6433 ac_ext=F
6434 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6435 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6436 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 else
6439 cat >conftest.$ac_ext <<_ACEOF
6440 program main
6441 #ifndef __GNUC__
6442 choke me
6443 #endif
6444
6445 end
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_compile") 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_f77_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest.$ac_objext; then
6464 ac_compiler_gnu=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 ac_compiler_gnu=no
6470 fi
6471
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6474
6475 fi
6476 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6477 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6478 ac_ext=$ac_save_ext
6479 ac_test_FFLAGS=${FFLAGS+set}
6480 ac_save_FFLAGS=$FFLAGS
6481 FFLAGS=
6482 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6483 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6484 if test "${ac_cv_prog_f77_g+set}" = set; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 FFLAGS=-g
6488 cat >conftest.$ac_ext <<_ACEOF
6489 program main
6490
6491 end
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_f77_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_cv_prog_f77_g=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_cv_prog_f77_g=no
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519
6520 fi
6521 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6522 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6523 if test "$ac_test_FFLAGS" = set; then
6524 FFLAGS=$ac_save_FFLAGS
6525 elif test $ac_cv_prog_f77_g = yes; then
6526 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6527 FFLAGS="-g -O2"
6528 else
6529 FFLAGS="-g"
6530 fi
6531 else
6532 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6533 FFLAGS="-O2"
6534 else
6535 FFLAGS=
6536 fi
6537 fi
6538
6539 G77=`test $ac_compiler_gnu = yes && echo yes`
6540 ac_ext=c
6541 ac_cpp='$CPP $CPPFLAGS'
6542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6545
6546
6547
6548 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6549 # find the maximum length of command line arguments
6550 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6551 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6552 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555 i=0
6556 teststring="ABCD"
6557
6558 case $build_os in
6559 msdosdjgpp*)
6560 # On DJGPP, this test can blow up pretty badly due to problems in libc
6561 # (any single argument exceeding 2000 bytes causes a buffer overrun
6562 # during glob expansion). Even if it were fixed, the result of this
6563 # check would be larger than it should be.
6564 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6565 ;;
6566
6567 gnu*)
6568 # Under GNU Hurd, this test is not required because there is
6569 # no limit to the length of command line arguments.
6570 # Libtool will interpret -1 as no limit whatsoever
6571 lt_cv_sys_max_cmd_len=-1;
6572 ;;
6573
6574 cygwin* | mingw*)
6575 # On Win9x/ME, this test blows up -- it succeeds, but takes
6576 # about 5 minutes as the teststring grows exponentially.
6577 # Worse, since 9x/ME are not pre-emptively multitasking,
6578 # you end up with a "frozen" computer, even though with patience
6579 # the test eventually succeeds (with a max line length of 256k).
6580 # Instead, let's just punt: use the minimum linelength reported by
6581 # all of the supported platforms: 8192 (on NT/2K/XP).
6582 lt_cv_sys_max_cmd_len=8192;
6583 ;;
6584
6585 amigaos*)
6586 # On AmigaOS with pdksh, this test takes hours, literally.
6587 # So we just punt and use a minimum line length of 8192.
6588 lt_cv_sys_max_cmd_len=8192;
6589 ;;
6590
6591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6592 # This has been around since 386BSD, at least. Likely further.
6593 if test -x /sbin/sysctl; then
6594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6595 elif test -x /usr/sbin/sysctl; then
6596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6597 else
6598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6599 fi
6600 # And add a safety zone
6601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6603 ;;
6604
6605 interix*)
6606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6607 lt_cv_sys_max_cmd_len=196608
6608 ;;
6609
6610 osf*)
6611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6613 # nice to cause kernel panics so lets avoid the loop below.
6614 # First set a reasonable default.
6615 lt_cv_sys_max_cmd_len=16384
6616 #
6617 if test -x /sbin/sysconfig; then
6618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6619 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6620 esac
6621 fi
6622 ;;
6623 sco3.2v5*)
6624 lt_cv_sys_max_cmd_len=102400
6625 ;;
6626 sysv5* | sco5v6* | sysv4.2uw2*)
6627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6628 if test -n "$kargmax"; then
6629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6630 else
6631 lt_cv_sys_max_cmd_len=32768
6632 fi
6633 ;;
6634 *)
6635 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6636 if test -n "$lt_cv_sys_max_cmd_len"; then
6637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6639 else
6640 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6641 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6642 = "XX$teststring") >/dev/null 2>&1 &&
6643 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6644 lt_cv_sys_max_cmd_len=$new_result &&
6645 test $i != 17 # 1/2 MB should be enough
6646 do
6647 i=`expr $i + 1`
6648 teststring=$teststring$teststring
6649 done
6650 teststring=
6651 # Add a significant safety factor because C++ compilers can tack on massive
6652 # amounts of additional arguments before passing them to the linker.
6653 # It appears as though 1/2 is a usable value.
6654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6655 fi
6656 ;;
6657 esac
6658
6659 fi
6660
6661 if test -n $lt_cv_sys_max_cmd_len ; then
6662 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6663 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6664 else
6665 { echo "$as_me:$LINENO: result: none" >&5
6666 echo "${ECHO_T}none" >&6; }
6667 fi
6668
6669
6670
6671
6672
6673 # Check for command to grab the raw symbol name followed by C symbol from nm.
6674 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6675 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6676 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6677 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 else
6679
6680 # These are sane defaults that work on at least a few old systems.
6681 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6682
6683 # Character class describing NM global symbol codes.
6684 symcode='[BCDEGRST]'
6685
6686 # Regexp to match symbols that can be accessed directly from C.
6687 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6688
6689 # Transform an extracted symbol line into a proper C declaration
6690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6691
6692 # Transform an extracted symbol line into symbol name and symbol address
6693 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'"
6694
6695 # Define system-specific variables.
6696 case $host_os in
6697 aix*)
6698 symcode='[BCDT]'
6699 ;;
6700 cygwin* | mingw* | pw32*)
6701 symcode='[ABCDGISTW]'
6702 ;;
6703 hpux*) # Its linker distinguishes data from code symbols
6704 if test "$host_cpu" = ia64; then
6705 symcode='[ABCDEGRST]'
6706 fi
6707 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6708 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'"
6709 ;;
6710 linux* | k*bsd*-gnu)
6711 if test "$host_cpu" = ia64; then
6712 symcode='[ABCDGIRSTW]'
6713 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6714 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'"
6715 fi
6716 ;;
6717 irix* | nonstopux*)
6718 symcode='[BCDEGRST]'
6719 ;;
6720 osf*)
6721 symcode='[BCDEGQRST]'
6722 ;;
6723 solaris*)
6724 symcode='[BDRT]'
6725 ;;
6726 sco3.2v5*)
6727 symcode='[DT]'
6728 ;;
6729 sysv4.2uw2*)
6730 symcode='[DT]'
6731 ;;
6732 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6733 symcode='[ABDT]'
6734 ;;
6735 sysv4)
6736 symcode='[DFNSTU]'
6737 ;;
6738 esac
6739
6740 # Handle CRLF in mingw tool chain
6741 opt_cr=
6742 case $build_os in
6743 mingw*)
6744 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6745 ;;
6746 esac
6747
6748 # If we're using GNU nm, then use its standard symbol codes.
6749 case `$NM -V 2>&1` in
6750 *GNU* | *'with BFD'*)
6751 symcode='[ABCDGIRSTW]' ;;
6752 esac
6753
6754 # Try without a prefix undercore, then with it.
6755 for ac_symprfx in "" "_"; do
6756
6757 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6758 symxfrm="\\1 $ac_symprfx\\2 \\2"
6759
6760 # Write the raw and C identifiers.
6761 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6762
6763 # Check to see that the pipe works correctly.
6764 pipe_works=no
6765
6766 rm -f conftest*
6767 cat > conftest.$ac_ext <<EOF
6768 #ifdef __cplusplus
6769 extern "C" {
6770 #endif
6771 char nm_test_var;
6772 void nm_test_func(){}
6773 #ifdef __cplusplus
6774 }
6775 #endif
6776 int main(){nm_test_var='a';nm_test_func();return(0);}
6777 EOF
6778
6779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6780 (eval $ac_compile) 2>&5
6781 ac_status=$?
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); }; then
6784 # Now try to grab the symbols.
6785 nlist=conftest.nm
6786 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6787 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6788 ac_status=$?
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); } && test -s "$nlist"; then
6791 # Try sorting and uniquifying the output.
6792 if sort "$nlist" | uniq > "$nlist"T; then
6793 mv -f "$nlist"T "$nlist"
6794 else
6795 rm -f "$nlist"T
6796 fi
6797
6798 # Make sure that we snagged all the symbols we need.
6799 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6800 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6801 cat <<EOF > conftest.$ac_ext
6802 #ifdef __cplusplus
6803 extern "C" {
6804 #endif
6805
6806 EOF
6807 # Now generate the symbol file.
6808 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6809
6810 cat <<EOF >> conftest.$ac_ext
6811 #if defined (__STDC__) && __STDC__
6812 # define lt_ptr_t void *
6813 #else
6814 # define lt_ptr_t char *
6815 # define const
6816 #endif
6817
6818 /* The mapping between symbol names and symbols. */
6819 const struct {
6820 const char *name;
6821 lt_ptr_t address;
6822 }
6823 lt_preloaded_symbols[] =
6824 {
6825 EOF
6826 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6827 cat <<\EOF >> conftest.$ac_ext
6828 {0, (lt_ptr_t) 0}
6829 };
6830
6831 #ifdef __cplusplus
6832 }
6833 #endif
6834 EOF
6835 # Now try linking the two files.
6836 mv conftest.$ac_objext conftstm.$ac_objext
6837 lt_save_LIBS="$LIBS"
6838 lt_save_CFLAGS="$CFLAGS"
6839 LIBS="conftstm.$ac_objext"
6840 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6842 (eval $ac_link) 2>&5
6843 ac_status=$?
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6846 pipe_works=yes
6847 fi
6848 LIBS="$lt_save_LIBS"
6849 CFLAGS="$lt_save_CFLAGS"
6850 else
6851 echo "cannot find nm_test_func in $nlist" >&5
6852 fi
6853 else
6854 echo "cannot find nm_test_var in $nlist" >&5
6855 fi
6856 else
6857 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6858 fi
6859 else
6860 echo "$progname: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6862 fi
6863 rm -rf conftest* conftst*
6864
6865 # Do not use the global_symbol_pipe unless it works.
6866 if test "$pipe_works" = yes; then
6867 break
6868 else
6869 lt_cv_sys_global_symbol_pipe=
6870 fi
6871 done
6872
6873 fi
6874
6875 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6876 lt_cv_sys_global_symbol_to_cdecl=
6877 fi
6878 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6879 { echo "$as_me:$LINENO: result: failed" >&5
6880 echo "${ECHO_T}failed" >&6; }
6881 else
6882 { echo "$as_me:$LINENO: result: ok" >&5
6883 echo "${ECHO_T}ok" >&6; }
6884 fi
6885
6886 { echo "$as_me:$LINENO: checking for objdir" >&5
6887 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6888 if test "${lt_cv_objdir+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 rm -f .libs 2>/dev/null
6892 mkdir .libs 2>/dev/null
6893 if test -d .libs; then
6894 lt_cv_objdir=.libs
6895 else
6896 # MS-DOS does not allow filenames that begin with a dot.
6897 lt_cv_objdir=_libs
6898 fi
6899 rmdir .libs 2>/dev/null
6900 fi
6901 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6902 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6903 objdir=$lt_cv_objdir
6904
6905
6906
6907
6908
6909 case $host_os in
6910 aix3*)
6911 # AIX sometimes has problems with the GCC collect2 program. For some
6912 # reason, if we set the COLLECT_NAMES environment variable, the problems
6913 # vanish in a puff of smoke.
6914 if test "X${COLLECT_NAMES+set}" != Xset; then
6915 COLLECT_NAMES=
6916 export COLLECT_NAMES
6917 fi
6918 ;;
6919 esac
6920
6921 # Sed substitution that helps us do robust quoting. It backslashifies
6922 # metacharacters that are still active within double-quoted strings.
6923 Xsed='sed -e 1s/^X//'
6924 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6925
6926 # Same as above, but do not quote variable references.
6927 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6928
6929 # Sed substitution to delay expansion of an escaped shell variable in a
6930 # double_quote_subst'ed string.
6931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6932
6933 # Sed substitution to avoid accidental globbing in evaled expressions
6934 no_glob_subst='s/\*/\\\*/g'
6935
6936 # Constants:
6937 rm="rm -f"
6938
6939 # Global variables:
6940 default_ofile=libtool
6941 can_build_shared=yes
6942
6943 # All known linkers require a `.a' archive for static linking (except MSVC,
6944 # which needs '.lib').
6945 libext=a
6946 ltmain="$ac_aux_dir/ltmain.sh"
6947 ofile="$default_ofile"
6948 with_gnu_ld="$lt_cv_prog_gnu_ld"
6949
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}ar; ac_word=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_prog_AR+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958 if test -n "$AR"; then
6959 ac_cv_prog_AR="$AR" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968 ac_cv_prog_AR="${ac_tool_prefix}ar"
6969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 break 2
6971 fi
6972 done
6973 done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 AR=$ac_cv_prog_AR
6979 if test -n "$AR"; then
6980 { echo "$as_me:$LINENO: result: $AR" >&5
6981 echo "${ECHO_T}$AR" >&6; }
6982 else
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6985 fi
6986
6987
6988 fi
6989 if test -z "$ac_cv_prog_AR"; then
6990 ac_ct_AR=$AR
6991 # Extract the first word of "ar", so it can be a program name with args.
6992 set dummy ar; ac_word=$2
6993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6995 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 else
6998 if test -n "$ac_ct_AR"; then
6999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7000 else
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002 for as_dir in $PATH
7003 do
7004 IFS=$as_save_IFS
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_prog_ac_ct_AR="ar"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 break 2
7011 fi
7012 done
7013 done
7014 IFS=$as_save_IFS
7015
7016 fi
7017 fi
7018 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7019 if test -n "$ac_ct_AR"; then
7020 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7021 echo "${ECHO_T}$ac_ct_AR" >&6; }
7022 else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6; }
7025 fi
7026
7027 if test "x$ac_ct_AR" = x; then
7028 AR="false"
7029 else
7030 case $cross_compiling:$ac_tool_warned in
7031 yes:)
7032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7033 whose name does not start with the host triplet. If you think this
7034 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7036 whose name does not start with the host triplet. If you think this
7037 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040 AR=$ac_ct_AR
7041 fi
7042 else
7043 AR="$ac_cv_prog_AR"
7044 fi
7045
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_prog_RANLIB+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 if test -n "$RANLIB"; then
7055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7056 else
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 for as_dir in $PATH
7059 do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068 done
7069 done
7070 IFS=$as_save_IFS
7071
7072 fi
7073 fi
7074 RANLIB=$ac_cv_prog_RANLIB
7075 if test -n "$RANLIB"; then
7076 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7077 echo "${ECHO_T}$RANLIB" >&6; }
7078 else
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7081 fi
7082
7083
7084 fi
7085 if test -z "$ac_cv_prog_RANLIB"; then
7086 ac_ct_RANLIB=$RANLIB
7087 # Extract the first word of "ranlib", so it can be a program name with args.
7088 set dummy ranlib; ac_word=$2
7089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 if test -n "$ac_ct_RANLIB"; then
7095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_prog_ac_ct_RANLIB="ranlib"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7115 if test -n "$ac_ct_RANLIB"; then
7116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7117 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7118 else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120 echo "${ECHO_T}no" >&6; }
7121 fi
7122
7123 if test "x$ac_ct_RANLIB" = x; then
7124 RANLIB=":"
7125 else
7126 case $cross_compiling:$ac_tool_warned in
7127 yes:)
7128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7129 whose name does not start with the host triplet. If you think this
7130 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7132 whose name does not start with the host triplet. If you think this
7133 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7134 ac_tool_warned=yes ;;
7135 esac
7136 RANLIB=$ac_ct_RANLIB
7137 fi
7138 else
7139 RANLIB="$ac_cv_prog_RANLIB"
7140 fi
7141
7142 if test -n "$ac_tool_prefix"; then
7143 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7144 set dummy ${ac_tool_prefix}strip; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_prog_STRIP+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 if test -n "$STRIP"; then
7151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 STRIP=$ac_cv_prog_STRIP
7171 if test -n "$STRIP"; then
7172 { echo "$as_me:$LINENO: result: $STRIP" >&5
7173 echo "${ECHO_T}$STRIP" >&6; }
7174 else
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7177 fi
7178
7179
7180 fi
7181 if test -z "$ac_cv_prog_STRIP"; then
7182 ac_ct_STRIP=$STRIP
7183 # Extract the first word of "strip", so it can be a program name with args.
7184 set dummy strip; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190 if test -n "$ac_ct_STRIP"; then
7191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7192 else
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194 for as_dir in $PATH
7195 do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_prog_ac_ct_STRIP="strip"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204 done
7205 done
7206 IFS=$as_save_IFS
7207
7208 fi
7209 fi
7210 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7211 if test -n "$ac_ct_STRIP"; then
7212 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7213 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7214 else
7215 { echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6; }
7217 fi
7218
7219 if test "x$ac_ct_STRIP" = x; then
7220 STRIP=":"
7221 else
7222 case $cross_compiling:$ac_tool_warned in
7223 yes:)
7224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7225 whose name does not start with the host triplet. If you think this
7226 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7228 whose name does not start with the host triplet. If you think this
7229 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7230 ac_tool_warned=yes ;;
7231 esac
7232 STRIP=$ac_ct_STRIP
7233 fi
7234 else
7235 STRIP="$ac_cv_prog_STRIP"
7236 fi
7237
7238
7239 old_CC="$CC"
7240 old_CFLAGS="$CFLAGS"
7241
7242 # Set sane defaults for various variables
7243 test -z "$AR" && AR=ar
7244 test -z "$AR_FLAGS" && AR_FLAGS=cru
7245 test -z "$AS" && AS=as
7246 test -z "$CC" && CC=cc
7247 test -z "$LTCC" && LTCC=$CC
7248 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7249 test -z "$DLLTOOL" && DLLTOOL=dlltool
7250 test -z "$LD" && LD=ld
7251 test -z "$LN_S" && LN_S="ln -s"
7252 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7253 test -z "$NM" && NM=nm
7254 test -z "$SED" && SED=sed
7255 test -z "$OBJDUMP" && OBJDUMP=objdump
7256 test -z "$RANLIB" && RANLIB=:
7257 test -z "$STRIP" && STRIP=:
7258 test -z "$ac_objext" && ac_objext=o
7259
7260 # Determine commands to create old-style static archives.
7261 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7262 old_postinstall_cmds='chmod 644 $oldlib'
7263 old_postuninstall_cmds=
7264
7265 if test -n "$RANLIB"; then
7266 case $host_os in
7267 openbsd*)
7268 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7269 ;;
7270 *)
7271 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7272 ;;
7273 esac
7274 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7275 fi
7276
7277 for cc_temp in $compiler""; do
7278 case $cc_temp in
7279 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7280 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7281 \-*) ;;
7282 *) break;;
7283 esac
7284 done
7285 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7286
7287
7288 # Only perform the check for file, if the check method requires it
7289 case $deplibs_check_method in
7290 file_magic*)
7291 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7292 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7293 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7294 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 case $MAGIC_CMD in
7298 [\\/*] | ?:[\\/]*)
7299 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7300 ;;
7301 *)
7302 lt_save_MAGIC_CMD="$MAGIC_CMD"
7303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7305 for ac_dir in $ac_dummy; do
7306 IFS="$lt_save_ifs"
7307 test -z "$ac_dir" && ac_dir=.
7308 if test -f $ac_dir/${ac_tool_prefix}file; then
7309 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7310 if test -n "$file_magic_test_file"; then
7311 case $deplibs_check_method in
7312 "file_magic "*)
7313 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7315 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7316 $EGREP "$file_magic_regex" > /dev/null; then
7317 :
7318 else
7319 cat <<EOF 1>&2
7320
7321 *** Warning: the command libtool uses to detect shared libraries,
7322 *** $file_magic_cmd, produces output that libtool cannot recognize.
7323 *** The result is that libtool may fail to recognize shared libraries
7324 *** as such. This will affect the creation of libtool libraries that
7325 *** depend on shared libraries, but programs linked with such libtool
7326 *** libraries will work regardless of this problem. Nevertheless, you
7327 *** may want to report the problem to your system manager and/or to
7328 *** bug-libtool@gnu.org
7329
7330 EOF
7331 fi ;;
7332 esac
7333 fi
7334 break
7335 fi
7336 done
7337 IFS="$lt_save_ifs"
7338 MAGIC_CMD="$lt_save_MAGIC_CMD"
7339 ;;
7340 esac
7341 fi
7342
7343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7344 if test -n "$MAGIC_CMD"; then
7345 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7346 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7347 else
7348 { echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6; }
7350 fi
7351
7352 if test -z "$lt_cv_path_MAGIC_CMD"; then
7353 if test -n "$ac_tool_prefix"; then
7354 { echo "$as_me:$LINENO: checking for file" >&5
7355 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7356 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359 case $MAGIC_CMD in
7360 [\\/*] | ?:[\\/]*)
7361 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7362 ;;
7363 *)
7364 lt_save_MAGIC_CMD="$MAGIC_CMD"
7365 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7366 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7367 for ac_dir in $ac_dummy; do
7368 IFS="$lt_save_ifs"
7369 test -z "$ac_dir" && ac_dir=.
7370 if test -f $ac_dir/file; then
7371 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7372 if test -n "$file_magic_test_file"; then
7373 case $deplibs_check_method in
7374 "file_magic "*)
7375 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7376 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7377 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7378 $EGREP "$file_magic_regex" > /dev/null; then
7379 :
7380 else
7381 cat <<EOF 1>&2
7382
7383 *** Warning: the command libtool uses to detect shared libraries,
7384 *** $file_magic_cmd, produces output that libtool cannot recognize.
7385 *** The result is that libtool may fail to recognize shared libraries
7386 *** as such. This will affect the creation of libtool libraries that
7387 *** depend on shared libraries, but programs linked with such libtool
7388 *** libraries will work regardless of this problem. Nevertheless, you
7389 *** may want to report the problem to your system manager and/or to
7390 *** bug-libtool@gnu.org
7391
7392 EOF
7393 fi ;;
7394 esac
7395 fi
7396 break
7397 fi
7398 done
7399 IFS="$lt_save_ifs"
7400 MAGIC_CMD="$lt_save_MAGIC_CMD"
7401 ;;
7402 esac
7403 fi
7404
7405 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406 if test -n "$MAGIC_CMD"; then
7407 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7408 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7409 else
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7412 fi
7413
7414 else
7415 MAGIC_CMD=:
7416 fi
7417 fi
7418
7419 fi
7420 ;;
7421 esac
7422
7423
7424 case $host_os in
7425 rhapsody* | darwin*)
7426 if test -n "$ac_tool_prefix"; then
7427 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7431 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434 if test -n "$DSYMUTIL"; then
7435 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440 IFS=$as_save_IFS
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 break 2
7447 fi
7448 done
7449 done
7450 IFS=$as_save_IFS
7451
7452 fi
7453 fi
7454 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7455 if test -n "$DSYMUTIL"; then
7456 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7457 echo "${ECHO_T}$DSYMUTIL" >&6; }
7458 else
7459 { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7461 fi
7462
7463
7464 fi
7465 if test -z "$ac_cv_prog_DSYMUTIL"; then
7466 ac_ct_DSYMUTIL=$DSYMUTIL
7467 # Extract the first word of "dsymutil", so it can be a program name with args.
7468 set dummy dsymutil; ac_word=$2
7469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7471 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474 if test -n "$ac_ct_DSYMUTIL"; then
7475 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7479 do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7487 fi
7488 done
7489 done
7490 IFS=$as_save_IFS
7491
7492 fi
7493 fi
7494 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7495 if test -n "$ac_ct_DSYMUTIL"; then
7496 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7497 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7498 else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7501 fi
7502
7503 if test "x$ac_ct_DSYMUTIL" = x; then
7504 DSYMUTIL=":"
7505 else
7506 case $cross_compiling:$ac_tool_warned in
7507 yes:)
7508 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7509 whose name does not start with the host triplet. If you think this
7510 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7511 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7512 whose name does not start with the host triplet. If you think this
7513 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7514 ac_tool_warned=yes ;;
7515 esac
7516 DSYMUTIL=$ac_ct_DSYMUTIL
7517 fi
7518 else
7519 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7520 fi
7521
7522 if test -n "$ac_tool_prefix"; then
7523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7524 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 if test -n "$NMEDIT"; then
7531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 break 2
7543 fi
7544 done
7545 done
7546 IFS=$as_save_IFS
7547
7548 fi
7549 fi
7550 NMEDIT=$ac_cv_prog_NMEDIT
7551 if test -n "$NMEDIT"; then
7552 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7553 echo "${ECHO_T}$NMEDIT" >&6; }
7554 else
7555 { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7557 fi
7558
7559
7560 fi
7561 if test -z "$ac_cv_prog_NMEDIT"; then
7562 ac_ct_NMEDIT=$NMEDIT
7563 # Extract the first word of "nmedit", so it can be a program name with args.
7564 set dummy nmedit; ac_word=$2
7565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 if test -n "$ac_ct_NMEDIT"; then
7571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7580 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584 done
7585 done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7591 if test -n "$ac_ct_NMEDIT"; then
7592 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7593 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7594 else
7595 { echo "$as_me:$LINENO: result: no" >&5
7596 echo "${ECHO_T}no" >&6; }
7597 fi
7598
7599 if test "x$ac_ct_NMEDIT" = x; then
7600 NMEDIT=":"
7601 else
7602 case $cross_compiling:$ac_tool_warned in
7603 yes:)
7604 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7605 whose name does not start with the host triplet. If you think this
7606 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
7607 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7608 whose name does not start with the host triplet. If you think this
7609 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 NMEDIT=$ac_ct_NMEDIT
7613 fi
7614 else
7615 NMEDIT="$ac_cv_prog_NMEDIT"
7616 fi
7617
7618
7619 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7620 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7621 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 lt_cv_apple_cc_single_mod=no
7625 if test -z "${LT_MULTI_MODULE}"; then
7626 # By default we will add the -single_module flag. You can override
7627 # by either setting the environment variable LT_MULTI_MODULE
7628 # non-empty at configure time, or by adding -multi_module to the
7629 # link flags.
7630 echo "int foo(void){return 1;}" > conftest.c
7631 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7632 -dynamiclib ${wl}-single_module conftest.c
7633 if test -f libconftest.dylib; then
7634 lt_cv_apple_cc_single_mod=yes
7635 rm -rf libconftest.dylib*
7636 fi
7637 rm conftest.c
7638 fi
7639 fi
7640 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7641 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7642 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7643 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7644 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647 lt_cv_ld_exported_symbols_list=no
7648 save_LDFLAGS=$LDFLAGS
7649 echo "_main" > conftest.sym
7650 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657
7658 int
7659 main ()
7660 {
7661
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext conftest$ac_exeext
7667 if { (ac_try="$ac_link"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_link") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest$ac_exeext &&
7683 $as_test_x conftest$ac_exeext; then
7684 lt_cv_ld_exported_symbols_list=yes
7685 else
7686 echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689 lt_cv_ld_exported_symbols_list=no
7690 fi
7691
7692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7693 conftest$ac_exeext conftest.$ac_ext
7694 LDFLAGS="$save_LDFLAGS"
7695
7696 fi
7697 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7698 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7699 case $host_os in
7700 rhapsody* | darwin1.[0123])
7701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7702 darwin1.*)
7703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7704 darwin*)
7705 # if running on 10.5 or later, the deployment target defaults
7706 # to the OS version, if on x86, and 10.4, the deployment
7707 # target defaults to 10.4. Don't you love it?
7708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7709 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7711 10.[012]*)
7712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7713 10.*)
7714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7715 esac
7716 ;;
7717 esac
7718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7719 _lt_dar_single_mod='$single_module'
7720 fi
7721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7723 else
7724 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7725 fi
7726 if test "$DSYMUTIL" != ":"; then
7727 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7728 else
7729 _lt_dsymutil=
7730 fi
7731 ;;
7732 esac
7733
7734
7735 enable_dlopen=no
7736 enable_win32_dll=yes
7737
7738 # Check whether --enable-libtool-lock was given.
7739 if test "${enable_libtool_lock+set}" = set; then
7740 enableval=$enable_libtool_lock;
7741 fi
7742
7743 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7744
7745
7746 # Check whether --with-pic was given.
7747 if test "${with_pic+set}" = set; then
7748 withval=$with_pic; pic_mode="$withval"
7749 else
7750 pic_mode=default
7751 fi
7752
7753 test -z "$pic_mode" && pic_mode=default
7754
7755 # Use C for the default configuration in the libtool script
7756 tagname=
7757 lt_save_CC="$CC"
7758 ac_ext=c
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763
7764
7765 # Source file extension for C test sources.
7766 ac_ext=c
7767
7768 # Object file extension for compiled C test sources.
7769 objext=o
7770 objext=$objext
7771
7772 # Code to be used in simple compile tests
7773 lt_simple_compile_test_code="int some_variable = 0;"
7774
7775 # Code to be used in simple link tests
7776 lt_simple_link_test_code='int main(){return(0);}'
7777
7778
7779 # If no C compiler was specified, use CC.
7780 LTCC=${LTCC-"$CC"}
7781
7782 # If no C compiler flags were specified, use CFLAGS.
7783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7784
7785 # Allow CC to be a program name with arguments.
7786 compiler=$CC
7787
7788
7789 # save warnings/boilerplate of simple test code
7790 ac_outfile=conftest.$ac_objext
7791 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7792 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7793 _lt_compiler_boilerplate=`cat conftest.err`
7794 $rm conftest*
7795
7796 ac_outfile=conftest.$ac_objext
7797 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7798 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7799 _lt_linker_boilerplate=`cat conftest.err`
7800 $rm -r conftest*
7801
7802
7803
7804 lt_prog_compiler_no_builtin_flag=
7805
7806 if test "$GCC" = yes; then
7807 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7808
7809
7810 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7811 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7812 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815 lt_cv_prog_compiler_rtti_exceptions=no
7816 ac_outfile=conftest.$ac_objext
7817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7818 lt_compiler_flag="-fno-rtti -fno-exceptions"
7819 # Insert the option either (1) after the last *FLAGS variable, or
7820 # (2) before a word containing "conftest.", or (3) at the end.
7821 # Note that $ac_compile itself does not contain backslashes and begins
7822 # with a dollar sign (not a hyphen), so the echo should work correctly.
7823 # The option is referenced via a variable to avoid confusing sed.
7824 lt_compile=`echo "$ac_compile" | $SED \
7825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7827 -e 's:$: $lt_compiler_flag:'`
7828 (eval echo "\"\$as_me:7828: $lt_compile\"" >&5)
7829 (eval "$lt_compile" 2>conftest.err)
7830 ac_status=$?
7831 cat conftest.err >&5
7832 echo "$as_me:7832: \$? = $ac_status" >&5
7833 if (exit $ac_status) && test -s "$ac_outfile"; then
7834 # The compiler can only warn and ignore the option if not recognized
7835 # So say no if there are warnings other than the usual output.
7836 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7838 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7839 lt_cv_prog_compiler_rtti_exceptions=yes
7840 fi
7841 fi
7842 $rm conftest*
7843
7844 fi
7845 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7846 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7847
7848 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7849 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7850 else
7851 :
7852 fi
7853
7854 fi
7855
7856 lt_prog_compiler_wl=
7857 lt_prog_compiler_pic=
7858 lt_prog_compiler_static=
7859
7860 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7861 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7862
7863 if test "$GCC" = yes; then
7864 lt_prog_compiler_wl='-Wl,'
7865 lt_prog_compiler_static='-static'
7866
7867 case $host_os in
7868 aix*)
7869 # All AIX code is PIC.
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 now supports IA64 processor
7872 lt_prog_compiler_static='-Bstatic'
7873 fi
7874 ;;
7875
7876 amigaos*)
7877 # FIXME: we need at least 68020 code to build shared libraries, but
7878 # adding the `-m68020' flag to GCC prevents building anything better,
7879 # like `-m68040'.
7880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7881 ;;
7882
7883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7884 # PIC is the default for these OSes.
7885 ;;
7886
7887 mingw* | cygwin* | pw32* | os2*)
7888 # This hack is so that the source file can tell whether it is being
7889 # built for inclusion in a dll (and should export symbols for example).
7890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7891 # (--disable-auto-import) libraries
7892 lt_prog_compiler_pic='-DDLL_EXPORT'
7893 ;;
7894
7895 darwin* | rhapsody*)
7896 # PIC is the default on this platform
7897 # Common symbols not allowed in MH_DYLIB files
7898 lt_prog_compiler_pic='-fno-common'
7899 ;;
7900
7901 interix[3-9]*)
7902 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7903 # Instead, we relocate shared libraries at runtime.
7904 ;;
7905
7906 msdosdjgpp*)
7907 # Just because we use GCC doesn't mean we suddenly get shared libraries
7908 # on systems that don't support them.
7909 lt_prog_compiler_can_build_shared=no
7910 enable_shared=no
7911 ;;
7912
7913 sysv4*MP*)
7914 if test -d /usr/nec; then
7915 lt_prog_compiler_pic=-Kconform_pic
7916 fi
7917 ;;
7918
7919 hpux*)
7920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7921 # not for PA HP-UX.
7922 case $host_cpu in
7923 hppa*64*|ia64*)
7924 # +Z the default
7925 ;;
7926 *)
7927 lt_prog_compiler_pic='-fPIC'
7928 ;;
7929 esac
7930 ;;
7931
7932 *)
7933 lt_prog_compiler_pic='-fPIC'
7934 ;;
7935 esac
7936 else
7937 # PORTME Check for flag to pass linker flags through the system compiler.
7938 case $host_os in
7939 aix*)
7940 lt_prog_compiler_wl='-Wl,'
7941 if test "$host_cpu" = ia64; then
7942 # AIX 5 now supports IA64 processor
7943 lt_prog_compiler_static='-Bstatic'
7944 else
7945 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7946 fi
7947 ;;
7948 darwin*)
7949 # PIC is the default on this platform
7950 # Common symbols not allowed in MH_DYLIB files
7951 case $cc_basename in
7952 xlc*)
7953 lt_prog_compiler_pic='-qnocommon'
7954 lt_prog_compiler_wl='-Wl,'
7955 ;;
7956 esac
7957 ;;
7958
7959 mingw* | cygwin* | pw32* | os2*)
7960 # This hack is so that the source file can tell whether it is being
7961 # built for inclusion in a dll (and should export symbols for example).
7962 lt_prog_compiler_pic='-DDLL_EXPORT'
7963 ;;
7964
7965 hpux9* | hpux10* | hpux11*)
7966 lt_prog_compiler_wl='-Wl,'
7967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7968 # not for PA HP-UX.
7969 case $host_cpu in
7970 hppa*64*|ia64*)
7971 # +Z the default
7972 ;;
7973 *)
7974 lt_prog_compiler_pic='+Z'
7975 ;;
7976 esac
7977 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7978 lt_prog_compiler_static='${wl}-a ${wl}archive'
7979 ;;
7980
7981 irix5* | irix6* | nonstopux*)
7982 lt_prog_compiler_wl='-Wl,'
7983 # PIC (with -KPIC) is the default.
7984 lt_prog_compiler_static='-non_shared'
7985 ;;
7986
7987 newsos6)
7988 lt_prog_compiler_pic='-KPIC'
7989 lt_prog_compiler_static='-Bstatic'
7990 ;;
7991
7992 linux* | k*bsd*-gnu)
7993 case $cc_basename in
7994 icc* | ecc*)
7995 lt_prog_compiler_wl='-Wl,'
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-static'
7998 ;;
7999 pgcc* | pgf77* | pgf90* | pgf95*)
8000 # Portland Group compilers (*not* the Pentium gcc compiler,
8001 # which looks to be a dead project)
8002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-fpic'
8004 lt_prog_compiler_static='-Bstatic'
8005 ;;
8006 ccc*)
8007 lt_prog_compiler_wl='-Wl,'
8008 # All Alpha code is PIC.
8009 lt_prog_compiler_static='-non_shared'
8010 ;;
8011 *)
8012 case `$CC -V 2>&1 | sed 5q` in
8013 *Sun\ C*)
8014 # Sun C 5.9
8015 lt_prog_compiler_pic='-KPIC'
8016 lt_prog_compiler_static='-Bstatic'
8017 lt_prog_compiler_wl='-Wl,'
8018 ;;
8019 *Sun\ F*)
8020 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8021 lt_prog_compiler_pic='-KPIC'
8022 lt_prog_compiler_static='-Bstatic'
8023 lt_prog_compiler_wl=''
8024 ;;
8025 esac
8026 ;;
8027 esac
8028 ;;
8029
8030 osf3* | osf4* | osf5*)
8031 lt_prog_compiler_wl='-Wl,'
8032 # All OSF/1 code is PIC.
8033 lt_prog_compiler_static='-non_shared'
8034 ;;
8035
8036 rdos*)
8037 lt_prog_compiler_static='-non_shared'
8038 ;;
8039
8040 solaris*)
8041 lt_prog_compiler_pic='-KPIC'
8042 lt_prog_compiler_static='-Bstatic'
8043 case $cc_basename in
8044 f77* | f90* | f95*)
8045 lt_prog_compiler_wl='-Qoption ld ';;
8046 *)
8047 lt_prog_compiler_wl='-Wl,';;
8048 esac
8049 ;;
8050
8051 sunos4*)
8052 lt_prog_compiler_wl='-Qoption ld '
8053 lt_prog_compiler_pic='-PIC'
8054 lt_prog_compiler_static='-Bstatic'
8055 ;;
8056
8057 sysv4 | sysv4.2uw2* | sysv4.3*)
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_pic='-KPIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
8063 sysv4*MP*)
8064 if test -d /usr/nec ;then
8065 lt_prog_compiler_pic='-Kconform_pic'
8066 lt_prog_compiler_static='-Bstatic'
8067 fi
8068 ;;
8069
8070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8071 lt_prog_compiler_wl='-Wl,'
8072 lt_prog_compiler_pic='-KPIC'
8073 lt_prog_compiler_static='-Bstatic'
8074 ;;
8075
8076 unicos*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_can_build_shared=no
8079 ;;
8080
8081 uts4*)
8082 lt_prog_compiler_pic='-pic'
8083 lt_prog_compiler_static='-Bstatic'
8084 ;;
8085
8086 *)
8087 lt_prog_compiler_can_build_shared=no
8088 ;;
8089 esac
8090 fi
8091
8092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8093 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8094
8095 #
8096 # Check to make sure the PIC flag actually works.
8097 #
8098 if test -n "$lt_prog_compiler_pic"; then
8099
8100 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8101 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8102 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 else
8105 lt_cv_prog_compiler_pic_works=no
8106 ac_outfile=conftest.$ac_objext
8107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8109 # Insert the option either (1) after the last *FLAGS variable, or
8110 # (2) before a word containing "conftest.", or (3) at the end.
8111 # Note that $ac_compile itself does not contain backslashes and begins
8112 # with a dollar sign (not a hyphen), so the echo should work correctly.
8113 # The option is referenced via a variable to avoid confusing sed.
8114 lt_compile=`echo "$ac_compile" | $SED \
8115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8117 -e 's:$: $lt_compiler_flag:'`
8118 (eval echo "\"\$as_me:8118: $lt_compile\"" >&5)
8119 (eval "$lt_compile" 2>conftest.err)
8120 ac_status=$?
8121 cat conftest.err >&5
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 if (exit $ac_status) && test -s "$ac_outfile"; then
8124 # The compiler can only warn and ignore the option if not recognized
8125 # So say no if there are warnings other than the usual output.
8126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8129 lt_cv_prog_compiler_pic_works=yes
8130 fi
8131 fi
8132 $rm conftest*
8133
8134 fi
8135 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8136 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8137
8138 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8139 case $lt_prog_compiler_pic in
8140 "" | " "*) ;;
8141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8142 esac
8143 else
8144 lt_prog_compiler_pic=
8145 lt_prog_compiler_can_build_shared=no
8146 fi
8147
8148 fi
8149 case $host_os in
8150 # For platforms which do not support PIC, -DPIC is meaningless:
8151 *djgpp*)
8152 lt_prog_compiler_pic=
8153 ;;
8154 *)
8155 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8156 ;;
8157 esac
8158
8159 #
8160 # Check to make sure the static flag actually works.
8161 #
8162 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8163 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8164 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8165 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8166 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168 lt_cv_prog_compiler_static_works=no
8169 save_LDFLAGS="$LDFLAGS"
8170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8173 # The linker can only warn and ignore the option if not recognized
8174 # So say no if there are warnings
8175 if test -s conftest.err; then
8176 # Append any errors to the config.log.
8177 cat conftest.err 1>&5
8178 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8180 if diff conftest.exp conftest.er2 >/dev/null; then
8181 lt_cv_prog_compiler_static_works=yes
8182 fi
8183 else
8184 lt_cv_prog_compiler_static_works=yes
8185 fi
8186 fi
8187 $rm -r conftest*
8188 LDFLAGS="$save_LDFLAGS"
8189
8190 fi
8191 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8192 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8193
8194 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8195 :
8196 else
8197 lt_prog_compiler_static=
8198 fi
8199
8200
8201 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8202 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8203 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206 lt_cv_prog_compiler_c_o=no
8207 $rm -r conftest 2>/dev/null
8208 mkdir conftest
8209 cd conftest
8210 mkdir out
8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8212
8213 lt_compiler_flag="-o out/conftest2.$ac_objext"
8214 # Insert the option either (1) after the last *FLAGS variable, or
8215 # (2) before a word containing "conftest.", or (3) at the end.
8216 # Note that $ac_compile itself does not contain backslashes and begins
8217 # with a dollar sign (not a hyphen), so the echo should work correctly.
8218 lt_compile=`echo "$ac_compile" | $SED \
8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8221 -e 's:$: $lt_compiler_flag:'`
8222 (eval echo "\"\$as_me:8222: $lt_compile\"" >&5)
8223 (eval "$lt_compile" 2>out/conftest.err)
8224 ac_status=$?
8225 cat out/conftest.err >&5
8226 echo "$as_me:8226: \$? = $ac_status" >&5
8227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8228 then
8229 # The compiler can only warn and ignore the option if not recognized
8230 # So say no if there are warnings
8231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8234 lt_cv_prog_compiler_c_o=yes
8235 fi
8236 fi
8237 chmod u+w . 2>&5
8238 $rm conftest*
8239 # SGI C++ compiler will create directory out/ii_files/ for
8240 # template instantiation
8241 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8242 $rm out/* && rmdir out
8243 cd ..
8244 rmdir conftest
8245 $rm conftest*
8246
8247 fi
8248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8249 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8250
8251
8252 hard_links="nottested"
8253 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8254 # do not overwrite the value of need_locks provided by the user
8255 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8256 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8257 hard_links=yes
8258 $rm conftest*
8259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8260 touch conftest.a
8261 ln conftest.a conftest.b 2>&5 || hard_links=no
8262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8263 { echo "$as_me:$LINENO: result: $hard_links" >&5
8264 echo "${ECHO_T}$hard_links" >&6; }
8265 if test "$hard_links" = no; then
8266 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8267 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8268 need_locks=warn
8269 fi
8270 else
8271 need_locks=no
8272 fi
8273
8274 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8275 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8276
8277 runpath_var=
8278 allow_undefined_flag=
8279 enable_shared_with_static_runtimes=no
8280 archive_cmds=
8281 archive_expsym_cmds=
8282 old_archive_From_new_cmds=
8283 old_archive_from_expsyms_cmds=
8284 export_dynamic_flag_spec=
8285 whole_archive_flag_spec=
8286 thread_safe_flag_spec=
8287 hardcode_libdir_flag_spec=
8288 hardcode_libdir_flag_spec_ld=
8289 hardcode_libdir_separator=
8290 hardcode_direct=no
8291 hardcode_minus_L=no
8292 hardcode_shlibpath_var=unsupported
8293 link_all_deplibs=unknown
8294 hardcode_automatic=no
8295 module_cmds=
8296 module_expsym_cmds=
8297 always_export_symbols=no
8298 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8299 # include_expsyms should be a list of space-separated symbols to be *always*
8300 # included in the symbol list
8301 include_expsyms=
8302 # exclude_expsyms can be an extended regexp of symbols to exclude
8303 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8304 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8305 # as well as any symbol that contains `d'.
8306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8308 # platforms (ab)use it in PIC code, but their linkers get confused if
8309 # the symbol is explicitly referenced. Since portable code cannot
8310 # rely on this symbol name, it's probably fine to never include it in
8311 # preloaded symbol tables.
8312 # Exclude shared library initialization/finalization symbols.
8313 extract_expsyms_cmds=
8314 # Just being paranoid about ensuring that cc_basename is set.
8315 for cc_temp in $compiler""; do
8316 case $cc_temp in
8317 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8319 \-*) ;;
8320 *) break;;
8321 esac
8322 done
8323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8324
8325 case $host_os in
8326 cygwin* | mingw* | pw32*)
8327 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8328 # When not using gcc, we currently assume that we are using
8329 # Microsoft Visual C++.
8330 if test "$GCC" != yes; then
8331 with_gnu_ld=no
8332 fi
8333 ;;
8334 interix*)
8335 # we just hope/assume this is gcc and not c89 (= MSVC++)
8336 with_gnu_ld=yes
8337 ;;
8338 openbsd*)
8339 with_gnu_ld=no
8340 ;;
8341 esac
8342
8343 ld_shlibs=yes
8344 if test "$with_gnu_ld" = yes; then
8345 # If archive_cmds runs LD, not CC, wlarc should be empty
8346 wlarc='${wl}'
8347
8348 # Set some defaults for GNU ld with shared library support. These
8349 # are reset later if shared libraries are not supported. Putting them
8350 # here allows them to be overridden if necessary.
8351 runpath_var=LD_RUN_PATH
8352 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8353 export_dynamic_flag_spec='${wl}--export-dynamic'
8354 # ancient GNU ld didn't support --whole-archive et. al.
8355 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8356 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8357 else
8358 whole_archive_flag_spec=
8359 fi
8360 supports_anon_versioning=no
8361 case `$LD -v 2>/dev/null` in
8362 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8363 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8364 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8365 *\ 2.11.*) ;; # other 2.11 versions
8366 *) supports_anon_versioning=yes ;;
8367 esac
8368
8369 # See if GNU ld supports shared libraries.
8370 case $host_os in
8371 aix[3-9]*)
8372 # On AIX/PPC, the GNU linker is very broken
8373 if test "$host_cpu" != ia64; then
8374 ld_shlibs=no
8375 cat <<EOF 1>&2
8376
8377 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8378 *** to be unable to reliably create shared libraries on AIX.
8379 *** Therefore, libtool is disabling shared libraries support. If you
8380 *** really care for shared libraries, you may want to modify your PATH
8381 *** so that a non-GNU linker is found, and then restart.
8382
8383 EOF
8384 fi
8385 ;;
8386
8387 amigaos*)
8388 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)'
8389 hardcode_libdir_flag_spec='-L$libdir'
8390 hardcode_minus_L=yes
8391
8392 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
8393 # that the semantics of dynamic libraries on AmigaOS, at least up
8394 # to version 4, is to share data among multiple programs linked
8395 # with the same dynamic library. Since this doesn't match the
8396 # behavior of shared libraries on other platforms, we can't use
8397 # them.
8398 ld_shlibs=no
8399 ;;
8400
8401 beos*)
8402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8403 allow_undefined_flag=unsupported
8404 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8405 # support --undefined. This deserves some investigation. FIXME
8406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8407 else
8408 ld_shlibs=no
8409 fi
8410 ;;
8411
8412 cygwin* | mingw* | pw32*)
8413 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8414 # as there is no search path for DLLs.
8415 hardcode_libdir_flag_spec='-L$libdir'
8416 allow_undefined_flag=unsupported
8417 always_export_symbols=no
8418 enable_shared_with_static_runtimes=yes
8419 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8420
8421 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8422 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8423 # If the export-symbols file already is a .def file (1st line
8424 # is EXPORTS), use it as is; otherwise, prepend...
8425 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8426 cp $export_symbols $output_objdir/$soname.def;
8427 else
8428 echo EXPORTS > $output_objdir/$soname.def;
8429 cat $export_symbols >> $output_objdir/$soname.def;
8430 fi~
8431 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8432 else
8433 ld_shlibs=no
8434 fi
8435 ;;
8436
8437 interix[3-9]*)
8438 hardcode_direct=no
8439 hardcode_shlibpath_var=no
8440 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8441 export_dynamic_flag_spec='${wl}-E'
8442 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8443 # Instead, shared libraries are loaded at an image base (0x10000000 by
8444 # default) and relocated if they conflict, which is a slow very memory
8445 # consuming and fragmenting process. To avoid this, we pick a random,
8446 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8447 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8448 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8449 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'
8450 ;;
8451
8452 gnu* | linux* | k*bsd*-gnu)
8453 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8454 tmp_addflag=
8455 case $cc_basename,$host_cpu in
8456 pgcc*) # Portland Group C compiler
8457 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'
8458 tmp_addflag=' $pic_flag'
8459 ;;
8460 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8461 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'
8462 tmp_addflag=' $pic_flag -Mnomain' ;;
8463 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8464 tmp_addflag=' -i_dynamic' ;;
8465 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8466 tmp_addflag=' -i_dynamic -nofor_main' ;;
8467 ifc* | ifort*) # Intel Fortran compiler
8468 tmp_addflag=' -nofor_main' ;;
8469 esac
8470 case `$CC -V 2>&1 | sed 5q` in
8471 *Sun\ C*) # Sun C 5.9
8472 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'
8473 tmp_sharedflag='-G' ;;
8474 *Sun\ F*) # Sun Fortran 8.3
8475 tmp_sharedflag='-G' ;;
8476 *)
8477 tmp_sharedflag='-shared' ;;
8478 esac
8479 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480
8481 if test $supports_anon_versioning = yes; then
8482 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8483 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8484 $echo "local: *; };" >> $output_objdir/$libname.ver~
8485 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8486 fi
8487 link_all_deplibs=no
8488 else
8489 ld_shlibs=no
8490 fi
8491 ;;
8492
8493 netbsd* | netbsdelf*-gnu)
8494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8495 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8496 wlarc=
8497 else
8498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8500 fi
8501 ;;
8502
8503 solaris*)
8504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8505 ld_shlibs=no
8506 cat <<EOF 1>&2
8507
8508 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8509 *** create shared libraries on Solaris systems. Therefore, libtool
8510 *** is disabling shared libraries support. We urge you to upgrade GNU
8511 *** binutils to release 2.9.1 or newer. Another option is to modify
8512 *** your PATH or compiler configuration so that the native linker is
8513 *** used, and then restart.
8514
8515 EOF
8516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8518 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8519 else
8520 ld_shlibs=no
8521 fi
8522 ;;
8523
8524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8525 case `$LD -v 2>&1` in
8526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8527 ld_shlibs=no
8528 cat <<_LT_EOF 1>&2
8529
8530 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8531 *** reliably create shared libraries on SCO systems. Therefore, libtool
8532 *** is disabling shared libraries support. We urge you to upgrade GNU
8533 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8534 *** your PATH or compiler configuration so that the native linker is
8535 *** used, and then restart.
8536
8537 _LT_EOF
8538 ;;
8539 *)
8540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8541 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8544 else
8545 ld_shlibs=no
8546 fi
8547 ;;
8548 esac
8549 ;;
8550
8551 sunos4*)
8552 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8553 wlarc=
8554 hardcode_direct=yes
8555 hardcode_shlibpath_var=no
8556 ;;
8557
8558 *)
8559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8562 else
8563 ld_shlibs=no
8564 fi
8565 ;;
8566 esac
8567
8568 if test "$ld_shlibs" = no; then
8569 runpath_var=
8570 hardcode_libdir_flag_spec=
8571 export_dynamic_flag_spec=
8572 whole_archive_flag_spec=
8573 fi
8574 else
8575 # PORTME fill in a description of your system's linker (not GNU ld)
8576 case $host_os in
8577 aix3*)
8578 allow_undefined_flag=unsupported
8579 always_export_symbols=yes
8580 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'
8581 # Note: this linker hardcodes the directories in LIBPATH if there
8582 # are no directories specified by -L.
8583 hardcode_minus_L=yes
8584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8585 # Neither direct hardcoding nor static linking is supported with a
8586 # broken collect2.
8587 hardcode_direct=unsupported
8588 fi
8589 ;;
8590
8591 aix[4-9]*)
8592 if test "$host_cpu" = ia64; then
8593 # On IA64, the linker does run time linking by default, so we don't
8594 # have to do anything special.
8595 aix_use_runtimelinking=no
8596 exp_sym_flag='-Bexport'
8597 no_entry_flag=""
8598 else
8599 # If we're using GNU nm, then we don't want the "-C" option.
8600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8602 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'
8603 else
8604 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'
8605 fi
8606 aix_use_runtimelinking=no
8607
8608 # Test if we are trying to use run time linking or normal
8609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8610 # need to do runtime linking.
8611 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8612 for ld_flag in $LDFLAGS; do
8613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8614 aix_use_runtimelinking=yes
8615 break
8616 fi
8617 done
8618 ;;
8619 esac
8620
8621 exp_sym_flag='-bexport'
8622 no_entry_flag='-bnoentry'
8623 fi
8624
8625 # When large executables or shared objects are built, AIX ld can
8626 # have problems creating the table of contents. If linking a library
8627 # or program results in "error TOC overflow" add -mminimal-toc to
8628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8630
8631 archive_cmds=''
8632 hardcode_direct=yes
8633 hardcode_libdir_separator=':'
8634 link_all_deplibs=yes
8635
8636 if test "$GCC" = yes; then
8637 case $host_os in aix4.[012]|aix4.[012].*)
8638 # We only want to do this on AIX 4.2 and lower, the check
8639 # below for broken collect2 doesn't work under 4.3+
8640 collect2name=`${CC} -print-prog-name=collect2`
8641 if test -f "$collect2name" && \
8642 strings "$collect2name" | grep resolve_lib_name >/dev/null
8643 then
8644 # We have reworked collect2
8645 :
8646 else
8647 # We have old collect2
8648 hardcode_direct=unsupported
8649 # It fails to find uninstalled libraries when the uninstalled
8650 # path is not listed in the libpath. Setting hardcode_minus_L
8651 # to unsupported forces relinking
8652 hardcode_minus_L=yes
8653 hardcode_libdir_flag_spec='-L$libdir'
8654 hardcode_libdir_separator=
8655 fi
8656 ;;
8657 esac
8658 shared_flag='-shared'
8659 if test "$aix_use_runtimelinking" = yes; then
8660 shared_flag="$shared_flag "'${wl}-G'
8661 fi
8662 else
8663 # not using gcc
8664 if test "$host_cpu" = ia64; then
8665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8666 # chokes on -Wl,-G. The following line is correct:
8667 shared_flag='-G'
8668 else
8669 if test "$aix_use_runtimelinking" = yes; then
8670 shared_flag='${wl}-G'
8671 else
8672 shared_flag='${wl}-bM:SRE'
8673 fi
8674 fi
8675 fi
8676
8677 # It seems that -bexpall does not export symbols beginning with
8678 # underscore (_), so it is better to generate a list of symbols to export.
8679 always_export_symbols=yes
8680 if test "$aix_use_runtimelinking" = yes; then
8681 # Warning - without using the other runtime loading flags (-brtl),
8682 # -berok will link without error, but may produce a broken library.
8683 allow_undefined_flag='-berok'
8684 # Determine the default libpath from the value encoded in an empty executable.
8685 cat >conftest.$ac_ext <<_ACEOF
8686 /* confdefs.h. */
8687 _ACEOF
8688 cat confdefs.h >>conftest.$ac_ext
8689 cat >>conftest.$ac_ext <<_ACEOF
8690 /* end confdefs.h. */
8691
8692 int
8693 main ()
8694 {
8695
8696 ;
8697 return 0;
8698 }
8699 _ACEOF
8700 rm -f conftest.$ac_objext conftest$ac_exeext
8701 if { (ac_try="$ac_link"
8702 case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_link") 2>conftest.er1
8708 ac_status=$?
8709 grep -v '^ *+' conftest.er1 >conftest.err
8710 rm -f conftest.er1
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest$ac_exeext &&
8717 $as_test_x conftest$ac_exeext; then
8718
8719 lt_aix_libpath_sed='
8720 /Import File Strings/,/^$/ {
8721 /^0/ {
8722 s/^0 *\(.*\)$/\1/
8723 p
8724 }
8725 }'
8726 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8727 # Check for a 64-bit object if we didn't find anything.
8728 if test -z "$aix_libpath"; then
8729 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8730 fi
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735
8736 fi
8737
8738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8739 conftest$ac_exeext conftest.$ac_ext
8740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8741
8742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8743 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"
8744 else
8745 if test "$host_cpu" = ia64; then
8746 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8747 allow_undefined_flag="-z nodefs"
8748 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"
8749 else
8750 # Determine the default libpath from the value encoded in an empty executable.
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h. */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8757
8758 int
8759 main ()
8760 {
8761
8762 ;
8763 return 0;
8764 }
8765 _ACEOF
8766 rm -f conftest.$ac_objext conftest$ac_exeext
8767 if { (ac_try="$ac_link"
8768 case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_link") 2>conftest.er1
8774 ac_status=$?
8775 grep -v '^ *+' conftest.er1 >conftest.err
8776 rm -f conftest.er1
8777 cat conftest.err >&5
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } && {
8780 test -z "$ac_c_werror_flag" ||
8781 test ! -s conftest.err
8782 } && test -s conftest$ac_exeext &&
8783 $as_test_x conftest$ac_exeext; then
8784
8785 lt_aix_libpath_sed='
8786 /Import File Strings/,/^$/ {
8787 /^0/ {
8788 s/^0 *\(.*\)$/\1/
8789 p
8790 }
8791 }'
8792 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8793 # Check for a 64-bit object if we didn't find anything.
8794 if test -z "$aix_libpath"; then
8795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8796 fi
8797 else
8798 echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801
8802 fi
8803
8804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8805 conftest$ac_exeext conftest.$ac_ext
8806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8807
8808 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8809 # Warning - without using the other run time loading flags,
8810 # -berok will link without error, but may produce a broken library.
8811 no_undefined_flag=' ${wl}-bernotok'
8812 allow_undefined_flag=' ${wl}-berok'
8813 # Exported symbols can be pulled into shared objects from archives
8814 whole_archive_flag_spec='$convenience'
8815 archive_cmds_need_lc=yes
8816 # This is similar to how AIX traditionally builds its shared libraries.
8817 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'
8818 fi
8819 fi
8820 ;;
8821
8822 amigaos*)
8823 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)'
8824 hardcode_libdir_flag_spec='-L$libdir'
8825 hardcode_minus_L=yes
8826 # see comment about different semantics on the GNU ld section
8827 ld_shlibs=no
8828 ;;
8829
8830 bsdi[45]*)
8831 export_dynamic_flag_spec=-rdynamic
8832 ;;
8833
8834 cygwin* | mingw* | pw32*)
8835 # When not using gcc, we currently assume that we are using
8836 # Microsoft Visual C++.
8837 # hardcode_libdir_flag_spec is actually meaningless, as there is
8838 # no search path for DLLs.
8839 hardcode_libdir_flag_spec=' '
8840 allow_undefined_flag=unsupported
8841 # Tell ltmain to make .lib files, not .a files.
8842 libext=lib
8843 # Tell ltmain to make .dll files, not .so files.
8844 shrext_cmds=".dll"
8845 # FIXME: Setting linknames here is a bad hack.
8846 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8847 # The linker will automatically build a .lib file if we build a DLL.
8848 old_archive_From_new_cmds='true'
8849 # FIXME: Should let the user specify the lib program.
8850 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8851 fix_srcfile_path='`cygpath -w "$srcfile"`'
8852 enable_shared_with_static_runtimes=yes
8853 ;;
8854
8855 darwin* | rhapsody*)
8856 case $host_os in
8857 rhapsody* | darwin1.[012])
8858 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8859 ;;
8860 *) # Darwin 1.3 on
8861 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8862 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8863 else
8864 case ${MACOSX_DEPLOYMENT_TARGET} in
8865 10.[012])
8866 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8867 ;;
8868 10.*)
8869 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8870 ;;
8871 esac
8872 fi
8873 ;;
8874 esac
8875 archive_cmds_need_lc=no
8876 hardcode_direct=no
8877 hardcode_automatic=yes
8878 hardcode_shlibpath_var=unsupported
8879 whole_archive_flag_spec=''
8880 link_all_deplibs=yes
8881 if test "$GCC" = yes ; then
8882 output_verbose_link_cmd='echo'
8883 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8884 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8885 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8886 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8887 else
8888 case $cc_basename in
8889 xlc*)
8890 output_verbose_link_cmd='echo'
8891 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8892 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8893 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8894 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}'
8895 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}'
8896 ;;
8897 *)
8898 ld_shlibs=no
8899 ;;
8900 esac
8901 fi
8902 ;;
8903
8904 dgux*)
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_libdir_flag_spec='-L$libdir'
8907 hardcode_shlibpath_var=no
8908 ;;
8909
8910 freebsd1*)
8911 ld_shlibs=no
8912 ;;
8913
8914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8915 # support. Future versions do this automatically, but an explicit c++rt0.o
8916 # does not break anything, and helps significantly (at the cost of a little
8917 # extra space).
8918 freebsd2.2*)
8919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8920 hardcode_libdir_flag_spec='-R$libdir'
8921 hardcode_direct=yes
8922 hardcode_shlibpath_var=no
8923 ;;
8924
8925 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8926 freebsd2*)
8927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_direct=yes
8929 hardcode_minus_L=yes
8930 hardcode_shlibpath_var=no
8931 ;;
8932
8933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8934 freebsd* | dragonfly*)
8935 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8936 hardcode_libdir_flag_spec='-R$libdir'
8937 hardcode_direct=yes
8938 hardcode_shlibpath_var=no
8939 ;;
8940
8941 hpux9*)
8942 if test "$GCC" = yes; then
8943 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'
8944 else
8945 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'
8946 fi
8947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8948 hardcode_libdir_separator=:
8949 hardcode_direct=yes
8950
8951 # hardcode_minus_L: Not really in the search PATH,
8952 # but as the default location of the library.
8953 hardcode_minus_L=yes
8954 export_dynamic_flag_spec='${wl}-E'
8955 ;;
8956
8957 hpux10*)
8958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8959 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8960 else
8961 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8962 fi
8963 if test "$with_gnu_ld" = no; then
8964 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8965 hardcode_libdir_separator=:
8966
8967 hardcode_direct=yes
8968 export_dynamic_flag_spec='${wl}-E'
8969
8970 # hardcode_minus_L: Not really in the search PATH,
8971 # but as the default location of the library.
8972 hardcode_minus_L=yes
8973 fi
8974 ;;
8975
8976 hpux11*)
8977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8978 case $host_cpu in
8979 hppa*64*)
8980 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 ;;
8982 ia64*)
8983 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8984 ;;
8985 *)
8986 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8987 ;;
8988 esac
8989 else
8990 case $host_cpu in
8991 hppa*64*)
8992 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993 ;;
8994 ia64*)
8995 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8996 ;;
8997 *)
8998 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8999 ;;
9000 esac
9001 fi
9002 if test "$with_gnu_ld" = no; then
9003 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9004 hardcode_libdir_separator=:
9005
9006 case $host_cpu in
9007 hppa*64*|ia64*)
9008 hardcode_libdir_flag_spec_ld='+b $libdir'
9009 hardcode_direct=no
9010 hardcode_shlibpath_var=no
9011 ;;
9012 *)
9013 hardcode_direct=yes
9014 export_dynamic_flag_spec='${wl}-E'
9015
9016 # hardcode_minus_L: Not really in the search PATH,
9017 # but as the default location of the library.
9018 hardcode_minus_L=yes
9019 ;;
9020 esac
9021 fi
9022 ;;
9023
9024 irix5* | irix6* | nonstopux*)
9025 if test "$GCC" = yes; then
9026 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'
9027 else
9028 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'
9029 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9030 fi
9031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9032 hardcode_libdir_separator=:
9033 link_all_deplibs=yes
9034 ;;
9035
9036 netbsd* | netbsdelf*-gnu)
9037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9039 else
9040 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9041 fi
9042 hardcode_libdir_flag_spec='-R$libdir'
9043 hardcode_direct=yes
9044 hardcode_shlibpath_var=no
9045 ;;
9046
9047 newsos6)
9048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049 hardcode_direct=yes
9050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9051 hardcode_libdir_separator=:
9052 hardcode_shlibpath_var=no
9053 ;;
9054
9055 openbsd*)
9056 if test -f /usr/libexec/ld.so; then
9057 hardcode_direct=yes
9058 hardcode_shlibpath_var=no
9059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9061 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9062 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9063 export_dynamic_flag_spec='${wl}-E'
9064 else
9065 case $host_os in
9066 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9068 hardcode_libdir_flag_spec='-R$libdir'
9069 ;;
9070 *)
9071 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9072 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9073 ;;
9074 esac
9075 fi
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080
9081 os2*)
9082 hardcode_libdir_flag_spec='-L$libdir'
9083 hardcode_minus_L=yes
9084 allow_undefined_flag=unsupported
9085 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'
9086 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9087 ;;
9088
9089 osf3*)
9090 if test "$GCC" = yes; then
9091 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9092 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'
9093 else
9094 allow_undefined_flag=' -expect_unresolved \*'
9095 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'
9096 fi
9097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9098 hardcode_libdir_separator=:
9099 ;;
9100
9101 osf4* | osf5*) # as osf3* with the addition of -msym flag
9102 if test "$GCC" = yes; then
9103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9104 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'
9105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9106 else
9107 allow_undefined_flag=' -expect_unresolved \*'
9108 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'
9109 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9110 $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'
9111
9112 # Both c and cxx compiler support -rpath directly
9113 hardcode_libdir_flag_spec='-rpath $libdir'
9114 fi
9115 hardcode_libdir_separator=:
9116 ;;
9117
9118 solaris*)
9119 no_undefined_flag=' -z text'
9120 if test "$GCC" = yes; then
9121 wlarc='${wl}'
9122 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9124 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9125 else
9126 wlarc=''
9127 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9128 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9129 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9130 fi
9131 hardcode_libdir_flag_spec='-R$libdir'
9132 hardcode_shlibpath_var=no
9133 case $host_os in
9134 solaris2.[0-5] | solaris2.[0-5].*) ;;
9135 *)
9136 # The compiler driver will combine and reorder linker options,
9137 # but understands `-z linker_flag'. GCC discards it without `$wl',
9138 # but is careful enough not to reorder.
9139 # Supported since Solaris 2.6 (maybe 2.5.1?)
9140 if test "$GCC" = yes; then
9141 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9142 else
9143 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9144 fi
9145 ;;
9146 esac
9147 link_all_deplibs=yes
9148 ;;
9149
9150 sunos4*)
9151 if test "x$host_vendor" = xsequent; then
9152 # Use $CC to link under sequent, because it throws in some extra .o
9153 # files that make .init and .fini sections work.
9154 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9155 else
9156 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9157 fi
9158 hardcode_libdir_flag_spec='-L$libdir'
9159 hardcode_direct=yes
9160 hardcode_minus_L=yes
9161 hardcode_shlibpath_var=no
9162 ;;
9163
9164 sysv4)
9165 case $host_vendor in
9166 sni)
9167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9168 hardcode_direct=yes # is this really true???
9169 ;;
9170 siemens)
9171 ## LD is ld it makes a PLAMLIB
9172 ## CC just makes a GrossModule.
9173 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9174 reload_cmds='$CC -r -o $output$reload_objs'
9175 hardcode_direct=no
9176 ;;
9177 motorola)
9178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9179 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9180 ;;
9181 esac
9182 runpath_var='LD_RUN_PATH'
9183 hardcode_shlibpath_var=no
9184 ;;
9185
9186 sysv4.3*)
9187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_shlibpath_var=no
9189 export_dynamic_flag_spec='-Bexport'
9190 ;;
9191
9192 sysv4*MP*)
9193 if test -d /usr/nec; then
9194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9195 hardcode_shlibpath_var=no
9196 runpath_var=LD_RUN_PATH
9197 hardcode_runpath_var=yes
9198 ld_shlibs=yes
9199 fi
9200 ;;
9201
9202 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9203 no_undefined_flag='${wl}-z,text'
9204 archive_cmds_need_lc=no
9205 hardcode_shlibpath_var=no
9206 runpath_var='LD_RUN_PATH'
9207
9208 if test "$GCC" = yes; then
9209 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9210 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9211 else
9212 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9213 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9214 fi
9215 ;;
9216
9217 sysv5* | sco3.2v5* | sco5v6*)
9218 # Note: We can NOT use -z defs as we might desire, because we do not
9219 # link with -lc, and that would cause any symbols used from libc to
9220 # always be unresolved, which means just about no library would
9221 # ever link correctly. If we're not using GNU ld we use -z text
9222 # though, which does catch some bad symbols but isn't as heavy-handed
9223 # as -z defs.
9224 no_undefined_flag='${wl}-z,text'
9225 allow_undefined_flag='${wl}-z,nodefs'
9226 archive_cmds_need_lc=no
9227 hardcode_shlibpath_var=no
9228 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9229 hardcode_libdir_separator=':'
9230 link_all_deplibs=yes
9231 export_dynamic_flag_spec='${wl}-Bexport'
9232 runpath_var='LD_RUN_PATH'
9233
9234 if test "$GCC" = yes; then
9235 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9236 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9237 else
9238 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9239 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9240 fi
9241 ;;
9242
9243 uts4*)
9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245 hardcode_libdir_flag_spec='-L$libdir'
9246 hardcode_shlibpath_var=no
9247 ;;
9248
9249 *)
9250 ld_shlibs=no
9251 ;;
9252 esac
9253 fi
9254
9255 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9256 echo "${ECHO_T}$ld_shlibs" >&6; }
9257 test "$ld_shlibs" = no && can_build_shared=no
9258
9259 #
9260 # Do we need to explicitly link libc?
9261 #
9262 case "x$archive_cmds_need_lc" in
9263 x|xyes)
9264 # Assume -lc should be added
9265 archive_cmds_need_lc=yes
9266
9267 if test "$enable_shared" = yes && test "$GCC" = yes; then
9268 case $archive_cmds in
9269 *'~'*)
9270 # FIXME: we may have to deal with multi-command sequences.
9271 ;;
9272 '$CC '*)
9273 # Test whether the compiler implicitly links with -lc since on some
9274 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9275 # to ld, don't add -lc before -lgcc.
9276 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9277 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9278 $rm conftest*
9279 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9280
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>&5
9283 ac_status=$?
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } 2>conftest.err; then
9286 soname=conftest
9287 lib=conftest
9288 libobjs=conftest.$ac_objext
9289 deplibs=
9290 wl=$lt_prog_compiler_wl
9291 pic_flag=$lt_prog_compiler_pic
9292 compiler_flags=-v
9293 linker_flags=-v
9294 verstring=
9295 output_objdir=.
9296 libname=conftest
9297 lt_save_allow_undefined_flag=$allow_undefined_flag
9298 allow_undefined_flag=
9299 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9300 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }
9304 then
9305 archive_cmds_need_lc=no
9306 else
9307 archive_cmds_need_lc=yes
9308 fi
9309 allow_undefined_flag=$lt_save_allow_undefined_flag
9310 else
9311 cat conftest.err 1>&5
9312 fi
9313 $rm conftest*
9314 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9315 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9316 ;;
9317 esac
9318 fi
9319 ;;
9320 esac
9321
9322 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9323 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9324 library_names_spec=
9325 libname_spec='lib$name'
9326 soname_spec=
9327 shrext_cmds=".so"
9328 postinstall_cmds=
9329 postuninstall_cmds=
9330 finish_cmds=
9331 finish_eval=
9332 shlibpath_var=
9333 shlibpath_overrides_runpath=unknown
9334 version_type=none
9335 dynamic_linker="$host_os ld.so"
9336 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9337
9338 if test "$GCC" = yes; then
9339 case $host_os in
9340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9341 *) lt_awk_arg="/^libraries:/" ;;
9342 esac
9343 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9344 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9345 # if the path contains ";" then we assume it to be the separator
9346 # otherwise default to the standard path separator (i.e. ":") - it is
9347 # assumed that no part of a normal pathname contains ";" but that should
9348 # okay in the real world where ";" in dirpaths is itself problematic.
9349 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9350 else
9351 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9352 fi
9353 # Ok, now we have the path, separated by spaces, we can step through it
9354 # and add multilib dir if necessary.
9355 lt_tmp_lt_search_path_spec=
9356 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9357 for lt_sys_path in $lt_search_path_spec; do
9358 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9360 else
9361 test -d "$lt_sys_path" && \
9362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9363 fi
9364 done
9365 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9366 BEGIN {RS=" "; FS="/|\n";} {
9367 lt_foo="";
9368 lt_count=0;
9369 for (lt_i = NF; lt_i > 0; lt_i--) {
9370 if ($lt_i != "" && $lt_i != ".") {
9371 if ($lt_i == "..") {
9372 lt_count++;
9373 } else {
9374 if (lt_count == 0) {
9375 lt_foo="/" $lt_i lt_foo;
9376 } else {
9377 lt_count--;
9378 }
9379 }
9380 }
9381 }
9382 if (lt_foo != "") { lt_freq[lt_foo]++; }
9383 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9384 }'`
9385 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9386 else
9387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9388 fi
9389 need_lib_prefix=unknown
9390 hardcode_into_libs=no
9391
9392 # when you set need_version to no, make sure it does not cause -set_version
9393 # flags to be left without arguments
9394 need_version=unknown
9395
9396 case $host_os in
9397 aix3*)
9398 version_type=linux
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9400 shlibpath_var=LIBPATH
9401
9402 # AIX 3 has no versioning support, so we append a major version to the name.
9403 soname_spec='${libname}${release}${shared_ext}$major'
9404 ;;
9405
9406 aix[4-9]*)
9407 version_type=linux
9408 need_lib_prefix=no
9409 need_version=no
9410 hardcode_into_libs=yes
9411 if test "$host_cpu" = ia64; then
9412 # AIX 5 supports IA64
9413 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 else
9416 # With GCC up to 2.95.x, collect2 would create an import file
9417 # for dependence libraries. The import file would start with
9418 # the line `#! .'. This would cause the generated library to
9419 # depend on `.', always an invalid library. This was fixed in
9420 # development snapshots of GCC prior to 3.0.
9421 case $host_os in
9422 aix4 | aix4.[01] | aix4.[01].*)
9423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9424 echo ' yes '
9425 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9426 :
9427 else
9428 can_build_shared=no
9429 fi
9430 ;;
9431 esac
9432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9433 # soname into executable. Probably we can add versioning support to
9434 # collect2, so additional links can be useful in future.
9435 if test "$aix_use_runtimelinking" = yes; then
9436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9437 # instead of lib<name>.a to let people know that these are not
9438 # typical AIX shared libraries.
9439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 else
9441 # We preserve .a as extension for shared libraries through AIX4.2
9442 # and later when we are not doing run time linking.
9443 library_names_spec='${libname}${release}.a $libname.a'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 fi
9446 shlibpath_var=LIBPATH
9447 fi
9448 ;;
9449
9450 amigaos*)
9451 library_names_spec='$libname.ixlibrary $libname.a'
9452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9453 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'
9454 ;;
9455
9456 beos*)
9457 library_names_spec='${libname}${shared_ext}'
9458 dynamic_linker="$host_os ld.so"
9459 shlibpath_var=LIBRARY_PATH
9460 ;;
9461
9462 bsdi[45]*)
9463 version_type=linux
9464 need_version=no
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9468 shlibpath_var=LD_LIBRARY_PATH
9469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9471 # the default ld.so.conf also contains /usr/contrib/lib and
9472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9473 # libtool to hard-code these into programs
9474 ;;
9475
9476 cygwin* | mingw* | pw32*)
9477 version_type=windows
9478 shrext_cmds=".dll"
9479 need_version=no
9480 need_lib_prefix=no
9481
9482 case $GCC,$host_os in
9483 yes,cygwin* | yes,mingw* | yes,pw32*)
9484 library_names_spec='$libname.dll.a'
9485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9486 postinstall_cmds='base_file=`basename \${file}`~
9487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9488 dldir=$destdir/`dirname \$dlpath`~
9489 test -d \$dldir || mkdir -p \$dldir~
9490 $install_prog $dir/$dlname \$dldir/$dlname~
9491 chmod a+x \$dldir/$dlname'
9492 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9493 dlpath=$dir/\$dldll~
9494 $rm \$dlpath'
9495 shlibpath_overrides_runpath=yes
9496
9497 case $host_os in
9498 cygwin*)
9499 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9500 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9501 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9502 ;;
9503 mingw*)
9504 # MinGW DLLs use traditional 'lib' prefix
9505 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9506 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9507 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9508 # It is most probably a Windows format PATH printed by
9509 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9510 # path with ; separators, and with drive letters. We can handle the
9511 # drive letters (cygwin fileutils understands them), so leave them,
9512 # especially as we might pass files found there to a mingw objdump,
9513 # which wouldn't understand a cygwinified path. Ahh.
9514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9515 else
9516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9517 fi
9518 ;;
9519 pw32*)
9520 # pw32 DLLs use 'pw' prefix rather than 'lib'
9521 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9522 ;;
9523 esac
9524 ;;
9525
9526 *)
9527 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9528 ;;
9529 esac
9530 dynamic_linker='Win32 ld.exe'
9531 # FIXME: first we should search . and the directory the executable is in
9532 shlibpath_var=PATH
9533 ;;
9534
9535 darwin* | rhapsody*)
9536 dynamic_linker="$host_os dyld"
9537 version_type=darwin
9538 need_lib_prefix=no
9539 need_version=no
9540 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9541 soname_spec='${libname}${release}${major}$shared_ext'
9542 shlibpath_overrides_runpath=yes
9543 shlibpath_var=DYLD_LIBRARY_PATH
9544 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9545
9546 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9547 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9548 ;;
9549
9550 dgux*)
9551 version_type=linux
9552 need_lib_prefix=no
9553 need_version=no
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9555 soname_spec='${libname}${release}${shared_ext}$major'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 ;;
9558
9559 freebsd1*)
9560 dynamic_linker=no
9561 ;;
9562
9563 freebsd* | dragonfly*)
9564 # DragonFly does not have aout. When/if they implement a new
9565 # versioning mechanism, adjust this.
9566 if test -x /usr/bin/objformat; then
9567 objformat=`/usr/bin/objformat`
9568 else
9569 case $host_os in
9570 freebsd[123]*) objformat=aout ;;
9571 *) objformat=elf ;;
9572 esac
9573 fi
9574 version_type=freebsd-$objformat
9575 case $version_type in
9576 freebsd-elf*)
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9578 need_version=no
9579 need_lib_prefix=no
9580 ;;
9581 freebsd-*)
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9583 need_version=yes
9584 ;;
9585 esac
9586 shlibpath_var=LD_LIBRARY_PATH
9587 case $host_os in
9588 freebsd2*)
9589 shlibpath_overrides_runpath=yes
9590 ;;
9591 freebsd3.[01]* | freebsdelf3.[01]*)
9592 shlibpath_overrides_runpath=yes
9593 hardcode_into_libs=yes
9594 ;;
9595 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9596 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9597 shlibpath_overrides_runpath=no
9598 hardcode_into_libs=yes
9599 ;;
9600 *) # from 4.6 on, and DragonFly
9601 shlibpath_overrides_runpath=yes
9602 hardcode_into_libs=yes
9603 ;;
9604 esac
9605 ;;
9606
9607 gnu*)
9608 version_type=linux
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 hardcode_into_libs=yes
9615 ;;
9616
9617 hpux9* | hpux10* | hpux11*)
9618 # Give a soname corresponding to the major version so that dld.sl refuses to
9619 # link against other versions.
9620 version_type=sunos
9621 need_lib_prefix=no
9622 need_version=no
9623 case $host_cpu in
9624 ia64*)
9625 shrext_cmds='.so'
9626 hardcode_into_libs=yes
9627 dynamic_linker="$host_os dld.so"
9628 shlibpath_var=LD_LIBRARY_PATH
9629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 if test "X$HPUX_IA64_MODE" = X32; then
9633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9634 else
9635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9636 fi
9637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9638 ;;
9639 hppa*64*)
9640 shrext_cmds='.sl'
9641 hardcode_into_libs=yes
9642 dynamic_linker="$host_os dld.sl"
9643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9646 soname_spec='${libname}${release}${shared_ext}$major'
9647 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9649 ;;
9650 *)
9651 shrext_cmds='.sl'
9652 dynamic_linker="$host_os dld.sl"
9653 shlibpath_var=SHLIB_PATH
9654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656 soname_spec='${libname}${release}${shared_ext}$major'
9657 ;;
9658 esac
9659 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9660 postinstall_cmds='chmod 555 $lib'
9661 ;;
9662
9663 interix[3-9]*)
9664 version_type=linux
9665 need_lib_prefix=no
9666 need_version=no
9667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=no
9672 hardcode_into_libs=yes
9673 ;;
9674
9675 irix5* | irix6* | nonstopux*)
9676 case $host_os in
9677 nonstopux*) version_type=nonstopux ;;
9678 *)
9679 if test "$lt_cv_prog_gnu_ld" = yes; then
9680 version_type=linux
9681 else
9682 version_type=irix
9683 fi ;;
9684 esac
9685 need_lib_prefix=no
9686 need_version=no
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9689 case $host_os in
9690 irix5* | nonstopux*)
9691 libsuff= shlibsuff=
9692 ;;
9693 *)
9694 case $LD in # libtool.m4 will add one of these switches to LD
9695 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9696 libsuff= shlibsuff= libmagic=32-bit;;
9697 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9698 libsuff=32 shlibsuff=N32 libmagic=N32;;
9699 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9700 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9701 *) libsuff= shlibsuff= libmagic=never-match;;
9702 esac
9703 ;;
9704 esac
9705 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9706 shlibpath_overrides_runpath=no
9707 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9708 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9709 hardcode_into_libs=yes
9710 ;;
9711
9712 # No shared lib support for Linux oldld, aout, or coff.
9713 linux*oldld* | linux*aout* | linux*coff*)
9714 dynamic_linker=no
9715 ;;
9716
9717 # This must be Linux ELF.
9718 linux* | k*bsd*-gnu)
9719 version_type=linux
9720 need_lib_prefix=no
9721 need_version=no
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=no
9727 # This implies no fast_install, which is unacceptable.
9728 # Some rework will be needed to allow for fast_install
9729 # before this can be enabled.
9730 hardcode_into_libs=yes
9731
9732 # Append ld.so.conf contents to the search path
9733 if test -f /etc/ld.so.conf; then
9734 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' ' '`
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9736 fi
9737
9738 # We used to test for /lib/ld.so.1 and disable shared libraries on
9739 # powerpc, because MkLinux only supported shared libraries with the
9740 # GNU dynamic linker. Since this was broken with cross compilers,
9741 # most powerpc-linux boxes support dynamic linking these days and
9742 # people can always --disable-shared, the test was removed, and we
9743 # assume the GNU/Linux dynamic linker is in use.
9744 dynamic_linker='GNU/Linux ld.so'
9745 ;;
9746
9747 netbsdelf*-gnu)
9748 version_type=linux
9749 need_lib_prefix=no
9750 need_version=no
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9752 soname_spec='${libname}${release}${shared_ext}$major'
9753 shlibpath_var=LD_LIBRARY_PATH
9754 shlibpath_overrides_runpath=no
9755 hardcode_into_libs=yes
9756 dynamic_linker='NetBSD ld.elf_so'
9757 ;;
9758
9759 netbsd*)
9760 version_type=sunos
9761 need_lib_prefix=no
9762 need_version=no
9763 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9766 dynamic_linker='NetBSD (a.out) ld.so'
9767 else
9768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9769 soname_spec='${libname}${release}${shared_ext}$major'
9770 dynamic_linker='NetBSD ld.elf_so'
9771 fi
9772 shlibpath_var=LD_LIBRARY_PATH
9773 shlibpath_overrides_runpath=yes
9774 hardcode_into_libs=yes
9775 ;;
9776
9777 newsos6)
9778 version_type=linux
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=yes
9782 ;;
9783
9784 nto-qnx*)
9785 version_type=linux
9786 need_lib_prefix=no
9787 need_version=no
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9790 shlibpath_var=LD_LIBRARY_PATH
9791 shlibpath_overrides_runpath=yes
9792 ;;
9793
9794 openbsd*)
9795 version_type=sunos
9796 sys_lib_dlsearch_path_spec="/usr/lib"
9797 need_lib_prefix=no
9798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9799 case $host_os in
9800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9801 *) need_version=no ;;
9802 esac
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9807 case $host_os in
9808 openbsd2.[89] | openbsd2.[89].*)
9809 shlibpath_overrides_runpath=no
9810 ;;
9811 *)
9812 shlibpath_overrides_runpath=yes
9813 ;;
9814 esac
9815 else
9816 shlibpath_overrides_runpath=yes
9817 fi
9818 ;;
9819
9820 os2*)
9821 libname_spec='$name'
9822 shrext_cmds=".dll"
9823 need_lib_prefix=no
9824 library_names_spec='$libname${shared_ext} $libname.a'
9825 dynamic_linker='OS/2 ld.exe'
9826 shlibpath_var=LIBPATH
9827 ;;
9828
9829 osf3* | osf4* | osf5*)
9830 version_type=osf
9831 need_lib_prefix=no
9832 need_version=no
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 shlibpath_var=LD_LIBRARY_PATH
9836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9838 ;;
9839
9840 rdos*)
9841 dynamic_linker=no
9842 ;;
9843
9844 solaris*)
9845 version_type=linux
9846 need_lib_prefix=no
9847 need_version=no
9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 soname_spec='${libname}${release}${shared_ext}$major'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 shlibpath_overrides_runpath=yes
9852 hardcode_into_libs=yes
9853 # ldd complains unless libraries are executable
9854 postinstall_cmds='chmod +x $lib'
9855 ;;
9856
9857 sunos4*)
9858 version_type=sunos
9859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9861 shlibpath_var=LD_LIBRARY_PATH
9862 shlibpath_overrides_runpath=yes
9863 if test "$with_gnu_ld" = yes; then
9864 need_lib_prefix=no
9865 fi
9866 need_version=yes
9867 ;;
9868
9869 sysv4 | sysv4.3*)
9870 version_type=linux
9871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872 soname_spec='${libname}${release}${shared_ext}$major'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 case $host_vendor in
9875 sni)
9876 shlibpath_overrides_runpath=no
9877 need_lib_prefix=no
9878 export_dynamic_flag_spec='${wl}-Blargedynsym'
9879 runpath_var=LD_RUN_PATH
9880 ;;
9881 siemens)
9882 need_lib_prefix=no
9883 ;;
9884 motorola)
9885 need_lib_prefix=no
9886 need_version=no
9887 shlibpath_overrides_runpath=no
9888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9889 ;;
9890 esac
9891 ;;
9892
9893 sysv4*MP*)
9894 if test -d /usr/nec ;then
9895 version_type=linux
9896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9897 soname_spec='$libname${shared_ext}.$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 fi
9900 ;;
9901
9902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9903 version_type=freebsd-elf
9904 need_lib_prefix=no
9905 need_version=no
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9907 soname_spec='${libname}${release}${shared_ext}$major'
9908 shlibpath_var=LD_LIBRARY_PATH
9909 hardcode_into_libs=yes
9910 if test "$with_gnu_ld" = yes; then
9911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9912 shlibpath_overrides_runpath=no
9913 else
9914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9915 shlibpath_overrides_runpath=yes
9916 case $host_os in
9917 sco3.2v5*)
9918 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9919 ;;
9920 esac
9921 fi
9922 sys_lib_dlsearch_path_spec='/usr/lib'
9923 ;;
9924
9925 uts4*)
9926 version_type=linux
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 soname_spec='${libname}${release}${shared_ext}$major'
9929 shlibpath_var=LD_LIBRARY_PATH
9930 ;;
9931
9932 *)
9933 dynamic_linker=no
9934 ;;
9935 esac
9936 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9937 echo "${ECHO_T}$dynamic_linker" >&6; }
9938 test "$dynamic_linker" = no && can_build_shared=no
9939
9940 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 else
9943 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9944 fi
9945
9946 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9947 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9951 fi
9952
9953 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9954
9955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9956 if test "$GCC" = yes; then
9957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9958 fi
9959
9960 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9962 hardcode_action=
9963 if test -n "$hardcode_libdir_flag_spec" || \
9964 test -n "$runpath_var" || \
9965 test "X$hardcode_automatic" = "Xyes" ; then
9966
9967 # We can hardcode non-existant directories.
9968 if test "$hardcode_direct" != no &&
9969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9970 # have to relink, otherwise we might link with an installed library
9971 # when we should be linking with a yet-to-be-installed one
9972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9973 test "$hardcode_minus_L" != no; then
9974 # Linking always hardcodes the temporary library directory.
9975 hardcode_action=relink
9976 else
9977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9978 hardcode_action=immediate
9979 fi
9980 else
9981 # We cannot hardcode anything, or else we can only hardcode existing
9982 # directories.
9983 hardcode_action=unsupported
9984 fi
9985 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9986 echo "${ECHO_T}$hardcode_action" >&6; }
9987
9988 if test "$hardcode_action" = relink; then
9989 # Fast installation is not supported
9990 enable_fast_install=no
9991 elif test "$shlibpath_overrides_runpath" = yes ||
9992 test "$enable_shared" = no; then
9993 # Fast installation is not necessary
9994 enable_fast_install=needless
9995 fi
9996
9997 striplib=
9998 old_striplib=
9999 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10000 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10001 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10003 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10004 { echo "$as_me:$LINENO: result: yes" >&5
10005 echo "${ECHO_T}yes" >&6; }
10006 else
10007 # FIXME - insert some real tests, host_os isn't really good enough
10008 case $host_os in
10009 darwin*)
10010 if test -n "$STRIP" ; then
10011 striplib="$STRIP -x"
10012 old_striplib="$STRIP -S"
10013 { echo "$as_me:$LINENO: result: yes" >&5
10014 echo "${ECHO_T}yes" >&6; }
10015 else
10016 { echo "$as_me:$LINENO: result: no" >&5
10017 echo "${ECHO_T}no" >&6; }
10018 fi
10019 ;;
10020 *)
10021 { echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6; }
10023 ;;
10024 esac
10025 fi
10026
10027 if test "x$enable_dlopen" != xyes; then
10028 enable_dlopen=unknown
10029 enable_dlopen_self=unknown
10030 enable_dlopen_self_static=unknown
10031 else
10032 lt_cv_dlopen=no
10033 lt_cv_dlopen_libs=
10034
10035 case $host_os in
10036 beos*)
10037 lt_cv_dlopen="load_add_on"
10038 lt_cv_dlopen_libs=
10039 lt_cv_dlopen_self=yes
10040 ;;
10041
10042 mingw* | pw32*)
10043 lt_cv_dlopen="LoadLibrary"
10044 lt_cv_dlopen_libs=
10045 ;;
10046
10047 cygwin*)
10048 lt_cv_dlopen="dlopen"
10049 lt_cv_dlopen_libs=
10050 ;;
10051
10052 darwin*)
10053 # if libdl is installed we need to link against it
10054 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059 ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-ldl $LIBS"
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h. */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067
10068 /* Override any GCC internal prototype to avoid an error.
10069 Use char because int might match the return type of a GCC
10070 builtin and then its argument prototype would still apply. */
10071 #ifdef __cplusplus
10072 extern "C"
10073 #endif
10074 char dlopen ();
10075 int
10076 main ()
10077 {
10078 return dlopen ();
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10088 esac
10089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10090 (eval "$ac_link") 2>conftest.er1
10091 ac_status=$?
10092 grep -v '^ *+' conftest.er1 >conftest.err
10093 rm -f conftest.er1
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } && {
10097 test -z "$ac_c_werror_flag" ||
10098 test ! -s conftest.err
10099 } && test -s conftest$ac_exeext &&
10100 $as_test_x conftest$ac_exeext; then
10101 ac_cv_lib_dl_dlopen=yes
10102 else
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10105
10106 ac_cv_lib_dl_dlopen=no
10107 fi
10108
10109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10110 conftest$ac_exeext conftest.$ac_ext
10111 LIBS=$ac_check_lib_save_LIBS
10112 fi
10113 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10114 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10115 if test $ac_cv_lib_dl_dlopen = yes; then
10116 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10117 else
10118
10119 lt_cv_dlopen="dyld"
10120 lt_cv_dlopen_libs=
10121 lt_cv_dlopen_self=yes
10122
10123 fi
10124
10125 ;;
10126
10127 *)
10128 { echo "$as_me:$LINENO: checking for shl_load" >&5
10129 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10130 if test "${ac_cv_func_shl_load+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133 cat >conftest.$ac_ext <<_ACEOF
10134 /* confdefs.h. */
10135 _ACEOF
10136 cat confdefs.h >>conftest.$ac_ext
10137 cat >>conftest.$ac_ext <<_ACEOF
10138 /* end confdefs.h. */
10139 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10141 #define shl_load innocuous_shl_load
10142
10143 /* System header to define __stub macros and hopefully few prototypes,
10144 which can conflict with char shl_load (); below.
10145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10146 <limits.h> exists even on freestanding compilers. */
10147
10148 #ifdef __STDC__
10149 # include <limits.h>
10150 #else
10151 # include <assert.h>
10152 #endif
10153
10154 #undef shl_load
10155
10156 /* Override any GCC internal prototype to avoid an error.
10157 Use char because int might match the return type of a GCC
10158 builtin and then its argument prototype would still apply. */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char shl_load ();
10163 /* The GNU C library defines this for functions which it implements
10164 to always fail with ENOSYS. Some functions are actually named
10165 something starting with __ and the normal name is an alias. */
10166 #if defined __stub_shl_load || defined __stub___shl_load
10167 choke me
10168 #endif
10169
10170 int
10171 main ()
10172 {
10173 return shl_load ();
10174 ;
10175 return 0;
10176 }
10177 _ACEOF
10178 rm -f conftest.$ac_objext conftest$ac_exeext
10179 if { (ac_try="$ac_link"
10180 case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183 esac
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest$ac_exeext &&
10195 $as_test_x conftest$ac_exeext; then
10196 ac_cv_func_shl_load=yes
10197 else
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10200
10201 ac_cv_func_shl_load=no
10202 fi
10203
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205 conftest$ac_exeext conftest.$ac_ext
10206 fi
10207 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10208 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10209 if test $ac_cv_func_shl_load = yes; then
10210 lt_cv_dlopen="shl_load"
10211 else
10212 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10213 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10214 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10215 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217 ac_check_lib_save_LIBS=$LIBS
10218 LIBS="-ldld $LIBS"
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h. */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10225
10226 /* Override any GCC internal prototype to avoid an error.
10227 Use char because int might match the return type of a GCC
10228 builtin and then its argument prototype would still apply. */
10229 #ifdef __cplusplus
10230 extern "C"
10231 #endif
10232 char shl_load ();
10233 int
10234 main ()
10235 {
10236 return shl_load ();
10237 ;
10238 return 0;
10239 }
10240 _ACEOF
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (ac_try="$ac_link"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_link") 2>conftest.er1
10249 ac_status=$?
10250 grep -v '^ *+' conftest.er1 >conftest.err
10251 rm -f conftest.er1
10252 cat conftest.err >&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } && {
10255 test -z "$ac_c_werror_flag" ||
10256 test ! -s conftest.err
10257 } && test -s conftest$ac_exeext &&
10258 $as_test_x conftest$ac_exeext; then
10259 ac_cv_lib_dld_shl_load=yes
10260 else
10261 echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10263
10264 ac_cv_lib_dld_shl_load=no
10265 fi
10266
10267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10272 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10273 if test $ac_cv_lib_dld_shl_load = yes; then
10274 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10275 else
10276 { echo "$as_me:$LINENO: checking for dlopen" >&5
10277 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10278 if test "${ac_cv_func_dlopen+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289 #define dlopen innocuous_dlopen
10290
10291 /* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char dlopen (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
10295
10296 #ifdef __STDC__
10297 # include <limits.h>
10298 #else
10299 # include <assert.h>
10300 #endif
10301
10302 #undef dlopen
10303
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char dlopen ();
10311 /* The GNU C library defines this for functions which it implements
10312 to always fail with ENOSYS. Some functions are actually named
10313 something starting with __ and the normal name is an alias. */
10314 #if defined __stub_dlopen || defined __stub___dlopen
10315 choke me
10316 #endif
10317
10318 int
10319 main ()
10320 {
10321 return dlopen ();
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext &&
10343 $as_test_x conftest$ac_exeext; then
10344 ac_cv_func_dlopen=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_cv_func_dlopen=no
10350 fi
10351
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi
10355 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10356 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10357 if test $ac_cv_func_dlopen = yes; then
10358 lt_cv_dlopen="dlopen"
10359 else
10360 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10361 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10362 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10363 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 else
10365 ac_check_lib_save_LIBS=$LIBS
10366 LIBS="-ldl $LIBS"
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373
10374 /* Override any GCC internal prototype to avoid an error.
10375 Use char because int might match the return type of a GCC
10376 builtin and then its argument prototype would still apply. */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char dlopen ();
10381 int
10382 main ()
10383 {
10384 return dlopen ();
10385 ;
10386 return 0;
10387 }
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_link") 2>conftest.er1
10397 ac_status=$?
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest$ac_exeext &&
10406 $as_test_x conftest$ac_exeext; then
10407 ac_cv_lib_dl_dlopen=yes
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ac_cv_lib_dl_dlopen=no
10413 fi
10414
10415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10416 conftest$ac_exeext conftest.$ac_ext
10417 LIBS=$ac_check_lib_save_LIBS
10418 fi
10419 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10420 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10421 if test $ac_cv_lib_dl_dlopen = yes; then
10422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10423 else
10424 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10425 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10426 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 ac_check_lib_save_LIBS=$LIBS
10430 LIBS="-lsvld $LIBS"
10431 cat >conftest.$ac_ext <<_ACEOF
10432 /* confdefs.h. */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 char dlopen ();
10445 int
10446 main ()
10447 {
10448 return dlopen ();
10449 ;
10450 return 0;
10451 }
10452 _ACEOF
10453 rm -f conftest.$ac_objext conftest$ac_exeext
10454 if { (ac_try="$ac_link"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_link") 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } && {
10467 test -z "$ac_c_werror_flag" ||
10468 test ! -s conftest.err
10469 } && test -s conftest$ac_exeext &&
10470 $as_test_x conftest$ac_exeext; then
10471 ac_cv_lib_svld_dlopen=yes
10472 else
10473 echo "$as_me: failed program was:" >&5
10474 sed 's/^/| /' conftest.$ac_ext >&5
10475
10476 ac_cv_lib_svld_dlopen=no
10477 fi
10478
10479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480 conftest$ac_exeext conftest.$ac_ext
10481 LIBS=$ac_check_lib_save_LIBS
10482 fi
10483 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10484 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10485 if test $ac_cv_lib_svld_dlopen = yes; then
10486 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10487 else
10488 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10489 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10490 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 else
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-ldld $LIBS"
10495 cat >conftest.$ac_ext <<_ACEOF
10496 /* confdefs.h. */
10497 _ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501
10502 /* Override any GCC internal prototype to avoid an error.
10503 Use char because int might match the return type of a GCC
10504 builtin and then its argument prototype would still apply. */
10505 #ifdef __cplusplus
10506 extern "C"
10507 #endif
10508 char dld_link ();
10509 int
10510 main ()
10511 {
10512 return dld_link ();
10513 ;
10514 return 0;
10515 }
10516 _ACEOF
10517 rm -f conftest.$ac_objext conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest$ac_exeext &&
10534 $as_test_x conftest$ac_exeext; then
10535 ac_cv_lib_dld_dld_link=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10539
10540 ac_cv_lib_dld_dld_link=no
10541 fi
10542
10543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10544 conftest$ac_exeext conftest.$ac_ext
10545 LIBS=$ac_check_lib_save_LIBS
10546 fi
10547 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10548 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10549 if test $ac_cv_lib_dld_dld_link = yes; then
10550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10551 fi
10552
10553
10554 fi
10555
10556
10557 fi
10558
10559
10560 fi
10561
10562
10563 fi
10564
10565
10566 fi
10567
10568 ;;
10569 esac
10570
10571 if test "x$lt_cv_dlopen" != xno; then
10572 enable_dlopen=yes
10573 else
10574 enable_dlopen=no
10575 fi
10576
10577 case $lt_cv_dlopen in
10578 dlopen)
10579 save_CPPFLAGS="$CPPFLAGS"
10580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10581
10582 save_LDFLAGS="$LDFLAGS"
10583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10584
10585 save_LIBS="$LIBS"
10586 LIBS="$lt_cv_dlopen_libs $LIBS"
10587
10588 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10589 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10590 if test "${lt_cv_dlopen_self+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593 if test "$cross_compiling" = yes; then :
10594 lt_cv_dlopen_self=cross
10595 else
10596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597 lt_status=$lt_dlunknown
10598 cat > conftest.$ac_ext <<EOF
10599 #line 10599 "configure"
10600 #include "confdefs.h"
10601
10602 #if HAVE_DLFCN_H
10603 #include <dlfcn.h>
10604 #endif
10605
10606 #include <stdio.h>
10607
10608 #ifdef RTLD_GLOBAL
10609 # define LT_DLGLOBAL RTLD_GLOBAL
10610 #else
10611 # ifdef DL_GLOBAL
10612 # define LT_DLGLOBAL DL_GLOBAL
10613 # else
10614 # define LT_DLGLOBAL 0
10615 # endif
10616 #endif
10617
10618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619 find out it does not work in some platform. */
10620 #ifndef LT_DLLAZY_OR_NOW
10621 # ifdef RTLD_LAZY
10622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10623 # else
10624 # ifdef DL_LAZY
10625 # define LT_DLLAZY_OR_NOW DL_LAZY
10626 # else
10627 # ifdef RTLD_NOW
10628 # define LT_DLLAZY_OR_NOW RTLD_NOW
10629 # else
10630 # ifdef DL_NOW
10631 # define LT_DLLAZY_OR_NOW DL_NOW
10632 # else
10633 # define LT_DLLAZY_OR_NOW 0
10634 # endif
10635 # endif
10636 # endif
10637 # endif
10638 #endif
10639
10640 #ifdef __cplusplus
10641 extern "C" void exit (int);
10642 #endif
10643
10644 void fnord() { int i=42;}
10645 int main ()
10646 {
10647 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648 int status = $lt_dlunknown;
10649
10650 if (self)
10651 {
10652 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10653 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654 /* dlclose (self); */
10655 }
10656 else
10657 puts (dlerror ());
10658
10659 exit (status);
10660 }
10661 EOF
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>&5
10664 ac_status=$?
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10667 (./conftest; exit; ) >&5 2>/dev/null
10668 lt_status=$?
10669 case x$lt_status in
10670 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10671 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10672 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10673 esac
10674 else :
10675 # compilation failed
10676 lt_cv_dlopen_self=no
10677 fi
10678 fi
10679 rm -fr conftest*
10680
10681
10682 fi
10683 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10684 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10685
10686 if test "x$lt_cv_dlopen_self" = xyes; then
10687 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10688 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10689 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10690 if test "${lt_cv_dlopen_self_static+set}" = set; then
10691 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693 if test "$cross_compiling" = yes; then :
10694 lt_cv_dlopen_self_static=cross
10695 else
10696 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10697 lt_status=$lt_dlunknown
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10699 "configure"
10700 #include "confdefs.h"
10701
10702 #if HAVE_DLFCN_H
10703 #include <dlfcn.h>
10704 #endif
10705
10706 #include <stdio.h>
10707
10708 #ifdef RTLD_GLOBAL
10709 # define LT_DLGLOBAL RTLD_GLOBAL
10710 #else
10711 # ifdef DL_GLOBAL
10712 # define LT_DLGLOBAL DL_GLOBAL
10713 # else
10714 # define LT_DLGLOBAL 0
10715 # endif
10716 #endif
10717
10718 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10719 find out it does not work in some platform. */
10720 #ifndef LT_DLLAZY_OR_NOW
10721 # ifdef RTLD_LAZY
10722 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10723 # else
10724 # ifdef DL_LAZY
10725 # define LT_DLLAZY_OR_NOW DL_LAZY
10726 # else
10727 # ifdef RTLD_NOW
10728 # define LT_DLLAZY_OR_NOW RTLD_NOW
10729 # else
10730 # ifdef DL_NOW
10731 # define LT_DLLAZY_OR_NOW DL_NOW
10732 # else
10733 # define LT_DLLAZY_OR_NOW 0
10734 # endif
10735 # endif
10736 # endif
10737 # endif
10738 #endif
10739
10740 #ifdef __cplusplus
10741 extern "C" void exit (int);
10742 #endif
10743
10744 void fnord() { int i=42;}
10745 int main ()
10746 {
10747 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10748 int status = $lt_dlunknown;
10749
10750 if (self)
10751 {
10752 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10753 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10754 /* dlclose (self); */
10755 }
10756 else
10757 puts (dlerror ());
10758
10759 exit (status);
10760 }
10761 EOF
10762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10763 (eval $ac_link) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10767 (./conftest; exit; ) >&5 2>/dev/null
10768 lt_status=$?
10769 case x$lt_status in
10770 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10771 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10772 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10773 esac
10774 else :
10775 # compilation failed
10776 lt_cv_dlopen_self_static=no
10777 fi
10778 fi
10779 rm -fr conftest*
10780
10781
10782 fi
10783 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10784 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10785 fi
10786
10787 CPPFLAGS="$save_CPPFLAGS"
10788 LDFLAGS="$save_LDFLAGS"
10789 LIBS="$save_LIBS"
10790 ;;
10791 esac
10792
10793 case $lt_cv_dlopen_self in
10794 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10795 *) enable_dlopen_self=unknown ;;
10796 esac
10797
10798 case $lt_cv_dlopen_self_static in
10799 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10800 *) enable_dlopen_self_static=unknown ;;
10801 esac
10802 fi
10803
10804
10805 # Report which library types will actually be built
10806 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10807 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10808 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10809 echo "${ECHO_T}$can_build_shared" >&6; }
10810
10811 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10812 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10813 test "$can_build_shared" = "no" && enable_shared=no
10814
10815 # On AIX, shared libraries and static libraries use the same namespace, and
10816 # are all built from PIC.
10817 case $host_os in
10818 aix3*)
10819 test "$enable_shared" = yes && enable_static=no
10820 if test -n "$RANLIB"; then
10821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10822 postinstall_cmds='$RANLIB $lib'
10823 fi
10824 ;;
10825
10826 aix[4-9]*)
10827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10828 test "$enable_shared" = yes && enable_static=no
10829 fi
10830 ;;
10831 esac
10832 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10833 echo "${ECHO_T}$enable_shared" >&6; }
10834
10835 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10836 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10837 # Make sure either enable_shared or enable_static is yes.
10838 test "$enable_shared" = yes || enable_static=yes
10839 { echo "$as_me:$LINENO: result: $enable_static" >&5
10840 echo "${ECHO_T}$enable_static" >&6; }
10841
10842 # The else clause should only fire when bootstrapping the
10843 # libtool distribution, otherwise you forgot to ship ltmain.sh
10844 # with your package, and you will get complaints that there are
10845 # no rules to generate ltmain.sh.
10846 if test -f "$ltmain"; then
10847 # See if we are running on zsh, and set the options which allow our commands through
10848 # without removal of \ escapes.
10849 if test -n "${ZSH_VERSION+set}" ; then
10850 setopt NO_GLOB_SUBST
10851 fi
10852 # Now quote all the things that may contain metacharacters while being
10853 # careful not to overquote the AC_SUBSTed values. We take copies of the
10854 # variables and quote the copies for generation of the libtool script.
10855 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10856 SED SHELL STRIP \
10857 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10858 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10859 deplibs_check_method reload_flag reload_cmds need_locks \
10860 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10861 lt_cv_sys_global_symbol_to_c_name_address \
10862 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10863 old_postinstall_cmds old_postuninstall_cmds \
10864 compiler \
10865 CC \
10866 LD \
10867 lt_prog_compiler_wl \
10868 lt_prog_compiler_pic \
10869 lt_prog_compiler_static \
10870 lt_prog_compiler_no_builtin_flag \
10871 export_dynamic_flag_spec \
10872 thread_safe_flag_spec \
10873 whole_archive_flag_spec \
10874 enable_shared_with_static_runtimes \
10875 old_archive_cmds \
10876 old_archive_from_new_cmds \
10877 predep_objects \
10878 postdep_objects \
10879 predeps \
10880 postdeps \
10881 compiler_lib_search_path \
10882 compiler_lib_search_dirs \
10883 archive_cmds \
10884 archive_expsym_cmds \
10885 postinstall_cmds \
10886 postuninstall_cmds \
10887 old_archive_from_expsyms_cmds \
10888 allow_undefined_flag \
10889 no_undefined_flag \
10890 export_symbols_cmds \
10891 hardcode_libdir_flag_spec \
10892 hardcode_libdir_flag_spec_ld \
10893 hardcode_libdir_separator \
10894 hardcode_automatic \
10895 module_cmds \
10896 module_expsym_cmds \
10897 lt_cv_prog_compiler_c_o \
10898 fix_srcfile_path \
10899 exclude_expsyms \
10900 include_expsyms; do
10901
10902 case $var in
10903 old_archive_cmds | \
10904 old_archive_from_new_cmds | \
10905 archive_cmds | \
10906 archive_expsym_cmds | \
10907 module_cmds | \
10908 module_expsym_cmds | \
10909 old_archive_from_expsyms_cmds | \
10910 export_symbols_cmds | \
10911 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10912 postinstall_cmds | postuninstall_cmds | \
10913 old_postinstall_cmds | old_postuninstall_cmds | \
10914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10915 # Double-quote double-evaled strings.
10916 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10917 ;;
10918 *)
10919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10920 ;;
10921 esac
10922 done
10923
10924 case $lt_echo in
10925 *'\$0 --fallback-echo"')
10926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10927 ;;
10928 esac
10929
10930 cfgfile="${ofile}T"
10931 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10932 $rm -f "$cfgfile"
10933 { echo "$as_me:$LINENO: creating $ofile" >&5
10934 echo "$as_me: creating $ofile" >&6;}
10935
10936 cat <<__EOF__ >> "$cfgfile"
10937 #! $SHELL
10938
10939 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10940 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10941 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10942 #
10943 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10944 # Free Software Foundation, Inc.
10945 #
10946 # This file is part of GNU Libtool:
10947 # Originally by Gordon Matzigkeit <gord (at] gnu.ai.mit.edu>, 1996
10948 #
10949 # This program is free software; you can redistribute it and/or modify
10950 # it under the terms of the GNU General Public License as published by
10951 # the Free Software Foundation; either version 2 of the License, or
10952 # (at your option) any later version.
10953 #
10954 # This program is distributed in the hope that it will be useful, but
10955 # WITHOUT ANY WARRANTY; without even the implied warranty of
10956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10957 # General Public License for more details.
10958 #
10959 # You should have received a copy of the GNU General Public License
10960 # along with this program; if not, write to the Free Software
10961 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10962 #
10963 # As a special exception to the GNU General Public License, if you
10964 # distribute this file as part of a program that contains a
10965 # configuration script generated by Autoconf, you may include it under
10966 # the same distribution terms that you use for the rest of that program.
10967
10968 # A sed program that does not truncate output.
10969 SED=$lt_SED
10970
10971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10972 Xsed="$SED -e 1s/^X//"
10973
10974 # The HP-UX ksh and POSIX shell print the target directory to stdout
10975 # if CDPATH is set.
10976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10977
10978 # The names of the tagged configurations supported by this script.
10979 available_tags=
10980
10981 # ### BEGIN LIBTOOL CONFIG
10982
10983 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10984
10985 # Shell to use when invoking shell scripts.
10986 SHELL=$lt_SHELL
10987
10988 # Whether or not to build shared libraries.
10989 build_libtool_libs=$enable_shared
10990
10991 # Whether or not to build static libraries.
10992 build_old_libs=$enable_static
10993
10994 # Whether or not to add -lc for building shared libraries.
10995 build_libtool_need_lc=$archive_cmds_need_lc
10996
10997 # Whether or not to disallow shared libs when runtime libs are static
10998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10999
11000 # Whether or not to optimize for fast installation.
11001 fast_install=$enable_fast_install
11002
11003 # The host system.
11004 host_alias=$host_alias
11005 host=$host
11006 host_os=$host_os
11007
11008 # The build system.
11009 build_alias=$build_alias
11010 build=$build
11011 build_os=$build_os
11012
11013 # An echo program that does not interpret backslashes.
11014 echo=$lt_echo
11015
11016 # The archiver.
11017 AR=$lt_AR
11018 AR_FLAGS=$lt_AR_FLAGS
11019
11020 # A C compiler.
11021 LTCC=$lt_LTCC
11022
11023 # LTCC compiler flags.
11024 LTCFLAGS=$lt_LTCFLAGS
11025
11026 # A language-specific compiler.
11027 CC=$lt_compiler
11028
11029 # Is the compiler the GNU C compiler?
11030 with_gcc=$GCC
11031
11032 # An ERE matcher.
11033 EGREP=$lt_EGREP
11034
11035 # The linker used to build libraries.
11036 LD=$lt_LD
11037
11038 # Whether we need hard or soft links.
11039 LN_S=$lt_LN_S
11040
11041 # A BSD-compatible nm program.
11042 NM=$lt_NM
11043
11044 # A symbol stripping program
11045 STRIP=$lt_STRIP
11046
11047 # Used to examine libraries when file_magic_cmd begins "file"
11048 MAGIC_CMD=$MAGIC_CMD
11049
11050 # Used on cygwin: DLL creation program.
11051 DLLTOOL="$DLLTOOL"
11052
11053 # Used on cygwin: object dumper.
11054 OBJDUMP="$OBJDUMP"
11055
11056 # Used on cygwin: assembler.
11057 AS="$AS"
11058
11059 # The name of the directory that contains temporary libtool files.
11060 objdir=$objdir
11061
11062 # How to create reloadable object files.
11063 reload_flag=$lt_reload_flag
11064 reload_cmds=$lt_reload_cmds
11065
11066 # How to pass a linker flag through the compiler.
11067 wl=$lt_lt_prog_compiler_wl
11068
11069 # Object file suffix (normally "o").
11070 objext="$ac_objext"
11071
11072 # Old archive suffix (normally "a").
11073 libext="$libext"
11074
11075 # Shared library suffix (normally ".so").
11076 shrext_cmds='$shrext_cmds'
11077
11078 # Executable file suffix (normally "").
11079 exeext="$exeext"
11080
11081 # Additional compiler flags for building library objects.
11082 pic_flag=$lt_lt_prog_compiler_pic
11083 pic_mode=$pic_mode
11084
11085 # What is the maximum length of a command?
11086 max_cmd_len=$lt_cv_sys_max_cmd_len
11087
11088 # Does compiler simultaneously support -c and -o options?
11089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11090
11091 # Must we lock files when doing compilation?
11092 need_locks=$lt_need_locks
11093
11094 # Do we need the lib prefix for modules?
11095 need_lib_prefix=$need_lib_prefix
11096
11097 # Do we need a version for libraries?
11098 need_version=$need_version
11099
11100 # Whether dlopen is supported.
11101 dlopen_support=$enable_dlopen
11102
11103 # Whether dlopen of programs is supported.
11104 dlopen_self=$enable_dlopen_self
11105
11106 # Whether dlopen of statically linked programs is supported.
11107 dlopen_self_static=$enable_dlopen_self_static
11108
11109 # Compiler flag to prevent dynamic linking.
11110 link_static_flag=$lt_lt_prog_compiler_static
11111
11112 # Compiler flag to turn off builtin functions.
11113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11114
11115 # Compiler flag to allow reflexive dlopens.
11116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11117
11118 # Compiler flag to generate shared objects directly from archives.
11119 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11120
11121 # Compiler flag to generate thread-safe objects.
11122 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11123
11124 # Library versioning type.
11125 version_type=$version_type
11126
11127 # Format of library name prefix.
11128 libname_spec=$lt_libname_spec
11129
11130 # List of archive names. First name is the real one, the rest are links.
11131 # The last name is the one that the linker finds with -lNAME.
11132 library_names_spec=$lt_library_names_spec
11133
11134 # The coded name of the library, if different from the real name.
11135 soname_spec=$lt_soname_spec
11136
11137 # Commands used to build and install an old-style archive.
11138 RANLIB=$lt_RANLIB
11139 old_archive_cmds=$lt_old_archive_cmds
11140 old_postinstall_cmds=$lt_old_postinstall_cmds
11141 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11142
11143 # Create an old-style archive from a shared archive.
11144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11145
11146 # Create a temporary old-style archive to link instead of a shared archive.
11147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11148
11149 # Commands used to build and install a shared archive.
11150 archive_cmds=$lt_archive_cmds
11151 archive_expsym_cmds=$lt_archive_expsym_cmds
11152 postinstall_cmds=$lt_postinstall_cmds
11153 postuninstall_cmds=$lt_postuninstall_cmds
11154
11155 # Commands used to build a loadable module (assumed same as above if empty)
11156 module_cmds=$lt_module_cmds
11157 module_expsym_cmds=$lt_module_expsym_cmds
11158
11159 # Commands to strip libraries.
11160 old_striplib=$lt_old_striplib
11161 striplib=$lt_striplib
11162
11163 # Dependencies to place before the objects being linked to create a
11164 # shared library.
11165 predep_objects=$lt_predep_objects
11166
11167 # Dependencies to place after the objects being linked to create a
11168 # shared library.
11169 postdep_objects=$lt_postdep_objects
11170
11171 # Dependencies to place before the objects being linked to create a
11172 # shared library.
11173 predeps=$lt_predeps
11174
11175 # Dependencies to place after the objects being linked to create a
11176 # shared library.
11177 postdeps=$lt_postdeps
11178
11179 # The directories searched by this compiler when creating a shared
11180 # library
11181 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11182
11183 # The library search path used internally by the compiler when linking
11184 # a shared library.
11185 compiler_lib_search_path=$lt_compiler_lib_search_path
11186
11187 # Method to check whether dependent libraries are shared objects.
11188 deplibs_check_method=$lt_deplibs_check_method
11189
11190 # Command to use when deplibs_check_method == file_magic.
11191 file_magic_cmd=$lt_file_magic_cmd
11192
11193 # Flag that allows shared libraries with undefined symbols to be built.
11194 allow_undefined_flag=$lt_allow_undefined_flag
11195
11196 # Flag that forces no undefined symbols.
11197 no_undefined_flag=$lt_no_undefined_flag
11198
11199 # Commands used to finish a libtool library installation in a directory.
11200 finish_cmds=$lt_finish_cmds
11201
11202 # Same as above, but a single script fragment to be evaled but not shown.
11203 finish_eval=$lt_finish_eval
11204
11205 # Take the output of nm and produce a listing of raw symbols and C names.
11206 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11207
11208 # Transform the output of nm in a proper C declaration
11209 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11210
11211 # Transform the output of nm in a C name address pair
11212 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11213
11214 # This is the shared library runtime path variable.
11215 runpath_var=$runpath_var
11216
11217 # This is the shared library path variable.
11218 shlibpath_var=$shlibpath_var
11219
11220 # Is shlibpath searched before the hard-coded library search path?
11221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11222
11223 # How to hardcode a shared library path into an executable.
11224 hardcode_action=$hardcode_action
11225
11226 # Whether we should hardcode library paths into libraries.
11227 hardcode_into_libs=$hardcode_into_libs
11228
11229 # Flag to hardcode \$libdir into a binary during linking.
11230 # This must work even if \$libdir does not exist.
11231 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11232
11233 # If ld is used when linking, flag to hardcode \$libdir into
11234 # a binary during linking. This must work even if \$libdir does
11235 # not exist.
11236 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11237
11238 # Whether we need a single -rpath flag with a separated argument.
11239 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11240
11241 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11242 # resulting binary.
11243 hardcode_direct=$hardcode_direct
11244
11245 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11246 # resulting binary.
11247 hardcode_minus_L=$hardcode_minus_L
11248
11249 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11250 # the resulting binary.
11251 hardcode_shlibpath_var=$hardcode_shlibpath_var
11252
11253 # Set to yes if building a shared library automatically hardcodes DIR into the library
11254 # and all subsequent libraries and executables linked against it.
11255 hardcode_automatic=$hardcode_automatic
11256
11257 # Variables whose values should be saved in libtool wrapper scripts and
11258 # restored at relink time.
11259 variables_saved_for_relink="$variables_saved_for_relink"
11260
11261 # Whether libtool must link a program against all its dependency libraries.
11262 link_all_deplibs=$link_all_deplibs
11263
11264 # Compile-time system search path for libraries
11265 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11266
11267 # Run-time system search path for libraries
11268 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11269
11270 # Fix the shell variable \$srcfile for the compiler.
11271 fix_srcfile_path=$lt_fix_srcfile_path
11272
11273 # Set to yes if exported symbols are required.
11274 always_export_symbols=$always_export_symbols
11275
11276 # The commands to list exported symbols.
11277 export_symbols_cmds=$lt_export_symbols_cmds
11278
11279 # The commands to extract the exported symbol list from a shared archive.
11280 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11281
11282 # Symbols that should not be listed in the preloaded symbols.
11283 exclude_expsyms=$lt_exclude_expsyms
11284
11285 # Symbols that must always be exported.
11286 include_expsyms=$lt_include_expsyms
11287
11288 # ### END LIBTOOL CONFIG
11289
11290 __EOF__
11291
11292
11293 case $host_os in
11294 aix3*)
11295 cat <<\EOF >> "$cfgfile"
11296
11297 # AIX sometimes has problems with the GCC collect2 program. For some
11298 # reason, if we set the COLLECT_NAMES environment variable, the problems
11299 # vanish in a puff of smoke.
11300 if test "X${COLLECT_NAMES+set}" != Xset; then
11301 COLLECT_NAMES=
11302 export COLLECT_NAMES
11303 fi
11304 EOF
11305 ;;
11306 esac
11307
11308 # We use sed instead of cat because bash on DJGPP gets confused if
11309 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11310 # text mode, it properly converts lines to CR/LF. This bash problem
11311 # is reportedly fixed, but why not run on old versions too?
11312 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11313
11314 mv -f "$cfgfile" "$ofile" || \
11315 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11316 chmod +x "$ofile"
11317
11318 else
11319 # If there is no Makefile yet, we rely on a make rule to execute
11320 # `config.status --recheck' to rerun these tests and create the
11321 # libtool script then.
11322 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11323 if test -f "$ltmain_in"; then
11324 test -f Makefile && make "$ltmain"
11325 fi
11326 fi
11327
11328
11329 ac_ext=c
11330 ac_cpp='$CPP $CPPFLAGS'
11331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334
11335 CC="$lt_save_CC"
11336
11337
11338 # Check whether --with-tags was given.
11339 if test "${with_tags+set}" = set; then
11340 withval=$with_tags; tagnames="$withval"
11341 fi
11342
11343
11344 if test -f "$ltmain" && test -n "$tagnames"; then
11345 if test ! -f "${ofile}"; then
11346 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11347 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11348 fi
11349
11350 if test -z "$LTCC"; then
11351 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11352 if test -z "$LTCC"; then
11353 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11354 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11355 else
11356 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11357 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11358 fi
11359 fi
11360 if test -z "$LTCFLAGS"; then
11361 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11362 fi
11363
11364 # Extract list of available tagged configurations in $ofile.
11365 # Note that this assumes the entire list is on one line.
11366 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11367
11368 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11369 for tagname in $tagnames; do
11370 IFS="$lt_save_ifs"
11371 # Check whether tagname contains only valid characters
11372 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11373 "") ;;
11374 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11375 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11376 { (exit 1); exit 1; }; }
11377 ;;
11378 esac
11379
11380 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11381 then
11382 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11383 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11384 { (exit 1); exit 1; }; }
11385 fi
11386
11387 # Update the list of available tags.
11388 if test -n "$tagname"; then
11389 echo appending configuration tag \"$tagname\" to $ofile
11390
11391 case $tagname in
11392 CXX)
11393 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11394 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11395 (test "X$CXX" != "Xg++"))) ; then
11396 ac_ext=cpp
11397 ac_cpp='$CXXCPP $CPPFLAGS'
11398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11401
11402
11403
11404
11405 archive_cmds_need_lc_CXX=no
11406 allow_undefined_flag_CXX=
11407 always_export_symbols_CXX=no
11408 archive_expsym_cmds_CXX=
11409 export_dynamic_flag_spec_CXX=
11410 hardcode_direct_CXX=no
11411 hardcode_libdir_flag_spec_CXX=
11412 hardcode_libdir_flag_spec_ld_CXX=
11413 hardcode_libdir_separator_CXX=
11414 hardcode_minus_L_CXX=no
11415 hardcode_shlibpath_var_CXX=unsupported
11416 hardcode_automatic_CXX=no
11417 module_cmds_CXX=
11418 module_expsym_cmds_CXX=
11419 link_all_deplibs_CXX=unknown
11420 old_archive_cmds_CXX=$old_archive_cmds
11421 no_undefined_flag_CXX=
11422 whole_archive_flag_spec_CXX=
11423 enable_shared_with_static_runtimes_CXX=no
11424
11425 # Dependencies to place before and after the object being linked:
11426 predep_objects_CXX=
11427 postdep_objects_CXX=
11428 predeps_CXX=
11429 postdeps_CXX=
11430 compiler_lib_search_path_CXX=
11431 compiler_lib_search_dirs_CXX=
11432
11433 # Source file extension for C++ test sources.
11434 ac_ext=cpp
11435
11436 # Object file extension for compiled C++ test sources.
11437 objext=o
11438 objext_CXX=$objext
11439
11440 # Code to be used in simple compile tests
11441 lt_simple_compile_test_code="int some_variable = 0;"
11442
11443 # Code to be used in simple link tests
11444 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11445
11446 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11447
11448 # If no C compiler was specified, use CC.
11449 LTCC=${LTCC-"$CC"}
11450
11451 # If no C compiler flags were specified, use CFLAGS.
11452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11453
11454 # Allow CC to be a program name with arguments.
11455 compiler=$CC
11456
11457
11458 # save warnings/boilerplate of simple test code
11459 ac_outfile=conftest.$ac_objext
11460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11462 _lt_compiler_boilerplate=`cat conftest.err`
11463 $rm conftest*
11464
11465 ac_outfile=conftest.$ac_objext
11466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11468 _lt_linker_boilerplate=`cat conftest.err`
11469 $rm -r conftest*
11470
11471
11472 # Allow CC to be a program name with arguments.
11473 lt_save_CC=$CC
11474 lt_save_LD=$LD
11475 lt_save_GCC=$GCC
11476 GCC=$GXX
11477 lt_save_with_gnu_ld=$with_gnu_ld
11478 lt_save_path_LD=$lt_cv_path_LD
11479 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11480 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11481 else
11482 $as_unset lt_cv_prog_gnu_ld
11483 fi
11484 if test -n "${lt_cv_path_LDCXX+set}"; then
11485 lt_cv_path_LD=$lt_cv_path_LDCXX
11486 else
11487 $as_unset lt_cv_path_LD
11488 fi
11489 test -z "${LDCXX+set}" || LD=$LDCXX
11490 CC=${CXX-"c++"}
11491 compiler=$CC
11492 compiler_CXX=$CC
11493 for cc_temp in $compiler""; do
11494 case $cc_temp in
11495 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11496 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11497 \-*) ;;
11498 *) break;;
11499 esac
11500 done
11501 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11502
11503
11504 # We don't want -fno-exception wen compiling C++ code, so set the
11505 # no_builtin_flag separately
11506 if test "$GXX" = yes; then
11507 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11508 else
11509 lt_prog_compiler_no_builtin_flag_CXX=
11510 fi
11511
11512 if test "$GXX" = yes; then
11513 # Set up default GNU C++ configuration
11514
11515
11516 # Check whether --with-gnu-ld was given.
11517 if test "${with_gnu_ld+set}" = set; then
11518 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11519 else
11520 with_gnu_ld=no
11521 fi
11522
11523 ac_prog=ld
11524 if test "$GCC" = yes; then
11525 # Check if gcc -print-prog-name=ld gives a path.
11526 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11527 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11528 case $host in
11529 *-*-mingw*)
11530 # gcc leaves a trailing carriage return which upsets mingw
11531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11532 *)
11533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11534 esac
11535 case $ac_prog in
11536 # Accept absolute paths.
11537 [\\/]* | ?:[\\/]*)
11538 re_direlt='/[^/][^/]*/\.\./'
11539 # Canonicalize the pathname of ld
11540 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11541 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11542 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11543 done
11544 test -z "$LD" && LD="$ac_prog"
11545 ;;
11546 "")
11547 # If it fails, then pretend we aren't using GCC.
11548 ac_prog=ld
11549 ;;
11550 *)
11551 # If it is relative, then search for the first ld in PATH.
11552 with_gnu_ld=unknown
11553 ;;
11554 esac
11555 elif test "$with_gnu_ld" = yes; then
11556 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11557 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11558 else
11559 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11560 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11561 fi
11562 if test "${lt_cv_path_LD+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 if test -z "$LD"; then
11566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11567 for ac_dir in $PATH; do
11568 IFS="$lt_save_ifs"
11569 test -z "$ac_dir" && ac_dir=.
11570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11571 lt_cv_path_LD="$ac_dir/$ac_prog"
11572 # Check to see if the program is GNU ld. I'd rather use --version,
11573 # but apparently some variants of GNU ld only accept -v.
11574 # Break only if it was the GNU/non-GNU ld that we prefer.
11575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11576 *GNU* | *'with BFD'*)
11577 test "$with_gnu_ld" != no && break
11578 ;;
11579 *)
11580 test "$with_gnu_ld" != yes && break
11581 ;;
11582 esac
11583 fi
11584 done
11585 IFS="$lt_save_ifs"
11586 else
11587 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11588 fi
11589 fi
11590
11591 LD="$lt_cv_path_LD"
11592 if test -n "$LD"; then
11593 { echo "$as_me:$LINENO: result: $LD" >&5
11594 echo "${ECHO_T}$LD" >&6; }
11595 else
11596 { echo "$as_me:$LINENO: result: no" >&5
11597 echo "${ECHO_T}no" >&6; }
11598 fi
11599 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11600 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11601 { (exit 1); exit 1; }; }
11602 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11603 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11604 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11608 case `$LD -v 2>&1 </dev/null` in
11609 *GNU* | *'with BFD'*)
11610 lt_cv_prog_gnu_ld=yes
11611 ;;
11612 *)
11613 lt_cv_prog_gnu_ld=no
11614 ;;
11615 esac
11616 fi
11617 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11618 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11619 with_gnu_ld=$lt_cv_prog_gnu_ld
11620
11621
11622
11623 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11624 # archiving commands below assume that GNU ld is being used.
11625 if test "$with_gnu_ld" = yes; then
11626 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11627 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'
11628
11629 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11630 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11631
11632 # If archive_cmds runs LD, not CC, wlarc should be empty
11633 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11634 # investigate it a little bit more. (MM)
11635 wlarc='${wl}'
11636
11637 # ancient GNU ld didn't support --whole-archive et. al.
11638 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11639 grep 'no-whole-archive' > /dev/null; then
11640 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11641 else
11642 whole_archive_flag_spec_CXX=
11643 fi
11644 else
11645 with_gnu_ld=no
11646 wlarc=
11647
11648 # A generic and very simple default shared library creation
11649 # command for GNU C++ for the case where it uses the native
11650 # linker, instead of GNU ld. If possible, this setting should
11651 # overridden to take advantage of the native linker features on
11652 # the platform it is being used on.
11653 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11654 fi
11655
11656 # Commands to make compiler produce verbose output that lists
11657 # what "hidden" libraries, object files and flags are used when
11658 # linking a shared library.
11659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11660
11661 else
11662 GXX=no
11663 with_gnu_ld=no
11664 wlarc=
11665 fi
11666
11667 # PORTME: fill in a description of your system's C++ link characteristics
11668 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11669 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11670 ld_shlibs_CXX=yes
11671 case $host_os in
11672 aix3*)
11673 # FIXME: insert proper C++ library support
11674 ld_shlibs_CXX=no
11675 ;;
11676 aix[4-9]*)
11677 if test "$host_cpu" = ia64; then
11678 # On IA64, the linker does run time linking by default, so we don't
11679 # have to do anything special.
11680 aix_use_runtimelinking=no
11681 exp_sym_flag='-Bexport'
11682 no_entry_flag=""
11683 else
11684 aix_use_runtimelinking=no
11685
11686 # Test if we are trying to use run time linking or normal
11687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11688 # need to do runtime linking.
11689 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11690 for ld_flag in $LDFLAGS; do
11691 case $ld_flag in
11692 *-brtl*)
11693 aix_use_runtimelinking=yes
11694 break
11695 ;;
11696 esac
11697 done
11698 ;;
11699 esac
11700
11701 exp_sym_flag='-bexport'
11702 no_entry_flag='-bnoentry'
11703 fi
11704
11705 # When large executables or shared objects are built, AIX ld can
11706 # have problems creating the table of contents. If linking a library
11707 # or program results in "error TOC overflow" add -mminimal-toc to
11708 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11709 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11710
11711 archive_cmds_CXX=''
11712 hardcode_direct_CXX=yes
11713 hardcode_libdir_separator_CXX=':'
11714 link_all_deplibs_CXX=yes
11715
11716 if test "$GXX" = yes; then
11717 case $host_os in aix4.[012]|aix4.[012].*)
11718 # We only want to do this on AIX 4.2 and lower, the check
11719 # below for broken collect2 doesn't work under 4.3+
11720 collect2name=`${CC} -print-prog-name=collect2`
11721 if test -f "$collect2name" && \
11722 strings "$collect2name" | grep resolve_lib_name >/dev/null
11723 then
11724 # We have reworked collect2
11725 :
11726 else
11727 # We have old collect2
11728 hardcode_direct_CXX=unsupported
11729 # It fails to find uninstalled libraries when the uninstalled
11730 # path is not listed in the libpath. Setting hardcode_minus_L
11731 # to unsupported forces relinking
11732 hardcode_minus_L_CXX=yes
11733 hardcode_libdir_flag_spec_CXX='-L$libdir'
11734 hardcode_libdir_separator_CXX=
11735 fi
11736 ;;
11737 esac
11738 shared_flag='-shared'
11739 if test "$aix_use_runtimelinking" = yes; then
11740 shared_flag="$shared_flag "'${wl}-G'
11741 fi
11742 else
11743 # not using gcc
11744 if test "$host_cpu" = ia64; then
11745 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11746 # chokes on -Wl,-G. The following line is correct:
11747 shared_flag='-G'
11748 else
11749 if test "$aix_use_runtimelinking" = yes; then
11750 shared_flag='${wl}-G'
11751 else
11752 shared_flag='${wl}-bM:SRE'
11753 fi
11754 fi
11755 fi
11756
11757 # It seems that -bexpall does not export symbols beginning with
11758 # underscore (_), so it is better to generate a list of symbols to export.
11759 always_export_symbols_CXX=yes
11760 if test "$aix_use_runtimelinking" = yes; then
11761 # Warning - without using the other runtime loading flags (-brtl),
11762 # -berok will link without error, but may produce a broken library.
11763 allow_undefined_flag_CXX='-berok'
11764 # Determine the default libpath from the value encoded in an empty executable.
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771
11772 int
11773 main ()
11774 {
11775
11776 ;
11777 return 0;
11778 }
11779 _ACEOF
11780 rm -f conftest.$ac_objext conftest$ac_exeext
11781 if { (ac_try="$ac_link"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11785 esac
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_link") 2>conftest.er1
11788 ac_status=$?
11789 grep -v '^ *+' conftest.er1 >conftest.err
11790 rm -f conftest.er1
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && {
11794 test -z "$ac_cxx_werror_flag" ||
11795 test ! -s conftest.err
11796 } && test -s conftest$ac_exeext &&
11797 $as_test_x conftest$ac_exeext; then
11798
11799 lt_aix_libpath_sed='
11800 /Import File Strings/,/^$/ {
11801 /^0/ {
11802 s/^0 *\(.*\)$/\1/
11803 p
11804 }
11805 }'
11806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11807 # Check for a 64-bit object if we didn't find anything.
11808 if test -z "$aix_libpath"; then
11809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11810 fi
11811 else
11812 echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11814
11815
11816 fi
11817
11818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11819 conftest$ac_exeext conftest.$ac_ext
11820 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11821
11822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11823
11824 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"
11825 else
11826 if test "$host_cpu" = ia64; then
11827 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11828 allow_undefined_flag_CXX="-z nodefs"
11829 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"
11830 else
11831 # Determine the default libpath from the value encoded in an empty executable.
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11838
11839 int
11840 main ()
11841 {
11842
11843 ;
11844 return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext conftest$ac_exeext
11848 if { (ac_try="$ac_link"
11849 case "(($ac_try" in
11850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851 *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854 (eval "$ac_link") 2>conftest.er1
11855 ac_status=$?
11856 grep -v '^ *+' conftest.er1 >conftest.err
11857 rm -f conftest.er1
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } && {
11861 test -z "$ac_cxx_werror_flag" ||
11862 test ! -s conftest.err
11863 } && test -s conftest$ac_exeext &&
11864 $as_test_x conftest$ac_exeext; then
11865
11866 lt_aix_libpath_sed='
11867 /Import File Strings/,/^$/ {
11868 /^0/ {
11869 s/^0 *\(.*\)$/\1/
11870 p
11871 }
11872 }'
11873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11874 # Check for a 64-bit object if we didn't find anything.
11875 if test -z "$aix_libpath"; then
11876 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11877 fi
11878 else
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11886 conftest$ac_exeext conftest.$ac_ext
11887 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11888
11889 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11890 # Warning - without using the other run time loading flags,
11891 # -berok will link without error, but may produce a broken library.
11892 no_undefined_flag_CXX=' ${wl}-bernotok'
11893 allow_undefined_flag_CXX=' ${wl}-berok'
11894 # Exported symbols can be pulled into shared objects from archives
11895 whole_archive_flag_spec_CXX='$convenience'
11896 archive_cmds_need_lc_CXX=yes
11897 # This is similar to how AIX traditionally builds its shared libraries.
11898 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'
11899 fi
11900 fi
11901 ;;
11902
11903 beos*)
11904 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11905 allow_undefined_flag_CXX=unsupported
11906 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
11907 # support --undefined. This deserves some investigation. FIXME
11908 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11909 else
11910 ld_shlibs_CXX=no
11911 fi
11912 ;;
11913
11914 chorus*)
11915 case $cc_basename in
11916 *)
11917 # FIXME: insert proper C++ library support
11918 ld_shlibs_CXX=no
11919 ;;
11920 esac
11921 ;;
11922
11923 cygwin* | mingw* | pw32*)
11924 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11925 # as there is no search path for DLLs.
11926 hardcode_libdir_flag_spec_CXX='-L$libdir'
11927 allow_undefined_flag_CXX=unsupported
11928 always_export_symbols_CXX=no
11929 enable_shared_with_static_runtimes_CXX=yes
11930
11931 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11932 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'
11933 # If the export-symbols file already is a .def file (1st line
11934 # is EXPORTS), use it as is; otherwise, prepend...
11935 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11936 cp $export_symbols $output_objdir/$soname.def;
11937 else
11938 echo EXPORTS > $output_objdir/$soname.def;
11939 cat $export_symbols >> $output_objdir/$soname.def;
11940 fi~
11941 $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'
11942 else
11943 ld_shlibs_CXX=no
11944 fi
11945 ;;
11946 darwin* | rhapsody*)
11947 archive_cmds_need_lc_CXX=no
11948 hardcode_direct_CXX=no
11949 hardcode_automatic_CXX=yes
11950 hardcode_shlibpath_var_CXX=unsupported
11951 whole_archive_flag_spec_CXX=''
11952 link_all_deplibs_CXX=yes
11953 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11954 if test "$GXX" = yes ; then
11955 output_verbose_link_cmd='echo'
11956 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11957 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11958 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11959 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11960 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11961 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11962 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11963 fi
11964 else
11965 case $cc_basename in
11966 xlc*)
11967 output_verbose_link_cmd='echo'
11968 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'
11969 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11971 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}'
11972 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}'
11973 ;;
11974 *)
11975 ld_shlibs_CXX=no
11976 ;;
11977 esac
11978 fi
11979 ;;
11980
11981 dgux*)
11982 case $cc_basename in
11983 ec++*)
11984 # FIXME: insert proper C++ library support
11985 ld_shlibs_CXX=no
11986 ;;
11987 ghcx*)
11988 # Green Hills C++ Compiler
11989 # FIXME: insert proper C++ library support
11990 ld_shlibs_CXX=no
11991 ;;
11992 *)
11993 # FIXME: insert proper C++ library support
11994 ld_shlibs_CXX=no
11995 ;;
11996 esac
11997 ;;
11998 freebsd[12]*)
11999 # C++ shared libraries reported to be fairly broken before switch to ELF
12000 ld_shlibs_CXX=no
12001 ;;
12002 freebsd-elf*)
12003 archive_cmds_need_lc_CXX=no
12004 ;;
12005 freebsd* | dragonfly*)
12006 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12007 # conventions
12008 ld_shlibs_CXX=yes
12009 ;;
12010 gnu*)
12011 ;;
12012 hpux9*)
12013 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12014 hardcode_libdir_separator_CXX=:
12015 export_dynamic_flag_spec_CXX='${wl}-E'
12016 hardcode_direct_CXX=yes
12017 hardcode_minus_L_CXX=yes # Not in the search PATH,
12018 # but as the default
12019 # location of the library.
12020
12021 case $cc_basename in
12022 CC*)
12023 # FIXME: insert proper C++ library support
12024 ld_shlibs_CXX=no
12025 ;;
12026 aCC*)
12027 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'
12028 # Commands to make compiler produce verbose output that lists
12029 # what "hidden" libraries, object files and flags are used when
12030 # linking a shared library.
12031 #
12032 # There doesn't appear to be a way to prevent this compiler from
12033 # explicitly linking system object files so we need to strip them
12034 # from the output so that they don't get included in the library
12035 # dependencies.
12036 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'
12037 ;;
12038 *)
12039 if test "$GXX" = yes; then
12040 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'
12041 else
12042 # FIXME: insert proper C++ library support
12043 ld_shlibs_CXX=no
12044 fi
12045 ;;
12046 esac
12047 ;;
12048 hpux10*|hpux11*)
12049 if test $with_gnu_ld = no; then
12050 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12051 hardcode_libdir_separator_CXX=:
12052
12053 case $host_cpu in
12054 hppa*64*|ia64*) ;;
12055 *)
12056 export_dynamic_flag_spec_CXX='${wl}-E'
12057 ;;
12058 esac
12059 fi
12060 case $host_cpu in
12061 hppa*64*|ia64*)
12062 hardcode_direct_CXX=no
12063 hardcode_shlibpath_var_CXX=no
12064 ;;
12065 *)
12066 hardcode_direct_CXX=yes
12067 hardcode_minus_L_CXX=yes # Not in the search PATH,
12068 # but as the default
12069 # location of the library.
12070 ;;
12071 esac
12072
12073 case $cc_basename in
12074 CC*)
12075 # FIXME: insert proper C++ library support
12076 ld_shlibs_CXX=no
12077 ;;
12078 aCC*)
12079 case $host_cpu in
12080 hppa*64*)
12081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 ;;
12083 ia64*)
12084 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12085 ;;
12086 *)
12087 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12088 ;;
12089 esac
12090 # Commands to make compiler produce verbose output that lists
12091 # what "hidden" libraries, object files and flags are used when
12092 # linking a shared library.
12093 #
12094 # There doesn't appear to be a way to prevent this compiler from
12095 # explicitly linking system object files so we need to strip them
12096 # from the output so that they don't get included in the library
12097 # dependencies.
12098 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'
12099 ;;
12100 *)
12101 if test "$GXX" = yes; then
12102 if test $with_gnu_ld = no; then
12103 case $host_cpu in
12104 hppa*64*)
12105 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12106 ;;
12107 ia64*)
12108 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12109 ;;
12110 *)
12111 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'
12112 ;;
12113 esac
12114 fi
12115 else
12116 # FIXME: insert proper C++ library support
12117 ld_shlibs_CXX=no
12118 fi
12119 ;;
12120 esac
12121 ;;
12122 interix[3-9]*)
12123 hardcode_direct_CXX=no
12124 hardcode_shlibpath_var_CXX=no
12125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12126 export_dynamic_flag_spec_CXX='${wl}-E'
12127 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12128 # Instead, shared libraries are loaded at an image base (0x10000000 by
12129 # default) and relocated if they conflict, which is a slow very memory
12130 # consuming and fragmenting process. To avoid this, we pick a random,
12131 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12132 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12133 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'
12134 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'
12135 ;;
12136 irix5* | irix6*)
12137 case $cc_basename in
12138 CC*)
12139 # SGI C++
12140 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'
12141
12142 # Archives containing C++ object files must be created using
12143 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12144 # necessary to make sure instantiated templates are included
12145 # in the archive.
12146 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12147 ;;
12148 *)
12149 if test "$GXX" = yes; then
12150 if test "$with_gnu_ld" = no; then
12151 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'
12152 else
12153 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'
12154 fi
12155 fi
12156 link_all_deplibs_CXX=yes
12157 ;;
12158 esac
12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12160 hardcode_libdir_separator_CXX=:
12161 ;;
12162 linux* | k*bsd*-gnu)
12163 case $cc_basename in
12164 KCC*)
12165 # Kuck and Associates, Inc. (KAI) C++ Compiler
12166
12167 # KCC will only create a shared library if the output file
12168 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12169 # to its proper name (with version) after linking.
12170 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'
12171 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'
12172 # Commands to make compiler produce verbose output that lists
12173 # what "hidden" libraries, object files and flags are used when
12174 # linking a shared library.
12175 #
12176 # There doesn't appear to be a way to prevent this compiler from
12177 # explicitly linking system object files so we need to strip them
12178 # from the output so that they don't get included in the library
12179 # dependencies.
12180 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'
12181
12182 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12184
12185 # Archives containing C++ object files must be created using
12186 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12187 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12188 ;;
12189 icpc*)
12190 # Intel C++
12191 with_gnu_ld=yes
12192 # version 8.0 and above of icpc choke on multiply defined symbols
12193 # if we add $predep_objects and $postdep_objects, however 7.1 and
12194 # earlier do not add the objects themselves.
12195 case `$CC -V 2>&1` in
12196 *"Version 7."*)
12197 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12198 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'
12199 ;;
12200 *) # Version 8.0 or newer
12201 tmp_idyn=
12202 case $host_cpu in
12203 ia64*) tmp_idyn=' -i_dynamic';;
12204 esac
12205 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12206 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'
12207 ;;
12208 esac
12209 archive_cmds_need_lc_CXX=no
12210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12211 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12212 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12213 ;;
12214 pgCC* | pgcpp*)
12215 # Portland Group C++ compiler
12216 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12217 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'
12218
12219 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12221 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'
12222 ;;
12223 cxx*)
12224 # Compaq C++
12225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12226 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'
12227
12228 runpath_var=LD_RUN_PATH
12229 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12230 hardcode_libdir_separator_CXX=:
12231
12232 # Commands to make compiler produce verbose output that lists
12233 # what "hidden" libraries, object files and flags are used when
12234 # linking a shared library.
12235 #
12236 # There doesn't appear to be a way to prevent this compiler from
12237 # explicitly linking system object files so we need to strip them
12238 # from the output so that they don't get included in the library
12239 # dependencies.
12240 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'
12241 ;;
12242 *)
12243 case `$CC -V 2>&1 | sed 5q` in
12244 *Sun\ C*)
12245 # Sun C++ 5.9
12246 no_undefined_flag_CXX=' -zdefs'
12247 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12248 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'
12249 hardcode_libdir_flag_spec_CXX='-R$libdir'
12250 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'
12251
12252 # Not sure whether something based on
12253 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12254 # would be better.
12255 output_verbose_link_cmd='echo'
12256
12257 # Archives containing C++ object files must be created using
12258 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12259 # necessary to make sure instantiated templates are included
12260 # in the archive.
12261 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12262 ;;
12263 esac
12264 ;;
12265 esac
12266 ;;
12267 lynxos*)
12268 # FIXME: insert proper C++ library support
12269 ld_shlibs_CXX=no
12270 ;;
12271 m88k*)
12272 # FIXME: insert proper C++ library support
12273 ld_shlibs_CXX=no
12274 ;;
12275 mvs*)
12276 case $cc_basename in
12277 cxx*)
12278 # FIXME: insert proper C++ library support
12279 ld_shlibs_CXX=no
12280 ;;
12281 *)
12282 # FIXME: insert proper C++ library support
12283 ld_shlibs_CXX=no
12284 ;;
12285 esac
12286 ;;
12287 netbsd* | netbsdelf*-gnu)
12288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12289 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12290 wlarc=
12291 hardcode_libdir_flag_spec_CXX='-R$libdir'
12292 hardcode_direct_CXX=yes
12293 hardcode_shlibpath_var_CXX=no
12294 fi
12295 # Workaround some broken pre-1.5 toolchains
12296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12297 ;;
12298 openbsd2*)
12299 # C++ shared libraries are fairly broken
12300 ld_shlibs_CXX=no
12301 ;;
12302 openbsd*)
12303 if test -f /usr/libexec/ld.so; then
12304 hardcode_direct_CXX=yes
12305 hardcode_shlibpath_var_CXX=no
12306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12307 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12308 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12309 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12310 export_dynamic_flag_spec_CXX='${wl}-E'
12311 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12312 fi
12313 output_verbose_link_cmd='echo'
12314 else
12315 ld_shlibs_CXX=no
12316 fi
12317 ;;
12318 osf3*)
12319 case $cc_basename in
12320 KCC*)
12321 # Kuck and Associates, Inc. (KAI) C++ Compiler
12322
12323 # KCC will only create a shared library if the output file
12324 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12325 # to its proper name (with version) after linking.
12326 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'
12327
12328 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12329 hardcode_libdir_separator_CXX=:
12330
12331 # Archives containing C++ object files must be created using
12332 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12333 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12334
12335 ;;
12336 RCC*)
12337 # Rational C++ 2.4.1
12338 # FIXME: insert proper C++ library support
12339 ld_shlibs_CXX=no
12340 ;;
12341 cxx*)
12342 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12343 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'
12344
12345 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12346 hardcode_libdir_separator_CXX=:
12347
12348 # Commands to make compiler produce verbose output that lists
12349 # what "hidden" libraries, object files and flags are used when
12350 # linking a shared library.
12351 #
12352 # There doesn't appear to be a way to prevent this compiler from
12353 # explicitly linking system object files so we need to strip them
12354 # from the output so that they don't get included in the library
12355 # dependencies.
12356 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'
12357 ;;
12358 *)
12359 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12360 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12361 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'
12362
12363 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12364 hardcode_libdir_separator_CXX=:
12365
12366 # Commands to make compiler produce verbose output that lists
12367 # what "hidden" libraries, object files and flags are used when
12368 # linking a shared library.
12369 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12370
12371 else
12372 # FIXME: insert proper C++ library support
12373 ld_shlibs_CXX=no
12374 fi
12375 ;;
12376 esac
12377 ;;
12378 osf4* | osf5*)
12379 case $cc_basename in
12380 KCC*)
12381 # Kuck and Associates, Inc. (KAI) C++ Compiler
12382
12383 # KCC will only create a shared library if the output file
12384 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12385 # to its proper name (with version) after linking.
12386 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'
12387
12388 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12389 hardcode_libdir_separator_CXX=:
12390
12391 # Archives containing C++ object files must be created using
12392 # the KAI C++ compiler.
12393 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12394 ;;
12395 RCC*)
12396 # Rational C++ 2.4.1
12397 # FIXME: insert proper C++ library support
12398 ld_shlibs_CXX=no
12399 ;;
12400 cxx*)
12401 allow_undefined_flag_CXX=' -expect_unresolved \*'
12402 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'
12403 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12404 echo "-hidden">> $lib.exp~
12405 $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~
12406 $rm $lib.exp'
12407
12408 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12409 hardcode_libdir_separator_CXX=:
12410
12411 # Commands to make compiler produce verbose output that lists
12412 # what "hidden" libraries, object files and flags are used when
12413 # linking a shared library.
12414 #
12415 # There doesn't appear to be a way to prevent this compiler from
12416 # explicitly linking system object files so we need to strip them
12417 # from the output so that they don't get included in the library
12418 # dependencies.
12419 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'
12420 ;;
12421 *)
12422 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12423 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12424 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'
12425
12426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12427 hardcode_libdir_separator_CXX=:
12428
12429 # Commands to make compiler produce verbose output that lists
12430 # what "hidden" libraries, object files and flags are used when
12431 # linking a shared library.
12432 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12433
12434 else
12435 # FIXME: insert proper C++ library support
12436 ld_shlibs_CXX=no
12437 fi
12438 ;;
12439 esac
12440 ;;
12441 psos*)
12442 # FIXME: insert proper C++ library support
12443 ld_shlibs_CXX=no
12444 ;;
12445 sunos4*)
12446 case $cc_basename in
12447 CC*)
12448 # Sun C++ 4.x
12449 # FIXME: insert proper C++ library support
12450 ld_shlibs_CXX=no
12451 ;;
12452 lcc*)
12453 # Lucid
12454 # FIXME: insert proper C++ library support
12455 ld_shlibs_CXX=no
12456 ;;
12457 *)
12458 # FIXME: insert proper C++ library support
12459 ld_shlibs_CXX=no
12460 ;;
12461 esac
12462 ;;
12463 solaris*)
12464 case $cc_basename in
12465 CC*)
12466 # Sun C++ 4.2, 5.x and Centerline C++
12467 archive_cmds_need_lc_CXX=yes
12468 no_undefined_flag_CXX=' -zdefs'
12469 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12470 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12471 $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'
12472
12473 hardcode_libdir_flag_spec_CXX='-R$libdir'
12474 hardcode_shlibpath_var_CXX=no
12475 case $host_os in
12476 solaris2.[0-5] | solaris2.[0-5].*) ;;
12477 *)
12478 # The compiler driver will combine and reorder linker options,
12479 # but understands `-z linker_flag'.
12480 # Supported since Solaris 2.6 (maybe 2.5.1?)
12481 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12482 ;;
12483 esac
12484 link_all_deplibs_CXX=yes
12485
12486 output_verbose_link_cmd='echo'
12487
12488 # Archives containing C++ object files must be created using
12489 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12490 # necessary to make sure instantiated templates are included
12491 # in the archive.
12492 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12493 ;;
12494 gcx*)
12495 # Green Hills C++ Compiler
12496 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12497
12498 # The C++ compiler must be used to create the archive.
12499 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12500 ;;
12501 *)
12502 # GNU C++ compiler with Solaris linker
12503 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12504 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12505 if $CC --version | grep -v '^2\.7' > /dev/null; then
12506 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12507 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12508 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12509
12510 # Commands to make compiler produce verbose output that lists
12511 # what "hidden" libraries, object files and flags are used when
12512 # linking a shared library.
12513 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12514 else
12515 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12516 # platform.
12517 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12519 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12520
12521 # Commands to make compiler produce verbose output that lists
12522 # what "hidden" libraries, object files and flags are used when
12523 # linking a shared library.
12524 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12525 fi
12526
12527 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12528 case $host_os in
12529 solaris2.[0-5] | solaris2.[0-5].*) ;;
12530 *)
12531 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12532 ;;
12533 esac
12534 fi
12535 ;;
12536 esac
12537 ;;
12538 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12539 no_undefined_flag_CXX='${wl}-z,text'
12540 archive_cmds_need_lc_CXX=no
12541 hardcode_shlibpath_var_CXX=no
12542 runpath_var='LD_RUN_PATH'
12543
12544 case $cc_basename in
12545 CC*)
12546 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12547 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12548 ;;
12549 *)
12550 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12551 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12552 ;;
12553 esac
12554 ;;
12555 sysv5* | sco3.2v5* | sco5v6*)
12556 # Note: We can NOT use -z defs as we might desire, because we do not
12557 # link with -lc, and that would cause any symbols used from libc to
12558 # always be unresolved, which means just about no library would
12559 # ever link correctly. If we're not using GNU ld we use -z text
12560 # though, which does catch some bad symbols but isn't as heavy-handed
12561 # as -z defs.
12562 # For security reasons, it is highly recommended that you always
12563 # use absolute paths for naming shared libraries, and exclude the
12564 # DT_RUNPATH tag from executables and libraries. But doing so
12565 # requires that you compile everything twice, which is a pain.
12566 # So that behaviour is only enabled if SCOABSPATH is set to a
12567 # non-empty value in the environment. Most likely only useful for
12568 # creating official distributions of packages.
12569 # This is a hack until libtool officially supports absolute path
12570 # names for shared libraries.
12571 no_undefined_flag_CXX='${wl}-z,text'
12572 allow_undefined_flag_CXX='${wl}-z,nodefs'
12573 archive_cmds_need_lc_CXX=no
12574 hardcode_shlibpath_var_CXX=no
12575 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12576 hardcode_libdir_separator_CXX=':'
12577 link_all_deplibs_CXX=yes
12578 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12579 runpath_var='LD_RUN_PATH'
12580
12581 case $cc_basename in
12582 CC*)
12583 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12584 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12585 ;;
12586 *)
12587 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12588 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12589 ;;
12590 esac
12591 ;;
12592 tandem*)
12593 case $cc_basename in
12594 NCC*)
12595 # NonStop-UX NCC 3.20
12596 # FIXME: insert proper C++ library support
12597 ld_shlibs_CXX=no
12598 ;;
12599 *)
12600 # FIXME: insert proper C++ library support
12601 ld_shlibs_CXX=no
12602 ;;
12603 esac
12604 ;;
12605 vxworks*)
12606 # FIXME: insert proper C++ library support
12607 ld_shlibs_CXX=no
12608 ;;
12609 *)
12610 # FIXME: insert proper C++ library support
12611 ld_shlibs_CXX=no
12612 ;;
12613 esac
12614 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12615 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12616 test "$ld_shlibs_CXX" = no && can_build_shared=no
12617
12618 GCC_CXX="$GXX"
12619 LD_CXX="$LD"
12620
12621 cat > conftest.$ac_ext <<EOF
12622 class Foo
12623 {
12624 public:
12625 Foo (void) { a = 0; }
12626 private:
12627 int a;
12628 };
12629 EOF
12630
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>&5
12633 ac_status=$?
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); }; then
12636 # Parse the compiler output and extract the necessary
12637 # objects, libraries and library flags.
12638
12639 # Sentinel used to keep track of whether or not we are before
12640 # the conftest object file.
12641 pre_test_object_deps_done=no
12642
12643 # The `*' in the case matches for architectures that use `case' in
12644 # $output_verbose_cmd can trigger glob expansion during the loop
12645 # eval without this substitution.
12646 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12647
12648 for p in `eval $output_verbose_link_cmd`; do
12649 case $p in
12650
12651 -L* | -R* | -l*)
12652 # Some compilers place space between "-{L,R}" and the path.
12653 # Remove the space.
12654 if test $p = "-L" \
12655 || test $p = "-R"; then
12656 prev=$p
12657 continue
12658 else
12659 prev=
12660 fi
12661
12662 if test "$pre_test_object_deps_done" = no; then
12663 case $p in
12664 -L* | -R*)
12665 # Internal compiler library paths should come after those
12666 # provided the user. The postdeps already come after the
12667 # user supplied libs so there is no need to process them.
12668 if test -z "$compiler_lib_search_path_CXX"; then
12669 compiler_lib_search_path_CXX="${prev}${p}"
12670 else
12671 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12672 fi
12673 ;;
12674 # The "-l" case would never come before the object being
12675 # linked, so don't bother handling this case.
12676 esac
12677 else
12678 if test -z "$postdeps_CXX"; then
12679 postdeps_CXX="${prev}${p}"
12680 else
12681 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12682 fi
12683 fi
12684 ;;
12685
12686 *.$objext)
12687 # This assumes that the test object file only shows up
12688 # once in the compiler output.
12689 if test "$p" = "conftest.$objext"; then
12690 pre_test_object_deps_done=yes
12691 continue
12692 fi
12693
12694 if test "$pre_test_object_deps_done" = no; then
12695 if test -z "$predep_objects_CXX"; then
12696 predep_objects_CXX="$p"
12697 else
12698 predep_objects_CXX="$predep_objects_CXX $p"
12699 fi
12700 else
12701 if test -z "$postdep_objects_CXX"; then
12702 postdep_objects_CXX="$p"
12703 else
12704 postdep_objects_CXX="$postdep_objects_CXX $p"
12705 fi
12706 fi
12707 ;;
12708
12709 *) ;; # Ignore the rest.
12710
12711 esac
12712 done
12713
12714 # Clean up.
12715 rm -f a.out a.exe
12716 else
12717 echo "libtool.m4: error: problem compiling CXX test program"
12718 fi
12719
12720 $rm -f confest.$objext
12721
12722 compiler_lib_search_dirs_CXX=
12723 if test -n "$compiler_lib_search_path_CXX"; then
12724 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12725 fi
12726
12727 # PORTME: override above test on systems where it is broken
12728 case $host_os in
12729 interix[3-9]*)
12730 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12731 # hack all around it, let's just trust "g++" to DTRT.
12732 predep_objects_CXX=
12733 postdep_objects_CXX=
12734 postdeps_CXX=
12735 ;;
12736
12737 linux*)
12738 case `$CC -V 2>&1 | sed 5q` in
12739 *Sun\ C*)
12740 # Sun C++ 5.9
12741 #
12742 # The more standards-conforming stlport4 library is
12743 # incompatible with the Cstd library. Avoid specifying
12744 # it if it's in CXXFLAGS. Ignore libCrun as
12745 # -library=stlport4 depends on it.
12746 case " $CXX $CXXFLAGS " in
12747 *" -library=stlport4 "*)
12748 solaris_use_stlport4=yes
12749 ;;
12750 esac
12751 if test "$solaris_use_stlport4" != yes; then
12752 postdeps_CXX='-library=Cstd -library=Crun'
12753 fi
12754 ;;
12755 esac
12756 ;;
12757
12758 solaris*)
12759 case $cc_basename in
12760 CC*)
12761 # The more standards-conforming stlport4 library is
12762 # incompatible with the Cstd library. Avoid specifying
12763 # it if it's in CXXFLAGS. Ignore libCrun as
12764 # -library=stlport4 depends on it.
12765 case " $CXX $CXXFLAGS " in
12766 *" -library=stlport4 "*)
12767 solaris_use_stlport4=yes
12768 ;;
12769 esac
12770
12771 # Adding this requires a known-good setup of shared libraries for
12772 # Sun compiler versions before 5.6, else PIC objects from an old
12773 # archive will be linked into the output, leading to subtle bugs.
12774 if test "$solaris_use_stlport4" != yes; then
12775 postdeps_CXX='-library=Cstd -library=Crun'
12776 fi
12777 ;;
12778 esac
12779 ;;
12780 esac
12781
12782 case " $postdeps_CXX " in
12783 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12784 esac
12785
12786 lt_prog_compiler_wl_CXX=
12787 lt_prog_compiler_pic_CXX=
12788 lt_prog_compiler_static_CXX=
12789
12790 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12791 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12792
12793 # C++ specific cases for pic, static, wl, etc.
12794 if test "$GXX" = yes; then
12795 lt_prog_compiler_wl_CXX='-Wl,'
12796 lt_prog_compiler_static_CXX='-static'
12797
12798 case $host_os in
12799 aix*)
12800 # All AIX code is PIC.
12801 if test "$host_cpu" = ia64; then
12802 # AIX 5 now supports IA64 processor
12803 lt_prog_compiler_static_CXX='-Bstatic'
12804 fi
12805 ;;
12806 amigaos*)
12807 # FIXME: we need at least 68020 code to build shared libraries, but
12808 # adding the `-m68020' flag to GCC prevents building anything better,
12809 # like `-m68040'.
12810 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12811 ;;
12812 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12813 # PIC is the default for these OSes.
12814 ;;
12815 mingw* | cygwin* | os2* | pw32*)
12816 # This hack is so that the source file can tell whether it is being
12817 # built for inclusion in a dll (and should export symbols for example).
12818 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12819 # (--disable-auto-import) libraries
12820 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12821 ;;
12822 darwin* | rhapsody*)
12823 # PIC is the default on this platform
12824 # Common symbols not allowed in MH_DYLIB files
12825 lt_prog_compiler_pic_CXX='-fno-common'
12826 ;;
12827 *djgpp*)
12828 # DJGPP does not support shared libraries at all
12829 lt_prog_compiler_pic_CXX=
12830 ;;
12831 interix[3-9]*)
12832 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12833 # Instead, we relocate shared libraries at runtime.
12834 ;;
12835 sysv4*MP*)
12836 if test -d /usr/nec; then
12837 lt_prog_compiler_pic_CXX=-Kconform_pic
12838 fi
12839 ;;
12840 hpux*)
12841 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12842 # not for PA HP-UX.
12843 case $host_cpu in
12844 hppa*64*|ia64*)
12845 ;;
12846 *)
12847 lt_prog_compiler_pic_CXX='-fPIC'
12848 ;;
12849 esac
12850 ;;
12851 *)
12852 lt_prog_compiler_pic_CXX='-fPIC'
12853 ;;
12854 esac
12855 else
12856 case $host_os in
12857 aix[4-9]*)
12858 # All AIX code is PIC.
12859 if test "$host_cpu" = ia64; then
12860 # AIX 5 now supports IA64 processor
12861 lt_prog_compiler_static_CXX='-Bstatic'
12862 else
12863 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12864 fi
12865 ;;
12866 chorus*)
12867 case $cc_basename in
12868 cxch68*)
12869 # Green Hills C++ Compiler
12870 # _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"
12871 ;;
12872 esac
12873 ;;
12874 darwin*)
12875 # PIC is the default on this platform
12876 # Common symbols not allowed in MH_DYLIB files
12877 case $cc_basename in
12878 xlc*)
12879 lt_prog_compiler_pic_CXX='-qnocommon'
12880 lt_prog_compiler_wl_CXX='-Wl,'
12881 ;;
12882 esac
12883 ;;
12884 dgux*)
12885 case $cc_basename in
12886 ec++*)
12887 lt_prog_compiler_pic_CXX='-KPIC'
12888 ;;
12889 ghcx*)
12890 # Green Hills C++ Compiler
12891 lt_prog_compiler_pic_CXX='-pic'
12892 ;;
12893 *)
12894 ;;
12895 esac
12896 ;;
12897 freebsd* | dragonfly*)
12898 # FreeBSD uses GNU C++
12899 ;;
12900 hpux9* | hpux10* | hpux11*)
12901 case $cc_basename in
12902 CC*)
12903 lt_prog_compiler_wl_CXX='-Wl,'
12904 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12905 if test "$host_cpu" != ia64; then
12906 lt_prog_compiler_pic_CXX='+Z'
12907 fi
12908 ;;
12909 aCC*)
12910 lt_prog_compiler_wl_CXX='-Wl,'
12911 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12912 case $host_cpu in
12913 hppa*64*|ia64*)
12914 # +Z the default
12915 ;;
12916 *)
12917 lt_prog_compiler_pic_CXX='+Z'
12918 ;;
12919 esac
12920 ;;
12921 *)
12922 ;;
12923 esac
12924 ;;
12925 interix*)
12926 # This is c89, which is MS Visual C++ (no shared libs)
12927 # Anyone wants to do a port?
12928 ;;
12929 irix5* | irix6* | nonstopux*)
12930 case $cc_basename in
12931 CC*)
12932 lt_prog_compiler_wl_CXX='-Wl,'
12933 lt_prog_compiler_static_CXX='-non_shared'
12934 # CC pic flag -KPIC is the default.
12935 ;;
12936 *)
12937 ;;
12938 esac
12939 ;;
12940 linux* | k*bsd*-gnu)
12941 case $cc_basename in
12942 KCC*)
12943 # KAI C++ Compiler
12944 lt_prog_compiler_wl_CXX='--backend -Wl,'
12945 lt_prog_compiler_pic_CXX='-fPIC'
12946 ;;
12947 icpc* | ecpc*)
12948 # Intel C++
12949 lt_prog_compiler_wl_CXX='-Wl,'
12950 lt_prog_compiler_pic_CXX='-KPIC'
12951 lt_prog_compiler_static_CXX='-static'
12952 ;;
12953 pgCC* | pgcpp*)
12954 # Portland Group C++ compiler.
12955 lt_prog_compiler_wl_CXX='-Wl,'
12956 lt_prog_compiler_pic_CXX='-fpic'
12957 lt_prog_compiler_static_CXX='-Bstatic'
12958 ;;
12959 cxx*)
12960 # Compaq C++
12961 # Make sure the PIC flag is empty. It appears that all Alpha
12962 # Linux and Compaq Tru64 Unix objects are PIC.
12963 lt_prog_compiler_pic_CXX=
12964 lt_prog_compiler_static_CXX='-non_shared'
12965 ;;
12966 *)
12967 case `$CC -V 2>&1 | sed 5q` in
12968 *Sun\ C*)
12969 # Sun C++ 5.9
12970 lt_prog_compiler_pic_CXX='-KPIC'
12971 lt_prog_compiler_static_CXX='-Bstatic'
12972 lt_prog_compiler_wl_CXX='-Qoption ld '
12973 ;;
12974 esac
12975 ;;
12976 esac
12977 ;;
12978 lynxos*)
12979 ;;
12980 m88k*)
12981 ;;
12982 mvs*)
12983 case $cc_basename in
12984 cxx*)
12985 lt_prog_compiler_pic_CXX='-W c,exportall'
12986 ;;
12987 *)
12988 ;;
12989 esac
12990 ;;
12991 netbsd* | netbsdelf*-gnu)
12992 ;;
12993 osf3* | osf4* | osf5*)
12994 case $cc_basename in
12995 KCC*)
12996 lt_prog_compiler_wl_CXX='--backend -Wl,'
12997 ;;
12998 RCC*)
12999 # Rational C++ 2.4.1
13000 lt_prog_compiler_pic_CXX='-pic'
13001 ;;
13002 cxx*)
13003 # Digital/Compaq C++
13004 lt_prog_compiler_wl_CXX='-Wl,'
13005 # Make sure the PIC flag is empty. It appears that all Alpha
13006 # Linux and Compaq Tru64 Unix objects are PIC.
13007 lt_prog_compiler_pic_CXX=
13008 lt_prog_compiler_static_CXX='-non_shared'
13009 ;;
13010 *)
13011 ;;
13012 esac
13013 ;;
13014 psos*)
13015 ;;
13016 solaris*)
13017 case $cc_basename in
13018 CC*)
13019 # Sun C++ 4.2, 5.x and Centerline C++
13020 lt_prog_compiler_pic_CXX='-KPIC'
13021 lt_prog_compiler_static_CXX='-Bstatic'
13022 lt_prog_compiler_wl_CXX='-Qoption ld '
13023 ;;
13024 gcx*)
13025 # Green Hills C++ Compiler
13026 lt_prog_compiler_pic_CXX='-PIC'
13027 ;;
13028 *)
13029 ;;
13030 esac
13031 ;;
13032 sunos4*)
13033 case $cc_basename in
13034 CC*)
13035 # Sun C++ 4.x
13036 lt_prog_compiler_pic_CXX='-pic'
13037 lt_prog_compiler_static_CXX='-Bstatic'
13038 ;;
13039 lcc*)
13040 # Lucid
13041 lt_prog_compiler_pic_CXX='-pic'
13042 ;;
13043 *)
13044 ;;
13045 esac
13046 ;;
13047 tandem*)
13048 case $cc_basename in
13049 NCC*)
13050 # NonStop-UX NCC 3.20
13051 lt_prog_compiler_pic_CXX='-KPIC'
13052 ;;
13053 *)
13054 ;;
13055 esac
13056 ;;
13057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13058 case $cc_basename in
13059 CC*)
13060 lt_prog_compiler_wl_CXX='-Wl,'
13061 lt_prog_compiler_pic_CXX='-KPIC'
13062 lt_prog_compiler_static_CXX='-Bstatic'
13063 ;;
13064 esac
13065 ;;
13066 vxworks*)
13067 ;;
13068 *)
13069 lt_prog_compiler_can_build_shared_CXX=no
13070 ;;
13071 esac
13072 fi
13073
13074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13075 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13076
13077 #
13078 # Check to make sure the PIC flag actually works.
13079 #
13080 if test -n "$lt_prog_compiler_pic_CXX"; then
13081
13082 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13084 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087 lt_cv_prog_compiler_pic_works_CXX=no
13088 ac_outfile=conftest.$ac_objext
13089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13090 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13091 # Insert the option either (1) after the last *FLAGS variable, or
13092 # (2) before a word containing "conftest.", or (3) at the end.
13093 # Note that $ac_compile itself does not contain backslashes and begins
13094 # with a dollar sign (not a hyphen), so the echo should work correctly.
13095 # The option is referenced via a variable to avoid confusing sed.
13096 lt_compile=`echo "$ac_compile" | $SED \
13097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13099 -e 's:$: $lt_compiler_flag:'`
13100 (eval echo "\"\$as_me:13100: $lt_compile\"" >&5)
13101 (eval "$lt_compile" 2>conftest.err)
13102 ac_status=$?
13103 cat conftest.err >&5
13104 echo "$as_me:13104: \$? = $ac_status" >&5
13105 if (exit $ac_status) && test -s "$ac_outfile"; then
13106 # The compiler can only warn and ignore the option if not recognized
13107 # So say no if there are warnings other than the usual output.
13108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13109 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13110 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13111 lt_cv_prog_compiler_pic_works_CXX=yes
13112 fi
13113 fi
13114 $rm conftest*
13115
13116 fi
13117 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13118 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13119
13120 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13121 case $lt_prog_compiler_pic_CXX in
13122 "" | " "*) ;;
13123 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13124 esac
13125 else
13126 lt_prog_compiler_pic_CXX=
13127 lt_prog_compiler_can_build_shared_CXX=no
13128 fi
13129
13130 fi
13131 case $host_os in
13132 # For platforms which do not support PIC, -DPIC is meaningless:
13133 *djgpp*)
13134 lt_prog_compiler_pic_CXX=
13135 ;;
13136 *)
13137 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13138 ;;
13139 esac
13140
13141 #
13142 # Check to make sure the static flag actually works.
13143 #
13144 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13145 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13146 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13147 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150 lt_cv_prog_compiler_static_works_CXX=no
13151 save_LDFLAGS="$LDFLAGS"
13152 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13153 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13154 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13155 # The linker can only warn and ignore the option if not recognized
13156 # So say no if there are warnings
13157 if test -s conftest.err; then
13158 # Append any errors to the config.log.
13159 cat conftest.err 1>&5
13160 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13162 if diff conftest.exp conftest.er2 >/dev/null; then
13163 lt_cv_prog_compiler_static_works_CXX=yes
13164 fi
13165 else
13166 lt_cv_prog_compiler_static_works_CXX=yes
13167 fi
13168 fi
13169 $rm -r conftest*
13170 LDFLAGS="$save_LDFLAGS"
13171
13172 fi
13173 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13174 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13175
13176 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13177 :
13178 else
13179 lt_prog_compiler_static_CXX=
13180 fi
13181
13182
13183 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13184 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13185 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188 lt_cv_prog_compiler_c_o_CXX=no
13189 $rm -r conftest 2>/dev/null
13190 mkdir conftest
13191 cd conftest
13192 mkdir out
13193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13194
13195 lt_compiler_flag="-o out/conftest2.$ac_objext"
13196 # Insert the option either (1) after the last *FLAGS variable, or
13197 # (2) before a word containing "conftest.", or (3) at the end.
13198 # Note that $ac_compile itself does not contain backslashes and begins
13199 # with a dollar sign (not a hyphen), so the echo should work correctly.
13200 lt_compile=`echo "$ac_compile" | $SED \
13201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13203 -e 's:$: $lt_compiler_flag:'`
13204 (eval echo "\"\$as_me:13204: $lt_compile\"" >&5)
13205 (eval "$lt_compile" 2>out/conftest.err)
13206 ac_status=$?
13207 cat out/conftest.err >&5
13208 echo "$as_me:13208: \$? = $ac_status" >&5
13209 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13210 then
13211 # The compiler can only warn and ignore the option if not recognized
13212 # So say no if there are warnings
13213 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13214 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13215 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13216 lt_cv_prog_compiler_c_o_CXX=yes
13217 fi
13218 fi
13219 chmod u+w . 2>&5
13220 $rm conftest*
13221 # SGI C++ compiler will create directory out/ii_files/ for
13222 # template instantiation
13223 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13224 $rm out/* && rmdir out
13225 cd ..
13226 rmdir conftest
13227 $rm conftest*
13228
13229 fi
13230 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13231 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13232
13233
13234 hard_links="nottested"
13235 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13236 # do not overwrite the value of need_locks provided by the user
13237 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13238 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13239 hard_links=yes
13240 $rm conftest*
13241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13242 touch conftest.a
13243 ln conftest.a conftest.b 2>&5 || hard_links=no
13244 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13245 { echo "$as_me:$LINENO: result: $hard_links" >&5
13246 echo "${ECHO_T}$hard_links" >&6; }
13247 if test "$hard_links" = no; then
13248 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13249 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13250 need_locks=warn
13251 fi
13252 else
13253 need_locks=no
13254 fi
13255
13256 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13257 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13258
13259 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13260 case $host_os in
13261 aix[4-9]*)
13262 # If we're using GNU nm, then we don't want the "-C" option.
13263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13264 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13265 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'
13266 else
13267 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'
13268 fi
13269 ;;
13270 pw32*)
13271 export_symbols_cmds_CXX="$ltdll_cmds"
13272 ;;
13273 cygwin* | mingw*)
13274 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'
13275 ;;
13276 linux* | k*bsd*-gnu)
13277 link_all_deplibs_CXX=no
13278 ;;
13279 *)
13280 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13281 ;;
13282 esac
13283 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13284
13285 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13286 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13287 test "$ld_shlibs_CXX" = no && can_build_shared=no
13288
13289 #
13290 # Do we need to explicitly link libc?
13291 #
13292 case "x$archive_cmds_need_lc_CXX" in
13293 x|xyes)
13294 # Assume -lc should be added
13295 archive_cmds_need_lc_CXX=yes
13296
13297 if test "$enable_shared" = yes && test "$GCC" = yes; then
13298 case $archive_cmds_CXX in
13299 *'~'*)
13300 # FIXME: we may have to deal with multi-command sequences.
13301 ;;
13302 '$CC '*)
13303 # Test whether the compiler implicitly links with -lc since on some
13304 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13305 # to ld, don't add -lc before -lgcc.
13306 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13307 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13308 $rm conftest*
13309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13310
13311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312 (eval $ac_compile) 2>&5
13313 ac_status=$?
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } 2>conftest.err; then
13316 soname=conftest
13317 lib=conftest
13318 libobjs=conftest.$ac_objext
13319 deplibs=
13320 wl=$lt_prog_compiler_wl_CXX
13321 pic_flag=$lt_prog_compiler_pic_CXX
13322 compiler_flags=-v
13323 linker_flags=-v
13324 verstring=
13325 output_objdir=.
13326 libname=conftest
13327 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13328 allow_undefined_flag_CXX=
13329 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13330 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }
13334 then
13335 archive_cmds_need_lc_CXX=no
13336 else
13337 archive_cmds_need_lc_CXX=yes
13338 fi
13339 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13340 else
13341 cat conftest.err 1>&5
13342 fi
13343 $rm conftest*
13344 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13345 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13346 ;;
13347 esac
13348 fi
13349 ;;
13350 esac
13351
13352 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13353 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13354 library_names_spec=
13355 libname_spec='lib$name'
13356 soname_spec=
13357 shrext_cmds=".so"
13358 postinstall_cmds=
13359 postuninstall_cmds=
13360 finish_cmds=
13361 finish_eval=
13362 shlibpath_var=
13363 shlibpath_overrides_runpath=unknown
13364 version_type=none
13365 dynamic_linker="$host_os ld.so"
13366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13367
13368 need_lib_prefix=unknown
13369 hardcode_into_libs=no
13370
13371 # when you set need_version to no, make sure it does not cause -set_version
13372 # flags to be left without arguments
13373 need_version=unknown
13374
13375 case $host_os in
13376 aix3*)
13377 version_type=linux
13378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13379 shlibpath_var=LIBPATH
13380
13381 # AIX 3 has no versioning support, so we append a major version to the name.
13382 soname_spec='${libname}${release}${shared_ext}$major'
13383 ;;
13384
13385 aix[4-9]*)
13386 version_type=linux
13387 need_lib_prefix=no
13388 need_version=no
13389 hardcode_into_libs=yes
13390 if test "$host_cpu" = ia64; then
13391 # AIX 5 supports IA64
13392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13393 shlibpath_var=LD_LIBRARY_PATH
13394 else
13395 # With GCC up to 2.95.x, collect2 would create an import file
13396 # for dependence libraries. The import file would start with
13397 # the line `#! .'. This would cause the generated library to
13398 # depend on `.', always an invalid library. This was fixed in
13399 # development snapshots of GCC prior to 3.0.
13400 case $host_os in
13401 aix4 | aix4.[01] | aix4.[01].*)
13402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13403 echo ' yes '
13404 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13405 :
13406 else
13407 can_build_shared=no
13408 fi
13409 ;;
13410 esac
13411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13412 # soname into executable. Probably we can add versioning support to
13413 # collect2, so additional links can be useful in future.
13414 if test "$aix_use_runtimelinking" = yes; then
13415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13416 # instead of lib<name>.a to let people know that these are not
13417 # typical AIX shared libraries.
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13419 else
13420 # We preserve .a as extension for shared libraries through AIX4.2
13421 # and later when we are not doing run time linking.
13422 library_names_spec='${libname}${release}.a $libname.a'
13423 soname_spec='${libname}${release}${shared_ext}$major'
13424 fi
13425 shlibpath_var=LIBPATH
13426 fi
13427 ;;
13428
13429 amigaos*)
13430 library_names_spec='$libname.ixlibrary $libname.a'
13431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13432 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'
13433 ;;
13434
13435 beos*)
13436 library_names_spec='${libname}${shared_ext}'
13437 dynamic_linker="$host_os ld.so"
13438 shlibpath_var=LIBRARY_PATH
13439 ;;
13440
13441 bsdi[45]*)
13442 version_type=linux
13443 need_version=no
13444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13450 # the default ld.so.conf also contains /usr/contrib/lib and
13451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13452 # libtool to hard-code these into programs
13453 ;;
13454
13455 cygwin* | mingw* | pw32*)
13456 version_type=windows
13457 shrext_cmds=".dll"
13458 need_version=no
13459 need_lib_prefix=no
13460
13461 case $GCC,$host_os in
13462 yes,cygwin* | yes,mingw* | yes,pw32*)
13463 library_names_spec='$libname.dll.a'
13464 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13465 postinstall_cmds='base_file=`basename \${file}`~
13466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13467 dldir=$destdir/`dirname \$dlpath`~
13468 test -d \$dldir || mkdir -p \$dldir~
13469 $install_prog $dir/$dlname \$dldir/$dlname~
13470 chmod a+x \$dldir/$dlname'
13471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13472 dlpath=$dir/\$dldll~
13473 $rm \$dlpath'
13474 shlibpath_overrides_runpath=yes
13475
13476 case $host_os in
13477 cygwin*)
13478 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13480 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13481 ;;
13482 mingw*)
13483 # MinGW DLLs use traditional 'lib' prefix
13484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13486 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13487 # It is most probably a Windows format PATH printed by
13488 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13489 # path with ; separators, and with drive letters. We can handle the
13490 # drive letters (cygwin fileutils understands them), so leave them,
13491 # especially as we might pass files found there to a mingw objdump,
13492 # which wouldn't understand a cygwinified path. Ahh.
13493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13494 else
13495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13496 fi
13497 ;;
13498 pw32*)
13499 # pw32 DLLs use 'pw' prefix rather than 'lib'
13500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13501 ;;
13502 esac
13503 ;;
13504
13505 *)
13506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13507 ;;
13508 esac
13509 dynamic_linker='Win32 ld.exe'
13510 # FIXME: first we should search . and the directory the executable is in
13511 shlibpath_var=PATH
13512 ;;
13513
13514 darwin* | rhapsody*)
13515 dynamic_linker="$host_os dyld"
13516 version_type=darwin
13517 need_lib_prefix=no
13518 need_version=no
13519 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13520 soname_spec='${libname}${release}${major}$shared_ext'
13521 shlibpath_overrides_runpath=yes
13522 shlibpath_var=DYLD_LIBRARY_PATH
13523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13524
13525 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13526 ;;
13527
13528 dgux*)
13529 version_type=linux
13530 need_lib_prefix=no
13531 need_version=no
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 ;;
13536
13537 freebsd1*)
13538 dynamic_linker=no
13539 ;;
13540
13541 freebsd* | dragonfly*)
13542 # DragonFly does not have aout. When/if they implement a new
13543 # versioning mechanism, adjust this.
13544 if test -x /usr/bin/objformat; then
13545 objformat=`/usr/bin/objformat`
13546 else
13547 case $host_os in
13548 freebsd[123]*) objformat=aout ;;
13549 *) objformat=elf ;;
13550 esac
13551 fi
13552 version_type=freebsd-$objformat
13553 case $version_type in
13554 freebsd-elf*)
13555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13556 need_version=no
13557 need_lib_prefix=no
13558 ;;
13559 freebsd-*)
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13561 need_version=yes
13562 ;;
13563 esac
13564 shlibpath_var=LD_LIBRARY_PATH
13565 case $host_os in
13566 freebsd2*)
13567 shlibpath_overrides_runpath=yes
13568 ;;
13569 freebsd3.[01]* | freebsdelf3.[01]*)
13570 shlibpath_overrides_runpath=yes
13571 hardcode_into_libs=yes
13572 ;;
13573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13575 shlibpath_overrides_runpath=no
13576 hardcode_into_libs=yes
13577 ;;
13578 *) # from 4.6 on, and DragonFly
13579 shlibpath_overrides_runpath=yes
13580 hardcode_into_libs=yes
13581 ;;
13582 esac
13583 ;;
13584
13585 gnu*)
13586 version_type=linux
13587 need_lib_prefix=no
13588 need_version=no
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13590 soname_spec='${libname}${release}${shared_ext}$major'
13591 shlibpath_var=LD_LIBRARY_PATH
13592 hardcode_into_libs=yes
13593 ;;
13594
13595 hpux9* | hpux10* | hpux11*)
13596 # Give a soname corresponding to the major version so that dld.sl refuses to
13597 # link against other versions.
13598 version_type=sunos
13599 need_lib_prefix=no
13600 need_version=no
13601 case $host_cpu in
13602 ia64*)
13603 shrext_cmds='.so'
13604 hardcode_into_libs=yes
13605 dynamic_linker="$host_os dld.so"
13606 shlibpath_var=LD_LIBRARY_PATH
13607 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609 soname_spec='${libname}${release}${shared_ext}$major'
13610 if test "X$HPUX_IA64_MODE" = X32; then
13611 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13612 else
13613 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13614 fi
13615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13616 ;;
13617 hppa*64*)
13618 shrext_cmds='.sl'
13619 hardcode_into_libs=yes
13620 dynamic_linker="$host_os dld.sl"
13621 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13622 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13624 soname_spec='${libname}${release}${shared_ext}$major'
13625 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13627 ;;
13628 *)
13629 shrext_cmds='.sl'
13630 dynamic_linker="$host_os dld.sl"
13631 shlibpath_var=SHLIB_PATH
13632 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13634 soname_spec='${libname}${release}${shared_ext}$major'
13635 ;;
13636 esac
13637 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13638 postinstall_cmds='chmod 555 $lib'
13639 ;;
13640
13641 interix[3-9]*)
13642 version_type=linux
13643 need_lib_prefix=no
13644 need_version=no
13645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13646 soname_spec='${libname}${release}${shared_ext}$major'
13647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13648 shlibpath_var=LD_LIBRARY_PATH
13649 shlibpath_overrides_runpath=no
13650 hardcode_into_libs=yes
13651 ;;
13652
13653 irix5* | irix6* | nonstopux*)
13654 case $host_os in
13655 nonstopux*) version_type=nonstopux ;;
13656 *)
13657 if test "$lt_cv_prog_gnu_ld" = yes; then
13658 version_type=linux
13659 else
13660 version_type=irix
13661 fi ;;
13662 esac
13663 need_lib_prefix=no
13664 need_version=no
13665 soname_spec='${libname}${release}${shared_ext}$major'
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13667 case $host_os in
13668 irix5* | nonstopux*)
13669 libsuff= shlibsuff=
13670 ;;
13671 *)
13672 case $LD in # libtool.m4 will add one of these switches to LD
13673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13674 libsuff= shlibsuff= libmagic=32-bit;;
13675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13676 libsuff=32 shlibsuff=N32 libmagic=N32;;
13677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13679 *) libsuff= shlibsuff= libmagic=never-match;;
13680 esac
13681 ;;
13682 esac
13683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13684 shlibpath_overrides_runpath=no
13685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13687 hardcode_into_libs=yes
13688 ;;
13689
13690 # No shared lib support for Linux oldld, aout, or coff.
13691 linux*oldld* | linux*aout* | linux*coff*)
13692 dynamic_linker=no
13693 ;;
13694
13695 # This must be Linux ELF.
13696 linux* | k*bsd*-gnu)
13697 version_type=linux
13698 need_lib_prefix=no
13699 need_version=no
13700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13701 soname_spec='${libname}${release}${shared_ext}$major'
13702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13703 shlibpath_var=LD_LIBRARY_PATH
13704 shlibpath_overrides_runpath=no
13705 # This implies no fast_install, which is unacceptable.
13706 # Some rework will be needed to allow for fast_install
13707 # before this can be enabled.
13708 hardcode_into_libs=yes
13709
13710 # Append ld.so.conf contents to the search path
13711 if test -f /etc/ld.so.conf; then
13712 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' ' '`
13713 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13714 fi
13715
13716 # We used to test for /lib/ld.so.1 and disable shared libraries on
13717 # powerpc, because MkLinux only supported shared libraries with the
13718 # GNU dynamic linker. Since this was broken with cross compilers,
13719 # most powerpc-linux boxes support dynamic linking these days and
13720 # people can always --disable-shared, the test was removed, and we
13721 # assume the GNU/Linux dynamic linker is in use.
13722 dynamic_linker='GNU/Linux ld.so'
13723 ;;
13724
13725 netbsdelf*-gnu)
13726 version_type=linux
13727 need_lib_prefix=no
13728 need_version=no
13729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13730 soname_spec='${libname}${release}${shared_ext}$major'
13731 shlibpath_var=LD_LIBRARY_PATH
13732 shlibpath_overrides_runpath=no
13733 hardcode_into_libs=yes
13734 dynamic_linker='NetBSD ld.elf_so'
13735 ;;
13736
13737 netbsd*)
13738 version_type=sunos
13739 need_lib_prefix=no
13740 need_version=no
13741 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13744 dynamic_linker='NetBSD (a.out) ld.so'
13745 else
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 dynamic_linker='NetBSD ld.elf_so'
13749 fi
13750 shlibpath_var=LD_LIBRARY_PATH
13751 shlibpath_overrides_runpath=yes
13752 hardcode_into_libs=yes
13753 ;;
13754
13755 newsos6)
13756 version_type=linux
13757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13758 shlibpath_var=LD_LIBRARY_PATH
13759 shlibpath_overrides_runpath=yes
13760 ;;
13761
13762 nto-qnx*)
13763 version_type=linux
13764 need_lib_prefix=no
13765 need_version=no
13766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13767 soname_spec='${libname}${release}${shared_ext}$major'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=yes
13770 ;;
13771
13772 openbsd*)
13773 version_type=sunos
13774 sys_lib_dlsearch_path_spec="/usr/lib"
13775 need_lib_prefix=no
13776 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13777 case $host_os in
13778 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13779 *) need_version=no ;;
13780 esac
13781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13785 case $host_os in
13786 openbsd2.[89] | openbsd2.[89].*)
13787 shlibpath_overrides_runpath=no
13788 ;;
13789 *)
13790 shlibpath_overrides_runpath=yes
13791 ;;
13792 esac
13793 else
13794 shlibpath_overrides_runpath=yes
13795 fi
13796 ;;
13797
13798 os2*)
13799 libname_spec='$name'
13800 shrext_cmds=".dll"
13801 need_lib_prefix=no
13802 library_names_spec='$libname${shared_ext} $libname.a'
13803 dynamic_linker='OS/2 ld.exe'
13804 shlibpath_var=LIBPATH
13805 ;;
13806
13807 osf3* | osf4* | osf5*)
13808 version_type=osf
13809 need_lib_prefix=no
13810 need_version=no
13811 soname_spec='${libname}${release}${shared_ext}$major'
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13813 shlibpath_var=LD_LIBRARY_PATH
13814 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13815 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13816 ;;
13817
13818 rdos*)
13819 dynamic_linker=no
13820 ;;
13821
13822 solaris*)
13823 version_type=linux
13824 need_lib_prefix=no
13825 need_version=no
13826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13827 soname_spec='${libname}${release}${shared_ext}$major'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13830 hardcode_into_libs=yes
13831 # ldd complains unless libraries are executable
13832 postinstall_cmds='chmod +x $lib'
13833 ;;
13834
13835 sunos4*)
13836 version_type=sunos
13837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13839 shlibpath_var=LD_LIBRARY_PATH
13840 shlibpath_overrides_runpath=yes
13841 if test "$with_gnu_ld" = yes; then
13842 need_lib_prefix=no
13843 fi
13844 need_version=yes
13845 ;;
13846
13847 sysv4 | sysv4.3*)
13848 version_type=linux
13849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850 soname_spec='${libname}${release}${shared_ext}$major'
13851 shlibpath_var=LD_LIBRARY_PATH
13852 case $host_vendor in
13853 sni)
13854 shlibpath_overrides_runpath=no
13855 need_lib_prefix=no
13856 export_dynamic_flag_spec='${wl}-Blargedynsym'
13857 runpath_var=LD_RUN_PATH
13858 ;;
13859 siemens)
13860 need_lib_prefix=no
13861 ;;
13862 motorola)
13863 need_lib_prefix=no
13864 need_version=no
13865 shlibpath_overrides_runpath=no
13866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13867 ;;
13868 esac
13869 ;;
13870
13871 sysv4*MP*)
13872 if test -d /usr/nec ;then
13873 version_type=linux
13874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13875 soname_spec='$libname${shared_ext}.$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 fi
13878 ;;
13879
13880 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13881 version_type=freebsd-elf
13882 need_lib_prefix=no
13883 need_version=no
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13885 soname_spec='${libname}${release}${shared_ext}$major'
13886 shlibpath_var=LD_LIBRARY_PATH
13887 hardcode_into_libs=yes
13888 if test "$with_gnu_ld" = yes; then
13889 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13890 shlibpath_overrides_runpath=no
13891 else
13892 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13893 shlibpath_overrides_runpath=yes
13894 case $host_os in
13895 sco3.2v5*)
13896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13897 ;;
13898 esac
13899 fi
13900 sys_lib_dlsearch_path_spec='/usr/lib'
13901 ;;
13902
13903 uts4*)
13904 version_type=linux
13905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13906 soname_spec='${libname}${release}${shared_ext}$major'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 ;;
13909
13910 *)
13911 dynamic_linker=no
13912 ;;
13913 esac
13914 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13915 echo "${ECHO_T}$dynamic_linker" >&6; }
13916 test "$dynamic_linker" = no && can_build_shared=no
13917
13918 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13922 fi
13923
13924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13925 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 else
13928 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13929 fi
13930
13931 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13932
13933 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13934 if test "$GCC" = yes; then
13935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13936 fi
13937
13938 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13939 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13940 hardcode_action_CXX=
13941 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13942 test -n "$runpath_var_CXX" || \
13943 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13944
13945 # We can hardcode non-existant directories.
13946 if test "$hardcode_direct_CXX" != no &&
13947 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13948 # have to relink, otherwise we might link with an installed library
13949 # when we should be linking with a yet-to-be-installed one
13950 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13951 test "$hardcode_minus_L_CXX" != no; then
13952 # Linking always hardcodes the temporary library directory.
13953 hardcode_action_CXX=relink
13954 else
13955 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13956 hardcode_action_CXX=immediate
13957 fi
13958 else
13959 # We cannot hardcode anything, or else we can only hardcode existing
13960 # directories.
13961 hardcode_action_CXX=unsupported
13962 fi
13963 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13964 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13965
13966 if test "$hardcode_action_CXX" = relink; then
13967 # Fast installation is not supported
13968 enable_fast_install=no
13969 elif test "$shlibpath_overrides_runpath" = yes ||
13970 test "$enable_shared" = no; then
13971 # Fast installation is not necessary
13972 enable_fast_install=needless
13973 fi
13974
13975
13976 # The else clause should only fire when bootstrapping the
13977 # libtool distribution, otherwise you forgot to ship ltmain.sh
13978 # with your package, and you will get complaints that there are
13979 # no rules to generate ltmain.sh.
13980 if test -f "$ltmain"; then
13981 # See if we are running on zsh, and set the options which allow our commands through
13982 # without removal of \ escapes.
13983 if test -n "${ZSH_VERSION+set}" ; then
13984 setopt NO_GLOB_SUBST
13985 fi
13986 # Now quote all the things that may contain metacharacters while being
13987 # careful not to overquote the AC_SUBSTed values. We take copies of the
13988 # variables and quote the copies for generation of the libtool script.
13989 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13990 SED SHELL STRIP \
13991 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13992 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13993 deplibs_check_method reload_flag reload_cmds need_locks \
13994 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13995 lt_cv_sys_global_symbol_to_c_name_address \
13996 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13997 old_postinstall_cmds old_postuninstall_cmds \
13998 compiler_CXX \
13999 CC_CXX \
14000 LD_CXX \
14001 lt_prog_compiler_wl_CXX \
14002 lt_prog_compiler_pic_CXX \
14003 lt_prog_compiler_static_CXX \
14004 lt_prog_compiler_no_builtin_flag_CXX \
14005 export_dynamic_flag_spec_CXX \
14006 thread_safe_flag_spec_CXX \
14007 whole_archive_flag_spec_CXX \
14008 enable_shared_with_static_runtimes_CXX \
14009 old_archive_cmds_CXX \
14010 old_archive_from_new_cmds_CXX \
14011 predep_objects_CXX \
14012 postdep_objects_CXX \
14013 predeps_CXX \
14014 postdeps_CXX \
14015 compiler_lib_search_path_CXX \
14016 compiler_lib_search_dirs_CXX \
14017 archive_cmds_CXX \
14018 archive_expsym_cmds_CXX \
14019 postinstall_cmds_CXX \
14020 postuninstall_cmds_CXX \
14021 old_archive_from_expsyms_cmds_CXX \
14022 allow_undefined_flag_CXX \
14023 no_undefined_flag_CXX \
14024 export_symbols_cmds_CXX \
14025 hardcode_libdir_flag_spec_CXX \
14026 hardcode_libdir_flag_spec_ld_CXX \
14027 hardcode_libdir_separator_CXX \
14028 hardcode_automatic_CXX \
14029 module_cmds_CXX \
14030 module_expsym_cmds_CXX \
14031 lt_cv_prog_compiler_c_o_CXX \
14032 fix_srcfile_path_CXX \
14033 exclude_expsyms_CXX \
14034 include_expsyms_CXX; do
14035
14036 case $var in
14037 old_archive_cmds_CXX | \
14038 old_archive_from_new_cmds_CXX | \
14039 archive_cmds_CXX | \
14040 archive_expsym_cmds_CXX | \
14041 module_cmds_CXX | \
14042 module_expsym_cmds_CXX | \
14043 old_archive_from_expsyms_cmds_CXX | \
14044 export_symbols_cmds_CXX | \
14045 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14046 postinstall_cmds | postuninstall_cmds | \
14047 old_postinstall_cmds | old_postuninstall_cmds | \
14048 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14049 # Double-quote double-evaled strings.
14050 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14051 ;;
14052 *)
14053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14054 ;;
14055 esac
14056 done
14057
14058 case $lt_echo in
14059 *'\$0 --fallback-echo"')
14060 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14061 ;;
14062 esac
14063
14064 cfgfile="$ofile"
14065
14066 cat <<__EOF__ >> "$cfgfile"
14067 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14068
14069 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14070
14071 # Shell to use when invoking shell scripts.
14072 SHELL=$lt_SHELL
14073
14074 # Whether or not to build shared libraries.
14075 build_libtool_libs=$enable_shared
14076
14077 # Whether or not to build static libraries.
14078 build_old_libs=$enable_static
14079
14080 # Whether or not to add -lc for building shared libraries.
14081 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14082
14083 # Whether or not to disallow shared libs when runtime libs are static
14084 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14085
14086 # Whether or not to optimize for fast installation.
14087 fast_install=$enable_fast_install
14088
14089 # The host system.
14090 host_alias=$host_alias
14091 host=$host
14092 host_os=$host_os
14093
14094 # The build system.
14095 build_alias=$build_alias
14096 build=$build
14097 build_os=$build_os
14098
14099 # An echo program that does not interpret backslashes.
14100 echo=$lt_echo
14101
14102 # The archiver.
14103 AR=$lt_AR
14104 AR_FLAGS=$lt_AR_FLAGS
14105
14106 # A C compiler.
14107 LTCC=$lt_LTCC
14108
14109 # LTCC compiler flags.
14110 LTCFLAGS=$lt_LTCFLAGS
14111
14112 # A language-specific compiler.
14113 CC=$lt_compiler_CXX
14114
14115 # Is the compiler the GNU C compiler?
14116 with_gcc=$GCC_CXX
14117
14118 # An ERE matcher.
14119 EGREP=$lt_EGREP
14120
14121 # The linker used to build libraries.
14122 LD=$lt_LD_CXX
14123
14124 # Whether we need hard or soft links.
14125 LN_S=$lt_LN_S
14126
14127 # A BSD-compatible nm program.
14128 NM=$lt_NM
14129
14130 # A symbol stripping program
14131 STRIP=$lt_STRIP
14132
14133 # Used to examine libraries when file_magic_cmd begins "file"
14134 MAGIC_CMD=$MAGIC_CMD
14135
14136 # Used on cygwin: DLL creation program.
14137 DLLTOOL="$DLLTOOL"
14138
14139 # Used on cygwin: object dumper.
14140 OBJDUMP="$OBJDUMP"
14141
14142 # Used on cygwin: assembler.
14143 AS="$AS"
14144
14145 # The name of the directory that contains temporary libtool files.
14146 objdir=$objdir
14147
14148 # How to create reloadable object files.
14149 reload_flag=$lt_reload_flag
14150 reload_cmds=$lt_reload_cmds
14151
14152 # How to pass a linker flag through the compiler.
14153 wl=$lt_lt_prog_compiler_wl_CXX
14154
14155 # Object file suffix (normally "o").
14156 objext="$ac_objext"
14157
14158 # Old archive suffix (normally "a").
14159 libext="$libext"
14160
14161 # Shared library suffix (normally ".so").
14162 shrext_cmds='$shrext_cmds'
14163
14164 # Executable file suffix (normally "").
14165 exeext="$exeext"
14166
14167 # Additional compiler flags for building library objects.
14168 pic_flag=$lt_lt_prog_compiler_pic_CXX
14169 pic_mode=$pic_mode
14170
14171 # What is the maximum length of a command?
14172 max_cmd_len=$lt_cv_sys_max_cmd_len
14173
14174 # Does compiler simultaneously support -c and -o options?
14175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14176
14177 # Must we lock files when doing compilation?
14178 need_locks=$lt_need_locks
14179
14180 # Do we need the lib prefix for modules?
14181 need_lib_prefix=$need_lib_prefix
14182
14183 # Do we need a version for libraries?
14184 need_version=$need_version
14185
14186 # Whether dlopen is supported.
14187 dlopen_support=$enable_dlopen
14188
14189 # Whether dlopen of programs is supported.
14190 dlopen_self=$enable_dlopen_self
14191
14192 # Whether dlopen of statically linked programs is supported.
14193 dlopen_self_static=$enable_dlopen_self_static
14194
14195 # Compiler flag to prevent dynamic linking.
14196 link_static_flag=$lt_lt_prog_compiler_static_CXX
14197
14198 # Compiler flag to turn off builtin functions.
14199 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14200
14201 # Compiler flag to allow reflexive dlopens.
14202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14203
14204 # Compiler flag to generate shared objects directly from archives.
14205 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14206
14207 # Compiler flag to generate thread-safe objects.
14208 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14209
14210 # Library versioning type.
14211 version_type=$version_type
14212
14213 # Format of library name prefix.
14214 libname_spec=$lt_libname_spec
14215
14216 # List of archive names. First name is the real one, the rest are links.
14217 # The last name is the one that the linker finds with -lNAME.
14218 library_names_spec=$lt_library_names_spec
14219
14220 # The coded name of the library, if different from the real name.
14221 soname_spec=$lt_soname_spec
14222
14223 # Commands used to build and install an old-style archive.
14224 RANLIB=$lt_RANLIB
14225 old_archive_cmds=$lt_old_archive_cmds_CXX
14226 old_postinstall_cmds=$lt_old_postinstall_cmds
14227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14228
14229 # Create an old-style archive from a shared archive.
14230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14231
14232 # Create a temporary old-style archive to link instead of a shared archive.
14233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14234
14235 # Commands used to build and install a shared archive.
14236 archive_cmds=$lt_archive_cmds_CXX
14237 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14238 postinstall_cmds=$lt_postinstall_cmds
14239 postuninstall_cmds=$lt_postuninstall_cmds
14240
14241 # Commands used to build a loadable module (assumed same as above if empty)
14242 module_cmds=$lt_module_cmds_CXX
14243 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14244
14245 # Commands to strip libraries.
14246 old_striplib=$lt_old_striplib
14247 striplib=$lt_striplib
14248
14249 # Dependencies to place before the objects being linked to create a
14250 # shared library.
14251 predep_objects=$lt_predep_objects_CXX
14252
14253 # Dependencies to place after the objects being linked to create a
14254 # shared library.
14255 postdep_objects=$lt_postdep_objects_CXX
14256
14257 # Dependencies to place before the objects being linked to create a
14258 # shared library.
14259 predeps=$lt_predeps_CXX
14260
14261 # Dependencies to place after the objects being linked to create a
14262 # shared library.
14263 postdeps=$lt_postdeps_CXX
14264
14265 # The directories searched by this compiler when creating a shared
14266 # library
14267 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14268
14269 # The library search path used internally by the compiler when linking
14270 # a shared library.
14271 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14272
14273 # Method to check whether dependent libraries are shared objects.
14274 deplibs_check_method=$lt_deplibs_check_method
14275
14276 # Command to use when deplibs_check_method == file_magic.
14277 file_magic_cmd=$lt_file_magic_cmd
14278
14279 # Flag that allows shared libraries with undefined symbols to be built.
14280 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14281
14282 # Flag that forces no undefined symbols.
14283 no_undefined_flag=$lt_no_undefined_flag_CXX
14284
14285 # Commands used to finish a libtool library installation in a directory.
14286 finish_cmds=$lt_finish_cmds
14287
14288 # Same as above, but a single script fragment to be evaled but not shown.
14289 finish_eval=$lt_finish_eval
14290
14291 # Take the output of nm and produce a listing of raw symbols and C names.
14292 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14293
14294 # Transform the output of nm in a proper C declaration
14295 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14296
14297 # Transform the output of nm in a C name address pair
14298 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14299
14300 # This is the shared library runtime path variable.
14301 runpath_var=$runpath_var
14302
14303 # This is the shared library path variable.
14304 shlibpath_var=$shlibpath_var
14305
14306 # Is shlibpath searched before the hard-coded library search path?
14307 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14308
14309 # How to hardcode a shared library path into an executable.
14310 hardcode_action=$hardcode_action_CXX
14311
14312 # Whether we should hardcode library paths into libraries.
14313 hardcode_into_libs=$hardcode_into_libs
14314
14315 # Flag to hardcode \$libdir into a binary during linking.
14316 # This must work even if \$libdir does not exist.
14317 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14318
14319 # If ld is used when linking, flag to hardcode \$libdir into
14320 # a binary during linking. This must work even if \$libdir does
14321 # not exist.
14322 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14323
14324 # Whether we need a single -rpath flag with a separated argument.
14325 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14326
14327 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14328 # resulting binary.
14329 hardcode_direct=$hardcode_direct_CXX
14330
14331 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14332 # resulting binary.
14333 hardcode_minus_L=$hardcode_minus_L_CXX
14334
14335 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14336 # the resulting binary.
14337 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14338
14339 # Set to yes if building a shared library automatically hardcodes DIR into the library
14340 # and all subsequent libraries and executables linked against it.
14341 hardcode_automatic=$hardcode_automatic_CXX
14342
14343 # Variables whose values should be saved in libtool wrapper scripts and
14344 # restored at relink time.
14345 variables_saved_for_relink="$variables_saved_for_relink"
14346
14347 # Whether libtool must link a program against all its dependency libraries.
14348 link_all_deplibs=$link_all_deplibs_CXX
14349
14350 # Compile-time system search path for libraries
14351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14352
14353 # Run-time system search path for libraries
14354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14355
14356 # Fix the shell variable \$srcfile for the compiler.
14357 fix_srcfile_path=$lt_fix_srcfile_path
14358
14359 # Set to yes if exported symbols are required.
14360 always_export_symbols=$always_export_symbols_CXX
14361
14362 # The commands to list exported symbols.
14363 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14364
14365 # The commands to extract the exported symbol list from a shared archive.
14366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14367
14368 # Symbols that should not be listed in the preloaded symbols.
14369 exclude_expsyms=$lt_exclude_expsyms_CXX
14370
14371 # Symbols that must always be exported.
14372 include_expsyms=$lt_include_expsyms_CXX
14373
14374 # ### END LIBTOOL TAG CONFIG: $tagname
14375
14376 __EOF__
14377
14378
14379 else
14380 # If there is no Makefile yet, we rely on a make rule to execute
14381 # `config.status --recheck' to rerun these tests and create the
14382 # libtool script then.
14383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14384 if test -f "$ltmain_in"; then
14385 test -f Makefile && make "$ltmain"
14386 fi
14387 fi
14388
14389
14390 ac_ext=c
14391 ac_cpp='$CPP $CPPFLAGS'
14392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14395
14396 CC=$lt_save_CC
14397 LDCXX=$LD
14398 LD=$lt_save_LD
14399 GCC=$lt_save_GCC
14400 with_gnu_ldcxx=$with_gnu_ld
14401 with_gnu_ld=$lt_save_with_gnu_ld
14402 lt_cv_path_LDCXX=$lt_cv_path_LD
14403 lt_cv_path_LD=$lt_save_path_LD
14404 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14405 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14406
14407 else
14408 tagname=""
14409 fi
14410 ;;
14411
14412 F77)
14413 if test -n "$F77" && test "X$F77" != "Xno"; then
14414
14415 ac_ext=f
14416 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14417 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14418 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14419
14420
14421 archive_cmds_need_lc_F77=no
14422 allow_undefined_flag_F77=
14423 always_export_symbols_F77=no
14424 archive_expsym_cmds_F77=
14425 export_dynamic_flag_spec_F77=
14426 hardcode_direct_F77=no
14427 hardcode_libdir_flag_spec_F77=
14428 hardcode_libdir_flag_spec_ld_F77=
14429 hardcode_libdir_separator_F77=
14430 hardcode_minus_L_F77=no
14431 hardcode_automatic_F77=no
14432 module_cmds_F77=
14433 module_expsym_cmds_F77=
14434 link_all_deplibs_F77=unknown
14435 old_archive_cmds_F77=$old_archive_cmds
14436 no_undefined_flag_F77=
14437 whole_archive_flag_spec_F77=
14438 enable_shared_with_static_runtimes_F77=no
14439
14440 # Source file extension for f77 test sources.
14441 ac_ext=f
14442
14443 # Object file extension for compiled f77 test sources.
14444 objext=o
14445 objext_F77=$objext
14446
14447 # Code to be used in simple compile tests
14448 lt_simple_compile_test_code="\
14449 subroutine t
14450 return
14451 end
14452 "
14453
14454 # Code to be used in simple link tests
14455 lt_simple_link_test_code="\
14456 program t
14457 end
14458 "
14459
14460 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14461
14462 # If no C compiler was specified, use CC.
14463 LTCC=${LTCC-"$CC"}
14464
14465 # If no C compiler flags were specified, use CFLAGS.
14466 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14467
14468 # Allow CC to be a program name with arguments.
14469 compiler=$CC
14470
14471
14472 # save warnings/boilerplate of simple test code
14473 ac_outfile=conftest.$ac_objext
14474 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14476 _lt_compiler_boilerplate=`cat conftest.err`
14477 $rm conftest*
14478
14479 ac_outfile=conftest.$ac_objext
14480 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14481 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14482 _lt_linker_boilerplate=`cat conftest.err`
14483 $rm -r conftest*
14484
14485
14486 # Allow CC to be a program name with arguments.
14487 lt_save_CC="$CC"
14488 CC=${F77-"f77"}
14489 compiler=$CC
14490 compiler_F77=$CC
14491 for cc_temp in $compiler""; do
14492 case $cc_temp in
14493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14495 \-*) ;;
14496 *) break;;
14497 esac
14498 done
14499 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14500
14501
14502 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14503 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14504 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14505 echo "${ECHO_T}$can_build_shared" >&6; }
14506
14507 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14508 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14509 test "$can_build_shared" = "no" && enable_shared=no
14510
14511 # On AIX, shared libraries and static libraries use the same namespace, and
14512 # are all built from PIC.
14513 case $host_os in
14514 aix3*)
14515 test "$enable_shared" = yes && enable_static=no
14516 if test -n "$RANLIB"; then
14517 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14518 postinstall_cmds='$RANLIB $lib'
14519 fi
14520 ;;
14521 aix[4-9]*)
14522 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14523 test "$enable_shared" = yes && enable_static=no
14524 fi
14525 ;;
14526 esac
14527 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14528 echo "${ECHO_T}$enable_shared" >&6; }
14529
14530 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14531 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14532 # Make sure either enable_shared or enable_static is yes.
14533 test "$enable_shared" = yes || enable_static=yes
14534 { echo "$as_me:$LINENO: result: $enable_static" >&5
14535 echo "${ECHO_T}$enable_static" >&6; }
14536
14537 GCC_F77="$G77"
14538 LD_F77="$LD"
14539
14540 lt_prog_compiler_wl_F77=
14541 lt_prog_compiler_pic_F77=
14542 lt_prog_compiler_static_F77=
14543
14544 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14545 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14546
14547 if test "$GCC" = yes; then
14548 lt_prog_compiler_wl_F77='-Wl,'
14549 lt_prog_compiler_static_F77='-static'
14550
14551 case $host_os in
14552 aix*)
14553 # All AIX code is PIC.
14554 if test "$host_cpu" = ia64; then
14555 # AIX 5 now supports IA64 processor
14556 lt_prog_compiler_static_F77='-Bstatic'
14557 fi
14558 ;;
14559
14560 amigaos*)
14561 # FIXME: we need at least 68020 code to build shared libraries, but
14562 # adding the `-m68020' flag to GCC prevents building anything better,
14563 # like `-m68040'.
14564 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14565 ;;
14566
14567 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14568 # PIC is the default for these OSes.
14569 ;;
14570
14571 mingw* | cygwin* | pw32* | os2*)
14572 # This hack is so that the source file can tell whether it is being
14573 # built for inclusion in a dll (and should export symbols for example).
14574 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14575 # (--disable-auto-import) libraries
14576 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14577 ;;
14578
14579 darwin* | rhapsody*)
14580 # PIC is the default on this platform
14581 # Common symbols not allowed in MH_DYLIB files
14582 lt_prog_compiler_pic_F77='-fno-common'
14583 ;;
14584
14585 interix[3-9]*)
14586 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14587 # Instead, we relocate shared libraries at runtime.
14588 ;;
14589
14590 msdosdjgpp*)
14591 # Just because we use GCC doesn't mean we suddenly get shared libraries
14592 # on systems that don't support them.
14593 lt_prog_compiler_can_build_shared_F77=no
14594 enable_shared=no
14595 ;;
14596
14597 sysv4*MP*)
14598 if test -d /usr/nec; then
14599 lt_prog_compiler_pic_F77=-Kconform_pic
14600 fi
14601 ;;
14602
14603 hpux*)
14604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14605 # not for PA HP-UX.
14606 case $host_cpu in
14607 hppa*64*|ia64*)
14608 # +Z the default
14609 ;;
14610 *)
14611 lt_prog_compiler_pic_F77='-fPIC'
14612 ;;
14613 esac
14614 ;;
14615
14616 *)
14617 lt_prog_compiler_pic_F77='-fPIC'
14618 ;;
14619 esac
14620 else
14621 # PORTME Check for flag to pass linker flags through the system compiler.
14622 case $host_os in
14623 aix*)
14624 lt_prog_compiler_wl_F77='-Wl,'
14625 if test "$host_cpu" = ia64; then
14626 # AIX 5 now supports IA64 processor
14627 lt_prog_compiler_static_F77='-Bstatic'
14628 else
14629 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14630 fi
14631 ;;
14632 darwin*)
14633 # PIC is the default on this platform
14634 # Common symbols not allowed in MH_DYLIB files
14635 case $cc_basename in
14636 xlc*)
14637 lt_prog_compiler_pic_F77='-qnocommon'
14638 lt_prog_compiler_wl_F77='-Wl,'
14639 ;;
14640 esac
14641 ;;
14642
14643 mingw* | cygwin* | pw32* | os2*)
14644 # This hack is so that the source file can tell whether it is being
14645 # built for inclusion in a dll (and should export symbols for example).
14646 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14647 ;;
14648
14649 hpux9* | hpux10* | hpux11*)
14650 lt_prog_compiler_wl_F77='-Wl,'
14651 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14652 # not for PA HP-UX.
14653 case $host_cpu in
14654 hppa*64*|ia64*)
14655 # +Z the default
14656 ;;
14657 *)
14658 lt_prog_compiler_pic_F77='+Z'
14659 ;;
14660 esac
14661 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14662 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14663 ;;
14664
14665 irix5* | irix6* | nonstopux*)
14666 lt_prog_compiler_wl_F77='-Wl,'
14667 # PIC (with -KPIC) is the default.
14668 lt_prog_compiler_static_F77='-non_shared'
14669 ;;
14670
14671 newsos6)
14672 lt_prog_compiler_pic_F77='-KPIC'
14673 lt_prog_compiler_static_F77='-Bstatic'
14674 ;;
14675
14676 linux* | k*bsd*-gnu)
14677 case $cc_basename in
14678 icc* | ecc*)
14679 lt_prog_compiler_wl_F77='-Wl,'
14680 lt_prog_compiler_pic_F77='-KPIC'
14681 lt_prog_compiler_static_F77='-static'
14682 ;;
14683 pgcc* | pgf77* | pgf90* | pgf95*)
14684 # Portland Group compilers (*not* the Pentium gcc compiler,
14685 # which looks to be a dead project)
14686 lt_prog_compiler_wl_F77='-Wl,'
14687 lt_prog_compiler_pic_F77='-fpic'
14688 lt_prog_compiler_static_F77='-Bstatic'
14689 ;;
14690 ccc*)
14691 lt_prog_compiler_wl_F77='-Wl,'
14692 # All Alpha code is PIC.
14693 lt_prog_compiler_static_F77='-non_shared'
14694 ;;
14695 *)
14696 case `$CC -V 2>&1 | sed 5q` in
14697 *Sun\ C*)
14698 # Sun C 5.9
14699 lt_prog_compiler_pic_F77='-KPIC'
14700 lt_prog_compiler_static_F77='-Bstatic'
14701 lt_prog_compiler_wl_F77='-Wl,'
14702 ;;
14703 *Sun\ F*)
14704 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14705 lt_prog_compiler_pic_F77='-KPIC'
14706 lt_prog_compiler_static_F77='-Bstatic'
14707 lt_prog_compiler_wl_F77=''
14708 ;;
14709 esac
14710 ;;
14711 esac
14712 ;;
14713
14714 osf3* | osf4* | osf5*)
14715 lt_prog_compiler_wl_F77='-Wl,'
14716 # All OSF/1 code is PIC.
14717 lt_prog_compiler_static_F77='-non_shared'
14718 ;;
14719
14720 rdos*)
14721 lt_prog_compiler_static_F77='-non_shared'
14722 ;;
14723
14724 solaris*)
14725 lt_prog_compiler_pic_F77='-KPIC'
14726 lt_prog_compiler_static_F77='-Bstatic'
14727 case $cc_basename in
14728 f77* | f90* | f95*)
14729 lt_prog_compiler_wl_F77='-Qoption ld ';;
14730 *)
14731 lt_prog_compiler_wl_F77='-Wl,';;
14732 esac
14733 ;;
14734
14735 sunos4*)
14736 lt_prog_compiler_wl_F77='-Qoption ld '
14737 lt_prog_compiler_pic_F77='-PIC'
14738 lt_prog_compiler_static_F77='-Bstatic'
14739 ;;
14740
14741 sysv4 | sysv4.2uw2* | sysv4.3*)
14742 lt_prog_compiler_wl_F77='-Wl,'
14743 lt_prog_compiler_pic_F77='-KPIC'
14744 lt_prog_compiler_static_F77='-Bstatic'
14745 ;;
14746
14747 sysv4*MP*)
14748 if test -d /usr/nec ;then
14749 lt_prog_compiler_pic_F77='-Kconform_pic'
14750 lt_prog_compiler_static_F77='-Bstatic'
14751 fi
14752 ;;
14753
14754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14755 lt_prog_compiler_wl_F77='-Wl,'
14756 lt_prog_compiler_pic_F77='-KPIC'
14757 lt_prog_compiler_static_F77='-Bstatic'
14758 ;;
14759
14760 unicos*)
14761 lt_prog_compiler_wl_F77='-Wl,'
14762 lt_prog_compiler_can_build_shared_F77=no
14763 ;;
14764
14765 uts4*)
14766 lt_prog_compiler_pic_F77='-pic'
14767 lt_prog_compiler_static_F77='-Bstatic'
14768 ;;
14769
14770 *)
14771 lt_prog_compiler_can_build_shared_F77=no
14772 ;;
14773 esac
14774 fi
14775
14776 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14777 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14778
14779 #
14780 # Check to make sure the PIC flag actually works.
14781 #
14782 if test -n "$lt_prog_compiler_pic_F77"; then
14783
14784 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14785 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14786 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14787 echo $ECHO_N "(cached) $ECHO_C" >&6
14788 else
14789 lt_cv_prog_compiler_pic_works_F77=no
14790 ac_outfile=conftest.$ac_objext
14791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14792 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14793 # Insert the option either (1) after the last *FLAGS variable, or
14794 # (2) before a word containing "conftest.", or (3) at the end.
14795 # Note that $ac_compile itself does not contain backslashes and begins
14796 # with a dollar sign (not a hyphen), so the echo should work correctly.
14797 # The option is referenced via a variable to avoid confusing sed.
14798 lt_compile=`echo "$ac_compile" | $SED \
14799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14801 -e 's:$: $lt_compiler_flag:'`
14802 (eval echo "\"\$as_me:14802: $lt_compile\"" >&5)
14803 (eval "$lt_compile" 2>conftest.err)
14804 ac_status=$?
14805 cat conftest.err >&5
14806 echo "$as_me:14806: \$? = $ac_status" >&5
14807 if (exit $ac_status) && test -s "$ac_outfile"; then
14808 # The compiler can only warn and ignore the option if not recognized
14809 # So say no if there are warnings other than the usual output.
14810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14813 lt_cv_prog_compiler_pic_works_F77=yes
14814 fi
14815 fi
14816 $rm conftest*
14817
14818 fi
14819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14820 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14821
14822 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14823 case $lt_prog_compiler_pic_F77 in
14824 "" | " "*) ;;
14825 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14826 esac
14827 else
14828 lt_prog_compiler_pic_F77=
14829 lt_prog_compiler_can_build_shared_F77=no
14830 fi
14831
14832 fi
14833 case $host_os in
14834 # For platforms which do not support PIC, -DPIC is meaningless:
14835 *djgpp*)
14836 lt_prog_compiler_pic_F77=
14837 ;;
14838 *)
14839 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14840 ;;
14841 esac
14842
14843 #
14844 # Check to make sure the static flag actually works.
14845 #
14846 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14847 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14848 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14849 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 lt_cv_prog_compiler_static_works_F77=no
14853 save_LDFLAGS="$LDFLAGS"
14854 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14855 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14856 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14857 # The linker can only warn and ignore the option if not recognized
14858 # So say no if there are warnings
14859 if test -s conftest.err; then
14860 # Append any errors to the config.log.
14861 cat conftest.err 1>&5
14862 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14863 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14864 if diff conftest.exp conftest.er2 >/dev/null; then
14865 lt_cv_prog_compiler_static_works_F77=yes
14866 fi
14867 else
14868 lt_cv_prog_compiler_static_works_F77=yes
14869 fi
14870 fi
14871 $rm -r conftest*
14872 LDFLAGS="$save_LDFLAGS"
14873
14874 fi
14875 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14876 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14877
14878 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14879 :
14880 else
14881 lt_prog_compiler_static_F77=
14882 fi
14883
14884
14885 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14886 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14887 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890 lt_cv_prog_compiler_c_o_F77=no
14891 $rm -r conftest 2>/dev/null
14892 mkdir conftest
14893 cd conftest
14894 mkdir out
14895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14896
14897 lt_compiler_flag="-o out/conftest2.$ac_objext"
14898 # Insert the option either (1) after the last *FLAGS variable, or
14899 # (2) before a word containing "conftest.", or (3) at the end.
14900 # Note that $ac_compile itself does not contain backslashes and begins
14901 # with a dollar sign (not a hyphen), so the echo should work correctly.
14902 lt_compile=`echo "$ac_compile" | $SED \
14903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14905 -e 's:$: $lt_compiler_flag:'`
14906 (eval echo "\"\$as_me:14906: $lt_compile\"" >&5)
14907 (eval "$lt_compile" 2>out/conftest.err)
14908 ac_status=$?
14909 cat out/conftest.err >&5
14910 echo "$as_me:14910: \$? = $ac_status" >&5
14911 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14912 then
14913 # The compiler can only warn and ignore the option if not recognized
14914 # So say no if there are warnings
14915 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14916 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14917 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14918 lt_cv_prog_compiler_c_o_F77=yes
14919 fi
14920 fi
14921 chmod u+w . 2>&5
14922 $rm conftest*
14923 # SGI C++ compiler will create directory out/ii_files/ for
14924 # template instantiation
14925 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14926 $rm out/* && rmdir out
14927 cd ..
14928 rmdir conftest
14929 $rm conftest*
14930
14931 fi
14932 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14933 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14934
14935
14936 hard_links="nottested"
14937 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14938 # do not overwrite the value of need_locks provided by the user
14939 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14940 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14941 hard_links=yes
14942 $rm conftest*
14943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14944 touch conftest.a
14945 ln conftest.a conftest.b 2>&5 || hard_links=no
14946 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14947 { echo "$as_me:$LINENO: result: $hard_links" >&5
14948 echo "${ECHO_T}$hard_links" >&6; }
14949 if test "$hard_links" = no; then
14950 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14951 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14952 need_locks=warn
14953 fi
14954 else
14955 need_locks=no
14956 fi
14957
14958 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14959 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14960
14961 runpath_var=
14962 allow_undefined_flag_F77=
14963 enable_shared_with_static_runtimes_F77=no
14964 archive_cmds_F77=
14965 archive_expsym_cmds_F77=
14966 old_archive_From_new_cmds_F77=
14967 old_archive_from_expsyms_cmds_F77=
14968 export_dynamic_flag_spec_F77=
14969 whole_archive_flag_spec_F77=
14970 thread_safe_flag_spec_F77=
14971 hardcode_libdir_flag_spec_F77=
14972 hardcode_libdir_flag_spec_ld_F77=
14973 hardcode_libdir_separator_F77=
14974 hardcode_direct_F77=no
14975 hardcode_minus_L_F77=no
14976 hardcode_shlibpath_var_F77=unsupported
14977 link_all_deplibs_F77=unknown
14978 hardcode_automatic_F77=no
14979 module_cmds_F77=
14980 module_expsym_cmds_F77=
14981 always_export_symbols_F77=no
14982 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14983 # include_expsyms should be a list of space-separated symbols to be *always*
14984 # included in the symbol list
14985 include_expsyms_F77=
14986 # exclude_expsyms can be an extended regexp of symbols to exclude
14987 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14988 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14989 # as well as any symbol that contains `d'.
14990 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14991 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14992 # platforms (ab)use it in PIC code, but their linkers get confused if
14993 # the symbol is explicitly referenced. Since portable code cannot
14994 # rely on this symbol name, it's probably fine to never include it in
14995 # preloaded symbol tables.
14996 # Exclude shared library initialization/finalization symbols.
14997 extract_expsyms_cmds=
14998 # Just being paranoid about ensuring that cc_basename is set.
14999 for cc_temp in $compiler""; do
15000 case $cc_temp in
15001 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15002 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15003 \-*) ;;
15004 *) break;;
15005 esac
15006 done
15007 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15008
15009 case $host_os in
15010 cygwin* | mingw* | pw32*)
15011 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15012 # When not using gcc, we currently assume that we are using
15013 # Microsoft Visual C++.
15014 if test "$GCC" != yes; then
15015 with_gnu_ld=no
15016 fi
15017 ;;
15018 interix*)
15019 # we just hope/assume this is gcc and not c89 (= MSVC++)
15020 with_gnu_ld=yes
15021 ;;
15022 openbsd*)
15023 with_gnu_ld=no
15024 ;;
15025 esac
15026
15027 ld_shlibs_F77=yes
15028 if test "$with_gnu_ld" = yes; then
15029 # If archive_cmds runs LD, not CC, wlarc should be empty
15030 wlarc='${wl}'
15031
15032 # Set some defaults for GNU ld with shared library support. These
15033 # are reset later if shared libraries are not supported. Putting them
15034 # here allows them to be overridden if necessary.
15035 runpath_var=LD_RUN_PATH
15036 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15037 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15038 # ancient GNU ld didn't support --whole-archive et. al.
15039 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15040 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15041 else
15042 whole_archive_flag_spec_F77=
15043 fi
15044 supports_anon_versioning=no
15045 case `$LD -v 2>/dev/null` in
15046 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15047 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15048 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15049 *\ 2.11.*) ;; # other 2.11 versions
15050 *) supports_anon_versioning=yes ;;
15051 esac
15052
15053 # See if GNU ld supports shared libraries.
15054 case $host_os in
15055 aix[3-9]*)
15056 # On AIX/PPC, the GNU linker is very broken
15057 if test "$host_cpu" != ia64; then
15058 ld_shlibs_F77=no
15059 cat <<EOF 1>&2
15060
15061 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15062 *** to be unable to reliably create shared libraries on AIX.
15063 *** Therefore, libtool is disabling shared libraries support. If you
15064 *** really care for shared libraries, you may want to modify your PATH
15065 *** so that a non-GNU linker is found, and then restart.
15066
15067 EOF
15068 fi
15069 ;;
15070
15071 amigaos*)
15072 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)'
15073 hardcode_libdir_flag_spec_F77='-L$libdir'
15074 hardcode_minus_L_F77=yes
15075
15076 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
15077 # that the semantics of dynamic libraries on AmigaOS, at least up
15078 # to version 4, is to share data among multiple programs linked
15079 # with the same dynamic library. Since this doesn't match the
15080 # behavior of shared libraries on other platforms, we can't use
15081 # them.
15082 ld_shlibs_F77=no
15083 ;;
15084
15085 beos*)
15086 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15087 allow_undefined_flag_F77=unsupported
15088 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
15089 # support --undefined. This deserves some investigation. FIXME
15090 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15091 else
15092 ld_shlibs_F77=no
15093 fi
15094 ;;
15095
15096 cygwin* | mingw* | pw32*)
15097 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15098 # as there is no search path for DLLs.
15099 hardcode_libdir_flag_spec_F77='-L$libdir'
15100 allow_undefined_flag_F77=unsupported
15101 always_export_symbols_F77=no
15102 enable_shared_with_static_runtimes_F77=yes
15103 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15104
15105 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15107 # If the export-symbols file already is a .def file (1st line
15108 # is EXPORTS), use it as is; otherwise, prepend...
15109 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15110 cp $export_symbols $output_objdir/$soname.def;
15111 else
15112 echo EXPORTS > $output_objdir/$soname.def;
15113 cat $export_symbols >> $output_objdir/$soname.def;
15114 fi~
15115 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15116 else
15117 ld_shlibs_F77=no
15118 fi
15119 ;;
15120
15121 interix[3-9]*)
15122 hardcode_direct_F77=no
15123 hardcode_shlibpath_var_F77=no
15124 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15125 export_dynamic_flag_spec_F77='${wl}-E'
15126 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15127 # Instead, shared libraries are loaded at an image base (0x10000000 by
15128 # default) and relocated if they conflict, which is a slow very memory
15129 # consuming and fragmenting process. To avoid this, we pick a random,
15130 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15131 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15132 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'
15133 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'
15134 ;;
15135
15136 gnu* | linux* | k*bsd*-gnu)
15137 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15138 tmp_addflag=
15139 case $cc_basename,$host_cpu in
15140 pgcc*) # Portland Group C compiler
15141 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'
15142 tmp_addflag=' $pic_flag'
15143 ;;
15144 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15145 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'
15146 tmp_addflag=' $pic_flag -Mnomain' ;;
15147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15148 tmp_addflag=' -i_dynamic' ;;
15149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15150 tmp_addflag=' -i_dynamic -nofor_main' ;;
15151 ifc* | ifort*) # Intel Fortran compiler
15152 tmp_addflag=' -nofor_main' ;;
15153 esac
15154 case `$CC -V 2>&1 | sed 5q` in
15155 *Sun\ C*) # Sun C 5.9
15156 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'
15157 tmp_sharedflag='-G' ;;
15158 *Sun\ F*) # Sun Fortran 8.3
15159 tmp_sharedflag='-G' ;;
15160 *)
15161 tmp_sharedflag='-shared' ;;
15162 esac
15163 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15164
15165 if test $supports_anon_versioning = yes; then
15166 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15168 $echo "local: *; };" >> $output_objdir/$libname.ver~
15169 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15170 fi
15171 link_all_deplibs_F77=no
15172 else
15173 ld_shlibs_F77=no
15174 fi
15175 ;;
15176
15177 netbsd* | netbsdelf*-gnu)
15178 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15179 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15180 wlarc=
15181 else
15182 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15183 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15184 fi
15185 ;;
15186
15187 solaris*)
15188 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15189 ld_shlibs_F77=no
15190 cat <<EOF 1>&2
15191
15192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15193 *** create shared libraries on Solaris systems. Therefore, libtool
15194 *** is disabling shared libraries support. We urge you to upgrade GNU
15195 *** binutils to release 2.9.1 or newer. Another option is to modify
15196 *** your PATH or compiler configuration so that the native linker is
15197 *** used, and then restart.
15198
15199 EOF
15200 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15202 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15203 else
15204 ld_shlibs_F77=no
15205 fi
15206 ;;
15207
15208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15209 case `$LD -v 2>&1` in
15210 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15211 ld_shlibs_F77=no
15212 cat <<_LT_EOF 1>&2
15213
15214 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15215 *** reliably create shared libraries on SCO systems. Therefore, libtool
15216 *** is disabling shared libraries support. We urge you to upgrade GNU
15217 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15218 *** your PATH or compiler configuration so that the native linker is
15219 *** used, and then restart.
15220
15221 _LT_EOF
15222 ;;
15223 *)
15224 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15225 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15226 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15227 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15228 else
15229 ld_shlibs_F77=no
15230 fi
15231 ;;
15232 esac
15233 ;;
15234
15235 sunos4*)
15236 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15237 wlarc=
15238 hardcode_direct_F77=yes
15239 hardcode_shlibpath_var_F77=no
15240 ;;
15241
15242 *)
15243 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15244 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15246 else
15247 ld_shlibs_F77=no
15248 fi
15249 ;;
15250 esac
15251
15252 if test "$ld_shlibs_F77" = no; then
15253 runpath_var=
15254 hardcode_libdir_flag_spec_F77=
15255 export_dynamic_flag_spec_F77=
15256 whole_archive_flag_spec_F77=
15257 fi
15258 else
15259 # PORTME fill in a description of your system's linker (not GNU ld)
15260 case $host_os in
15261 aix3*)
15262 allow_undefined_flag_F77=unsupported
15263 always_export_symbols_F77=yes
15264 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'
15265 # Note: this linker hardcodes the directories in LIBPATH if there
15266 # are no directories specified by -L.
15267 hardcode_minus_L_F77=yes
15268 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15269 # Neither direct hardcoding nor static linking is supported with a
15270 # broken collect2.
15271 hardcode_direct_F77=unsupported
15272 fi
15273 ;;
15274
15275 aix[4-9]*)
15276 if test "$host_cpu" = ia64; then
15277 # On IA64, the linker does run time linking by default, so we don't
15278 # have to do anything special.
15279 aix_use_runtimelinking=no
15280 exp_sym_flag='-Bexport'
15281 no_entry_flag=""
15282 else
15283 # If we're using GNU nm, then we don't want the "-C" option.
15284 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15285 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15286 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'
15287 else
15288 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'
15289 fi
15290 aix_use_runtimelinking=no
15291
15292 # Test if we are trying to use run time linking or normal
15293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15294 # need to do runtime linking.
15295 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15296 for ld_flag in $LDFLAGS; do
15297 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15298 aix_use_runtimelinking=yes
15299 break
15300 fi
15301 done
15302 ;;
15303 esac
15304
15305 exp_sym_flag='-bexport'
15306 no_entry_flag='-bnoentry'
15307 fi
15308
15309 # When large executables or shared objects are built, AIX ld can
15310 # have problems creating the table of contents. If linking a library
15311 # or program results in "error TOC overflow" add -mminimal-toc to
15312 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15313 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15314
15315 archive_cmds_F77=''
15316 hardcode_direct_F77=yes
15317 hardcode_libdir_separator_F77=':'
15318 link_all_deplibs_F77=yes
15319
15320 if test "$GCC" = yes; then
15321 case $host_os in aix4.[012]|aix4.[012].*)
15322 # We only want to do this on AIX 4.2 and lower, the check
15323 # below for broken collect2 doesn't work under 4.3+
15324 collect2name=`${CC} -print-prog-name=collect2`
15325 if test -f "$collect2name" && \
15326 strings "$collect2name" | grep resolve_lib_name >/dev/null
15327 then
15328 # We have reworked collect2
15329 :
15330 else
15331 # We have old collect2
15332 hardcode_direct_F77=unsupported
15333 # It fails to find uninstalled libraries when the uninstalled
15334 # path is not listed in the libpath. Setting hardcode_minus_L
15335 # to unsupported forces relinking
15336 hardcode_minus_L_F77=yes
15337 hardcode_libdir_flag_spec_F77='-L$libdir'
15338 hardcode_libdir_separator_F77=
15339 fi
15340 ;;
15341 esac
15342 shared_flag='-shared'
15343 if test "$aix_use_runtimelinking" = yes; then
15344 shared_flag="$shared_flag "'${wl}-G'
15345 fi
15346 else
15347 # not using gcc
15348 if test "$host_cpu" = ia64; then
15349 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15350 # chokes on -Wl,-G. The following line is correct:
15351 shared_flag='-G'
15352 else
15353 if test "$aix_use_runtimelinking" = yes; then
15354 shared_flag='${wl}-G'
15355 else
15356 shared_flag='${wl}-bM:SRE'
15357 fi
15358 fi
15359 fi
15360
15361 # It seems that -bexpall does not export symbols beginning with
15362 # underscore (_), so it is better to generate a list of symbols to export.
15363 always_export_symbols_F77=yes
15364 if test "$aix_use_runtimelinking" = yes; then
15365 # Warning - without using the other runtime loading flags (-brtl),
15366 # -berok will link without error, but may produce a broken library.
15367 allow_undefined_flag_F77='-berok'
15368 # Determine the default libpath from the value encoded in an empty executable.
15369 cat >conftest.$ac_ext <<_ACEOF
15370 program main
15371
15372 end
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (ac_try="$ac_link"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_link") 2>conftest.er1
15382 ac_status=$?
15383 grep -v '^ *+' conftest.er1 >conftest.err
15384 rm -f conftest.er1
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } && {
15388 test -z "$ac_f77_werror_flag" ||
15389 test ! -s conftest.err
15390 } && test -s conftest$ac_exeext &&
15391 $as_test_x conftest$ac_exeext; then
15392
15393 lt_aix_libpath_sed='
15394 /Import File Strings/,/^$/ {
15395 /^0/ {
15396 s/^0 *\(.*\)$/\1/
15397 p
15398 }
15399 }'
15400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401 # Check for a 64-bit object if we didn't find anything.
15402 if test -z "$aix_libpath"; then
15403 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15404 fi
15405 else
15406 echo "$as_me: failed program was:" >&5
15407 sed 's/^/| /' conftest.$ac_ext >&5
15408
15409
15410 fi
15411
15412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15413 conftest$ac_exeext conftest.$ac_ext
15414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15415
15416 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15417 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"
15418 else
15419 if test "$host_cpu" = ia64; then
15420 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15421 allow_undefined_flag_F77="-z nodefs"
15422 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"
15423 else
15424 # Determine the default libpath from the value encoded in an empty executable.
15425 cat >conftest.$ac_ext <<_ACEOF
15426 program main
15427
15428 end
15429 _ACEOF
15430 rm -f conftest.$ac_objext conftest$ac_exeext
15431 if { (ac_try="$ac_link"
15432 case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435 esac
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_link") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } && {
15444 test -z "$ac_f77_werror_flag" ||
15445 test ! -s conftest.err
15446 } && test -s conftest$ac_exeext &&
15447 $as_test_x conftest$ac_exeext; then
15448
15449 lt_aix_libpath_sed='
15450 /Import File Strings/,/^$/ {
15451 /^0/ {
15452 s/^0 *\(.*\)$/\1/
15453 p
15454 }
15455 }'
15456 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15457 # Check for a 64-bit object if we didn't find anything.
15458 if test -z "$aix_libpath"; then
15459 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15460 fi
15461 else
15462 echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465
15466 fi
15467
15468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15469 conftest$ac_exeext conftest.$ac_ext
15470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15471
15472 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15473 # Warning - without using the other run time loading flags,
15474 # -berok will link without error, but may produce a broken library.
15475 no_undefined_flag_F77=' ${wl}-bernotok'
15476 allow_undefined_flag_F77=' ${wl}-berok'
15477 # Exported symbols can be pulled into shared objects from archives
15478 whole_archive_flag_spec_F77='$convenience'
15479 archive_cmds_need_lc_F77=yes
15480 # This is similar to how AIX traditionally builds its shared libraries.
15481 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'
15482 fi
15483 fi
15484 ;;
15485
15486 amigaos*)
15487 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)'
15488 hardcode_libdir_flag_spec_F77='-L$libdir'
15489 hardcode_minus_L_F77=yes
15490 # see comment about different semantics on the GNU ld section
15491 ld_shlibs_F77=no
15492 ;;
15493
15494 bsdi[45]*)
15495 export_dynamic_flag_spec_F77=-rdynamic
15496 ;;
15497
15498 cygwin* | mingw* | pw32*)
15499 # When not using gcc, we currently assume that we are using
15500 # Microsoft Visual C++.
15501 # hardcode_libdir_flag_spec is actually meaningless, as there is
15502 # no search path for DLLs.
15503 hardcode_libdir_flag_spec_F77=' '
15504 allow_undefined_flag_F77=unsupported
15505 # Tell ltmain to make .lib files, not .a files.
15506 libext=lib
15507 # Tell ltmain to make .dll files, not .so files.
15508 shrext_cmds=".dll"
15509 # FIXME: Setting linknames here is a bad hack.
15510 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15511 # The linker will automatically build a .lib file if we build a DLL.
15512 old_archive_From_new_cmds_F77='true'
15513 # FIXME: Should let the user specify the lib program.
15514 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15515 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15516 enable_shared_with_static_runtimes_F77=yes
15517 ;;
15518
15519 darwin* | rhapsody*)
15520 case $host_os in
15521 rhapsody* | darwin1.[012])
15522 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15523 ;;
15524 *) # Darwin 1.3 on
15525 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15526 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15527 else
15528 case ${MACOSX_DEPLOYMENT_TARGET} in
15529 10.[012])
15530 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15531 ;;
15532 10.*)
15533 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15534 ;;
15535 esac
15536 fi
15537 ;;
15538 esac
15539 archive_cmds_need_lc_F77=no
15540 hardcode_direct_F77=no
15541 hardcode_automatic_F77=yes
15542 hardcode_shlibpath_var_F77=unsupported
15543 whole_archive_flag_spec_F77=''
15544 link_all_deplibs_F77=yes
15545 if test "$GCC" = yes ; then
15546 output_verbose_link_cmd='echo'
15547 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15548 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15549 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15550 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15551 else
15552 case $cc_basename in
15553 xlc*)
15554 output_verbose_link_cmd='echo'
15555 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15556 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15558 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}'
15559 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}'
15560 ;;
15561 *)
15562 ld_shlibs_F77=no
15563 ;;
15564 esac
15565 fi
15566 ;;
15567
15568 dgux*)
15569 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15570 hardcode_libdir_flag_spec_F77='-L$libdir'
15571 hardcode_shlibpath_var_F77=no
15572 ;;
15573
15574 freebsd1*)
15575 ld_shlibs_F77=no
15576 ;;
15577
15578 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15579 # support. Future versions do this automatically, but an explicit c++rt0.o
15580 # does not break anything, and helps significantly (at the cost of a little
15581 # extra space).
15582 freebsd2.2*)
15583 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15584 hardcode_libdir_flag_spec_F77='-R$libdir'
15585 hardcode_direct_F77=yes
15586 hardcode_shlibpath_var_F77=no
15587 ;;
15588
15589 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15590 freebsd2*)
15591 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_direct_F77=yes
15593 hardcode_minus_L_F77=yes
15594 hardcode_shlibpath_var_F77=no
15595 ;;
15596
15597 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15598 freebsd* | dragonfly*)
15599 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15600 hardcode_libdir_flag_spec_F77='-R$libdir'
15601 hardcode_direct_F77=yes
15602 hardcode_shlibpath_var_F77=no
15603 ;;
15604
15605 hpux9*)
15606 if test "$GCC" = yes; then
15607 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'
15608 else
15609 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'
15610 fi
15611 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15612 hardcode_libdir_separator_F77=:
15613 hardcode_direct_F77=yes
15614
15615 # hardcode_minus_L: Not really in the search PATH,
15616 # but as the default location of the library.
15617 hardcode_minus_L_F77=yes
15618 export_dynamic_flag_spec_F77='${wl}-E'
15619 ;;
15620
15621 hpux10*)
15622 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15623 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624 else
15625 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15626 fi
15627 if test "$with_gnu_ld" = no; then
15628 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15629 hardcode_libdir_separator_F77=:
15630
15631 hardcode_direct_F77=yes
15632 export_dynamic_flag_spec_F77='${wl}-E'
15633
15634 # hardcode_minus_L: Not really in the search PATH,
15635 # but as the default location of the library.
15636 hardcode_minus_L_F77=yes
15637 fi
15638 ;;
15639
15640 hpux11*)
15641 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15642 case $host_cpu in
15643 hppa*64*)
15644 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15645 ;;
15646 ia64*)
15647 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15648 ;;
15649 *)
15650 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15651 ;;
15652 esac
15653 else
15654 case $host_cpu in
15655 hppa*64*)
15656 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657 ;;
15658 ia64*)
15659 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15660 ;;
15661 *)
15662 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15663 ;;
15664 esac
15665 fi
15666 if test "$with_gnu_ld" = no; then
15667 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15668 hardcode_libdir_separator_F77=:
15669
15670 case $host_cpu in
15671 hppa*64*|ia64*)
15672 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15673 hardcode_direct_F77=no
15674 hardcode_shlibpath_var_F77=no
15675 ;;
15676 *)
15677 hardcode_direct_F77=yes
15678 export_dynamic_flag_spec_F77='${wl}-E'
15679
15680 # hardcode_minus_L: Not really in the search PATH,
15681 # but as the default location of the library.
15682 hardcode_minus_L_F77=yes
15683 ;;
15684 esac
15685 fi
15686 ;;
15687
15688 irix5* | irix6* | nonstopux*)
15689 if test "$GCC" = yes; then
15690 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'
15691 else
15692 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'
15693 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15694 fi
15695 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15696 hardcode_libdir_separator_F77=:
15697 link_all_deplibs_F77=yes
15698 ;;
15699
15700 netbsd* | netbsdelf*-gnu)
15701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15702 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15703 else
15704 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15705 fi
15706 hardcode_libdir_flag_spec_F77='-R$libdir'
15707 hardcode_direct_F77=yes
15708 hardcode_shlibpath_var_F77=no
15709 ;;
15710
15711 newsos6)
15712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15713 hardcode_direct_F77=yes
15714 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15715 hardcode_libdir_separator_F77=:
15716 hardcode_shlibpath_var_F77=no
15717 ;;
15718
15719 openbsd*)
15720 if test -f /usr/libexec/ld.so; then
15721 hardcode_direct_F77=yes
15722 hardcode_shlibpath_var_F77=no
15723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15724 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15725 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15726 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15727 export_dynamic_flag_spec_F77='${wl}-E'
15728 else
15729 case $host_os in
15730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15731 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_libdir_flag_spec_F77='-R$libdir'
15733 ;;
15734 *)
15735 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15737 ;;
15738 esac
15739 fi
15740 else
15741 ld_shlibs_F77=no
15742 fi
15743 ;;
15744
15745 os2*)
15746 hardcode_libdir_flag_spec_F77='-L$libdir'
15747 hardcode_minus_L_F77=yes
15748 allow_undefined_flag_F77=unsupported
15749 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'
15750 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15751 ;;
15752
15753 osf3*)
15754 if test "$GCC" = yes; then
15755 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15756 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'
15757 else
15758 allow_undefined_flag_F77=' -expect_unresolved \*'
15759 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'
15760 fi
15761 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15762 hardcode_libdir_separator_F77=:
15763 ;;
15764
15765 osf4* | osf5*) # as osf3* with the addition of -msym flag
15766 if test "$GCC" = yes; then
15767 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15768 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'
15769 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15770 else
15771 allow_undefined_flag_F77=' -expect_unresolved \*'
15772 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'
15773 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~
15774 $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'
15775
15776 # Both c and cxx compiler support -rpath directly
15777 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15778 fi
15779 hardcode_libdir_separator_F77=:
15780 ;;
15781
15782 solaris*)
15783 no_undefined_flag_F77=' -z text'
15784 if test "$GCC" = yes; then
15785 wlarc='${wl}'
15786 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15787 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15789 else
15790 wlarc=''
15791 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15794 fi
15795 hardcode_libdir_flag_spec_F77='-R$libdir'
15796 hardcode_shlibpath_var_F77=no
15797 case $host_os in
15798 solaris2.[0-5] | solaris2.[0-5].*) ;;
15799 *)
15800 # The compiler driver will combine and reorder linker options,
15801 # but understands `-z linker_flag'. GCC discards it without `$wl',
15802 # but is careful enough not to reorder.
15803 # Supported since Solaris 2.6 (maybe 2.5.1?)
15804 if test "$GCC" = yes; then
15805 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15806 else
15807 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15808 fi
15809 ;;
15810 esac
15811 link_all_deplibs_F77=yes
15812 ;;
15813
15814 sunos4*)
15815 if test "x$host_vendor" = xsequent; then
15816 # Use $CC to link under sequent, because it throws in some extra .o
15817 # files that make .init and .fini sections work.
15818 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15819 else
15820 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15821 fi
15822 hardcode_libdir_flag_spec_F77='-L$libdir'
15823 hardcode_direct_F77=yes
15824 hardcode_minus_L_F77=yes
15825 hardcode_shlibpath_var_F77=no
15826 ;;
15827
15828 sysv4)
15829 case $host_vendor in
15830 sni)
15831 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_direct_F77=yes # is this really true???
15833 ;;
15834 siemens)
15835 ## LD is ld it makes a PLAMLIB
15836 ## CC just makes a GrossModule.
15837 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15838 reload_cmds_F77='$CC -r -o $output$reload_objs'
15839 hardcode_direct_F77=no
15840 ;;
15841 motorola)
15842 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15844 ;;
15845 esac
15846 runpath_var='LD_RUN_PATH'
15847 hardcode_shlibpath_var_F77=no
15848 ;;
15849
15850 sysv4.3*)
15851 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15852 hardcode_shlibpath_var_F77=no
15853 export_dynamic_flag_spec_F77='-Bexport'
15854 ;;
15855
15856 sysv4*MP*)
15857 if test -d /usr/nec; then
15858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15859 hardcode_shlibpath_var_F77=no
15860 runpath_var=LD_RUN_PATH
15861 hardcode_runpath_var=yes
15862 ld_shlibs_F77=yes
15863 fi
15864 ;;
15865
15866 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15867 no_undefined_flag_F77='${wl}-z,text'
15868 archive_cmds_need_lc_F77=no
15869 hardcode_shlibpath_var_F77=no
15870 runpath_var='LD_RUN_PATH'
15871
15872 if test "$GCC" = yes; then
15873 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15875 else
15876 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 fi
15879 ;;
15880
15881 sysv5* | sco3.2v5* | sco5v6*)
15882 # Note: We can NOT use -z defs as we might desire, because we do not
15883 # link with -lc, and that would cause any symbols used from libc to
15884 # always be unresolved, which means just about no library would
15885 # ever link correctly. If we're not using GNU ld we use -z text
15886 # though, which does catch some bad symbols but isn't as heavy-handed
15887 # as -z defs.
15888 no_undefined_flag_F77='${wl}-z,text'
15889 allow_undefined_flag_F77='${wl}-z,nodefs'
15890 archive_cmds_need_lc_F77=no
15891 hardcode_shlibpath_var_F77=no
15892 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15893 hardcode_libdir_separator_F77=':'
15894 link_all_deplibs_F77=yes
15895 export_dynamic_flag_spec_F77='${wl}-Bexport'
15896 runpath_var='LD_RUN_PATH'
15897
15898 if test "$GCC" = yes; then
15899 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15900 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15901 else
15902 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15903 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 fi
15905 ;;
15906
15907 uts4*)
15908 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909 hardcode_libdir_flag_spec_F77='-L$libdir'
15910 hardcode_shlibpath_var_F77=no
15911 ;;
15912
15913 *)
15914 ld_shlibs_F77=no
15915 ;;
15916 esac
15917 fi
15918
15919 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15920 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15921 test "$ld_shlibs_F77" = no && can_build_shared=no
15922
15923 #
15924 # Do we need to explicitly link libc?
15925 #
15926 case "x$archive_cmds_need_lc_F77" in
15927 x|xyes)
15928 # Assume -lc should be added
15929 archive_cmds_need_lc_F77=yes
15930
15931 if test "$enable_shared" = yes && test "$GCC" = yes; then
15932 case $archive_cmds_F77 in
15933 *'~'*)
15934 # FIXME: we may have to deal with multi-command sequences.
15935 ;;
15936 '$CC '*)
15937 # Test whether the compiler implicitly links with -lc since on some
15938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15939 # to ld, don't add -lc before -lgcc.
15940 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15941 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15942 $rm conftest*
15943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15944
15945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15946 (eval $ac_compile) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } 2>conftest.err; then
15950 soname=conftest
15951 lib=conftest
15952 libobjs=conftest.$ac_objext
15953 deplibs=
15954 wl=$lt_prog_compiler_wl_F77
15955 pic_flag=$lt_prog_compiler_pic_F77
15956 compiler_flags=-v
15957 linker_flags=-v
15958 verstring=
15959 output_objdir=.
15960 libname=conftest
15961 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15962 allow_undefined_flag_F77=
15963 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15964 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }
15968 then
15969 archive_cmds_need_lc_F77=no
15970 else
15971 archive_cmds_need_lc_F77=yes
15972 fi
15973 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15974 else
15975 cat conftest.err 1>&5
15976 fi
15977 $rm conftest*
15978 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15979 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15980 ;;
15981 esac
15982 fi
15983 ;;
15984 esac
15985
15986 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15987 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15988 library_names_spec=
15989 libname_spec='lib$name'
15990 soname_spec=
15991 shrext_cmds=".so"
15992 postinstall_cmds=
15993 postuninstall_cmds=
15994 finish_cmds=
15995 finish_eval=
15996 shlibpath_var=
15997 shlibpath_overrides_runpath=unknown
15998 version_type=none
15999 dynamic_linker="$host_os ld.so"
16000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16001
16002 need_lib_prefix=unknown
16003 hardcode_into_libs=no
16004
16005 # when you set need_version to no, make sure it does not cause -set_version
16006 # flags to be left without arguments
16007 need_version=unknown
16008
16009 case $host_os in
16010 aix3*)
16011 version_type=linux
16012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16013 shlibpath_var=LIBPATH
16014
16015 # AIX 3 has no versioning support, so we append a major version to the name.
16016 soname_spec='${libname}${release}${shared_ext}$major'
16017 ;;
16018
16019 aix[4-9]*)
16020 version_type=linux
16021 need_lib_prefix=no
16022 need_version=no
16023 hardcode_into_libs=yes
16024 if test "$host_cpu" = ia64; then
16025 # AIX 5 supports IA64
16026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16027 shlibpath_var=LD_LIBRARY_PATH
16028 else
16029 # With GCC up to 2.95.x, collect2 would create an import file
16030 # for dependence libraries. The import file would start with
16031 # the line `#! .'. This would cause the generated library to
16032 # depend on `.', always an invalid library. This was fixed in
16033 # development snapshots of GCC prior to 3.0.
16034 case $host_os in
16035 aix4 | aix4.[01] | aix4.[01].*)
16036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16037 echo ' yes '
16038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16039 :
16040 else
16041 can_build_shared=no
16042 fi
16043 ;;
16044 esac
16045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16046 # soname into executable. Probably we can add versioning support to
16047 # collect2, so additional links can be useful in future.
16048 if test "$aix_use_runtimelinking" = yes; then
16049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16050 # instead of lib<name>.a to let people know that these are not
16051 # typical AIX shared libraries.
16052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16053 else
16054 # We preserve .a as extension for shared libraries through AIX4.2
16055 # and later when we are not doing run time linking.
16056 library_names_spec='${libname}${release}.a $libname.a'
16057 soname_spec='${libname}${release}${shared_ext}$major'
16058 fi
16059 shlibpath_var=LIBPATH
16060 fi
16061 ;;
16062
16063 amigaos*)
16064 library_names_spec='$libname.ixlibrary $libname.a'
16065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16066 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'
16067 ;;
16068
16069 beos*)
16070 library_names_spec='${libname}${shared_ext}'
16071 dynamic_linker="$host_os ld.so"
16072 shlibpath_var=LIBRARY_PATH
16073 ;;
16074
16075 bsdi[45]*)
16076 version_type=linux
16077 need_version=no
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16084 # the default ld.so.conf also contains /usr/contrib/lib and
16085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16086 # libtool to hard-code these into programs
16087 ;;
16088
16089 cygwin* | mingw* | pw32*)
16090 version_type=windows
16091 shrext_cmds=".dll"
16092 need_version=no
16093 need_lib_prefix=no
16094
16095 case $GCC,$host_os in
16096 yes,cygwin* | yes,mingw* | yes,pw32*)
16097 library_names_spec='$libname.dll.a'
16098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16099 postinstall_cmds='base_file=`basename \${file}`~
16100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16101 dldir=$destdir/`dirname \$dlpath`~
16102 test -d \$dldir || mkdir -p \$dldir~
16103 $install_prog $dir/$dlname \$dldir/$dlname~
16104 chmod a+x \$dldir/$dlname'
16105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16106 dlpath=$dir/\$dldll~
16107 $rm \$dlpath'
16108 shlibpath_overrides_runpath=yes
16109
16110 case $host_os in
16111 cygwin*)
16112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16115 ;;
16116 mingw*)
16117 # MinGW DLLs use traditional 'lib' prefix
16118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16121 # It is most probably a Windows format PATH printed by
16122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16123 # path with ; separators, and with drive letters. We can handle the
16124 # drive letters (cygwin fileutils understands them), so leave them,
16125 # especially as we might pass files found there to a mingw objdump,
16126 # which wouldn't understand a cygwinified path. Ahh.
16127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16128 else
16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16130 fi
16131 ;;
16132 pw32*)
16133 # pw32 DLLs use 'pw' prefix rather than 'lib'
16134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 ;;
16136 esac
16137 ;;
16138
16139 *)
16140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16141 ;;
16142 esac
16143 dynamic_linker='Win32 ld.exe'
16144 # FIXME: first we should search . and the directory the executable is in
16145 shlibpath_var=PATH
16146 ;;
16147
16148 darwin* | rhapsody*)
16149 dynamic_linker="$host_os dyld"
16150 version_type=darwin
16151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16154 soname_spec='${libname}${release}${major}$shared_ext'
16155 shlibpath_overrides_runpath=yes
16156 shlibpath_var=DYLD_LIBRARY_PATH
16157 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16158
16159 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16160 ;;
16161
16162 dgux*)
16163 version_type=linux
16164 need_lib_prefix=no
16165 need_version=no
16166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16167 soname_spec='${libname}${release}${shared_ext}$major'
16168 shlibpath_var=LD_LIBRARY_PATH
16169 ;;
16170
16171 freebsd1*)
16172 dynamic_linker=no
16173 ;;
16174
16175 freebsd* | dragonfly*)
16176 # DragonFly does not have aout. When/if they implement a new
16177 # versioning mechanism, adjust this.
16178 if test -x /usr/bin/objformat; then
16179 objformat=`/usr/bin/objformat`
16180 else
16181 case $host_os in
16182 freebsd[123]*) objformat=aout ;;
16183 *) objformat=elf ;;
16184 esac
16185 fi
16186 version_type=freebsd-$objformat
16187 case $version_type in
16188 freebsd-elf*)
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16190 need_version=no
16191 need_lib_prefix=no
16192 ;;
16193 freebsd-*)
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16195 need_version=yes
16196 ;;
16197 esac
16198 shlibpath_var=LD_LIBRARY_PATH
16199 case $host_os in
16200 freebsd2*)
16201 shlibpath_overrides_runpath=yes
16202 ;;
16203 freebsd3.[01]* | freebsdelf3.[01]*)
16204 shlibpath_overrides_runpath=yes
16205 hardcode_into_libs=yes
16206 ;;
16207 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16208 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16209 shlibpath_overrides_runpath=no
16210 hardcode_into_libs=yes
16211 ;;
16212 *) # from 4.6 on, and DragonFly
16213 shlibpath_overrides_runpath=yes
16214 hardcode_into_libs=yes
16215 ;;
16216 esac
16217 ;;
16218
16219 gnu*)
16220 version_type=linux
16221 need_lib_prefix=no
16222 need_version=no
16223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16224 soname_spec='${libname}${release}${shared_ext}$major'
16225 shlibpath_var=LD_LIBRARY_PATH
16226 hardcode_into_libs=yes
16227 ;;
16228
16229 hpux9* | hpux10* | hpux11*)
16230 # Give a soname corresponding to the major version so that dld.sl refuses to
16231 # link against other versions.
16232 version_type=sunos
16233 need_lib_prefix=no
16234 need_version=no
16235 case $host_cpu in
16236 ia64*)
16237 shrext_cmds='.so'
16238 hardcode_into_libs=yes
16239 dynamic_linker="$host_os dld.so"
16240 shlibpath_var=LD_LIBRARY_PATH
16241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 if test "X$HPUX_IA64_MODE" = X32; then
16245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16246 else
16247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16248 fi
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250 ;;
16251 hppa*64*)
16252 shrext_cmds='.sl'
16253 hardcode_into_libs=yes
16254 dynamic_linker="$host_os dld.sl"
16255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16261 ;;
16262 *)
16263 shrext_cmds='.sl'
16264 dynamic_linker="$host_os dld.sl"
16265 shlibpath_var=SHLIB_PATH
16266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 ;;
16270 esac
16271 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16272 postinstall_cmds='chmod 555 $lib'
16273 ;;
16274
16275 interix[3-9]*)
16276 version_type=linux
16277 need_lib_prefix=no
16278 need_version=no
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16282 shlibpath_var=LD_LIBRARY_PATH
16283 shlibpath_overrides_runpath=no
16284 hardcode_into_libs=yes
16285 ;;
16286
16287 irix5* | irix6* | nonstopux*)
16288 case $host_os in
16289 nonstopux*) version_type=nonstopux ;;
16290 *)
16291 if test "$lt_cv_prog_gnu_ld" = yes; then
16292 version_type=linux
16293 else
16294 version_type=irix
16295 fi ;;
16296 esac
16297 need_lib_prefix=no
16298 need_version=no
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16301 case $host_os in
16302 irix5* | nonstopux*)
16303 libsuff= shlibsuff=
16304 ;;
16305 *)
16306 case $LD in # libtool.m4 will add one of these switches to LD
16307 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16308 libsuff= shlibsuff= libmagic=32-bit;;
16309 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16310 libsuff=32 shlibsuff=N32 libmagic=N32;;
16311 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16312 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16313 *) libsuff= shlibsuff= libmagic=never-match;;
16314 esac
16315 ;;
16316 esac
16317 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16318 shlibpath_overrides_runpath=no
16319 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16320 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16321 hardcode_into_libs=yes
16322 ;;
16323
16324 # No shared lib support for Linux oldld, aout, or coff.
16325 linux*oldld* | linux*aout* | linux*coff*)
16326 dynamic_linker=no
16327 ;;
16328
16329 # This must be Linux ELF.
16330 linux* | k*bsd*-gnu)
16331 version_type=linux
16332 need_lib_prefix=no
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16337 shlibpath_var=LD_LIBRARY_PATH
16338 shlibpath_overrides_runpath=no
16339 # This implies no fast_install, which is unacceptable.
16340 # Some rework will be needed to allow for fast_install
16341 # before this can be enabled.
16342 hardcode_into_libs=yes
16343
16344 # Append ld.so.conf contents to the search path
16345 if test -f /etc/ld.so.conf; then
16346 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' ' '`
16347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16348 fi
16349
16350 # We used to test for /lib/ld.so.1 and disable shared libraries on
16351 # powerpc, because MkLinux only supported shared libraries with the
16352 # GNU dynamic linker. Since this was broken with cross compilers,
16353 # most powerpc-linux boxes support dynamic linking these days and
16354 # people can always --disable-shared, the test was removed, and we
16355 # assume the GNU/Linux dynamic linker is in use.
16356 dynamic_linker='GNU/Linux ld.so'
16357 ;;
16358
16359 netbsdelf*-gnu)
16360 version_type=linux
16361 need_lib_prefix=no
16362 need_version=no
16363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16364 soname_spec='${libname}${release}${shared_ext}$major'
16365 shlibpath_var=LD_LIBRARY_PATH
16366 shlibpath_overrides_runpath=no
16367 hardcode_into_libs=yes
16368 dynamic_linker='NetBSD ld.elf_so'
16369 ;;
16370
16371 netbsd*)
16372 version_type=sunos
16373 need_lib_prefix=no
16374 need_version=no
16375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16378 dynamic_linker='NetBSD (a.out) ld.so'
16379 else
16380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 dynamic_linker='NetBSD ld.elf_so'
16383 fi
16384 shlibpath_var=LD_LIBRARY_PATH
16385 shlibpath_overrides_runpath=yes
16386 hardcode_into_libs=yes
16387 ;;
16388
16389 newsos6)
16390 version_type=linux
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=yes
16394 ;;
16395
16396 nto-qnx*)
16397 version_type=linux
16398 need_lib_prefix=no
16399 need_version=no
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 shlibpath_var=LD_LIBRARY_PATH
16403 shlibpath_overrides_runpath=yes
16404 ;;
16405
16406 openbsd*)
16407 version_type=sunos
16408 sys_lib_dlsearch_path_spec="/usr/lib"
16409 need_lib_prefix=no
16410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16411 case $host_os in
16412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16413 *) need_version=no ;;
16414 esac
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16419 case $host_os in
16420 openbsd2.[89] | openbsd2.[89].*)
16421 shlibpath_overrides_runpath=no
16422 ;;
16423 *)
16424 shlibpath_overrides_runpath=yes
16425 ;;
16426 esac
16427 else
16428 shlibpath_overrides_runpath=yes
16429 fi
16430 ;;
16431
16432 os2*)
16433 libname_spec='$name'
16434 shrext_cmds=".dll"
16435 need_lib_prefix=no
16436 library_names_spec='$libname${shared_ext} $libname.a'
16437 dynamic_linker='OS/2 ld.exe'
16438 shlibpath_var=LIBPATH
16439 ;;
16440
16441 osf3* | osf4* | osf5*)
16442 version_type=osf
16443 need_lib_prefix=no
16444 need_version=no
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16450 ;;
16451
16452 rdos*)
16453 dynamic_linker=no
16454 ;;
16455
16456 solaris*)
16457 version_type=linux
16458 need_lib_prefix=no
16459 need_version=no
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 shlibpath_overrides_runpath=yes
16464 hardcode_into_libs=yes
16465 # ldd complains unless libraries are executable
16466 postinstall_cmds='chmod +x $lib'
16467 ;;
16468
16469 sunos4*)
16470 version_type=sunos
16471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16472 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16473 shlibpath_var=LD_LIBRARY_PATH
16474 shlibpath_overrides_runpath=yes
16475 if test "$with_gnu_ld" = yes; then
16476 need_lib_prefix=no
16477 fi
16478 need_version=yes
16479 ;;
16480
16481 sysv4 | sysv4.3*)
16482 version_type=linux
16483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16484 soname_spec='${libname}${release}${shared_ext}$major'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 case $host_vendor in
16487 sni)
16488 shlibpath_overrides_runpath=no
16489 need_lib_prefix=no
16490 export_dynamic_flag_spec='${wl}-Blargedynsym'
16491 runpath_var=LD_RUN_PATH
16492 ;;
16493 siemens)
16494 need_lib_prefix=no
16495 ;;
16496 motorola)
16497 need_lib_prefix=no
16498 need_version=no
16499 shlibpath_overrides_runpath=no
16500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16501 ;;
16502 esac
16503 ;;
16504
16505 sysv4*MP*)
16506 if test -d /usr/nec ;then
16507 version_type=linux
16508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16509 soname_spec='$libname${shared_ext}.$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 fi
16512 ;;
16513
16514 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16515 version_type=freebsd-elf
16516 need_lib_prefix=no
16517 need_version=no
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 hardcode_into_libs=yes
16522 if test "$with_gnu_ld" = yes; then
16523 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16524 shlibpath_overrides_runpath=no
16525 else
16526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16527 shlibpath_overrides_runpath=yes
16528 case $host_os in
16529 sco3.2v5*)
16530 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16531 ;;
16532 esac
16533 fi
16534 sys_lib_dlsearch_path_spec='/usr/lib'
16535 ;;
16536
16537 uts4*)
16538 version_type=linux
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 ;;
16543
16544 *)
16545 dynamic_linker=no
16546 ;;
16547 esac
16548 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16549 echo "${ECHO_T}$dynamic_linker" >&6; }
16550 test "$dynamic_linker" = no && can_build_shared=no
16551
16552 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 else
16555 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16556 fi
16557
16558 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16559 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16560 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16563 fi
16564
16565 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16566
16567 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16568 if test "$GCC" = yes; then
16569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570 fi
16571
16572 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16573 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16574 hardcode_action_F77=
16575 if test -n "$hardcode_libdir_flag_spec_F77" || \
16576 test -n "$runpath_var_F77" || \
16577 test "X$hardcode_automatic_F77" = "Xyes" ; then
16578
16579 # We can hardcode non-existant directories.
16580 if test "$hardcode_direct_F77" != no &&
16581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16582 # have to relink, otherwise we might link with an installed library
16583 # when we should be linking with a yet-to-be-installed one
16584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16585 test "$hardcode_minus_L_F77" != no; then
16586 # Linking always hardcodes the temporary library directory.
16587 hardcode_action_F77=relink
16588 else
16589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16590 hardcode_action_F77=immediate
16591 fi
16592 else
16593 # We cannot hardcode anything, or else we can only hardcode existing
16594 # directories.
16595 hardcode_action_F77=unsupported
16596 fi
16597 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16598 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16599
16600 if test "$hardcode_action_F77" = relink; then
16601 # Fast installation is not supported
16602 enable_fast_install=no
16603 elif test "$shlibpath_overrides_runpath" = yes ||
16604 test "$enable_shared" = no; then
16605 # Fast installation is not necessary
16606 enable_fast_install=needless
16607 fi
16608
16609
16610 # The else clause should only fire when bootstrapping the
16611 # libtool distribution, otherwise you forgot to ship ltmain.sh
16612 # with your package, and you will get complaints that there are
16613 # no rules to generate ltmain.sh.
16614 if test -f "$ltmain"; then
16615 # See if we are running on zsh, and set the options which allow our commands through
16616 # without removal of \ escapes.
16617 if test -n "${ZSH_VERSION+set}" ; then
16618 setopt NO_GLOB_SUBST
16619 fi
16620 # Now quote all the things that may contain metacharacters while being
16621 # careful not to overquote the AC_SUBSTed values. We take copies of the
16622 # variables and quote the copies for generation of the libtool script.
16623 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16624 SED SHELL STRIP \
16625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16627 deplibs_check_method reload_flag reload_cmds need_locks \
16628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16629 lt_cv_sys_global_symbol_to_c_name_address \
16630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16631 old_postinstall_cmds old_postuninstall_cmds \
16632 compiler_F77 \
16633 CC_F77 \
16634 LD_F77 \
16635 lt_prog_compiler_wl_F77 \
16636 lt_prog_compiler_pic_F77 \
16637 lt_prog_compiler_static_F77 \
16638 lt_prog_compiler_no_builtin_flag_F77 \
16639 export_dynamic_flag_spec_F77 \
16640 thread_safe_flag_spec_F77 \
16641 whole_archive_flag_spec_F77 \
16642 enable_shared_with_static_runtimes_F77 \
16643 old_archive_cmds_F77 \
16644 old_archive_from_new_cmds_F77 \
16645 predep_objects_F77 \
16646 postdep_objects_F77 \
16647 predeps_F77 \
16648 postdeps_F77 \
16649 compiler_lib_search_path_F77 \
16650 compiler_lib_search_dirs_F77 \
16651 archive_cmds_F77 \
16652 archive_expsym_cmds_F77 \
16653 postinstall_cmds_F77 \
16654 postuninstall_cmds_F77 \
16655 old_archive_from_expsyms_cmds_F77 \
16656 allow_undefined_flag_F77 \
16657 no_undefined_flag_F77 \
16658 export_symbols_cmds_F77 \
16659 hardcode_libdir_flag_spec_F77 \
16660 hardcode_libdir_flag_spec_ld_F77 \
16661 hardcode_libdir_separator_F77 \
16662 hardcode_automatic_F77 \
16663 module_cmds_F77 \
16664 module_expsym_cmds_F77 \
16665 lt_cv_prog_compiler_c_o_F77 \
16666 fix_srcfile_path_F77 \
16667 exclude_expsyms_F77 \
16668 include_expsyms_F77; do
16669
16670 case $var in
16671 old_archive_cmds_F77 | \
16672 old_archive_from_new_cmds_F77 | \
16673 archive_cmds_F77 | \
16674 archive_expsym_cmds_F77 | \
16675 module_cmds_F77 | \
16676 module_expsym_cmds_F77 | \
16677 old_archive_from_expsyms_cmds_F77 | \
16678 export_symbols_cmds_F77 | \
16679 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16680 postinstall_cmds | postuninstall_cmds | \
16681 old_postinstall_cmds | old_postuninstall_cmds | \
16682 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16683 # Double-quote double-evaled strings.
16684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16685 ;;
16686 *)
16687 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16688 ;;
16689 esac
16690 done
16691
16692 case $lt_echo in
16693 *'\$0 --fallback-echo"')
16694 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16695 ;;
16696 esac
16697
16698 cfgfile="$ofile"
16699
16700 cat <<__EOF__ >> "$cfgfile"
16701 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16702
16703 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16704
16705 # Shell to use when invoking shell scripts.
16706 SHELL=$lt_SHELL
16707
16708 # Whether or not to build shared libraries.
16709 build_libtool_libs=$enable_shared
16710
16711 # Whether or not to build static libraries.
16712 build_old_libs=$enable_static
16713
16714 # Whether or not to add -lc for building shared libraries.
16715 build_libtool_need_lc=$archive_cmds_need_lc_F77
16716
16717 # Whether or not to disallow shared libs when runtime libs are static
16718 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16719
16720 # Whether or not to optimize for fast installation.
16721 fast_install=$enable_fast_install
16722
16723 # The host system.
16724 host_alias=$host_alias
16725 host=$host
16726 host_os=$host_os
16727
16728 # The build system.
16729 build_alias=$build_alias
16730 build=$build
16731 build_os=$build_os
16732
16733 # An echo program that does not interpret backslashes.
16734 echo=$lt_echo
16735
16736 # The archiver.
16737 AR=$lt_AR
16738 AR_FLAGS=$lt_AR_FLAGS
16739
16740 # A C compiler.
16741 LTCC=$lt_LTCC
16742
16743 # LTCC compiler flags.
16744 LTCFLAGS=$lt_LTCFLAGS
16745
16746 # A language-specific compiler.
16747 CC=$lt_compiler_F77
16748
16749 # Is the compiler the GNU C compiler?
16750 with_gcc=$GCC_F77
16751
16752 # An ERE matcher.
16753 EGREP=$lt_EGREP
16754
16755 # The linker used to build libraries.
16756 LD=$lt_LD_F77
16757
16758 # Whether we need hard or soft links.
16759 LN_S=$lt_LN_S
16760
16761 # A BSD-compatible nm program.
16762 NM=$lt_NM
16763
16764 # A symbol stripping program
16765 STRIP=$lt_STRIP
16766
16767 # Used to examine libraries when file_magic_cmd begins "file"
16768 MAGIC_CMD=$MAGIC_CMD
16769
16770 # Used on cygwin: DLL creation program.
16771 DLLTOOL="$DLLTOOL"
16772
16773 # Used on cygwin: object dumper.
16774 OBJDUMP="$OBJDUMP"
16775
16776 # Used on cygwin: assembler.
16777 AS="$AS"
16778
16779 # The name of the directory that contains temporary libtool files.
16780 objdir=$objdir
16781
16782 # How to create reloadable object files.
16783 reload_flag=$lt_reload_flag
16784 reload_cmds=$lt_reload_cmds
16785
16786 # How to pass a linker flag through the compiler.
16787 wl=$lt_lt_prog_compiler_wl_F77
16788
16789 # Object file suffix (normally "o").
16790 objext="$ac_objext"
16791
16792 # Old archive suffix (normally "a").
16793 libext="$libext"
16794
16795 # Shared library suffix (normally ".so").
16796 shrext_cmds='$shrext_cmds'
16797
16798 # Executable file suffix (normally "").
16799 exeext="$exeext"
16800
16801 # Additional compiler flags for building library objects.
16802 pic_flag=$lt_lt_prog_compiler_pic_F77
16803 pic_mode=$pic_mode
16804
16805 # What is the maximum length of a command?
16806 max_cmd_len=$lt_cv_sys_max_cmd_len
16807
16808 # Does compiler simultaneously support -c and -o options?
16809 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16810
16811 # Must we lock files when doing compilation?
16812 need_locks=$lt_need_locks
16813
16814 # Do we need the lib prefix for modules?
16815 need_lib_prefix=$need_lib_prefix
16816
16817 # Do we need a version for libraries?
16818 need_version=$need_version
16819
16820 # Whether dlopen is supported.
16821 dlopen_support=$enable_dlopen
16822
16823 # Whether dlopen of programs is supported.
16824 dlopen_self=$enable_dlopen_self
16825
16826 # Whether dlopen of statically linked programs is supported.
16827 dlopen_self_static=$enable_dlopen_self_static
16828
16829 # Compiler flag to prevent dynamic linking.
16830 link_static_flag=$lt_lt_prog_compiler_static_F77
16831
16832 # Compiler flag to turn off builtin functions.
16833 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16834
16835 # Compiler flag to allow reflexive dlopens.
16836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16837
16838 # Compiler flag to generate shared objects directly from archives.
16839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16840
16841 # Compiler flag to generate thread-safe objects.
16842 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16843
16844 # Library versioning type.
16845 version_type=$version_type
16846
16847 # Format of library name prefix.
16848 libname_spec=$lt_libname_spec
16849
16850 # List of archive names. First name is the real one, the rest are links.
16851 # The last name is the one that the linker finds with -lNAME.
16852 library_names_spec=$lt_library_names_spec
16853
16854 # The coded name of the library, if different from the real name.
16855 soname_spec=$lt_soname_spec
16856
16857 # Commands used to build and install an old-style archive.
16858 RANLIB=$lt_RANLIB
16859 old_archive_cmds=$lt_old_archive_cmds_F77
16860 old_postinstall_cmds=$lt_old_postinstall_cmds
16861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16862
16863 # Create an old-style archive from a shared archive.
16864 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16865
16866 # Create a temporary old-style archive to link instead of a shared archive.
16867 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16868
16869 # Commands used to build and install a shared archive.
16870 archive_cmds=$lt_archive_cmds_F77
16871 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16872 postinstall_cmds=$lt_postinstall_cmds
16873 postuninstall_cmds=$lt_postuninstall_cmds
16874
16875 # Commands used to build a loadable module (assumed same as above if empty)
16876 module_cmds=$lt_module_cmds_F77
16877 module_expsym_cmds=$lt_module_expsym_cmds_F77
16878
16879 # Commands to strip libraries.
16880 old_striplib=$lt_old_striplib
16881 striplib=$lt_striplib
16882
16883 # Dependencies to place before the objects being linked to create a
16884 # shared library.
16885 predep_objects=$lt_predep_objects_F77
16886
16887 # Dependencies to place after the objects being linked to create a
16888 # shared library.
16889 postdep_objects=$lt_postdep_objects_F77
16890
16891 # Dependencies to place before the objects being linked to create a
16892 # shared library.
16893 predeps=$lt_predeps_F77
16894
16895 # Dependencies to place after the objects being linked to create a
16896 # shared library.
16897 postdeps=$lt_postdeps_F77
16898
16899 # The directories searched by this compiler when creating a shared
16900 # library
16901 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16902
16903 # The library search path used internally by the compiler when linking
16904 # a shared library.
16905 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16906
16907 # Method to check whether dependent libraries are shared objects.
16908 deplibs_check_method=$lt_deplibs_check_method
16909
16910 # Command to use when deplibs_check_method == file_magic.
16911 file_magic_cmd=$lt_file_magic_cmd
16912
16913 # Flag that allows shared libraries with undefined symbols to be built.
16914 allow_undefined_flag=$lt_allow_undefined_flag_F77
16915
16916 # Flag that forces no undefined symbols.
16917 no_undefined_flag=$lt_no_undefined_flag_F77
16918
16919 # Commands used to finish a libtool library installation in a directory.
16920 finish_cmds=$lt_finish_cmds
16921
16922 # Same as above, but a single script fragment to be evaled but not shown.
16923 finish_eval=$lt_finish_eval
16924
16925 # Take the output of nm and produce a listing of raw symbols and C names.
16926 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16927
16928 # Transform the output of nm in a proper C declaration
16929 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16930
16931 # Transform the output of nm in a C name address pair
16932 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16933
16934 # This is the shared library runtime path variable.
16935 runpath_var=$runpath_var
16936
16937 # This is the shared library path variable.
16938 shlibpath_var=$shlibpath_var
16939
16940 # Is shlibpath searched before the hard-coded library search path?
16941 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16942
16943 # How to hardcode a shared library path into an executable.
16944 hardcode_action=$hardcode_action_F77
16945
16946 # Whether we should hardcode library paths into libraries.
16947 hardcode_into_libs=$hardcode_into_libs
16948
16949 # Flag to hardcode \$libdir into a binary during linking.
16950 # This must work even if \$libdir does not exist.
16951 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16952
16953 # If ld is used when linking, flag to hardcode \$libdir into
16954 # a binary during linking. This must work even if \$libdir does
16955 # not exist.
16956 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16957
16958 # Whether we need a single -rpath flag with a separated argument.
16959 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16960
16961 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16962 # resulting binary.
16963 hardcode_direct=$hardcode_direct_F77
16964
16965 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16966 # resulting binary.
16967 hardcode_minus_L=$hardcode_minus_L_F77
16968
16969 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16970 # the resulting binary.
16971 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16972
16973 # Set to yes if building a shared library automatically hardcodes DIR into the library
16974 # and all subsequent libraries and executables linked against it.
16975 hardcode_automatic=$hardcode_automatic_F77
16976
16977 # Variables whose values should be saved in libtool wrapper scripts and
16978 # restored at relink time.
16979 variables_saved_for_relink="$variables_saved_for_relink"
16980
16981 # Whether libtool must link a program against all its dependency libraries.
16982 link_all_deplibs=$link_all_deplibs_F77
16983
16984 # Compile-time system search path for libraries
16985 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16986
16987 # Run-time system search path for libraries
16988 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16989
16990 # Fix the shell variable \$srcfile for the compiler.
16991 fix_srcfile_path=$lt_fix_srcfile_path
16992
16993 # Set to yes if exported symbols are required.
16994 always_export_symbols=$always_export_symbols_F77
16995
16996 # The commands to list exported symbols.
16997 export_symbols_cmds=$lt_export_symbols_cmds_F77
16998
16999 # The commands to extract the exported symbol list from a shared archive.
17000 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17001
17002 # Symbols that should not be listed in the preloaded symbols.
17003 exclude_expsyms=$lt_exclude_expsyms_F77
17004
17005 # Symbols that must always be exported.
17006 include_expsyms=$lt_include_expsyms_F77
17007
17008 # ### END LIBTOOL TAG CONFIG: $tagname
17009
17010 __EOF__
17011
17012
17013 else
17014 # If there is no Makefile yet, we rely on a make rule to execute
17015 # `config.status --recheck' to rerun these tests and create the
17016 # libtool script then.
17017 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17018 if test -f "$ltmain_in"; then
17019 test -f Makefile && make "$ltmain"
17020 fi
17021 fi
17022
17023
17024 ac_ext=c
17025 ac_cpp='$CPP $CPPFLAGS'
17026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17029
17030 CC="$lt_save_CC"
17031
17032 else
17033 tagname=""
17034 fi
17035 ;;
17036
17037 GCJ)
17038 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17039
17040
17041 # Source file extension for Java test sources.
17042 ac_ext=java
17043
17044 # Object file extension for compiled Java test sources.
17045 objext=o
17046 objext_GCJ=$objext
17047
17048 # Code to be used in simple compile tests
17049 lt_simple_compile_test_code="class foo {}"
17050
17051 # Code to be used in simple link tests
17052 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
17053
17054 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17055
17056 # If no C compiler was specified, use CC.
17057 LTCC=${LTCC-"$CC"}
17058
17059 # If no C compiler flags were specified, use CFLAGS.
17060 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17061
17062 # Allow CC to be a program name with arguments.
17063 compiler=$CC
17064
17065
17066 # save warnings/boilerplate of simple test code
17067 ac_outfile=conftest.$ac_objext
17068 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17069 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17070 _lt_compiler_boilerplate=`cat conftest.err`
17071 $rm conftest*
17072
17073 ac_outfile=conftest.$ac_objext
17074 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17075 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17076 _lt_linker_boilerplate=`cat conftest.err`
17077 $rm -r conftest*
17078
17079
17080 # Allow CC to be a program name with arguments.
17081 lt_save_CC="$CC"
17082 CC=${GCJ-"gcj"}
17083 compiler=$CC
17084 compiler_GCJ=$CC
17085 for cc_temp in $compiler""; do
17086 case $cc_temp in
17087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17089 \-*) ;;
17090 *) break;;
17091 esac
17092 done
17093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17094
17095
17096 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17097 archive_cmds_need_lc_GCJ=no
17098
17099 old_archive_cmds_GCJ=$old_archive_cmds
17100
17101
17102 lt_prog_compiler_no_builtin_flag_GCJ=
17103
17104 if test "$GCC" = yes; then
17105 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17106
17107
17108 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17109 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17110 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113 lt_cv_prog_compiler_rtti_exceptions=no
17114 ac_outfile=conftest.$ac_objext
17115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17116 lt_compiler_flag="-fno-rtti -fno-exceptions"
17117 # Insert the option either (1) after the last *FLAGS variable, or
17118 # (2) before a word containing "conftest.", or (3) at the end.
17119 # Note that $ac_compile itself does not contain backslashes and begins
17120 # with a dollar sign (not a hyphen), so the echo should work correctly.
17121 # The option is referenced via a variable to avoid confusing sed.
17122 lt_compile=`echo "$ac_compile" | $SED \
17123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17125 -e 's:$: $lt_compiler_flag:'`
17126 (eval echo "\"\$as_me:17126: $lt_compile\"" >&5)
17127 (eval "$lt_compile" 2>conftest.err)
17128 ac_status=$?
17129 cat conftest.err >&5
17130 echo "$as_me:17130: \$? = $ac_status" >&5
17131 if (exit $ac_status) && test -s "$ac_outfile"; then
17132 # The compiler can only warn and ignore the option if not recognized
17133 # So say no if there are warnings other than the usual output.
17134 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17137 lt_cv_prog_compiler_rtti_exceptions=yes
17138 fi
17139 fi
17140 $rm conftest*
17141
17142 fi
17143 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17144 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17145
17146 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17147 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17148 else
17149 :
17150 fi
17151
17152 fi
17153
17154 lt_prog_compiler_wl_GCJ=
17155 lt_prog_compiler_pic_GCJ=
17156 lt_prog_compiler_static_GCJ=
17157
17158 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17159 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17160
17161 if test "$GCC" = yes; then
17162 lt_prog_compiler_wl_GCJ='-Wl,'
17163 lt_prog_compiler_static_GCJ='-static'
17164
17165 case $host_os in
17166 aix*)
17167 # All AIX code is PIC.
17168 if test "$host_cpu" = ia64; then
17169 # AIX 5 now supports IA64 processor
17170 lt_prog_compiler_static_GCJ='-Bstatic'
17171 fi
17172 ;;
17173
17174 amigaos*)
17175 # FIXME: we need at least 68020 code to build shared libraries, but
17176 # adding the `-m68020' flag to GCC prevents building anything better,
17177 # like `-m68040'.
17178 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17179 ;;
17180
17181 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17182 # PIC is the default for these OSes.
17183 ;;
17184
17185 mingw* | cygwin* | pw32* | os2*)
17186 # This hack is so that the source file can tell whether it is being
17187 # built for inclusion in a dll (and should export symbols for example).
17188 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17189 # (--disable-auto-import) libraries
17190
17191 ;;
17192
17193 darwin* | rhapsody*)
17194 # PIC is the default on this platform
17195 # Common symbols not allowed in MH_DYLIB files
17196 lt_prog_compiler_pic_GCJ='-fno-common'
17197 ;;
17198
17199 interix[3-9]*)
17200 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17201 # Instead, we relocate shared libraries at runtime.
17202 ;;
17203
17204 msdosdjgpp*)
17205 # Just because we use GCC doesn't mean we suddenly get shared libraries
17206 # on systems that don't support them.
17207 lt_prog_compiler_can_build_shared_GCJ=no
17208 enable_shared=no
17209 ;;
17210
17211 sysv4*MP*)
17212 if test -d /usr/nec; then
17213 lt_prog_compiler_pic_GCJ=-Kconform_pic
17214 fi
17215 ;;
17216
17217 hpux*)
17218 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17219 # not for PA HP-UX.
17220 case $host_cpu in
17221 hppa*64*|ia64*)
17222 # +Z the default
17223 ;;
17224 *)
17225 lt_prog_compiler_pic_GCJ='-fPIC'
17226 ;;
17227 esac
17228 ;;
17229
17230 *)
17231 lt_prog_compiler_pic_GCJ='-fPIC'
17232 ;;
17233 esac
17234 else
17235 # PORTME Check for flag to pass linker flags through the system compiler.
17236 case $host_os in
17237 aix*)
17238 lt_prog_compiler_wl_GCJ='-Wl,'
17239 if test "$host_cpu" = ia64; then
17240 # AIX 5 now supports IA64 processor
17241 lt_prog_compiler_static_GCJ='-Bstatic'
17242 else
17243 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17244 fi
17245 ;;
17246 darwin*)
17247 # PIC is the default on this platform
17248 # Common symbols not allowed in MH_DYLIB files
17249 case $cc_basename in
17250 xlc*)
17251 lt_prog_compiler_pic_GCJ='-qnocommon'
17252 lt_prog_compiler_wl_GCJ='-Wl,'
17253 ;;
17254 esac
17255 ;;
17256
17257 mingw* | cygwin* | pw32* | os2*)
17258 # This hack is so that the source file can tell whether it is being
17259 # built for inclusion in a dll (and should export symbols for example).
17260
17261 ;;
17262
17263 hpux9* | hpux10* | hpux11*)
17264 lt_prog_compiler_wl_GCJ='-Wl,'
17265 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17266 # not for PA HP-UX.
17267 case $host_cpu in
17268 hppa*64*|ia64*)
17269 # +Z the default
17270 ;;
17271 *)
17272 lt_prog_compiler_pic_GCJ='+Z'
17273 ;;
17274 esac
17275 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17276 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17277 ;;
17278
17279 irix5* | irix6* | nonstopux*)
17280 lt_prog_compiler_wl_GCJ='-Wl,'
17281 # PIC (with -KPIC) is the default.
17282 lt_prog_compiler_static_GCJ='-non_shared'
17283 ;;
17284
17285 newsos6)
17286 lt_prog_compiler_pic_GCJ='-KPIC'
17287 lt_prog_compiler_static_GCJ='-Bstatic'
17288 ;;
17289
17290 linux* | k*bsd*-gnu)
17291 case $cc_basename in
17292 icc* | ecc*)
17293 lt_prog_compiler_wl_GCJ='-Wl,'
17294 lt_prog_compiler_pic_GCJ='-KPIC'
17295 lt_prog_compiler_static_GCJ='-static'
17296 ;;
17297 pgcc* | pgf77* | pgf90* | pgf95*)
17298 # Portland Group compilers (*not* the Pentium gcc compiler,
17299 # which looks to be a dead project)
17300 lt_prog_compiler_wl_GCJ='-Wl,'
17301 lt_prog_compiler_pic_GCJ='-fpic'
17302 lt_prog_compiler_static_GCJ='-Bstatic'
17303 ;;
17304 ccc*)
17305 lt_prog_compiler_wl_GCJ='-Wl,'
17306 # All Alpha code is PIC.
17307 lt_prog_compiler_static_GCJ='-non_shared'
17308 ;;
17309 *)
17310 case `$CC -V 2>&1 | sed 5q` in
17311 *Sun\ C*)
17312 # Sun C 5.9
17313 lt_prog_compiler_pic_GCJ='-KPIC'
17314 lt_prog_compiler_static_GCJ='-Bstatic'
17315 lt_prog_compiler_wl_GCJ='-Wl,'
17316 ;;
17317 *Sun\ F*)
17318 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17319 lt_prog_compiler_pic_GCJ='-KPIC'
17320 lt_prog_compiler_static_GCJ='-Bstatic'
17321 lt_prog_compiler_wl_GCJ=''
17322 ;;
17323 esac
17324 ;;
17325 esac
17326 ;;
17327
17328 osf3* | osf4* | osf5*)
17329 lt_prog_compiler_wl_GCJ='-Wl,'
17330 # All OSF/1 code is PIC.
17331 lt_prog_compiler_static_GCJ='-non_shared'
17332 ;;
17333
17334 rdos*)
17335 lt_prog_compiler_static_GCJ='-non_shared'
17336 ;;
17337
17338 solaris*)
17339 lt_prog_compiler_pic_GCJ='-KPIC'
17340 lt_prog_compiler_static_GCJ='-Bstatic'
17341 case $cc_basename in
17342 f77* | f90* | f95*)
17343 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17344 *)
17345 lt_prog_compiler_wl_GCJ='-Wl,';;
17346 esac
17347 ;;
17348
17349 sunos4*)
17350 lt_prog_compiler_wl_GCJ='-Qoption ld '
17351 lt_prog_compiler_pic_GCJ='-PIC'
17352 lt_prog_compiler_static_GCJ='-Bstatic'
17353 ;;
17354
17355 sysv4 | sysv4.2uw2* | sysv4.3*)
17356 lt_prog_compiler_wl_GCJ='-Wl,'
17357 lt_prog_compiler_pic_GCJ='-KPIC'
17358 lt_prog_compiler_static_GCJ='-Bstatic'
17359 ;;
17360
17361 sysv4*MP*)
17362 if test -d /usr/nec ;then
17363 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17364 lt_prog_compiler_static_GCJ='-Bstatic'
17365 fi
17366 ;;
17367
17368 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17369 lt_prog_compiler_wl_GCJ='-Wl,'
17370 lt_prog_compiler_pic_GCJ='-KPIC'
17371 lt_prog_compiler_static_GCJ='-Bstatic'
17372 ;;
17373
17374 unicos*)
17375 lt_prog_compiler_wl_GCJ='-Wl,'
17376 lt_prog_compiler_can_build_shared_GCJ=no
17377 ;;
17378
17379 uts4*)
17380 lt_prog_compiler_pic_GCJ='-pic'
17381 lt_prog_compiler_static_GCJ='-Bstatic'
17382 ;;
17383
17384 *)
17385 lt_prog_compiler_can_build_shared_GCJ=no
17386 ;;
17387 esac
17388 fi
17389
17390 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17391 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17392
17393 #
17394 # Check to make sure the PIC flag actually works.
17395 #
17396 if test -n "$lt_prog_compiler_pic_GCJ"; then
17397
17398 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17399 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17400 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403 lt_cv_prog_compiler_pic_works_GCJ=no
17404 ac_outfile=conftest.$ac_objext
17405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17406 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17407 # Insert the option either (1) after the last *FLAGS variable, or
17408 # (2) before a word containing "conftest.", or (3) at the end.
17409 # Note that $ac_compile itself does not contain backslashes and begins
17410 # with a dollar sign (not a hyphen), so the echo should work correctly.
17411 # The option is referenced via a variable to avoid confusing sed.
17412 lt_compile=`echo "$ac_compile" | $SED \
17413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17415 -e 's:$: $lt_compiler_flag:'`
17416 (eval echo "\"\$as_me:17416: $lt_compile\"" >&5)
17417 (eval "$lt_compile" 2>conftest.err)
17418 ac_status=$?
17419 cat conftest.err >&5
17420 echo "$as_me:17420: \$? = $ac_status" >&5
17421 if (exit $ac_status) && test -s "$ac_outfile"; then
17422 # The compiler can only warn and ignore the option if not recognized
17423 # So say no if there are warnings other than the usual output.
17424 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17427 lt_cv_prog_compiler_pic_works_GCJ=yes
17428 fi
17429 fi
17430 $rm conftest*
17431
17432 fi
17433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17434 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17435
17436 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17437 case $lt_prog_compiler_pic_GCJ in
17438 "" | " "*) ;;
17439 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17440 esac
17441 else
17442 lt_prog_compiler_pic_GCJ=
17443 lt_prog_compiler_can_build_shared_GCJ=no
17444 fi
17445
17446 fi
17447 case $host_os in
17448 # For platforms which do not support PIC, -DPIC is meaningless:
17449 *djgpp*)
17450 lt_prog_compiler_pic_GCJ=
17451 ;;
17452 *)
17453 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17454 ;;
17455 esac
17456
17457 #
17458 # Check to make sure the static flag actually works.
17459 #
17460 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17461 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17462 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17463 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17464 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466 lt_cv_prog_compiler_static_works_GCJ=no
17467 save_LDFLAGS="$LDFLAGS"
17468 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17469 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17470 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17471 # The linker can only warn and ignore the option if not recognized
17472 # So say no if there are warnings
17473 if test -s conftest.err; then
17474 # Append any errors to the config.log.
17475 cat conftest.err 1>&5
17476 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17478 if diff conftest.exp conftest.er2 >/dev/null; then
17479 lt_cv_prog_compiler_static_works_GCJ=yes
17480 fi
17481 else
17482 lt_cv_prog_compiler_static_works_GCJ=yes
17483 fi
17484 fi
17485 $rm -r conftest*
17486 LDFLAGS="$save_LDFLAGS"
17487
17488 fi
17489 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17490 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17491
17492 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17493 :
17494 else
17495 lt_prog_compiler_static_GCJ=
17496 fi
17497
17498
17499 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17500 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17501 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 else
17504 lt_cv_prog_compiler_c_o_GCJ=no
17505 $rm -r conftest 2>/dev/null
17506 mkdir conftest
17507 cd conftest
17508 mkdir out
17509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17510
17511 lt_compiler_flag="-o out/conftest2.$ac_objext"
17512 # Insert the option either (1) after the last *FLAGS variable, or
17513 # (2) before a word containing "conftest.", or (3) at the end.
17514 # Note that $ac_compile itself does not contain backslashes and begins
17515 # with a dollar sign (not a hyphen), so the echo should work correctly.
17516 lt_compile=`echo "$ac_compile" | $SED \
17517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17519 -e 's:$: $lt_compiler_flag:'`
17520 (eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
17521 (eval "$lt_compile" 2>out/conftest.err)
17522 ac_status=$?
17523 cat out/conftest.err >&5
17524 echo "$as_me:17524: \$? = $ac_status" >&5
17525 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17526 then
17527 # The compiler can only warn and ignore the option if not recognized
17528 # So say no if there are warnings
17529 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17530 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17531 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17532 lt_cv_prog_compiler_c_o_GCJ=yes
17533 fi
17534 fi
17535 chmod u+w . 2>&5
17536 $rm conftest*
17537 # SGI C++ compiler will create directory out/ii_files/ for
17538 # template instantiation
17539 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17540 $rm out/* && rmdir out
17541 cd ..
17542 rmdir conftest
17543 $rm conftest*
17544
17545 fi
17546 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17547 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17548
17549
17550 hard_links="nottested"
17551 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17552 # do not overwrite the value of need_locks provided by the user
17553 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17554 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17555 hard_links=yes
17556 $rm conftest*
17557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17558 touch conftest.a
17559 ln conftest.a conftest.b 2>&5 || hard_links=no
17560 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17561 { echo "$as_me:$LINENO: result: $hard_links" >&5
17562 echo "${ECHO_T}$hard_links" >&6; }
17563 if test "$hard_links" = no; then
17564 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17565 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17566 need_locks=warn
17567 fi
17568 else
17569 need_locks=no
17570 fi
17571
17572 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17573 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17574
17575 runpath_var=
17576 allow_undefined_flag_GCJ=
17577 enable_shared_with_static_runtimes_GCJ=no
17578 archive_cmds_GCJ=
17579 archive_expsym_cmds_GCJ=
17580 old_archive_From_new_cmds_GCJ=
17581 old_archive_from_expsyms_cmds_GCJ=
17582 export_dynamic_flag_spec_GCJ=
17583 whole_archive_flag_spec_GCJ=
17584 thread_safe_flag_spec_GCJ=
17585 hardcode_libdir_flag_spec_GCJ=
17586 hardcode_libdir_flag_spec_ld_GCJ=
17587 hardcode_libdir_separator_GCJ=
17588 hardcode_direct_GCJ=no
17589 hardcode_minus_L_GCJ=no
17590 hardcode_shlibpath_var_GCJ=unsupported
17591 link_all_deplibs_GCJ=unknown
17592 hardcode_automatic_GCJ=no
17593 module_cmds_GCJ=
17594 module_expsym_cmds_GCJ=
17595 always_export_symbols_GCJ=no
17596 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17597 # include_expsyms should be a list of space-separated symbols to be *always*
17598 # included in the symbol list
17599 include_expsyms_GCJ=
17600 # exclude_expsyms can be an extended regexp of symbols to exclude
17601 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17602 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17603 # as well as any symbol that contains `d'.
17604 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17605 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17606 # platforms (ab)use it in PIC code, but their linkers get confused if
17607 # the symbol is explicitly referenced. Since portable code cannot
17608 # rely on this symbol name, it's probably fine to never include it in
17609 # preloaded symbol tables.
17610 # Exclude shared library initialization/finalization symbols.
17611 extract_expsyms_cmds=
17612 # Just being paranoid about ensuring that cc_basename is set.
17613 for cc_temp in $compiler""; do
17614 case $cc_temp in
17615 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17616 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17617 \-*) ;;
17618 *) break;;
17619 esac
17620 done
17621 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17622
17623 case $host_os in
17624 cygwin* | mingw* | pw32*)
17625 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17626 # When not using gcc, we currently assume that we are using
17627 # Microsoft Visual C++.
17628 if test "$GCC" != yes; then
17629 with_gnu_ld=no
17630 fi
17631 ;;
17632 interix*)
17633 # we just hope/assume this is gcc and not c89 (= MSVC++)
17634 with_gnu_ld=yes
17635 ;;
17636 openbsd*)
17637 with_gnu_ld=no
17638 ;;
17639 esac
17640
17641 ld_shlibs_GCJ=yes
17642 if test "$with_gnu_ld" = yes; then
17643 # If archive_cmds runs LD, not CC, wlarc should be empty
17644 wlarc='${wl}'
17645
17646 # Set some defaults for GNU ld with shared library support. These
17647 # are reset later if shared libraries are not supported. Putting them
17648 # here allows them to be overridden if necessary.
17649 runpath_var=LD_RUN_PATH
17650 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17651 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17652 # ancient GNU ld didn't support --whole-archive et. al.
17653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17654 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17655 else
17656 whole_archive_flag_spec_GCJ=
17657 fi
17658 supports_anon_versioning=no
17659 case `$LD -v 2>/dev/null` in
17660 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17663 *\ 2.11.*) ;; # other 2.11 versions
17664 *) supports_anon_versioning=yes ;;
17665 esac
17666
17667 # See if GNU ld supports shared libraries.
17668 case $host_os in
17669 aix[3-9]*)
17670 # On AIX/PPC, the GNU linker is very broken
17671 if test "$host_cpu" != ia64; then
17672 ld_shlibs_GCJ=no
17673 cat <<EOF 1>&2
17674
17675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17676 *** to be unable to reliably create shared libraries on AIX.
17677 *** Therefore, libtool is disabling shared libraries support. If you
17678 *** really care for shared libraries, you may want to modify your PATH
17679 *** so that a non-GNU linker is found, and then restart.
17680
17681 EOF
17682 fi
17683 ;;
17684
17685 amigaos*)
17686 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)'
17687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17688 hardcode_minus_L_GCJ=yes
17689
17690 # Samuel A. Falvo II <kc5tja (at] dolphin.openprojects.net> reports
17691 # that the semantics of dynamic libraries on AmigaOS, at least up
17692 # to version 4, is to share data among multiple programs linked
17693 # with the same dynamic library. Since this doesn't match the
17694 # behavior of shared libraries on other platforms, we can't use
17695 # them.
17696 ld_shlibs_GCJ=no
17697 ;;
17698
17699 beos*)
17700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17701 allow_undefined_flag_GCJ=unsupported
17702 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
17703 # support --undefined. This deserves some investigation. FIXME
17704 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17705 else
17706 ld_shlibs_GCJ=no
17707 fi
17708 ;;
17709
17710 cygwin* | mingw* | pw32*)
17711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17712 # as there is no search path for DLLs.
17713 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17714 allow_undefined_flag_GCJ=unsupported
17715 always_export_symbols_GCJ=no
17716 enable_shared_with_static_runtimes_GCJ=yes
17717 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17718
17719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17721 # If the export-symbols file already is a .def file (1st line
17722 # is EXPORTS), use it as is; otherwise, prepend...
17723 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17724 cp $export_symbols $output_objdir/$soname.def;
17725 else
17726 echo EXPORTS > $output_objdir/$soname.def;
17727 cat $export_symbols >> $output_objdir/$soname.def;
17728 fi~
17729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17730 else
17731 ld_shlibs_GCJ=no
17732 fi
17733 ;;
17734
17735 interix[3-9]*)
17736 hardcode_direct_GCJ=no
17737 hardcode_shlibpath_var_GCJ=no
17738 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17739 export_dynamic_flag_spec_GCJ='${wl}-E'
17740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17741 # Instead, shared libraries are loaded at an image base (0x10000000 by
17742 # default) and relocated if they conflict, which is a slow very memory
17743 # consuming and fragmenting process. To avoid this, we pick a random,
17744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17746 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'
17747 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'
17748 ;;
17749
17750 gnu* | linux* | k*bsd*-gnu)
17751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17752 tmp_addflag=
17753 case $cc_basename,$host_cpu in
17754 pgcc*) # Portland Group C compiler
17755 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'
17756 tmp_addflag=' $pic_flag'
17757 ;;
17758 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17759 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'
17760 tmp_addflag=' $pic_flag -Mnomain' ;;
17761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17762 tmp_addflag=' -i_dynamic' ;;
17763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17764 tmp_addflag=' -i_dynamic -nofor_main' ;;
17765 ifc* | ifort*) # Intel Fortran compiler
17766 tmp_addflag=' -nofor_main' ;;
17767 esac
17768 case `$CC -V 2>&1 | sed 5q` in
17769 *Sun\ C*) # Sun C 5.9
17770 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'
17771 tmp_sharedflag='-G' ;;
17772 *Sun\ F*) # Sun Fortran 8.3
17773 tmp_sharedflag='-G' ;;
17774 *)
17775 tmp_sharedflag='-shared' ;;
17776 esac
17777 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17778
17779 if test $supports_anon_versioning = yes; then
17780 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17782 $echo "local: *; };" >> $output_objdir/$libname.ver~
17783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17784 fi
17785 link_all_deplibs_GCJ=no
17786 else
17787 ld_shlibs_GCJ=no
17788 fi
17789 ;;
17790
17791 netbsd* | netbsdelf*-gnu)
17792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17793 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17794 wlarc=
17795 else
17796 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17797 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17798 fi
17799 ;;
17800
17801 solaris*)
17802 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17803 ld_shlibs_GCJ=no
17804 cat <<EOF 1>&2
17805
17806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17807 *** create shared libraries on Solaris systems. Therefore, libtool
17808 *** is disabling shared libraries support. We urge you to upgrade GNU
17809 *** binutils to release 2.9.1 or newer. Another option is to modify
17810 *** your PATH or compiler configuration so that the native linker is
17811 *** used, and then restart.
17812
17813 EOF
17814 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17815 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17816 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17817 else
17818 ld_shlibs_GCJ=no
17819 fi
17820 ;;
17821
17822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17823 case `$LD -v 2>&1` in
17824 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17825 ld_shlibs_GCJ=no
17826 cat <<_LT_EOF 1>&2
17827
17828 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17829 *** reliably create shared libraries on SCO systems. Therefore, libtool
17830 *** is disabling shared libraries support. We urge you to upgrade GNU
17831 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17832 *** your PATH or compiler configuration so that the native linker is
17833 *** used, and then restart.
17834
17835 _LT_EOF
17836 ;;
17837 *)
17838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17839 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17840 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17841 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17842 else
17843 ld_shlibs_GCJ=no
17844 fi
17845 ;;
17846 esac
17847 ;;
17848
17849 sunos4*)
17850 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17851 wlarc=
17852 hardcode_direct_GCJ=yes
17853 hardcode_shlibpath_var_GCJ=no
17854 ;;
17855
17856 *)
17857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17858 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17859 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17860 else
17861 ld_shlibs_GCJ=no
17862 fi
17863 ;;
17864 esac
17865
17866 if test "$ld_shlibs_GCJ" = no; then
17867 runpath_var=
17868 hardcode_libdir_flag_spec_GCJ=
17869 export_dynamic_flag_spec_GCJ=
17870 whole_archive_flag_spec_GCJ=
17871 fi
17872 else
17873 # PORTME fill in a description of your system's linker (not GNU ld)
17874 case $host_os in
17875 aix3*)
17876 allow_undefined_flag_GCJ=unsupported
17877 always_export_symbols_GCJ=yes
17878 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'
17879 # Note: this linker hardcodes the directories in LIBPATH if there
17880 # are no directories specified by -L.
17881 hardcode_minus_L_GCJ=yes
17882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17883 # Neither direct hardcoding nor static linking is supported with a
17884 # broken collect2.
17885 hardcode_direct_GCJ=unsupported
17886 fi
17887 ;;
17888
17889 aix[4-9]*)
17890 if test "$host_cpu" = ia64; then
17891 # On IA64, the linker does run time linking by default, so we don't
17892 # have to do anything special.
17893 aix_use_runtimelinking=no
17894 exp_sym_flag='-Bexport'
17895 no_entry_flag=""
17896 else
17897 # If we're using GNU nm, then we don't want the "-C" option.
17898 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17899 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17900 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'
17901 else
17902 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'
17903 fi
17904 aix_use_runtimelinking=no
17905
17906 # Test if we are trying to use run time linking or normal
17907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17908 # need to do runtime linking.
17909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17910 for ld_flag in $LDFLAGS; do
17911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17912 aix_use_runtimelinking=yes
17913 break
17914 fi
17915 done
17916 ;;
17917 esac
17918
17919 exp_sym_flag='-bexport'
17920 no_entry_flag='-bnoentry'
17921 fi
17922
17923 # When large executables or shared objects are built, AIX ld can
17924 # have problems creating the table of contents. If linking a library
17925 # or program results in "error TOC overflow" add -mminimal-toc to
17926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17928
17929 archive_cmds_GCJ=''
17930 hardcode_direct_GCJ=yes
17931 hardcode_libdir_separator_GCJ=':'
17932 link_all_deplibs_GCJ=yes
17933
17934 if test "$GCC" = yes; then
17935 case $host_os in aix4.[012]|aix4.[012].*)
17936 # We only want to do this on AIX 4.2 and lower, the check
17937 # below for broken collect2 doesn't work under 4.3+
17938 collect2name=`${CC} -print-prog-name=collect2`
17939 if test -f "$collect2name" && \
17940 strings "$collect2name" | grep resolve_lib_name >/dev/null
17941 then
17942 # We have reworked collect2
17943 :
17944 else
17945 # We have old collect2
17946 hardcode_direct_GCJ=unsupported
17947 # It fails to find uninstalled libraries when the uninstalled
17948 # path is not listed in the libpath. Setting hardcode_minus_L
17949 # to unsupported forces relinking
17950 hardcode_minus_L_GCJ=yes
17951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17952 hardcode_libdir_separator_GCJ=
17953 fi
17954 ;;
17955 esac
17956 shared_flag='-shared'
17957 if test "$aix_use_runtimelinking" = yes; then
17958 shared_flag="$shared_flag "'${wl}-G'
17959 fi
17960 else
17961 # not using gcc
17962 if test "$host_cpu" = ia64; then
17963 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17964 # chokes on -Wl,-G. The following line is correct:
17965 shared_flag='-G'
17966 else
17967 if test "$aix_use_runtimelinking" = yes; then
17968 shared_flag='${wl}-G'
17969 else
17970 shared_flag='${wl}-bM:SRE'
17971 fi
17972 fi
17973 fi
17974
17975 # It seems that -bexpall does not export symbols beginning with
17976 # underscore (_), so it is better to generate a list of symbols to export.
17977 always_export_symbols_GCJ=yes
17978 if test "$aix_use_runtimelinking" = yes; then
17979 # Warning - without using the other runtime loading flags (-brtl),
17980 # -berok will link without error, but may produce a broken library.
17981 allow_undefined_flag_GCJ='-berok'
17982 # Determine the default libpath from the value encoded in an empty executable.
17983 cat >conftest.$ac_ext <<_ACEOF
17984 /* confdefs.h. */
17985 _ACEOF
17986 cat confdefs.h >>conftest.$ac_ext
17987 cat >>conftest.$ac_ext <<_ACEOF
17988 /* end confdefs.h. */
17989
17990 int
17991 main ()
17992 {
17993
17994 ;
17995 return 0;
17996 }
17997 _ACEOF
17998 rm -f conftest.$ac_objext conftest$ac_exeext
17999 if { (ac_try="$ac_link"
18000 case "(($ac_try" in
18001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002 *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005 (eval "$ac_link") 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } && {
18012 test -z "$ac_c_werror_flag" ||
18013 test ! -s conftest.err
18014 } && test -s conftest$ac_exeext &&
18015 $as_test_x conftest$ac_exeext; then
18016
18017 lt_aix_libpath_sed='
18018 /Import File Strings/,/^$/ {
18019 /^0/ {
18020 s/^0 *\(.*\)$/\1/
18021 p
18022 }
18023 }'
18024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18025 # Check for a 64-bit object if we didn't find anything.
18026 if test -z "$aix_libpath"; then
18027 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18028 fi
18029 else
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033
18034 fi
18035
18036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18037 conftest$ac_exeext conftest.$ac_ext
18038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18039
18040 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18041 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"
18042 else
18043 if test "$host_cpu" = ia64; then
18044 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18045 allow_undefined_flag_GCJ="-z nodefs"
18046 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"
18047 else
18048 # Determine the default libpath from the value encoded in an empty executable.
18049 cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055
18056 int
18057 main ()
18058 {
18059
18060 ;
18061 return 0;
18062 }
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_link") 2>conftest.er1
18072 ac_status=$?
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } && {
18078 test -z "$ac_c_werror_flag" ||
18079 test ! -s conftest.err
18080 } && test -s conftest$ac_exeext &&
18081 $as_test_x conftest$ac_exeext; then
18082
18083 lt_aix_libpath_sed='
18084 /Import File Strings/,/^$/ {
18085 /^0/ {
18086 s/^0 *\(.*\)$/\1/
18087 p
18088 }
18089 }'
18090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18091 # Check for a 64-bit object if we didn't find anything.
18092 if test -z "$aix_libpath"; then
18093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18094 fi
18095 else
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099
18100 fi
18101
18102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18103 conftest$ac_exeext conftest.$ac_ext
18104 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18105
18106 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18107 # Warning - without using the other run time loading flags,
18108 # -berok will link without error, but may produce a broken library.
18109 no_undefined_flag_GCJ=' ${wl}-bernotok'
18110 allow_undefined_flag_GCJ=' ${wl}-berok'
18111 # Exported symbols can be pulled into shared objects from archives
18112 whole_archive_flag_spec_GCJ='$convenience'
18113 archive_cmds_need_lc_GCJ=yes
18114 # This is similar to how AIX traditionally builds its shared libraries.
18115 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'
18116 fi
18117 fi
18118 ;;
18119
18120 amigaos*)
18121 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)'
18122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18123 hardcode_minus_L_GCJ=yes
18124 # see comment about different semantics on the GNU ld section
18125 ld_shlibs_GCJ=no
18126 ;;
18127
18128 bsdi[45]*)
18129 export_dynamic_flag_spec_GCJ=-rdynamic
18130 ;;
18131
18132 cygwin* | mingw* | pw32*)
18133 # When not using gcc, we currently assume that we are using
18134 # Microsoft Visual C++.
18135 # hardcode_libdir_flag_spec is actually meaningless, as there is
18136 # no search path for DLLs.
18137 hardcode_libdir_flag_spec_GCJ=' '
18138 allow_undefined_flag_GCJ=unsupported
18139 # Tell ltmain to make .lib files, not .a files.
18140 libext=lib
18141 # Tell ltmain to make .dll files, not .so files.
18142 shrext_cmds=".dll"
18143 # FIXME: Setting linknames here is a bad hack.
18144 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18145 # The linker will automatically build a .lib file if we build a DLL.
18146 old_archive_From_new_cmds_GCJ='true'
18147 # FIXME: Should let the user specify the lib program.
18148 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18149 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18150 enable_shared_with_static_runtimes_GCJ=yes
18151 ;;
18152
18153 darwin* | rhapsody*)
18154 case $host_os in
18155 rhapsody* | darwin1.[012])
18156 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18157 ;;
18158 *) # Darwin 1.3 on
18159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18160 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18161 else
18162 case ${MACOSX_DEPLOYMENT_TARGET} in
18163 10.[012])
18164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18165 ;;
18166 10.*)
18167 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18168 ;;
18169 esac
18170 fi
18171 ;;
18172 esac
18173 archive_cmds_need_lc_GCJ=no
18174 hardcode_direct_GCJ=no
18175 hardcode_automatic_GCJ=yes
18176 hardcode_shlibpath_var_GCJ=unsupported
18177 whole_archive_flag_spec_GCJ=''
18178 link_all_deplibs_GCJ=yes
18179 if test "$GCC" = yes ; then
18180 output_verbose_link_cmd='echo'
18181 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18182 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18183 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18184 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18185 else
18186 case $cc_basename in
18187 xlc*)
18188 output_verbose_link_cmd='echo'
18189 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18190 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18191 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18192 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}'
18193 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}'
18194 ;;
18195 *)
18196 ld_shlibs_GCJ=no
18197 ;;
18198 esac
18199 fi
18200 ;;
18201
18202 dgux*)
18203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18205 hardcode_shlibpath_var_GCJ=no
18206 ;;
18207
18208 freebsd1*)
18209 ld_shlibs_GCJ=no
18210 ;;
18211
18212 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18213 # support. Future versions do this automatically, but an explicit c++rt0.o
18214 # does not break anything, and helps significantly (at the cost of a little
18215 # extra space).
18216 freebsd2.2*)
18217 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18218 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18219 hardcode_direct_GCJ=yes
18220 hardcode_shlibpath_var_GCJ=no
18221 ;;
18222
18223 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18224 freebsd2*)
18225 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18226 hardcode_direct_GCJ=yes
18227 hardcode_minus_L_GCJ=yes
18228 hardcode_shlibpath_var_GCJ=no
18229 ;;
18230
18231 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18232 freebsd* | dragonfly*)
18233 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18234 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18235 hardcode_direct_GCJ=yes
18236 hardcode_shlibpath_var_GCJ=no
18237 ;;
18238
18239 hpux9*)
18240 if test "$GCC" = yes; then
18241 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'
18242 else
18243 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'
18244 fi
18245 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18246 hardcode_libdir_separator_GCJ=:
18247 hardcode_direct_GCJ=yes
18248
18249 # hardcode_minus_L: Not really in the search PATH,
18250 # but as the default location of the library.
18251 hardcode_minus_L_GCJ=yes
18252 export_dynamic_flag_spec_GCJ='${wl}-E'
18253 ;;
18254
18255 hpux10*)
18256 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18257 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18258 else
18259 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18260 fi
18261 if test "$with_gnu_ld" = no; then
18262 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18263 hardcode_libdir_separator_GCJ=:
18264
18265 hardcode_direct_GCJ=yes
18266 export_dynamic_flag_spec_GCJ='${wl}-E'
18267
18268 # hardcode_minus_L: Not really in the search PATH,
18269 # but as the default location of the library.
18270 hardcode_minus_L_GCJ=yes
18271 fi
18272 ;;
18273
18274 hpux11*)
18275 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18276 case $host_cpu in
18277 hppa*64*)
18278 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18279 ;;
18280 ia64*)
18281 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18282 ;;
18283 *)
18284 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18285 ;;
18286 esac
18287 else
18288 case $host_cpu in
18289 hppa*64*)
18290 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18291 ;;
18292 ia64*)
18293 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18294 ;;
18295 *)
18296 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18297 ;;
18298 esac
18299 fi
18300 if test "$with_gnu_ld" = no; then
18301 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18302 hardcode_libdir_separator_GCJ=:
18303
18304 case $host_cpu in
18305 hppa*64*|ia64*)
18306 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18307 hardcode_direct_GCJ=no
18308 hardcode_shlibpath_var_GCJ=no
18309 ;;
18310 *)
18311 hardcode_direct_GCJ=yes
18312 export_dynamic_flag_spec_GCJ='${wl}-E'
18313
18314 # hardcode_minus_L: Not really in the search PATH,
18315 # but as the default location of the library.
18316 hardcode_minus_L_GCJ=yes
18317 ;;
18318 esac
18319 fi
18320 ;;
18321
18322 irix5* | irix6* | nonstopux*)
18323 if test "$GCC" = yes; then
18324 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'
18325 else
18326 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'
18327 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18328 fi
18329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18330 hardcode_libdir_separator_GCJ=:
18331 link_all_deplibs_GCJ=yes
18332 ;;
18333
18334 netbsd* | netbsdelf*-gnu)
18335 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18336 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18337 else
18338 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18339 fi
18340 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18341 hardcode_direct_GCJ=yes
18342 hardcode_shlibpath_var_GCJ=no
18343 ;;
18344
18345 newsos6)
18346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18347 hardcode_direct_GCJ=yes
18348 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18349 hardcode_libdir_separator_GCJ=:
18350 hardcode_shlibpath_var_GCJ=no
18351 ;;
18352
18353 openbsd*)
18354 if test -f /usr/libexec/ld.so; then
18355 hardcode_direct_GCJ=yes
18356 hardcode_shlibpath_var_GCJ=no
18357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18360 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18361 export_dynamic_flag_spec_GCJ='${wl}-E'
18362 else
18363 case $host_os in
18364 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18365 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18366 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18367 ;;
18368 *)
18369 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18370 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18371 ;;
18372 esac
18373 fi
18374 else
18375 ld_shlibs_GCJ=no
18376 fi
18377 ;;
18378
18379 os2*)
18380 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18381 hardcode_minus_L_GCJ=yes
18382 allow_undefined_flag_GCJ=unsupported
18383 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'
18384 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18385 ;;
18386
18387 osf3*)
18388 if test "$GCC" = yes; then
18389 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18390 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'
18391 else
18392 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18393 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'
18394 fi
18395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18396 hardcode_libdir_separator_GCJ=:
18397 ;;
18398
18399 osf4* | osf5*) # as osf3* with the addition of -msym flag
18400 if test "$GCC" = yes; then
18401 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18402 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'
18403 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18404 else
18405 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18406 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'
18407 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~
18408 $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'
18409
18410 # Both c and cxx compiler support -rpath directly
18411 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18412 fi
18413 hardcode_libdir_separator_GCJ=:
18414 ;;
18415
18416 solaris*)
18417 no_undefined_flag_GCJ=' -z text'
18418 if test "$GCC" = yes; then
18419 wlarc='${wl}'
18420 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18421 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18422 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18423 else
18424 wlarc=''
18425 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18426 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18428 fi
18429 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18430 hardcode_shlibpath_var_GCJ=no
18431 case $host_os in
18432 solaris2.[0-5] | solaris2.[0-5].*) ;;
18433 *)
18434 # The compiler driver will combine and reorder linker options,
18435 # but understands `-z linker_flag'. GCC discards it without `$wl',
18436 # but is careful enough not to reorder.
18437 # Supported since Solaris 2.6 (maybe 2.5.1?)
18438 if test "$GCC" = yes; then
18439 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18440 else
18441 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18442 fi
18443 ;;
18444 esac
18445 link_all_deplibs_GCJ=yes
18446 ;;
18447
18448 sunos4*)
18449 if test "x$host_vendor" = xsequent; then
18450 # Use $CC to link under sequent, because it throws in some extra .o
18451 # files that make .init and .fini sections work.
18452 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18453 else
18454 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18455 fi
18456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18457 hardcode_direct_GCJ=yes
18458 hardcode_minus_L_GCJ=yes
18459 hardcode_shlibpath_var_GCJ=no
18460 ;;
18461
18462 sysv4)
18463 case $host_vendor in
18464 sni)
18465 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18466 hardcode_direct_GCJ=yes # is this really true???
18467 ;;
18468 siemens)
18469 ## LD is ld it makes a PLAMLIB
18470 ## CC just makes a GrossModule.
18471 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18472 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18473 hardcode_direct_GCJ=no
18474 ;;
18475 motorola)
18476 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18477 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18478 ;;
18479 esac
18480 runpath_var='LD_RUN_PATH'
18481 hardcode_shlibpath_var_GCJ=no
18482 ;;
18483
18484 sysv4.3*)
18485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18486 hardcode_shlibpath_var_GCJ=no
18487 export_dynamic_flag_spec_GCJ='-Bexport'
18488 ;;
18489
18490 sysv4*MP*)
18491 if test -d /usr/nec; then
18492 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18493 hardcode_shlibpath_var_GCJ=no
18494 runpath_var=LD_RUN_PATH
18495 hardcode_runpath_var=yes
18496 ld_shlibs_GCJ=yes
18497 fi
18498 ;;
18499
18500 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18501 no_undefined_flag_GCJ='${wl}-z,text'
18502 archive_cmds_need_lc_GCJ=no
18503 hardcode_shlibpath_var_GCJ=no
18504 runpath_var='LD_RUN_PATH'
18505
18506 if test "$GCC" = yes; then
18507 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18508 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18509 else
18510 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18512 fi
18513 ;;
18514
18515 sysv5* | sco3.2v5* | sco5v6*)
18516 # Note: We can NOT use -z defs as we might desire, because we do not
18517 # link with -lc, and that would cause any symbols used from libc to
18518 # always be unresolved, which means just about no library would
18519 # ever link correctly. If we're not using GNU ld we use -z text
18520 # though, which does catch some bad symbols but isn't as heavy-handed
18521 # as -z defs.
18522 no_undefined_flag_GCJ='${wl}-z,text'
18523 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18524 archive_cmds_need_lc_GCJ=no
18525 hardcode_shlibpath_var_GCJ=no
18526 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18527 hardcode_libdir_separator_GCJ=':'
18528 link_all_deplibs_GCJ=yes
18529 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18530 runpath_var='LD_RUN_PATH'
18531
18532 if test "$GCC" = yes; then
18533 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18534 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18535 else
18536 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18537 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18538 fi
18539 ;;
18540
18541 uts4*)
18542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18544 hardcode_shlibpath_var_GCJ=no
18545 ;;
18546
18547 *)
18548 ld_shlibs_GCJ=no
18549 ;;
18550 esac
18551 fi
18552
18553 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18554 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18555 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18556
18557 #
18558 # Do we need to explicitly link libc?
18559 #
18560 case "x$archive_cmds_need_lc_GCJ" in
18561 x|xyes)
18562 # Assume -lc should be added
18563 archive_cmds_need_lc_GCJ=yes
18564
18565 if test "$enable_shared" = yes && test "$GCC" = yes; then
18566 case $archive_cmds_GCJ in
18567 *'~'*)
18568 # FIXME: we may have to deal with multi-command sequences.
18569 ;;
18570 '$CC '*)
18571 # Test whether the compiler implicitly links with -lc since on some
18572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18573 # to ld, don't add -lc before -lgcc.
18574 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18576 $rm conftest*
18577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18578
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>&5
18581 ac_status=$?
18582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583 (exit $ac_status); } 2>conftest.err; then
18584 soname=conftest
18585 lib=conftest
18586 libobjs=conftest.$ac_objext
18587 deplibs=
18588 wl=$lt_prog_compiler_wl_GCJ
18589 pic_flag=$lt_prog_compiler_pic_GCJ
18590 compiler_flags=-v
18591 linker_flags=-v
18592 verstring=
18593 output_objdir=.
18594 libname=conftest
18595 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18596 allow_undefined_flag_GCJ=
18597 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18598 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18599 ac_status=$?
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); }
18602 then
18603 archive_cmds_need_lc_GCJ=no
18604 else
18605 archive_cmds_need_lc_GCJ=yes
18606 fi
18607 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18608 else
18609 cat conftest.err 1>&5
18610 fi
18611 $rm conftest*
18612 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18613 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18614 ;;
18615 esac
18616 fi
18617 ;;
18618 esac
18619
18620 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18621 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18622 library_names_spec=
18623 libname_spec='lib$name'
18624 soname_spec=
18625 shrext_cmds=".so"
18626 postinstall_cmds=
18627 postuninstall_cmds=
18628 finish_cmds=
18629 finish_eval=
18630 shlibpath_var=
18631 shlibpath_overrides_runpath=unknown
18632 version_type=none
18633 dynamic_linker="$host_os ld.so"
18634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18635
18636 need_lib_prefix=unknown
18637 hardcode_into_libs=no
18638
18639 # when you set need_version to no, make sure it does not cause -set_version
18640 # flags to be left without arguments
18641 need_version=unknown
18642
18643 case $host_os in
18644 aix3*)
18645 version_type=linux
18646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18647 shlibpath_var=LIBPATH
18648
18649 # AIX 3 has no versioning support, so we append a major version to the name.
18650 soname_spec='${libname}${release}${shared_ext}$major'
18651 ;;
18652
18653 aix[4-9]*)
18654 version_type=linux
18655 need_lib_prefix=no
18656 need_version=no
18657 hardcode_into_libs=yes
18658 if test "$host_cpu" = ia64; then
18659 # AIX 5 supports IA64
18660 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18661 shlibpath_var=LD_LIBRARY_PATH
18662 else
18663 # With GCC up to 2.95.x, collect2 would create an import file
18664 # for dependence libraries. The import file would start with
18665 # the line `#! .'. This would cause the generated library to
18666 # depend on `.', always an invalid library. This was fixed in
18667 # development snapshots of GCC prior to 3.0.
18668 case $host_os in
18669 aix4 | aix4.[01] | aix4.[01].*)
18670 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18671 echo ' yes '
18672 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18673 :
18674 else
18675 can_build_shared=no
18676 fi
18677 ;;
18678 esac
18679 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18680 # soname into executable. Probably we can add versioning support to
18681 # collect2, so additional links can be useful in future.
18682 if test "$aix_use_runtimelinking" = yes; then
18683 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18684 # instead of lib<name>.a to let people know that these are not
18685 # typical AIX shared libraries.
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687 else
18688 # We preserve .a as extension for shared libraries through AIX4.2
18689 # and later when we are not doing run time linking.
18690 library_names_spec='${libname}${release}.a $libname.a'
18691 soname_spec='${libname}${release}${shared_ext}$major'
18692 fi
18693 shlibpath_var=LIBPATH
18694 fi
18695 ;;
18696
18697 amigaos*)
18698 library_names_spec='$libname.ixlibrary $libname.a'
18699 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18700 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'
18701 ;;
18702
18703 beos*)
18704 library_names_spec='${libname}${shared_ext}'
18705 dynamic_linker="$host_os ld.so"
18706 shlibpath_var=LIBRARY_PATH
18707 ;;
18708
18709 bsdi[45]*)
18710 version_type=linux
18711 need_version=no
18712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18713 soname_spec='${libname}${release}${shared_ext}$major'
18714 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18715 shlibpath_var=LD_LIBRARY_PATH
18716 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18717 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18718 # the default ld.so.conf also contains /usr/contrib/lib and
18719 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18720 # libtool to hard-code these into programs
18721 ;;
18722
18723 cygwin* | mingw* | pw32*)
18724 version_type=windows
18725 shrext_cmds=".dll"
18726 need_version=no
18727 need_lib_prefix=no
18728
18729 case $GCC,$host_os in
18730 yes,cygwin* | yes,mingw* | yes,pw32*)
18731 library_names_spec='$libname.dll.a'
18732 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18733 postinstall_cmds='base_file=`basename \${file}`~
18734 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18735 dldir=$destdir/`dirname \$dlpath`~
18736 test -d \$dldir || mkdir -p \$dldir~
18737 $install_prog $dir/$dlname \$dldir/$dlname~
18738 chmod a+x \$dldir/$dlname'
18739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18740 dlpath=$dir/\$dldll~
18741 $rm \$dlpath'
18742 shlibpath_overrides_runpath=yes
18743
18744 case $host_os in
18745 cygwin*)
18746 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18747 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18748 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18749 ;;
18750 mingw*)
18751 # MinGW DLLs use traditional 'lib' prefix
18752 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18753 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18754 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18755 # It is most probably a Windows format PATH printed by
18756 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18757 # path with ; separators, and with drive letters. We can handle the
18758 # drive letters (cygwin fileutils understands them), so leave them,
18759 # especially as we might pass files found there to a mingw objdump,
18760 # which wouldn't understand a cygwinified path. Ahh.
18761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18762 else
18763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18764 fi
18765 ;;
18766 pw32*)
18767 # pw32 DLLs use 'pw' prefix rather than 'lib'
18768 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18769 ;;
18770 esac
18771 ;;
18772
18773 *)
18774 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18775 ;;
18776 esac
18777 dynamic_linker='Win32 ld.exe'
18778 # FIXME: first we should search . and the directory the executable is in
18779 shlibpath_var=PATH
18780 ;;
18781
18782 darwin* | rhapsody*)
18783 dynamic_linker="$host_os dyld"
18784 version_type=darwin
18785 need_lib_prefix=no
18786 need_version=no
18787 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18788 soname_spec='${libname}${release}${major}$shared_ext'
18789 shlibpath_overrides_runpath=yes
18790 shlibpath_var=DYLD_LIBRARY_PATH
18791 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18792
18793 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18794 ;;
18795
18796 dgux*)
18797 version_type=linux
18798 need_lib_prefix=no
18799 need_version=no
18800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18801 soname_spec='${libname}${release}${shared_ext}$major'
18802 shlibpath_var=LD_LIBRARY_PATH
18803 ;;
18804
18805 freebsd1*)
18806 dynamic_linker=no
18807 ;;
18808
18809 freebsd* | dragonfly*)
18810 # DragonFly does not have aout. When/if they implement a new
18811 # versioning mechanism, adjust this.
18812 if test -x /usr/bin/objformat; then
18813 objformat=`/usr/bin/objformat`
18814 else
18815 case $host_os in
18816 freebsd[123]*) objformat=aout ;;
18817 *) objformat=elf ;;
18818 esac
18819 fi
18820 version_type=freebsd-$objformat
18821 case $version_type in
18822 freebsd-elf*)
18823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18824 need_version=no
18825 need_lib_prefix=no
18826 ;;
18827 freebsd-*)
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18829 need_version=yes
18830 ;;
18831 esac
18832 shlibpath_var=LD_LIBRARY_PATH
18833 case $host_os in
18834 freebsd2*)
18835 shlibpath_overrides_runpath=yes
18836 ;;
18837 freebsd3.[01]* | freebsdelf3.[01]*)
18838 shlibpath_overrides_runpath=yes
18839 hardcode_into_libs=yes
18840 ;;
18841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18843 shlibpath_overrides_runpath=no
18844 hardcode_into_libs=yes
18845 ;;
18846 *) # from 4.6 on, and DragonFly
18847 shlibpath_overrides_runpath=yes
18848 hardcode_into_libs=yes
18849 ;;
18850 esac
18851 ;;
18852
18853 gnu*)
18854 version_type=linux
18855 need_lib_prefix=no
18856 need_version=no
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18858 soname_spec='${libname}${release}${shared_ext}$major'
18859 shlibpath_var=LD_LIBRARY_PATH
18860 hardcode_into_libs=yes
18861 ;;
18862
18863 hpux9* | hpux10* | hpux11*)
18864 # Give a soname corresponding to the major version so that dld.sl refuses to
18865 # link against other versions.
18866 version_type=sunos
18867 need_lib_prefix=no
18868 need_version=no
18869 case $host_cpu in
18870 ia64*)
18871 shrext_cmds='.so'
18872 hardcode_into_libs=yes
18873 dynamic_linker="$host_os dld.so"
18874 shlibpath_var=LD_LIBRARY_PATH
18875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877 soname_spec='${libname}${release}${shared_ext}$major'
18878 if test "X$HPUX_IA64_MODE" = X32; then
18879 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18880 else
18881 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18882 fi
18883 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18884 ;;
18885 hppa*64*)
18886 shrext_cmds='.sl'
18887 hardcode_into_libs=yes
18888 dynamic_linker="$host_os dld.sl"
18889 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892 soname_spec='${libname}${release}${shared_ext}$major'
18893 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18894 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18895 ;;
18896 *)
18897 shrext_cmds='.sl'
18898 dynamic_linker="$host_os dld.sl"
18899 shlibpath_var=SHLIB_PATH
18900 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18902 soname_spec='${libname}${release}${shared_ext}$major'
18903 ;;
18904 esac
18905 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18906 postinstall_cmds='chmod 555 $lib'
18907 ;;
18908
18909 interix[3-9]*)
18910 version_type=linux
18911 need_lib_prefix=no
18912 need_version=no
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18914 soname_spec='${libname}${release}${shared_ext}$major'
18915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18916 shlibpath_var=LD_LIBRARY_PATH
18917 shlibpath_overrides_runpath=no
18918 hardcode_into_libs=yes
18919 ;;
18920
18921 irix5* | irix6* | nonstopux*)
18922 case $host_os in
18923 nonstopux*) version_type=nonstopux ;;
18924 *)
18925 if test "$lt_cv_prog_gnu_ld" = yes; then
18926 version_type=linux
18927 else
18928 version_type=irix
18929 fi ;;
18930 esac
18931 need_lib_prefix=no
18932 need_version=no
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18935 case $host_os in
18936 irix5* | nonstopux*)
18937 libsuff= shlibsuff=
18938 ;;
18939 *)
18940 case $LD in # libtool.m4 will add one of these switches to LD
18941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18942 libsuff= shlibsuff= libmagic=32-bit;;
18943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18944 libsuff=32 shlibsuff=N32 libmagic=N32;;
18945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18947 *) libsuff= shlibsuff= libmagic=never-match;;
18948 esac
18949 ;;
18950 esac
18951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18952 shlibpath_overrides_runpath=no
18953 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18954 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18955 hardcode_into_libs=yes
18956 ;;
18957
18958 # No shared lib support for Linux oldld, aout, or coff.
18959 linux*oldld* | linux*aout* | linux*coff*)
18960 dynamic_linker=no
18961 ;;
18962
18963 # This must be Linux ELF.
18964 linux* | k*bsd*-gnu)
18965 version_type=linux
18966 need_lib_prefix=no
18967 need_version=no
18968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969 soname_spec='${libname}${release}${shared_ext}$major'
18970 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18971 shlibpath_var=LD_LIBRARY_PATH
18972 shlibpath_overrides_runpath=no
18973 # This implies no fast_install, which is unacceptable.
18974 # Some rework will be needed to allow for fast_install
18975 # before this can be enabled.
18976 hardcode_into_libs=yes
18977
18978 # Append ld.so.conf contents to the search path
18979 if test -f /etc/ld.so.conf; then
18980 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' ' '`
18981 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18982 fi
18983
18984 # We used to test for /lib/ld.so.1 and disable shared libraries on
18985 # powerpc, because MkLinux only supported shared libraries with the
18986 # GNU dynamic linker. Since this was broken with cross compilers,
18987 # most powerpc-linux boxes support dynamic linking these days and
18988 # people can always --disable-shared, the test was removed, and we
18989 # assume the GNU/Linux dynamic linker is in use.
18990 dynamic_linker='GNU/Linux ld.so'
18991 ;;
18992
18993 netbsdelf*-gnu)
18994 version_type=linux
18995 need_lib_prefix=no
18996 need_version=no
18997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18998 soname_spec='${libname}${release}${shared_ext}$major'
18999 shlibpath_var=LD_LIBRARY_PATH
19000 shlibpath_overrides_runpath=no
19001 hardcode_into_libs=yes
19002 dynamic_linker='NetBSD ld.elf_so'
19003 ;;
19004
19005 netbsd*)
19006 version_type=sunos
19007 need_lib_prefix=no
19008 need_version=no
19009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19011 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19012 dynamic_linker='NetBSD (a.out) ld.so'
19013 else
19014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19015 soname_spec='${libname}${release}${shared_ext}$major'
19016 dynamic_linker='NetBSD ld.elf_so'
19017 fi
19018 shlibpath_var=LD_LIBRARY_PATH
19019 shlibpath_overrides_runpath=yes
19020 hardcode_into_libs=yes
19021 ;;
19022
19023 newsos6)
19024 version_type=linux
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19026 shlibpath_var=LD_LIBRARY_PATH
19027 shlibpath_overrides_runpath=yes
19028 ;;
19029
19030 nto-qnx*)
19031 version_type=linux
19032 need_lib_prefix=no
19033 need_version=no
19034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19035 soname_spec='${libname}${release}${shared_ext}$major'
19036 shlibpath_var=LD_LIBRARY_PATH
19037 shlibpath_overrides_runpath=yes
19038 ;;
19039
19040 openbsd*)
19041 version_type=sunos
19042 sys_lib_dlsearch_path_spec="/usr/lib"
19043 need_lib_prefix=no
19044 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19045 case $host_os in
19046 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19047 *) need_version=no ;;
19048 esac
19049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19051 shlibpath_var=LD_LIBRARY_PATH
19052 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19053 case $host_os in
19054 openbsd2.[89] | openbsd2.[89].*)
19055 shlibpath_overrides_runpath=no
19056 ;;
19057 *)
19058 shlibpath_overrides_runpath=yes
19059 ;;
19060 esac
19061 else
19062 shlibpath_overrides_runpath=yes
19063 fi
19064 ;;
19065
19066 os2*)
19067 libname_spec='$name'
19068 shrext_cmds=".dll"
19069 need_lib_prefix=no
19070 library_names_spec='$libname${shared_ext} $libname.a'
19071 dynamic_linker='OS/2 ld.exe'
19072 shlibpath_var=LIBPATH
19073 ;;
19074
19075 osf3* | osf4* | osf5*)
19076 version_type=osf
19077 need_lib_prefix=no
19078 need_version=no
19079 soname_spec='${libname}${release}${shared_ext}$major'
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19081 shlibpath_var=LD_LIBRARY_PATH
19082 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19083 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19084 ;;
19085
19086 rdos*)
19087 dynamic_linker=no
19088 ;;
19089
19090 solaris*)
19091 version_type=linux
19092 need_lib_prefix=no
19093 need_version=no
19094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19095 soname_spec='${libname}${release}${shared_ext}$major'
19096 shlibpath_var=LD_LIBRARY_PATH
19097 shlibpath_overrides_runpath=yes
19098 hardcode_into_libs=yes
19099 # ldd complains unless libraries are executable
19100 postinstall_cmds='chmod +x $lib'
19101 ;;
19102
19103 sunos4*)
19104 version_type=sunos
19105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19107 shlibpath_var=LD_LIBRARY_PATH
19108 shlibpath_overrides_runpath=yes
19109 if test "$with_gnu_ld" = yes; then
19110 need_lib_prefix=no
19111 fi
19112 need_version=yes
19113 ;;
19114
19115 sysv4 | sysv4.3*)
19116 version_type=linux
19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19118 soname_spec='${libname}${release}${shared_ext}$major'
19119 shlibpath_var=LD_LIBRARY_PATH
19120 case $host_vendor in
19121 sni)
19122 shlibpath_overrides_runpath=no
19123 need_lib_prefix=no
19124 export_dynamic_flag_spec='${wl}-Blargedynsym'
19125 runpath_var=LD_RUN_PATH
19126 ;;
19127 siemens)
19128 need_lib_prefix=no
19129 ;;
19130 motorola)
19131 need_lib_prefix=no
19132 need_version=no
19133 shlibpath_overrides_runpath=no
19134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19135 ;;
19136 esac
19137 ;;
19138
19139 sysv4*MP*)
19140 if test -d /usr/nec ;then
19141 version_type=linux
19142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19143 soname_spec='$libname${shared_ext}.$major'
19144 shlibpath_var=LD_LIBRARY_PATH
19145 fi
19146 ;;
19147
19148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19149 version_type=freebsd-elf
19150 need_lib_prefix=no
19151 need_version=no
19152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19153 soname_spec='${libname}${release}${shared_ext}$major'
19154 shlibpath_var=LD_LIBRARY_PATH
19155 hardcode_into_libs=yes
19156 if test "$with_gnu_ld" = yes; then
19157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19158 shlibpath_overrides_runpath=no
19159 else
19160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19161 shlibpath_overrides_runpath=yes
19162 case $host_os in
19163 sco3.2v5*)
19164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19165 ;;
19166 esac
19167 fi
19168 sys_lib_dlsearch_path_spec='/usr/lib'
19169 ;;
19170
19171 uts4*)
19172 version_type=linux
19173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19174 soname_spec='${libname}${release}${shared_ext}$major'
19175 shlibpath_var=LD_LIBRARY_PATH
19176 ;;
19177
19178 *)
19179 dynamic_linker=no
19180 ;;
19181 esac
19182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19183 echo "${ECHO_T}$dynamic_linker" >&6; }
19184 test "$dynamic_linker" = no && can_build_shared=no
19185
19186 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 else
19189 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19190 fi
19191
19192 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19193 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19194 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 else
19196 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19197 fi
19198
19199 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19200
19201 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19202 if test "$GCC" = yes; then
19203 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19204 fi
19205
19206 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19207 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19208 hardcode_action_GCJ=
19209 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19210 test -n "$runpath_var_GCJ" || \
19211 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19212
19213 # We can hardcode non-existant directories.
19214 if test "$hardcode_direct_GCJ" != no &&
19215 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19216 # have to relink, otherwise we might link with an installed library
19217 # when we should be linking with a yet-to-be-installed one
19218 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19219 test "$hardcode_minus_L_GCJ" != no; then
19220 # Linking always hardcodes the temporary library directory.
19221 hardcode_action_GCJ=relink
19222 else
19223 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19224 hardcode_action_GCJ=immediate
19225 fi
19226 else
19227 # We cannot hardcode anything, or else we can only hardcode existing
19228 # directories.
19229 hardcode_action_GCJ=unsupported
19230 fi
19231 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19232 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19233
19234 if test "$hardcode_action_GCJ" = relink; then
19235 # Fast installation is not supported
19236 enable_fast_install=no
19237 elif test "$shlibpath_overrides_runpath" = yes ||
19238 test "$enable_shared" = no; then
19239 # Fast installation is not necessary
19240 enable_fast_install=needless
19241 fi
19242
19243
19244 # The else clause should only fire when bootstrapping the
19245 # libtool distribution, otherwise you forgot to ship ltmain.sh
19246 # with your package, and you will get complaints that there are
19247 # no rules to generate ltmain.sh.
19248 if test -f "$ltmain"; then
19249 # See if we are running on zsh, and set the options which allow our commands through
19250 # without removal of \ escapes.
19251 if test -n "${ZSH_VERSION+set}" ; then
19252 setopt NO_GLOB_SUBST
19253 fi
19254 # Now quote all the things that may contain metacharacters while being
19255 # careful not to overquote the AC_SUBSTed values. We take copies of the
19256 # variables and quote the copies for generation of the libtool script.
19257 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19258 SED SHELL STRIP \
19259 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19260 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19261 deplibs_check_method reload_flag reload_cmds need_locks \
19262 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19263 lt_cv_sys_global_symbol_to_c_name_address \
19264 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19265 old_postinstall_cmds old_postuninstall_cmds \
19266 compiler_GCJ \
19267 CC_GCJ \
19268 LD_GCJ \
19269 lt_prog_compiler_wl_GCJ \
19270 lt_prog_compiler_pic_GCJ \
19271 lt_prog_compiler_static_GCJ \
19272 lt_prog_compiler_no_builtin_flag_GCJ \
19273 export_dynamic_flag_spec_GCJ \
19274 thread_safe_flag_spec_GCJ \
19275 whole_archive_flag_spec_GCJ \
19276 enable_shared_with_static_runtimes_GCJ \
19277 old_archive_cmds_GCJ \
19278 old_archive_from_new_cmds_GCJ \
19279 predep_objects_GCJ \
19280 postdep_objects_GCJ \
19281 predeps_GCJ \
19282 postdeps_GCJ \
19283 compiler_lib_search_path_GCJ \
19284 compiler_lib_search_dirs_GCJ \
19285 archive_cmds_GCJ \
19286 archive_expsym_cmds_GCJ \
19287 postinstall_cmds_GCJ \
19288 postuninstall_cmds_GCJ \
19289 old_archive_from_expsyms_cmds_GCJ \
19290 allow_undefined_flag_GCJ \
19291 no_undefined_flag_GCJ \
19292 export_symbols_cmds_GCJ \
19293 hardcode_libdir_flag_spec_GCJ \
19294 hardcode_libdir_flag_spec_ld_GCJ \
19295 hardcode_libdir_separator_GCJ \
19296 hardcode_automatic_GCJ \
19297 module_cmds_GCJ \
19298 module_expsym_cmds_GCJ \
19299 lt_cv_prog_compiler_c_o_GCJ \
19300 fix_srcfile_path_GCJ \
19301 exclude_expsyms_GCJ \
19302 include_expsyms_GCJ; do
19303
19304 case $var in
19305 old_archive_cmds_GCJ | \
19306 old_archive_from_new_cmds_GCJ | \
19307 archive_cmds_GCJ | \
19308 archive_expsym_cmds_GCJ | \
19309 module_cmds_GCJ | \
19310 module_expsym_cmds_GCJ | \
19311 old_archive_from_expsyms_cmds_GCJ | \
19312 export_symbols_cmds_GCJ | \
19313 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19314 postinstall_cmds | postuninstall_cmds | \
19315 old_postinstall_cmds | old_postuninstall_cmds | \
19316 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19317 # Double-quote double-evaled strings.
19318 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19319 ;;
19320 *)
19321 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19322 ;;
19323 esac
19324 done
19325
19326 case $lt_echo in
19327 *'\$0 --fallback-echo"')
19328 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19329 ;;
19330 esac
19331
19332 cfgfile="$ofile"
19333
19334 cat <<__EOF__ >> "$cfgfile"
19335 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19336
19337 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19338
19339 # Shell to use when invoking shell scripts.
19340 SHELL=$lt_SHELL
19341
19342 # Whether or not to build shared libraries.
19343 build_libtool_libs=$enable_shared
19344
19345 # Whether or not to build static libraries.
19346 build_old_libs=$enable_static
19347
19348 # Whether or not to add -lc for building shared libraries.
19349 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19350
19351 # Whether or not to disallow shared libs when runtime libs are static
19352 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19353
19354 # Whether or not to optimize for fast installation.
19355 fast_install=$enable_fast_install
19356
19357 # The host system.
19358 host_alias=$host_alias
19359 host=$host
19360 host_os=$host_os
19361
19362 # The build system.
19363 build_alias=$build_alias
19364 build=$build
19365 build_os=$build_os
19366
19367 # An echo program that does not interpret backslashes.
19368 echo=$lt_echo
19369
19370 # The archiver.
19371 AR=$lt_AR
19372 AR_FLAGS=$lt_AR_FLAGS
19373
19374 # A C compiler.
19375 LTCC=$lt_LTCC
19376
19377 # LTCC compiler flags.
19378 LTCFLAGS=$lt_LTCFLAGS
19379
19380 # A language-specific compiler.
19381 CC=$lt_compiler_GCJ
19382
19383 # Is the compiler the GNU C compiler?
19384 with_gcc=$GCC_GCJ
19385
19386 # An ERE matcher.
19387 EGREP=$lt_EGREP
19388
19389 # The linker used to build libraries.
19390 LD=$lt_LD_GCJ
19391
19392 # Whether we need hard or soft links.
19393 LN_S=$lt_LN_S
19394
19395 # A BSD-compatible nm program.
19396 NM=$lt_NM
19397
19398 # A symbol stripping program
19399 STRIP=$lt_STRIP
19400
19401 # Used to examine libraries when file_magic_cmd begins "file"
19402 MAGIC_CMD=$MAGIC_CMD
19403
19404 # Used on cygwin: DLL creation program.
19405 DLLTOOL="$DLLTOOL"
19406
19407 # Used on cygwin: object dumper.
19408 OBJDUMP="$OBJDUMP"
19409
19410 # Used on cygwin: assembler.
19411 AS="$AS"
19412
19413 # The name of the directory that contains temporary libtool files.
19414 objdir=$objdir
19415
19416 # How to create reloadable object files.
19417 reload_flag=$lt_reload_flag
19418 reload_cmds=$lt_reload_cmds
19419
19420 # How to pass a linker flag through the compiler.
19421 wl=$lt_lt_prog_compiler_wl_GCJ
19422
19423 # Object file suffix (normally "o").
19424 objext="$ac_objext"
19425
19426 # Old archive suffix (normally "a").
19427 libext="$libext"
19428
19429 # Shared library suffix (normally ".so").
19430 shrext_cmds='$shrext_cmds'
19431
19432 # Executable file suffix (normally "").
19433 exeext="$exeext"
19434
19435 # Additional compiler flags for building library objects.
19436 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19437 pic_mode=$pic_mode
19438
19439 # What is the maximum length of a command?
19440 max_cmd_len=$lt_cv_sys_max_cmd_len
19441
19442 # Does compiler simultaneously support -c and -o options?
19443 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19444
19445 # Must we lock files when doing compilation?
19446 need_locks=$lt_need_locks
19447
19448 # Do we need the lib prefix for modules?
19449 need_lib_prefix=$need_lib_prefix
19450
19451 # Do we need a version for libraries?
19452 need_version=$need_version
19453
19454 # Whether dlopen is supported.
19455 dlopen_support=$enable_dlopen
19456
19457 # Whether dlopen of programs is supported.
19458 dlopen_self=$enable_dlopen_self
19459
19460 # Whether dlopen of statically linked programs is supported.
19461 dlopen_self_static=$enable_dlopen_self_static
19462
19463 # Compiler flag to prevent dynamic linking.
19464 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19465
19466 # Compiler flag to turn off builtin functions.
19467 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19468
19469 # Compiler flag to allow reflexive dlopens.
19470 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19471
19472 # Compiler flag to generate shared objects directly from archives.
19473 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19474
19475 # Compiler flag to generate thread-safe objects.
19476 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19477
19478 # Library versioning type.
19479 version_type=$version_type
19480
19481 # Format of library name prefix.
19482 libname_spec=$lt_libname_spec
19483
19484 # List of archive names. First name is the real one, the rest are links.
19485 # The last name is the one that the linker finds with -lNAME.
19486 library_names_spec=$lt_library_names_spec
19487
19488 # The coded name of the library, if different from the real name.
19489 soname_spec=$lt_soname_spec
19490
19491 # Commands used to build and install an old-style archive.
19492 RANLIB=$lt_RANLIB
19493 old_archive_cmds=$lt_old_archive_cmds_GCJ
19494 old_postinstall_cmds=$lt_old_postinstall_cmds
19495 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19496
19497 # Create an old-style archive from a shared archive.
19498 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19499
19500 # Create a temporary old-style archive to link instead of a shared archive.
19501 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19502
19503 # Commands used to build and install a shared archive.
19504 archive_cmds=$lt_archive_cmds_GCJ
19505 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19506 postinstall_cmds=$lt_postinstall_cmds
19507 postuninstall_cmds=$lt_postuninstall_cmds
19508
19509 # Commands used to build a loadable module (assumed same as above if empty)
19510 module_cmds=$lt_module_cmds_GCJ
19511 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19512
19513 # Commands to strip libraries.
19514 old_striplib=$lt_old_striplib
19515 striplib=$lt_striplib
19516
19517 # Dependencies to place before the objects being linked to create a
19518 # shared library.
19519 predep_objects=$lt_predep_objects_GCJ
19520
19521 # Dependencies to place after the objects being linked to create a
19522 # shared library.
19523 postdep_objects=$lt_postdep_objects_GCJ
19524
19525 # Dependencies to place before the objects being linked to create a
19526 # shared library.
19527 predeps=$lt_predeps_GCJ
19528
19529 # Dependencies to place after the objects being linked to create a
19530 # shared library.
19531 postdeps=$lt_postdeps_GCJ
19532
19533 # The directories searched by this compiler when creating a shared
19534 # library
19535 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19536
19537 # The library search path used internally by the compiler when linking
19538 # a shared library.
19539 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19540
19541 # Method to check whether dependent libraries are shared objects.
19542 deplibs_check_method=$lt_deplibs_check_method
19543
19544 # Command to use when deplibs_check_method == file_magic.
19545 file_magic_cmd=$lt_file_magic_cmd
19546
19547 # Flag that allows shared libraries with undefined symbols to be built.
19548 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19549
19550 # Flag that forces no undefined symbols.
19551 no_undefined_flag=$lt_no_undefined_flag_GCJ
19552
19553 # Commands used to finish a libtool library installation in a directory.
19554 finish_cmds=$lt_finish_cmds
19555
19556 # Same as above, but a single script fragment to be evaled but not shown.
19557 finish_eval=$lt_finish_eval
19558
19559 # Take the output of nm and produce a listing of raw symbols and C names.
19560 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19561
19562 # Transform the output of nm in a proper C declaration
19563 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19564
19565 # Transform the output of nm in a C name address pair
19566 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19567
19568 # This is the shared library runtime path variable.
19569 runpath_var=$runpath_var
19570
19571 # This is the shared library path variable.
19572 shlibpath_var=$shlibpath_var
19573
19574 # Is shlibpath searched before the hard-coded library search path?
19575 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19576
19577 # How to hardcode a shared library path into an executable.
19578 hardcode_action=$hardcode_action_GCJ
19579
19580 # Whether we should hardcode library paths into libraries.
19581 hardcode_into_libs=$hardcode_into_libs
19582
19583 # Flag to hardcode \$libdir into a binary during linking.
19584 # This must work even if \$libdir does not exist.
19585 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19586
19587 # If ld is used when linking, flag to hardcode \$libdir into
19588 # a binary during linking. This must work even if \$libdir does
19589 # not exist.
19590 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19591
19592 # Whether we need a single -rpath flag with a separated argument.
19593 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19594
19595 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19596 # resulting binary.
19597 hardcode_direct=$hardcode_direct_GCJ
19598
19599 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19600 # resulting binary.
19601 hardcode_minus_L=$hardcode_minus_L_GCJ
19602
19603 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19604 # the resulting binary.
19605 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19606
19607 # Set to yes if building a shared library automatically hardcodes DIR into the library
19608 # and all subsequent libraries and executables linked against it.
19609 hardcode_automatic=$hardcode_automatic_GCJ
19610
19611 # Variables whose values should be saved in libtool wrapper scripts and
19612 # restored at relink time.
19613 variables_saved_for_relink="$variables_saved_for_relink"
19614
19615 # Whether libtool must link a program against all its dependency libraries.
19616 link_all_deplibs=$link_all_deplibs_GCJ
19617
19618 # Compile-time system search path for libraries
19619 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19620
19621 # Run-time system search path for libraries
19622 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19623
19624 # Fix the shell variable \$srcfile for the compiler.
19625 fix_srcfile_path=$lt_fix_srcfile_path
19626
19627 # Set to yes if exported symbols are required.
19628 always_export_symbols=$always_export_symbols_GCJ
19629
19630 # The commands to list exported symbols.
19631 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19632
19633 # The commands to extract the exported symbol list from a shared archive.
19634 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19635
19636 # Symbols that should not be listed in the preloaded symbols.
19637 exclude_expsyms=$lt_exclude_expsyms_GCJ
19638
19639 # Symbols that must always be exported.
19640 include_expsyms=$lt_include_expsyms_GCJ
19641
19642 # ### END LIBTOOL TAG CONFIG: $tagname
19643
19644 __EOF__
19645
19646
19647 else
19648 # If there is no Makefile yet, we rely on a make rule to execute
19649 # `config.status --recheck' to rerun these tests and create the
19650 # libtool script then.
19651 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19652 if test -f "$ltmain_in"; then
19653 test -f Makefile && make "$ltmain"
19654 fi
19655 fi
19656
19657
19658 ac_ext=c
19659 ac_cpp='$CPP $CPPFLAGS'
19660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19663
19664 CC="$lt_save_CC"
19665
19666 else
19667 tagname=""
19668 fi
19669 ;;
19670
19671 RC)
19672
19673
19674 # Source file extension for RC test sources.
19675 ac_ext=rc
19676
19677 # Object file extension for compiled RC test sources.
19678 objext=o
19679 objext_RC=$objext
19680
19681 # Code to be used in simple compile tests
19682 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19683
19684 # Code to be used in simple link tests
19685 lt_simple_link_test_code="$lt_simple_compile_test_code"
19686
19687 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19688
19689 # If no C compiler was specified, use CC.
19690 LTCC=${LTCC-"$CC"}
19691
19692 # If no C compiler flags were specified, use CFLAGS.
19693 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19694
19695 # Allow CC to be a program name with arguments.
19696 compiler=$CC
19697
19698
19699 # save warnings/boilerplate of simple test code
19700 ac_outfile=conftest.$ac_objext
19701 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19702 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19703 _lt_compiler_boilerplate=`cat conftest.err`
19704 $rm conftest*
19705
19706 ac_outfile=conftest.$ac_objext
19707 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19708 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19709 _lt_linker_boilerplate=`cat conftest.err`
19710 $rm -r conftest*
19711
19712
19713 # Allow CC to be a program name with arguments.
19714 lt_save_CC="$CC"
19715 CC=${RC-"windres"}
19716 compiler=$CC
19717 compiler_RC=$CC
19718 for cc_temp in $compiler""; do
19719 case $cc_temp in
19720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19722 \-*) ;;
19723 *) break;;
19724 esac
19725 done
19726 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19727
19728 lt_cv_prog_compiler_c_o_RC=yes
19729
19730 # The else clause should only fire when bootstrapping the
19731 # libtool distribution, otherwise you forgot to ship ltmain.sh
19732 # with your package, and you will get complaints that there are
19733 # no rules to generate ltmain.sh.
19734 if test -f "$ltmain"; then
19735 # See if we are running on zsh, and set the options which allow our commands through
19736 # without removal of \ escapes.
19737 if test -n "${ZSH_VERSION+set}" ; then
19738 setopt NO_GLOB_SUBST
19739 fi
19740 # Now quote all the things that may contain metacharacters while being
19741 # careful not to overquote the AC_SUBSTed values. We take copies of the
19742 # variables and quote the copies for generation of the libtool script.
19743 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19744 SED SHELL STRIP \
19745 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19746 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19747 deplibs_check_method reload_flag reload_cmds need_locks \
19748 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19749 lt_cv_sys_global_symbol_to_c_name_address \
19750 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19751 old_postinstall_cmds old_postuninstall_cmds \
19752 compiler_RC \
19753 CC_RC \
19754 LD_RC \
19755 lt_prog_compiler_wl_RC \
19756 lt_prog_compiler_pic_RC \
19757 lt_prog_compiler_static_RC \
19758 lt_prog_compiler_no_builtin_flag_RC \
19759 export_dynamic_flag_spec_RC \
19760 thread_safe_flag_spec_RC \
19761 whole_archive_flag_spec_RC \
19762 enable_shared_with_static_runtimes_RC \
19763 old_archive_cmds_RC \
19764 old_archive_from_new_cmds_RC \
19765 predep_objects_RC \
19766 postdep_objects_RC \
19767 predeps_RC \
19768 postdeps_RC \
19769 compiler_lib_search_path_RC \
19770 compiler_lib_search_dirs_RC \
19771 archive_cmds_RC \
19772 archive_expsym_cmds_RC \
19773 postinstall_cmds_RC \
19774 postuninstall_cmds_RC \
19775 old_archive_from_expsyms_cmds_RC \
19776 allow_undefined_flag_RC \
19777 no_undefined_flag_RC \
19778 export_symbols_cmds_RC \
19779 hardcode_libdir_flag_spec_RC \
19780 hardcode_libdir_flag_spec_ld_RC \
19781 hardcode_libdir_separator_RC \
19782 hardcode_automatic_RC \
19783 module_cmds_RC \
19784 module_expsym_cmds_RC \
19785 lt_cv_prog_compiler_c_o_RC \
19786 fix_srcfile_path_RC \
19787 exclude_expsyms_RC \
19788 include_expsyms_RC; do
19789
19790 case $var in
19791 old_archive_cmds_RC | \
19792 old_archive_from_new_cmds_RC | \
19793 archive_cmds_RC | \
19794 archive_expsym_cmds_RC | \
19795 module_cmds_RC | \
19796 module_expsym_cmds_RC | \
19797 old_archive_from_expsyms_cmds_RC | \
19798 export_symbols_cmds_RC | \
19799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19800 postinstall_cmds | postuninstall_cmds | \
19801 old_postinstall_cmds | old_postuninstall_cmds | \
19802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19803 # Double-quote double-evaled strings.
19804 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19805 ;;
19806 *)
19807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19808 ;;
19809 esac
19810 done
19811
19812 case $lt_echo in
19813 *'\$0 --fallback-echo"')
19814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19815 ;;
19816 esac
19817
19818 cfgfile="$ofile"
19819
19820 cat <<__EOF__ >> "$cfgfile"
19821 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19822
19823 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19824
19825 # Shell to use when invoking shell scripts.
19826 SHELL=$lt_SHELL
19827
19828 # Whether or not to build shared libraries.
19829 build_libtool_libs=$enable_shared
19830
19831 # Whether or not to build static libraries.
19832 build_old_libs=$enable_static
19833
19834 # Whether or not to add -lc for building shared libraries.
19835 build_libtool_need_lc=$archive_cmds_need_lc_RC
19836
19837 # Whether or not to disallow shared libs when runtime libs are static
19838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19839
19840 # Whether or not to optimize for fast installation.
19841 fast_install=$enable_fast_install
19842
19843 # The host system.
19844 host_alias=$host_alias
19845 host=$host
19846 host_os=$host_os
19847
19848 # The build system.
19849 build_alias=$build_alias
19850 build=$build
19851 build_os=$build_os
19852
19853 # An echo program that does not interpret backslashes.
19854 echo=$lt_echo
19855
19856 # The archiver.
19857 AR=$lt_AR
19858 AR_FLAGS=$lt_AR_FLAGS
19859
19860 # A C compiler.
19861 LTCC=$lt_LTCC
19862
19863 # LTCC compiler flags.
19864 LTCFLAGS=$lt_LTCFLAGS
19865
19866 # A language-specific compiler.
19867 CC=$lt_compiler_RC
19868
19869 # Is the compiler the GNU C compiler?
19870 with_gcc=$GCC_RC
19871
19872 # An ERE matcher.
19873 EGREP=$lt_EGREP
19874
19875 # The linker used to build libraries.
19876 LD=$lt_LD_RC
19877
19878 # Whether we need hard or soft links.
19879 LN_S=$lt_LN_S
19880
19881 # A BSD-compatible nm program.
19882 NM=$lt_NM
19883
19884 # A symbol stripping program
19885 STRIP=$lt_STRIP
19886
19887 # Used to examine libraries when file_magic_cmd begins "file"
19888 MAGIC_CMD=$MAGIC_CMD
19889
19890 # Used on cygwin: DLL creation program.
19891 DLLTOOL="$DLLTOOL"
19892
19893 # Used on cygwin: object dumper.
19894 OBJDUMP="$OBJDUMP"
19895
19896 # Used on cygwin: assembler.
19897 AS="$AS"
19898
19899 # The name of the directory that contains temporary libtool files.
19900 objdir=$objdir
19901
19902 # How to create reloadable object files.
19903 reload_flag=$lt_reload_flag
19904 reload_cmds=$lt_reload_cmds
19905
19906 # How to pass a linker flag through the compiler.
19907 wl=$lt_lt_prog_compiler_wl_RC
19908
19909 # Object file suffix (normally "o").
19910 objext="$ac_objext"
19911
19912 # Old archive suffix (normally "a").
19913 libext="$libext"
19914
19915 # Shared library suffix (normally ".so").
19916 shrext_cmds='$shrext_cmds'
19917
19918 # Executable file suffix (normally "").
19919 exeext="$exeext"
19920
19921 # Additional compiler flags for building library objects.
19922 pic_flag=$lt_lt_prog_compiler_pic_RC
19923 pic_mode=$pic_mode
19924
19925 # What is the maximum length of a command?
19926 max_cmd_len=$lt_cv_sys_max_cmd_len
19927
19928 # Does compiler simultaneously support -c and -o options?
19929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19930
19931 # Must we lock files when doing compilation?
19932 need_locks=$lt_need_locks
19933
19934 # Do we need the lib prefix for modules?
19935 need_lib_prefix=$need_lib_prefix
19936
19937 # Do we need a version for libraries?
19938 need_version=$need_version
19939
19940 # Whether dlopen is supported.
19941 dlopen_support=$enable_dlopen
19942
19943 # Whether dlopen of programs is supported.
19944 dlopen_self=$enable_dlopen_self
19945
19946 # Whether dlopen of statically linked programs is supported.
19947 dlopen_self_static=$enable_dlopen_self_static
19948
19949 # Compiler flag to prevent dynamic linking.
19950 link_static_flag=$lt_lt_prog_compiler_static_RC
19951
19952 # Compiler flag to turn off builtin functions.
19953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19954
19955 # Compiler flag to allow reflexive dlopens.
19956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19957
19958 # Compiler flag to generate shared objects directly from archives.
19959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19960
19961 # Compiler flag to generate thread-safe objects.
19962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19963
19964 # Library versioning type.
19965 version_type=$version_type
19966
19967 # Format of library name prefix.
19968 libname_spec=$lt_libname_spec
19969
19970 # List of archive names. First name is the real one, the rest are links.
19971 # The last name is the one that the linker finds with -lNAME.
19972 library_names_spec=$lt_library_names_spec
19973
19974 # The coded name of the library, if different from the real name.
19975 soname_spec=$lt_soname_spec
19976
19977 # Commands used to build and install an old-style archive.
19978 RANLIB=$lt_RANLIB
19979 old_archive_cmds=$lt_old_archive_cmds_RC
19980 old_postinstall_cmds=$lt_old_postinstall_cmds
19981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19982
19983 # Create an old-style archive from a shared archive.
19984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19985
19986 # Create a temporary old-style archive to link instead of a shared archive.
19987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19988
19989 # Commands used to build and install a shared archive.
19990 archive_cmds=$lt_archive_cmds_RC
19991 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19992 postinstall_cmds=$lt_postinstall_cmds
19993 postuninstall_cmds=$lt_postuninstall_cmds
19994
19995 # Commands used to build a loadable module (assumed same as above if empty)
19996 module_cmds=$lt_module_cmds_RC
19997 module_expsym_cmds=$lt_module_expsym_cmds_RC
19998
19999 # Commands to strip libraries.
20000 old_striplib=$lt_old_striplib
20001 striplib=$lt_striplib
20002
20003 # Dependencies to place before the objects being linked to create a
20004 # shared library.
20005 predep_objects=$lt_predep_objects_RC
20006
20007 # Dependencies to place after the objects being linked to create a
20008 # shared library.
20009 postdep_objects=$lt_postdep_objects_RC
20010
20011 # Dependencies to place before the objects being linked to create a
20012 # shared library.
20013 predeps=$lt_predeps_RC
20014
20015 # Dependencies to place after the objects being linked to create a
20016 # shared library.
20017 postdeps=$lt_postdeps_RC
20018
20019 # The directories searched by this compiler when creating a shared
20020 # library
20021 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
20022
20023 # The library search path used internally by the compiler when linking
20024 # a shared library.
20025 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20026
20027 # Method to check whether dependent libraries are shared objects.
20028 deplibs_check_method=$lt_deplibs_check_method
20029
20030 # Command to use when deplibs_check_method == file_magic.
20031 file_magic_cmd=$lt_file_magic_cmd
20032
20033 # Flag that allows shared libraries with undefined symbols to be built.
20034 allow_undefined_flag=$lt_allow_undefined_flag_RC
20035
20036 # Flag that forces no undefined symbols.
20037 no_undefined_flag=$lt_no_undefined_flag_RC
20038
20039 # Commands used to finish a libtool library installation in a directory.
20040 finish_cmds=$lt_finish_cmds
20041
20042 # Same as above, but a single script fragment to be evaled but not shown.
20043 finish_eval=$lt_finish_eval
20044
20045 # Take the output of nm and produce a listing of raw symbols and C names.
20046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20047
20048 # Transform the output of nm in a proper C declaration
20049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20050
20051 # Transform the output of nm in a C name address pair
20052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20053
20054 # This is the shared library runtime path variable.
20055 runpath_var=$runpath_var
20056
20057 # This is the shared library path variable.
20058 shlibpath_var=$shlibpath_var
20059
20060 # Is shlibpath searched before the hard-coded library search path?
20061 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20062
20063 # How to hardcode a shared library path into an executable.
20064 hardcode_action=$hardcode_action_RC
20065
20066 # Whether we should hardcode library paths into libraries.
20067 hardcode_into_libs=$hardcode_into_libs
20068
20069 # Flag to hardcode \$libdir into a binary during linking.
20070 # This must work even if \$libdir does not exist.
20071 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20072
20073 # If ld is used when linking, flag to hardcode \$libdir into
20074 # a binary during linking. This must work even if \$libdir does
20075 # not exist.
20076 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20077
20078 # Whether we need a single -rpath flag with a separated argument.
20079 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20080
20081 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20082 # resulting binary.
20083 hardcode_direct=$hardcode_direct_RC
20084
20085 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20086 # resulting binary.
20087 hardcode_minus_L=$hardcode_minus_L_RC
20088
20089 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20090 # the resulting binary.
20091 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20092
20093 # Set to yes if building a shared library automatically hardcodes DIR into the library
20094 # and all subsequent libraries and executables linked against it.
20095 hardcode_automatic=$hardcode_automatic_RC
20096
20097 # Variables whose values should be saved in libtool wrapper scripts and
20098 # restored at relink time.
20099 variables_saved_for_relink="$variables_saved_for_relink"
20100
20101 # Whether libtool must link a program against all its dependency libraries.
20102 link_all_deplibs=$link_all_deplibs_RC
20103
20104 # Compile-time system search path for libraries
20105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20106
20107 # Run-time system search path for libraries
20108 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20109
20110 # Fix the shell variable \$srcfile for the compiler.
20111 fix_srcfile_path=$lt_fix_srcfile_path
20112
20113 # Set to yes if exported symbols are required.
20114 always_export_symbols=$always_export_symbols_RC
20115
20116 # The commands to list exported symbols.
20117 export_symbols_cmds=$lt_export_symbols_cmds_RC
20118
20119 # The commands to extract the exported symbol list from a shared archive.
20120 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20121
20122 # Symbols that should not be listed in the preloaded symbols.
20123 exclude_expsyms=$lt_exclude_expsyms_RC
20124
20125 # Symbols that must always be exported.
20126 include_expsyms=$lt_include_expsyms_RC
20127
20128 # ### END LIBTOOL TAG CONFIG: $tagname
20129
20130 __EOF__
20131
20132
20133 else
20134 # If there is no Makefile yet, we rely on a make rule to execute
20135 # `config.status --recheck' to rerun these tests and create the
20136 # libtool script then.
20137 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20138 if test -f "$ltmain_in"; then
20139 test -f Makefile && make "$ltmain"
20140 fi
20141 fi
20142
20143
20144 ac_ext=c
20145 ac_cpp='$CPP $CPPFLAGS'
20146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20149
20150 CC="$lt_save_CC"
20151
20152 ;;
20153
20154 *)
20155 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20156 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20157 { (exit 1); exit 1; }; }
20158 ;;
20159 esac
20160
20161 # Append the new tag name to the list of available tags.
20162 if test -n "$tagname" ; then
20163 available_tags="$available_tags $tagname"
20164 fi
20165 fi
20166 done
20167 IFS="$lt_save_ifs"
20168
20169 # Now substitute the updated list of available tags.
20170 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20171 mv "${ofile}T" "$ofile"
20172 chmod +x "$ofile"
20173 else
20174 rm -f "${ofile}T"
20175 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20176 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20177 { (exit 1); exit 1; }; }
20178 fi
20179 fi
20180
20181
20182
20183 # This can be used to rebuild libtool when needed
20184 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20185
20186 # Always use our own libtool.
20187 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20188
20189 # Prevent multiple expansion
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212 # dolt, a replacement for libtool
20213 # Josh Triplett <josh (at] freedesktop.org>
20214 # Extract the first word of "bash", so it can be a program name with args.
20215 set dummy bash; ac_word=$2
20216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20218 if test "${ac_cv_path_DOLT_BASH+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221 case $DOLT_BASH in
20222 [\\/]* | ?:[\\/]*)
20223 ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
20224 ;;
20225 *)
20226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20227 for as_dir in $PATH
20228 do
20229 IFS=$as_save_IFS
20230 test -z "$as_dir" && as_dir=.
20231 for ac_exec_ext in '' $ac_executable_extensions; do
20232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20233 ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
20234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20235 break 2
20236 fi
20237 done
20238 done
20239 IFS=$as_save_IFS
20240
20241 ;;
20242 esac
20243 fi
20244 DOLT_BASH=$ac_cv_path_DOLT_BASH
20245 if test -n "$DOLT_BASH"; then
20246 { echo "$as_me:$LINENO: result: $DOLT_BASH" >&5
20247 echo "${ECHO_T}$DOLT_BASH" >&6; }
20248 else
20249 { echo "$as_me:$LINENO: result: no" >&5
20250 echo "${ECHO_T}no" >&6; }
20251 fi
20252
20253
20254 { echo "$as_me:$LINENO: checking if dolt supports this host" >&5
20255 echo $ECHO_N "checking if dolt supports this host... $ECHO_C" >&6; }
20256 dolt_supported=yes
20257 if test x$DOLT_BASH = x; then
20258 dolt_supported=no
20259 fi
20260 if test x$GCC != xyes; then
20261 dolt_supported=no
20262 fi
20263 case $host in
20264 i?86-*-linux*|x86_64-*-linux*|powerpc-*-linux*) ;;
20265 amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*) ;;
20266 *) dolt_supported=no ;;
20267 esac
20268 if test x$dolt_supported = xno ; then
20269 { echo "$as_me:$LINENO: result: no, falling back to libtool" >&5
20270 echo "${ECHO_T}no, falling back to libtool" >&6; }
20271 LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
20272 LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
20273 else
20274 { echo "$as_me:$LINENO: result: yes, replacing libtool" >&5
20275 echo "${ECHO_T}yes, replacing libtool" >&6; }
20276
20277 cat <<__DOLTCOMPILE__EOF__ >doltcompile
20278 #!$DOLT_BASH
20279 __DOLTCOMPILE__EOF__
20280 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20281 args=("$@")
20282 for ((arg=0; arg<${#args[@]}; arg++)) ; do
20283 if test x"${args[$arg]}" = x-o ; then
20284 objarg=$((arg+1))
20285 break
20286 fi
20287 done
20288 if test x$objarg = x ; then
20289 echo 'Error: no -o on compiler command line' 1>&2
20290 exit 1
20291 fi
20292 lo="${args[$objarg]}"
20293 obj="${lo%.lo}"
20294 if test x"$lo" = x"$obj" ; then
20295 echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
20296 exit 1
20297 fi
20298 objbase="${obj##*/}"
20299 __DOLTCOMPILE__EOF__
20300
20301 if test x$enable_shared = xyes; then
20302 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20303 libobjdir="${obj%$objbase}.libs"
20304 if test ! -d "$libobjdir" ; then
20305 mkdir_out="$(mkdir "$libobjdir" 2>&1)"
20306 mkdir_ret=$?
20307 if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
20308 echo "$mkdir_out" 1>&2
20309 exit $mkdir_ret
20310 fi
20311 fi
20312 pic_object="$libobjdir/$objbase.o"
20313 args[$objarg]="$pic_object"
20314 "${args[@]}" -fPIC -DPIC || exit $?
20315 __DOLTCOMPILE__EOF__
20316 fi
20317
20318 if test x$enable_static = xyes; then
20319 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20320 non_pic_object="$obj.o"
20321 args[$objarg]="$non_pic_object"
20322 __DOLTCOMPILE__EOF__
20323 if test x$enable_shared = xyes; then
20324 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20325 "${args[@]}" >/dev/null 2>&1 || exit $?
20326 __DOLTCOMPILE__EOF__
20327 else
20328 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20329 "${args[@]}" || exit $?
20330 __DOLTCOMPILE__EOF__
20331 fi
20332 fi
20333
20334 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20335 {
20336 echo "# $lo - a libtool object file"
20337 echo "# Generated by doltcompile, not libtool"
20338 __DOLTCOMPILE__EOF__
20339
20340 if test x$enable_shared = xyes; then
20341 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20342 echo "pic_object='$pic_object'"
20343 __DOLTCOMPILE__EOF__
20344 else
20345 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20346 echo pic_object=none
20347 __DOLTCOMPILE__EOF__
20348 fi
20349
20350 if test x$enable_static = xyes; then
20351 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20352 echo "non_pic_object='$non_pic_object'"
20353 __DOLTCOMPILE__EOF__
20354 else
20355 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20356 echo non_pic_object=none
20357 __DOLTCOMPILE__EOF__
20358 fi
20359
20360 cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
20361 } > "$lo"
20362 __DOLTCOMPILE__EOF__
20363
20364 chmod +x doltcompile
20365 LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
20366 LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
20367 fi
20368
20369
20370 # end dolt
20371
20372 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20373 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20374 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20375 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378 cat >conftest.make <<\_ACEOF
20379 SHELL = /bin/sh
20380 all:
20381 @echo '@@@%%%=$(MAKE)=@@@%%%'
20382 _ACEOF
20383 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20384 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20385 *@@@%%%=?*=@@@%%%*)
20386 eval ac_cv_prog_make_${ac_make}_set=yes;;
20387 *)
20388 eval ac_cv_prog_make_${ac_make}_set=no;;
20389 esac
20390 rm -f conftest.make
20391 fi
20392 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20393 { echo "$as_me:$LINENO: result: yes" >&5
20394 echo "${ECHO_T}yes" >&6; }
20395 SET_MAKE=
20396 else
20397 { echo "$as_me:$LINENO: result: no" >&5
20398 echo "${ECHO_T}no" >&6; }
20399 SET_MAKE="MAKE=${MAKE-make}"
20400 fi
20401
20402
20403
20404 case "$host" in
20405 *-*-mingw*)
20406 os_win32=yes
20407 ;;
20408 *)
20409 os_win32=no
20410 esac
20411
20412
20413 if test "$os_win32" = "yes"; then
20414 OS_WIN32_TRUE=
20415 OS_WIN32_FALSE='#'
20416 else
20417 OS_WIN32_TRUE='#'
20418 OS_WIN32_FALSE=
20419 fi
20420
20421
20422 if test "$os_win32" = "yes"; then
20423 # Extract the first word of "lib.exe", so it can be a program name with args.
20424 set dummy lib.exe; ac_word=$2
20425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20427 if test "${ac_cv_prog_ms_librarian+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 else
20430 if test -n "$ms_librarian"; then
20431 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
20432 else
20433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20434 for as_dir in $PATH
20435 do
20436 IFS=$as_save_IFS
20437 test -z "$as_dir" && as_dir=.
20438 for ac_exec_ext in '' $ac_executable_extensions; do
20439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20440 ac_cv_prog_ms_librarian="yes"
20441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20442 break 2
20443 fi
20444 done
20445 done
20446 IFS=$as_save_IFS
20447
20448 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
20449 fi
20450 fi
20451 ms_librarian=$ac_cv_prog_ms_librarian
20452 if test -n "$ms_librarian"; then
20453 { echo "$as_me:$LINENO: result: $ms_librarian" >&5
20454 echo "${ECHO_T}$ms_librarian" >&6; }
20455 else
20456 { echo "$as_me:$LINENO: result: no" >&5
20457 echo "${ECHO_T}no" >&6; }
20458 fi
20459
20460
20461 fi
20462
20463
20464 if test x$ms_librarian = xyes; then
20465 MS_LIB_AVAILABLE_TRUE=
20466 MS_LIB_AVAILABLE_FALSE='#'
20467 else
20468 MS_LIB_AVAILABLE_TRUE='#'
20469 MS_LIB_AVAILABLE_FALSE=
20470 fi
20471
20472
20473 WARN_CFLAGS=""
20474 if test "x$GCC" = "xyes"; then
20475 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
20476 -Wmissing-prototypes -Wmissing-declarations \
20477 -Wnested-externs -fno-strict-aliasing"
20478
20479 cat >>confdefs.h <<_ACEOF
20480 #define HAVE_WARNING_CPP_DIRECTIVE 1
20481 _ACEOF
20482
20483 fi
20484
20485
20486
20487
20488
20489
20490 if test $cross_compiling = yes; then
20491 CROSS_COMPILING_TRUE=
20492 CROSS_COMPILING_FALSE='#'
20493 else
20494 CROSS_COMPILING_TRUE='#'
20495 CROSS_COMPILING_FALSE=
20496 fi
20497
20498
20499
20500 # Setup for compiling build tools (fc-glyphname, etc)
20501 { echo "$as_me:$LINENO: checking for a C compiler for build tools" >&5
20502 echo $ECHO_N "checking for a C compiler for build tools... $ECHO_C" >&6; }
20503 if test $cross_compiling = yes; then
20504 for ac_prog in gcc cc
20505 do
20506 # Extract the first word of "$ac_prog", so it can be a program name with args.
20507 set dummy $ac_prog; ac_word=$2
20508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20510 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513 if test -n "$CC_FOR_BUILD"; then
20514 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
20515 else
20516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20517 for as_dir in $PATH
20518 do
20519 IFS=$as_save_IFS
20520 test -z "$as_dir" && as_dir=.
20521 for ac_exec_ext in '' $ac_executable_extensions; do
20522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20523 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
20524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20525 break 2
20526 fi
20527 done
20528 done
20529 IFS=$as_save_IFS
20530
20531 fi
20532 fi
20533 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
20534 if test -n "$CC_FOR_BUILD"; then
20535 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20536 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
20537 else
20538 { echo "$as_me:$LINENO: result: no" >&5
20539 echo "${ECHO_T}no" >&6; }
20540 fi
20541
20542
20543 test -n "$CC_FOR_BUILD" && break
20544 done
20545
20546 else
20547 CC_FOR_BUILD=$CC
20548 fi
20549 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
20550 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
20551
20552
20553 { echo "$as_me:$LINENO: checking for suffix of executable build tools" >&5
20554 echo $ECHO_N "checking for suffix of executable build tools... $ECHO_C" >&6; }
20555 if test $cross_compiling = yes; then
20556 cat >conftest.c <<\_______EOF
20557 int
20558 main ()
20559 {
20560 exit (0);
20561 }
20562 _______EOF
20563 for i in .exe ""; do
20564 compile="$CC_FOR_BUILD conftest.c -o conftest$i"
20565 if { (eval echo "$as_me:$LINENO: \"$compile\"") >&5
20566 (eval $compile) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; then
20570 if (./conftest) 2>&5; then
20571 EXEEXT_FOR_BUILD=$i
20572 break
20573 fi
20574 fi
20575 done
20576 rm -f conftest*
20577 if test "${EXEEXT_FOR_BUILD+set}" != set; then
20578 { { echo "$as_me:$LINENO: error: Cannot determine suffix of executable build tools" >&5
20579 echo "$as_me: error: Cannot determine suffix of executable build tools" >&2;}
20580 { (exit 1); exit 1; }; }
20581 fi
20582 else
20583 EXEEXT_FOR_BUILD=$EXEEXT
20584 fi
20585 { echo "$as_me:$LINENO: result: $EXEEXT_FOR_BUILD" >&5
20586 echo "${ECHO_T}$EXEEXT_FOR_BUILD" >&6; }
20587
20588
20589
20590
20591 # Check whether --with-arch was given.
20592 if test "${with_arch+set}" = set; then
20593 withval=$with_arch; arch="$withval"
20594 else
20595 arch=auto
20596 fi
20597
20598
20599 if test $cross_compiling = yes; then
20600 case "$arch" in
20601 auto)
20602 { { echo "$as_me:$LINENO: error: Cannot autodetect architecture in cross compile environment
20603 Use --with-arch=ARCH to specify architecture" >&5
20604 echo "$as_me: error: Cannot autodetect architecture in cross compile environment
20605 Use --with-arch=ARCH to specify architecture" >&2;}
20606 { (exit 1); exit 1; }; }
20607 ;;
20608 esac
20609 fi
20610
20611 ARCHITECTURE=$arch
20612
20613
20614
20615 # Checks for header files.
20616
20617
20618
20619
20620
20621 ac_header_dirent=no
20622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20623 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20624 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20625 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <sys/types.h>
20636 #include <$ac_hdr>
20637
20638 int
20639 main ()
20640 {
20641 if ((DIR *) 0)
20642 return 0;
20643 ;
20644 return 0;
20645 }
20646 _ACEOF
20647 rm -f conftest.$ac_objext
20648 if { (ac_try="$ac_compile"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_compile") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest.$ac_objext; then
20664 eval "$as_ac_Header=yes"
20665 else
20666 echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669 eval "$as_ac_Header=no"
20670 fi
20671
20672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20673 fi
20674 ac_res=`eval echo '${'$as_ac_Header'}'`
20675 { echo "$as_me:$LINENO: result: $ac_res" >&5
20676 echo "${ECHO_T}$ac_res" >&6; }
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20680 _ACEOF
20681
20682 ac_header_dirent=$ac_hdr; break
20683 fi
20684
20685 done
20686 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20687 if test $ac_header_dirent = dirent.h; then
20688 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20689 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20690 if test "${ac_cv_search_opendir+set}" = set; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20692 else
20693 ac_func_search_save_LIBS=$LIBS
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700
20701 /* Override any GCC internal prototype to avoid an error.
20702 Use char because int might match the return type of a GCC
20703 builtin and then its argument prototype would still apply. */
20704 #ifdef __cplusplus
20705 extern "C"
20706 #endif
20707 char opendir ();
20708 int
20709 main ()
20710 {
20711 return opendir ();
20712 ;
20713 return 0;
20714 }
20715 _ACEOF
20716 for ac_lib in '' dir; do
20717 if test -z "$ac_lib"; then
20718 ac_res="none required"
20719 else
20720 ac_res=-l$ac_lib
20721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20722 fi
20723 rm -f conftest.$ac_objext conftest$ac_exeext
20724 if { (ac_try="$ac_link"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_link") 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest$ac_exeext &&
20740 $as_test_x conftest$ac_exeext; then
20741 ac_cv_search_opendir=$ac_res
20742 else
20743 echo "$as_me: failed program was:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20745
20746
20747 fi
20748
20749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20750 conftest$ac_exeext
20751 if test "${ac_cv_search_opendir+set}" = set; then
20752 break
20753 fi
20754 done
20755 if test "${ac_cv_search_opendir+set}" = set; then
20756 :
20757 else
20758 ac_cv_search_opendir=no
20759 fi
20760 rm conftest.$ac_ext
20761 LIBS=$ac_func_search_save_LIBS
20762 fi
20763 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20764 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20765 ac_res=$ac_cv_search_opendir
20766 if test "$ac_res" != no; then
20767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20768
20769 fi
20770
20771 else
20772 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20773 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20774 if test "${ac_cv_search_opendir+set}" = set; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777 ac_func_search_save_LIBS=$LIBS
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784
20785 /* Override any GCC internal prototype to avoid an error.
20786 Use char because int might match the return type of a GCC
20787 builtin and then its argument prototype would still apply. */
20788 #ifdef __cplusplus
20789 extern "C"
20790 #endif
20791 char opendir ();
20792 int
20793 main ()
20794 {
20795 return opendir ();
20796 ;
20797 return 0;
20798 }
20799 _ACEOF
20800 for ac_lib in '' x; do
20801 if test -z "$ac_lib"; then
20802 ac_res="none required"
20803 else
20804 ac_res=-l$ac_lib
20805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20806 fi
20807 rm -f conftest.$ac_objext conftest$ac_exeext
20808 if { (ac_try="$ac_link"
20809 case "(($ac_try" in
20810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811 *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814 (eval "$ac_link") 2>conftest.er1
20815 ac_status=$?
20816 grep -v '^ *+' conftest.er1 >conftest.err
20817 rm -f conftest.er1
20818 cat conftest.err >&5
20819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); } && {
20821 test -z "$ac_c_werror_flag" ||
20822 test ! -s conftest.err
20823 } && test -s conftest$ac_exeext &&
20824 $as_test_x conftest$ac_exeext; then
20825 ac_cv_search_opendir=$ac_res
20826 else
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20834 conftest$ac_exeext
20835 if test "${ac_cv_search_opendir+set}" = set; then
20836 break
20837 fi
20838 done
20839 if test "${ac_cv_search_opendir+set}" = set; then
20840 :
20841 else
20842 ac_cv_search_opendir=no
20843 fi
20844 rm conftest.$ac_ext
20845 LIBS=$ac_func_search_save_LIBS
20846 fi
20847 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20848 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20849 ac_res=$ac_cv_search_opendir
20850 if test "$ac_res" != no; then
20851 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20852
20853 fi
20854
20855 fi
20856
20857 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20858 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20859 if test "${ac_cv_header_stdc+set}" = set; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <stdlib.h>
20869 #include <stdarg.h>
20870 #include <string.h>
20871 #include <float.h>
20872
20873 int
20874 main ()
20875 {
20876
20877 ;
20878 return 0;
20879 }
20880 _ACEOF
20881 rm -f conftest.$ac_objext
20882 if { (ac_try="$ac_compile"
20883 case "(($ac_try" in
20884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20885 *) ac_try_echo=$ac_try;;
20886 esac
20887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20888 (eval "$ac_compile") 2>conftest.er1
20889 ac_status=$?
20890 grep -v '^ *+' conftest.er1 >conftest.err
20891 rm -f conftest.er1
20892 cat conftest.err >&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); } && {
20895 test -z "$ac_c_werror_flag" ||
20896 test ! -s conftest.err
20897 } && test -s conftest.$ac_objext; then
20898 ac_cv_header_stdc=yes
20899 else
20900 echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903 ac_cv_header_stdc=no
20904 fi
20905
20906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20907
20908 if test $ac_cv_header_stdc = yes; then
20909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20910 cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h. */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h. */
20916 #include <string.h>
20917
20918 _ACEOF
20919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20920 $EGREP "memchr" >/dev/null 2>&1; then
20921 :
20922 else
20923 ac_cv_header_stdc=no
20924 fi
20925 rm -f conftest*
20926
20927 fi
20928
20929 if test $ac_cv_header_stdc = yes; then
20930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h. */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h. */
20937 #include <stdlib.h>
20938
20939 _ACEOF
20940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20941 $EGREP "free" >/dev/null 2>&1; then
20942 :
20943 else
20944 ac_cv_header_stdc=no
20945 fi
20946 rm -f conftest*
20947
20948 fi
20949
20950 if test $ac_cv_header_stdc = yes; then
20951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20952 if test "$cross_compiling" = yes; then
20953 :
20954 else
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h. */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h. */
20961 #include <ctype.h>
20962 #include <stdlib.h>
20963 #if ((' ' & 0x0FF) == 0x020)
20964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20966 #else
20967 # define ISLOWER(c) \
20968 (('a' <= (c) && (c) <= 'i') \
20969 || ('j' <= (c) && (c) <= 'r') \
20970 || ('s' <= (c) && (c) <= 'z'))
20971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20972 #endif
20973
20974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20975 int
20976 main ()
20977 {
20978 int i;
20979 for (i = 0; i < 256; i++)
20980 if (XOR (islower (i), ISLOWER (i))
20981 || toupper (i) != TOUPPER (i))
20982 return 2;
20983 return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000 esac
21001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 :
21007 else
21008 echo "$as_me: program exited with status $ac_status" >&5
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012 ( exit $ac_status )
21013 ac_cv_header_stdc=no
21014 fi
21015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21016 fi
21017
21018
21019 fi
21020 fi
21021 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21022 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21023 if test $ac_cv_header_stdc = yes; then
21024
21025 cat >>confdefs.h <<\_ACEOF
21026 #define STDC_HEADERS 1
21027 _ACEOF
21028
21029 fi
21030
21031
21032
21033
21034
21035 for ac_header in fcntl.h stdlib.h string.h unistd.h
21036 do
21037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 fi
21044 ac_res=`eval echo '${'$as_ac_Header'}'`
21045 { echo "$as_me:$LINENO: result: $ac_res" >&5
21046 echo "${ECHO_T}$ac_res" >&6; }
21047 else
21048 # Is the header compilable?
21049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21051 cat >conftest.$ac_ext <<_ACEOF
21052 /* confdefs.h. */
21053 _ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21057 $ac_includes_default
21058 #include <$ac_header>
21059 _ACEOF
21060 rm -f conftest.$ac_objext
21061 if { (ac_try="$ac_compile"
21062 case "(($ac_try" in
21063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064 *) ac_try_echo=$ac_try;;
21065 esac
21066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067 (eval "$ac_compile") 2>conftest.er1
21068 ac_status=$?
21069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } && {
21074 test -z "$ac_c_werror_flag" ||
21075 test ! -s conftest.err
21076 } && test -s conftest.$ac_objext; then
21077 ac_header_compiler=yes
21078 else
21079 echo "$as_me: failed program was:" >&5
21080 sed 's/^/| /' conftest.$ac_ext >&5
21081
21082 ac_header_compiler=no
21083 fi
21084
21085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21087 echo "${ECHO_T}$ac_header_compiler" >&6; }
21088
21089 # Is the header present?
21090 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h. */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h. */
21098 #include <$ac_header>
21099 _ACEOF
21100 if { (ac_try="$ac_cpp conftest.$ac_ext"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21107 ac_status=$?
21108 grep -v '^ *+' conftest.er1 >conftest.err
21109 rm -f conftest.er1
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); } >/dev/null && {
21113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 }; then
21116 ac_header_preproc=yes
21117 else
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121 ac_header_preproc=no
21122 fi
21123
21124 rm -f conftest.err conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126 echo "${ECHO_T}$ac_header_preproc" >&6; }
21127
21128 # So? What about this header?
21129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21130 yes:no: )
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21132 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21134 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21135 ac_header_preproc=yes
21136 ;;
21137 no:yes:* )
21138 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21143 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21145 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21147 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21149 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21150
21151 ;;
21152 esac
21153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158 eval "$as_ac_Header=\$ac_header_preproc"
21159 fi
21160 ac_res=`eval echo '${'$as_ac_Header'}'`
21161 { echo "$as_me:$LINENO: result: $ac_res" >&5
21162 echo "${ECHO_T}$ac_res" >&6; }
21163
21164 fi
21165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21166 cat >>confdefs.h <<_ACEOF
21167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21168 _ACEOF
21169
21170 fi
21171
21172 done
21173
21174
21175 # Checks for typedefs, structures, and compiler characteristics.
21176 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21177 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21178 if test "${ac_cv_c_const+set}" = set; then
21179 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 else
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187
21188 int
21189 main ()
21190 {
21191 /* FIXME: Include the comments suggested by Paul. */
21192 #ifndef __cplusplus
21193 /* Ultrix mips cc rejects this. */
21194 typedef int charset[2];
21195 const charset cs;
21196 /* SunOS 4.1.1 cc rejects this. */
21197 char const *const *pcpcc;
21198 char **ppc;
21199 /* NEC SVR4.0.2 mips cc rejects this. */
21200 struct point {int x, y;};
21201 static struct point const zero = {0,0};
21202 /* AIX XL C 1.02.0.0 rejects this.
21203 It does not let you subtract one const X* pointer from another in
21204 an arm of an if-expression whose if-part is not a constant
21205 expression */
21206 const char *g = "string";
21207 pcpcc = &g + (g ? g-g : 0);
21208 /* HPUX 7.0 cc rejects these. */
21209 ++pcpcc;
21210 ppc = (char**) pcpcc;
21211 pcpcc = (char const *const *) ppc;
21212 { /* SCO 3.2v4 cc rejects this. */
21213 char *t;
21214 char const *s = 0 ? (char *) 0 : (char const *) 0;
21215
21216 *t++ = 0;
21217 if (s) return 0;
21218 }
21219 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21220 int x[] = {25, 17};
21221 const int *foo = &x[0];
21222 ++foo;
21223 }
21224 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21225 typedef const int *iptr;
21226 iptr p = 0;
21227 ++p;
21228 }
21229 { /* AIX XL C 1.02.0.0 rejects this saying
21230 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21231 struct s { int j; const int *ap[3]; };
21232 struct s *b; b->j = 5;
21233 }
21234 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21235 const int foo = 10;
21236 if (!foo) return 0;
21237 }
21238 return !cs[0] && !zero.x;
21239 #endif
21240
21241 ;
21242 return 0;
21243 }
21244 _ACEOF
21245 rm -f conftest.$ac_objext
21246 if { (ac_try="$ac_compile"
21247 case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21250 esac
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_compile") 2>conftest.er1
21253 ac_status=$?
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } && {
21259 test -z "$ac_c_werror_flag" ||
21260 test ! -s conftest.err
21261 } && test -s conftest.$ac_objext; then
21262 ac_cv_c_const=yes
21263 else
21264 echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21266
21267 ac_cv_c_const=no
21268 fi
21269
21270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 fi
21272 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21273 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21274 if test $ac_cv_c_const = no; then
21275
21276 cat >>confdefs.h <<\_ACEOF
21277 #define const
21278 _ACEOF
21279
21280 fi
21281
21282 { echo "$as_me:$LINENO: checking for inline" >&5
21283 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21284 if test "${ac_cv_c_inline+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286 else
21287 ac_cv_c_inline=no
21288 for ac_kw in inline __inline__ __inline; do
21289 cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h. */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h. */
21295 #ifndef __cplusplus
21296 typedef int foo_t;
21297 static $ac_kw foo_t static_foo () {return 0; }
21298 $ac_kw foo_t foo () {return 0; }
21299 #endif
21300
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (ac_try="$ac_compile"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_compile") 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } && {
21316 test -z "$ac_c_werror_flag" ||
21317 test ! -s conftest.err
21318 } && test -s conftest.$ac_objext; then
21319 ac_cv_c_inline=$ac_kw
21320 else
21321 echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324
21325 fi
21326
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 test "$ac_cv_c_inline" != no && break
21329 done
21330
21331 fi
21332 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21333 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21334
21335
21336 case $ac_cv_c_inline in
21337 inline | yes) ;;
21338 *)
21339 case $ac_cv_c_inline in
21340 no) ac_val=;;
21341 *) ac_val=$ac_cv_c_inline;;
21342 esac
21343 cat >>confdefs.h <<_ACEOF
21344 #ifndef __cplusplus
21345 #define inline $ac_val
21346 #endif
21347 _ACEOF
21348 ;;
21349 esac
21350
21351 { echo "$as_me:$LINENO: checking for pid_t" >&5
21352 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21353 if test "${ac_cv_type_pid_t+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h. */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 $ac_includes_default
21363 typedef pid_t ac__type_new_;
21364 int
21365 main ()
21366 {
21367 if ((ac__type_new_ *) 0)
21368 return 0;
21369 if (sizeof (ac__type_new_))
21370 return 0;
21371 ;
21372 return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext
21376 if { (ac_try="$ac_compile"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_compile") 2>conftest.er1
21383 ac_status=$?
21384 grep -v '^ *+' conftest.er1 >conftest.err
21385 rm -f conftest.er1
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest.$ac_objext; then
21392 ac_cv_type_pid_t=yes
21393 else
21394 echo "$as_me: failed program was:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21396
21397 ac_cv_type_pid_t=no
21398 fi
21399
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 fi
21402 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21403 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21404 if test $ac_cv_type_pid_t = yes; then
21405 :
21406 else
21407
21408 cat >>confdefs.h <<_ACEOF
21409 #define pid_t int
21410 _ACEOF
21411
21412 fi
21413
21414
21415 # Checks for library functions.
21416
21417 for ac_func in vprintf
21418 do
21419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21420 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21433 #define $ac_func innocuous_$ac_func
21434
21435 /* System header to define __stub macros and hopefully few prototypes,
21436 which can conflict with char $ac_func (); below.
21437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21438 <limits.h> exists even on freestanding compilers. */
21439
21440 #ifdef __STDC__
21441 # include <limits.h>
21442 #else
21443 # include <assert.h>
21444 #endif
21445
21446 #undef $ac_func
21447
21448 /* Override any GCC internal prototype to avoid an error.
21449 Use char because int might match the return type of a GCC
21450 builtin and then its argument prototype would still apply. */
21451 #ifdef __cplusplus
21452 extern "C"
21453 #endif
21454 char $ac_func ();
21455 /* The GNU C library defines this for functions which it implements
21456 to always fail with ENOSYS. Some functions are actually named
21457 something starting with __ and the normal name is an alias. */
21458 #if defined __stub_$ac_func || defined __stub___$ac_func
21459 choke me
21460 #endif
21461
21462 int
21463 main ()
21464 {
21465 return $ac_func ();
21466 ;
21467 return 0;
21468 }
21469 _ACEOF
21470 rm -f conftest.$ac_objext conftest$ac_exeext
21471 if { (ac_try="$ac_link"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21475 esac
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_link") 2>conftest.er1
21478 ac_status=$?
21479 grep -v '^ *+' conftest.er1 >conftest.err
21480 rm -f conftest.er1
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest$ac_exeext &&
21487 $as_test_x conftest$ac_exeext; then
21488 eval "$as_ac_var=yes"
21489 else
21490 echo "$as_me: failed program was:" >&5
21491 sed 's/^/| /' conftest.$ac_ext >&5
21492
21493 eval "$as_ac_var=no"
21494 fi
21495
21496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21497 conftest$ac_exeext conftest.$ac_ext
21498 fi
21499 ac_res=`eval echo '${'$as_ac_var'}'`
21500 { echo "$as_me:$LINENO: result: $ac_res" >&5
21501 echo "${ECHO_T}$ac_res" >&6; }
21502 if test `eval echo '${'$as_ac_var'}'` = yes; then
21503 cat >>confdefs.h <<_ACEOF
21504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21505 _ACEOF
21506
21507 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21508 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21509 if test "${ac_cv_func__doprnt+set}" = set; then
21510 echo $ECHO_N "(cached) $ECHO_C" >&6
21511 else
21512 cat >conftest.$ac_ext <<_ACEOF
21513 /* confdefs.h. */
21514 _ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21520 #define _doprnt innocuous__doprnt
21521
21522 /* System header to define __stub macros and hopefully few prototypes,
21523 which can conflict with char _doprnt (); below.
21524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21525 <limits.h> exists even on freestanding compilers. */
21526
21527 #ifdef __STDC__
21528 # include <limits.h>
21529 #else
21530 # include <assert.h>
21531 #endif
21532
21533 #undef _doprnt
21534
21535 /* Override any GCC internal prototype to avoid an error.
21536 Use char because int might match the return type of a GCC
21537 builtin and then its argument prototype would still apply. */
21538 #ifdef __cplusplus
21539 extern "C"
21540 #endif
21541 char _doprnt ();
21542 /* The GNU C library defines this for functions which it implements
21543 to always fail with ENOSYS. Some functions are actually named
21544 something starting with __ and the normal name is an alias. */
21545 #if defined __stub__doprnt || defined __stub____doprnt
21546 choke me
21547 #endif
21548
21549 int
21550 main ()
21551 {
21552 return _doprnt ();
21553 ;
21554 return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext conftest$ac_exeext
21558 if { (ac_try="$ac_link"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21562 esac
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_link") 2>conftest.er1
21565 ac_status=$?
21566 grep -v '^ *+' conftest.er1 >conftest.err
21567 rm -f conftest.er1
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } && {
21571 test -z "$ac_c_werror_flag" ||
21572 test ! -s conftest.err
21573 } && test -s conftest$ac_exeext &&
21574 $as_test_x conftest$ac_exeext; then
21575 ac_cv_func__doprnt=yes
21576 else
21577 echo "$as_me: failed program was:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21579
21580 ac_cv_func__doprnt=no
21581 fi
21582
21583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21584 conftest$ac_exeext conftest.$ac_ext
21585 fi
21586 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21587 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21588 if test $ac_cv_func__doprnt = yes; then
21589
21590 cat >>confdefs.h <<\_ACEOF
21591 #define HAVE_DOPRNT 1
21592 _ACEOF
21593
21594 fi
21595
21596 fi
21597 done
21598
21599
21600
21601
21602 for ac_header in stdlib.h unistd.h
21603 do
21604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 fi
21611 ac_res=`eval echo '${'$as_ac_Header'}'`
21612 { echo "$as_me:$LINENO: result: $ac_res" >&5
21613 echo "${ECHO_T}$ac_res" >&6; }
21614 else
21615 # Is the header compilable?
21616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h. */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21625 #include <$ac_header>
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (ac_try="$ac_compile"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_compile") 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 ac_header_compiler=yes
21645 else
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ac_header_compiler=no
21650 fi
21651
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21654 echo "${ECHO_T}$ac_header_compiler" >&6; }
21655
21656 # Is the header present?
21657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21659 cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h. */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <$ac_header>
21666 _ACEOF
21667 if { (ac_try="$ac_cpp conftest.$ac_ext"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } >/dev/null && {
21680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 }; then
21683 ac_header_preproc=yes
21684 else
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21687
21688 ac_header_preproc=no
21689 fi
21690
21691 rm -f conftest.err conftest.$ac_ext
21692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21693 echo "${ECHO_T}$ac_header_preproc" >&6; }
21694
21695 # So? What about this header?
21696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21697 yes:no: )
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21702 ac_header_preproc=yes
21703 ;;
21704 no:yes:* )
21705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21717
21718 ;;
21719 esac
21720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725 eval "$as_ac_Header=\$ac_header_preproc"
21726 fi
21727 ac_res=`eval echo '${'$as_ac_Header'}'`
21728 { echo "$as_me:$LINENO: result: $ac_res" >&5
21729 echo "${ECHO_T}$ac_res" >&6; }
21730
21731 fi
21732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21735 _ACEOF
21736
21737 fi
21738
21739 done
21740
21741
21742 for ac_func in getpagesize
21743 do
21744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749 else
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21758 #define $ac_func innocuous_$ac_func
21759
21760 /* System header to define __stub macros and hopefully few prototypes,
21761 which can conflict with char $ac_func (); below.
21762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21763 <limits.h> exists even on freestanding compilers. */
21764
21765 #ifdef __STDC__
21766 # include <limits.h>
21767 #else
21768 # include <assert.h>
21769 #endif
21770
21771 #undef $ac_func
21772
21773 /* Override any GCC internal prototype to avoid an error.
21774 Use char because int might match the return type of a GCC
21775 builtin and then its argument prototype would still apply. */
21776 #ifdef __cplusplus
21777 extern "C"
21778 #endif
21779 char $ac_func ();
21780 /* The GNU C library defines this for functions which it implements
21781 to always fail with ENOSYS. Some functions are actually named
21782 something starting with __ and the normal name is an alias. */
21783 #if defined __stub_$ac_func || defined __stub___$ac_func
21784 choke me
21785 #endif
21786
21787 int
21788 main ()
21789 {
21790 return $ac_func ();
21791 ;
21792 return 0;
21793 }
21794 _ACEOF
21795 rm -f conftest.$ac_objext conftest$ac_exeext
21796 if { (ac_try="$ac_link"
21797 case "(($ac_try" in
21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21800 esac
21801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_link") 2>conftest.er1
21803 ac_status=$?
21804 grep -v '^ *+' conftest.er1 >conftest.err
21805 rm -f conftest.er1
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest$ac_exeext &&
21812 $as_test_x conftest$ac_exeext; then
21813 eval "$as_ac_var=yes"
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818 eval "$as_ac_var=no"
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21822 conftest$ac_exeext conftest.$ac_ext
21823 fi
21824 ac_res=`eval echo '${'$as_ac_var'}'`
21825 { echo "$as_me:$LINENO: result: $ac_res" >&5
21826 echo "${ECHO_T}$ac_res" >&6; }
21827 if test `eval echo '${'$as_ac_var'}'` = yes; then
21828 cat >>confdefs.h <<_ACEOF
21829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21830 _ACEOF
21831
21832 fi
21833 done
21834
21835 { echo "$as_me:$LINENO: checking for working mmap" >&5
21836 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21837 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840 if test "$cross_compiling" = yes; then
21841 ac_cv_func_mmap_fixed_mapped=no
21842 else
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h. */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h. */
21849 $ac_includes_default
21850 /* malloc might have been renamed as rpl_malloc. */
21851 #undef malloc
21852
21853 /* Thanks to Mike Haertel and Jim Avera for this test.
21854 Here is a matrix of mmap possibilities:
21855 mmap private not fixed
21856 mmap private fixed at somewhere currently unmapped
21857 mmap private fixed at somewhere already mapped
21858 mmap shared not fixed
21859 mmap shared fixed at somewhere currently unmapped
21860 mmap shared fixed at somewhere already mapped
21861 For private mappings, we should verify that changes cannot be read()
21862 back from the file, nor mmap's back from the file at a different
21863 address. (There have been systems where private was not correctly
21864 implemented like the infamous i386 svr4.0, and systems where the
21865 VM page cache was not coherent with the file system buffer cache
21866 like early versions of FreeBSD and possibly contemporary NetBSD.)
21867 For shared mappings, we should conversely verify that changes get
21868 propagated back to all the places they're supposed to be.
21869
21870 Grep wants private fixed already mapped.
21871 The main things grep needs to know about mmap are:
21872 * does it exist and is it safe to write into the mmap'd area
21873 * how to use it (BSD variants) */
21874
21875 #include <fcntl.h>
21876 #include <sys/mman.h>
21877
21878 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21879 char *malloc ();
21880 #endif
21881
21882 /* This mess was copied from the GNU getpagesize.h. */
21883 #ifndef HAVE_GETPAGESIZE
21884 /* Assume that all systems that can run configure have sys/param.h. */
21885 # ifndef HAVE_SYS_PARAM_H
21886 # define HAVE_SYS_PARAM_H 1
21887 # endif
21888
21889 # ifdef _SC_PAGESIZE
21890 # define getpagesize() sysconf(_SC_PAGESIZE)
21891 # else /* no _SC_PAGESIZE */
21892 # ifdef HAVE_SYS_PARAM_H
21893 # include <sys/param.h>
21894 # ifdef EXEC_PAGESIZE
21895 # define getpagesize() EXEC_PAGESIZE
21896 # else /* no EXEC_PAGESIZE */
21897 # ifdef NBPG
21898 # define getpagesize() NBPG * CLSIZE
21899 # ifndef CLSIZE
21900 # define CLSIZE 1
21901 # endif /* no CLSIZE */
21902 # else /* no NBPG */
21903 # ifdef NBPC
21904 # define getpagesize() NBPC
21905 # else /* no NBPC */
21906 # ifdef PAGESIZE
21907 # define getpagesize() PAGESIZE
21908 # endif /* PAGESIZE */
21909 # endif /* no NBPC */
21910 # endif /* no NBPG */
21911 # endif /* no EXEC_PAGESIZE */
21912 # else /* no HAVE_SYS_PARAM_H */
21913 # define getpagesize() 8192 /* punt totally */
21914 # endif /* no HAVE_SYS_PARAM_H */
21915 # endif /* no _SC_PAGESIZE */
21916
21917 #endif /* no HAVE_GETPAGESIZE */
21918
21919 int
21920 main ()
21921 {
21922 char *data, *data2, *data3;
21923 int i, pagesize;
21924 int fd;
21925
21926 pagesize = getpagesize ();
21927
21928 /* First, make a file with some known garbage in it. */
21929 data = (char *) malloc (pagesize);
21930 if (!data)
21931 return 1;
21932 for (i = 0; i < pagesize; ++i)
21933 *(data + i) = rand ();
21934 umask (0);
21935 fd = creat ("conftest.mmap", 0600);
21936 if (fd < 0)
21937 return 1;
21938 if (write (fd, data, pagesize) != pagesize)
21939 return 1;
21940 close (fd);
21941
21942 /* Next, try to mmap the file at a fixed address which already has
21943 something else allocated at it. If we can, also make sure that
21944 we see the same garbage. */
21945 fd = open ("conftest.mmap", O_RDWR);
21946 if (fd < 0)
21947 return 1;
21948 data2 = (char *) malloc (2 * pagesize);
21949 if (!data2)
21950 return 1;
21951 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21952 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21953 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21954 return 1;
21955 for (i = 0; i < pagesize; ++i)
21956 if (*(data + i) != *(data2 + i))
21957 return 1;
21958
21959 /* Finally, make sure that changes to the mapped area do not
21960 percolate back to the file as seen by read(). (This is a bug on
21961 some variants of i386 svr4.0.) */
21962 for (i = 0; i < pagesize; ++i)
21963 *(data2 + i) = *(data2 + i) + 1;
21964 data3 = (char *) malloc (pagesize);
21965 if (!data3)
21966 return 1;
21967 if (read (fd, data3, pagesize) != pagesize)
21968 return 1;
21969 for (i = 0; i < pagesize; ++i)
21970 if (*(data + i) != *(data3 + i))
21971 return 1;
21972 close (fd);
21973 return 0;
21974 }
21975 _ACEOF
21976 rm -f conftest$ac_exeext
21977 if { (ac_try="$ac_link"
21978 case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981 esac
21982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_link") 2>&5
21984 ac_status=$?
21985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21987 { (case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21990 esac
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_try") 2>&5
21993 ac_status=$?
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 ac_cv_func_mmap_fixed_mapped=yes
21997 else
21998 echo "$as_me: program exited with status $ac_status" >&5
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 ( exit $ac_status )
22003 ac_cv_func_mmap_fixed_mapped=no
22004 fi
22005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22006 fi
22007
22008
22009 fi
22010 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22011 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22012 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22013
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_MMAP 1
22016 _ACEOF
22017
22018 fi
22019 rm -f conftest.mmap
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038 for ac_func in geteuid getuid link memmove memset mkstemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48
22039 do
22040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22044 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046 cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h. */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22054 #define $ac_func innocuous_$ac_func
22055
22056 /* System header to define __stub macros and hopefully few prototypes,
22057 which can conflict with char $ac_func (); below.
22058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22059 <limits.h> exists even on freestanding compilers. */
22060
22061 #ifdef __STDC__
22062 # include <limits.h>
22063 #else
22064 # include <assert.h>
22065 #endif
22066
22067 #undef $ac_func
22068
22069 /* Override any GCC internal prototype to avoid an error.
22070 Use char because int might match the return type of a GCC
22071 builtin and then its argument prototype would still apply. */
22072 #ifdef __cplusplus
22073 extern "C"
22074 #endif
22075 char $ac_func ();
22076 /* The GNU C library defines this for functions which it implements
22077 to always fail with ENOSYS. Some functions are actually named
22078 something starting with __ and the normal name is an alias. */
22079 #if defined __stub_$ac_func || defined __stub___$ac_func
22080 choke me
22081 #endif
22082
22083 int
22084 main ()
22085 {
22086 return $ac_func ();
22087 ;
22088 return 0;
22089 }
22090 _ACEOF
22091 rm -f conftest.$ac_objext conftest$ac_exeext
22092 if { (ac_try="$ac_link"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_link") 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } && {
22105 test -z "$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 } && test -s conftest$ac_exeext &&
22108 $as_test_x conftest$ac_exeext; then
22109 eval "$as_ac_var=yes"
22110 else
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22113
22114 eval "$as_ac_var=no"
22115 fi
22116
22117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22118 conftest$ac_exeext conftest.$ac_ext
22119 fi
22120 ac_res=`eval echo '${'$as_ac_var'}'`
22121 { echo "$as_me:$LINENO: result: $ac_res" >&5
22122 echo "${ECHO_T}$ac_res" >&6; }
22123 if test `eval echo '${'$as_ac_var'}'` = yes; then
22124 cat >>confdefs.h <<_ACEOF
22125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22126 _ACEOF
22127
22128 fi
22129 done
22130
22131
22132 #
22133 # Checks for iconv
22134 #
22135 { echo "$as_me:$LINENO: checking for a usable iconv" >&5
22136 echo $ECHO_N "checking for a usable iconv... $ECHO_C" >&6; }
22137 ICONV_LIBS=""
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22144 #include <iconv.h>
22145 int
22146 main ()
22147 {
22148 iconv_open ("from", "to");
22149 ;
22150 return 0;
22151 }
22152 _ACEOF
22153 rm -f conftest.$ac_objext conftest$ac_exeext
22154 if { (ac_try="$ac_link"
22155 case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_link") 2>conftest.er1
22161 ac_status=$?
22162 grep -v '^ *+' conftest.er1 >conftest.err
22163 rm -f conftest.er1
22164 cat conftest.err >&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } && {
22167 test -z "$ac_c_werror_flag" ||
22168 test ! -s conftest.err
22169 } && test -s conftest$ac_exeext &&
22170 $as_test_x conftest$ac_exeext; then
22171 use_iconv=1
22172 else
22173 echo "$as_me: failed program was:" >&5
22174 sed 's/^/| /' conftest.$ac_ext >&5
22175
22176 use_iconv=0
22177 fi
22178
22179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22180 conftest$ac_exeext conftest.$ac_ext
22181 if test x$use_iconv = x1; then
22182 { echo "$as_me:$LINENO: result: libc" >&5
22183 echo "${ECHO_T}libc" >&6; }
22184 else
22185 # try using libiconv
22186 fontconfig_save_libs="$LIBS"
22187 LIBS="$LIBS -liconv"
22188
22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 #include <iconv.h>
22196 int
22197 main ()
22198 {
22199 iconv_open ("from", "to");
22200 ;
22201 return 0;
22202 }
22203 _ACEOF
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (ac_try="$ac_link"
22206 case "(($ac_try" in
22207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208 *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211 (eval "$ac_link") 2>conftest.er1
22212 ac_status=$?
22213 grep -v '^ *+' conftest.er1 >conftest.err
22214 rm -f conftest.er1
22215 cat conftest.err >&5
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && {
22218 test -z "$ac_c_werror_flag" ||
22219 test ! -s conftest.err
22220 } && test -s conftest$ac_exeext &&
22221 $as_test_x conftest$ac_exeext; then
22222 use_iconv=1
22223 else
22224 echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22226
22227 use_iconv=0
22228 fi
22229
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231 conftest$ac_exeext conftest.$ac_ext
22232
22233 if test x$use_iconv = x1; then
22234 ICONV_LIBS="-liconv"
22235 { echo "$as_me:$LINENO: result: libiconv" >&5
22236 echo "${ECHO_T}libiconv" >&6; }
22237 else
22238 { echo "$as_me:$LINENO: result: no" >&5
22239 echo "${ECHO_T}no" >&6; }
22240 fi
22241
22242 LIBS="$fontconfig_save_libs"
22243 fi
22244
22245
22246 cat >>confdefs.h <<_ACEOF
22247 #define USE_ICONV $use_iconv
22248 _ACEOF
22249
22250
22251 #
22252 # Checks for FreeType
22253 #
22254
22255
22256 # Check whether --with-freetype-config was given.
22257 if test "${with_freetype_config+set}" = set; then
22258 withval=$with_freetype_config; freetype_config=$withval
22259 else
22260 freetype_config=yes
22261 fi
22262
22263
22264 if test "$freetype_config" = "yes"; then
22265 # Extract the first word of "freetype-config", so it can be a program name with args.
22266 set dummy freetype-config; ac_word=$2
22267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22269 if test "${ac_cv_path_ft_config+set}" = set; then
22270 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 else
22272 case $ft_config in
22273 [\\/]* | ?:[\\/]*)
22274 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
22275 ;;
22276 *)
22277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22278 for as_dir in $PATH
22279 do
22280 IFS=$as_save_IFS
22281 test -z "$as_dir" && as_dir=.
22282 for ac_exec_ext in '' $ac_executable_extensions; do
22283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22284 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
22285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22286 break 2
22287 fi
22288 done
22289 done
22290 IFS=$as_save_IFS
22291
22292 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
22293 ;;
22294 esac
22295 fi
22296 ft_config=$ac_cv_path_ft_config
22297 if test -n "$ft_config"; then
22298 { echo "$as_me:$LINENO: result: $ft_config" >&5
22299 echo "${ECHO_T}$ft_config" >&6; }
22300 else
22301 { echo "$as_me:$LINENO: result: no" >&5
22302 echo "${ECHO_T}no" >&6; }
22303 fi
22304
22305
22306 if test "$ft_config" = "no"; then
22307 { { echo "$as_me:$LINENO: error: You must have freetype installed; see http://www.freetype.org/" >&5
22308 echo "$as_me: error: You must have freetype installed; see http://www.freetype.org/" >&2;}
22309 { (exit 1); exit 1; }; }
22310 fi
22311 else
22312 ft_config="$freetype_config"
22313 fi
22314
22315 FREETYPE_CFLAGS="`$ft_config --cflags`"
22316 FREETYPE_LIBS="`$ft_config --libs`"
22317
22318
22319
22320
22321 #
22322 # Check to see whether we have:
22323 # FT_Get_Next_Char
22324 # FT_Get_BDF_Property
22325 # FT_Get_PS_Font_Info
22326 # FT_Has_PS_Glyph_Names
22327 #
22328
22329 fontconfig_save_libs="$LIBS"
22330 fontconfig_save_cflags="$CFLAGS"
22331 LIBS="$LIBS $FREETYPE_LIBS"
22332 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
22333
22334
22335
22336
22337
22338 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format
22339 do
22340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22344 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346 cat >conftest.$ac_ext <<_ACEOF
22347 /* confdefs.h. */
22348 _ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22354 #define $ac_func innocuous_$ac_func
22355
22356 /* System header to define __stub macros and hopefully few prototypes,
22357 which can conflict with char $ac_func (); below.
22358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22359 <limits.h> exists even on freestanding compilers. */
22360
22361 #ifdef __STDC__
22362 # include <limits.h>
22363 #else
22364 # include <assert.h>
22365 #endif
22366
22367 #undef $ac_func
22368
22369 /* Override any GCC internal prototype to avoid an error.
22370 Use char because int might match the return type of a GCC
22371 builtin and then its argument prototype would still apply. */
22372 #ifdef __cplusplus
22373 extern "C"
22374 #endif
22375 char $ac_func ();
22376 /* The GNU C library defines this for functions which it implements
22377 to always fail with ENOSYS. Some functions are actually named
22378 something starting with __ and the normal name is an alias. */
22379 #if defined __stub_$ac_func || defined __stub___$ac_func
22380 choke me
22381 #endif
22382
22383 int
22384 main ()
22385 {
22386 return $ac_func ();
22387 ;
22388 return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext conftest$ac_exeext
22392 if { (ac_try="$ac_link"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_link") 2>conftest.er1
22399 ac_status=$?
22400 grep -v '^ *+' conftest.er1 >conftest.err
22401 rm -f conftest.er1
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); } && {
22405 test -z "$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 } && test -s conftest$ac_exeext &&
22408 $as_test_x conftest$ac_exeext; then
22409 eval "$as_ac_var=yes"
22410 else
22411 echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.$ac_ext >&5
22413
22414 eval "$as_ac_var=no"
22415 fi
22416
22417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22418 conftest$ac_exeext conftest.$ac_ext
22419 fi
22420 ac_res=`eval echo '${'$as_ac_var'}'`
22421 { echo "$as_me:$LINENO: result: $ac_res" >&5
22422 echo "${ECHO_T}$ac_res" >&6; }
22423 if test `eval echo '${'$as_ac_var'}'` = yes; then
22424 cat >>confdefs.h <<_ACEOF
22425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22426 _ACEOF
22427
22428 fi
22429 done
22430
22431 { echo "$as_me:$LINENO: checking for FT_Bitmap_Size.y_ppem" >&5
22432 echo $ECHO_N "checking for FT_Bitmap_Size.y_ppem... $ECHO_C" >&6; }
22433 if test "${ac_cv_member_FT_Bitmap_Size_y_ppem+set}" = set; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 else
22436 cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h. */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h. */
22442 #include <ft2build.h>
22443 #include FT_FREETYPE_H
22444
22445 int
22446 main ()
22447 {
22448 static FT_Bitmap_Size ac_aggr;
22449 if (ac_aggr.y_ppem)
22450 return 0;
22451 ;
22452 return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest.$ac_objext; then
22472 ac_cv_member_FT_Bitmap_Size_y_ppem=yes
22473 else
22474 echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h. */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 #include <ft2build.h>
22484 #include FT_FREETYPE_H
22485
22486 int
22487 main ()
22488 {
22489 static FT_Bitmap_Size ac_aggr;
22490 if (sizeof ac_aggr.y_ppem)
22491 return 0;
22492 ;
22493 return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22504 ac_status=$?
22505 grep -v '^ *+' conftest.er1 >conftest.err
22506 rm -f conftest.er1
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22513 ac_cv_member_FT_Bitmap_Size_y_ppem=yes
22514 else
22515 echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22517
22518 ac_cv_member_FT_Bitmap_Size_y_ppem=no
22519 fi
22520
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 fi
22523
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 fi
22526 { echo "$as_me:$LINENO: result: $ac_cv_member_FT_Bitmap_Size_y_ppem" >&5
22527 echo "${ECHO_T}$ac_cv_member_FT_Bitmap_Size_y_ppem" >&6; }
22528 if test $ac_cv_member_FT_Bitmap_Size_y_ppem = yes; then
22529 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
22530 else
22531 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
22532 fi
22533
22534
22535 cat >>confdefs.h <<_ACEOF
22536 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
22537 _ACEOF
22538
22539 CFLAGS="$fontconfig_save_cflags"
22540 LIBS="$fontconfig_save_libs"
22541
22542 #
22543 # Check expat configuration
22544 #
22545
22546
22547 # Check whether --with-expat was given.
22548 if test "${with_expat+set}" = set; then
22549 withval=$with_expat; expat=$withval
22550 else
22551 expat=yes
22552 fi
22553
22554
22555 # Check whether --with-expat-includes was given.
22556 if test "${with_expat_includes+set}" = set; then
22557 withval=$with_expat_includes; expat_includes=$withval
22558 else
22559 expat_includes=yes
22560 fi
22561
22562
22563 # Check whether --with-expat-lib was given.
22564 if test "${with_expat_lib+set}" = set; then
22565 withval=$with_expat_lib; expat_lib=$withval
22566 else
22567 expat_lib=yes
22568 fi
22569
22570
22571 if test "$enable_libxml2" != "yes"; then
22572 case "$expat" in
22573 no)
22574 ;;
22575 *)
22576 case "$expat_includes" in
22577 yes)
22578 case "$expat" in
22579 yes)
22580 ;;
22581 *)
22582 EXPAT_CFLAGS="-I$expat/include"
22583 ;;
22584 esac
22585 ;;
22586 no)
22587 EXPAT_CFLAGS=""
22588 ;;
22589 *)
22590 EXPAT_CFLAGS="-I$expat_includes"
22591 ;;
22592 esac
22593 case "$expat_lib" in
22594 yes)
22595 case "$expat" in
22596 yes)
22597 EXPAT_LIBS="-lexpat"
22598 ;;
22599 *)
22600 EXPAT_LIBS="-L$expat/lib -lexpat"
22601 ;;
22602 esac
22603 ;;
22604 no)
22605 ;;
22606 *)
22607 EXPAT_LIBS="-L$expat_lib -lexpat"
22608 ;;
22609 esac
22610
22611 expatsaved_CPPFLAGS="$CPPFLAGS"
22612 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
22613 expatsaved_LIBS="$LIBS"
22614 LIBS="$LIBS $EXPAT_LIBS"
22615
22616 if test "${ac_cv_header_expat_h+set}" = set; then
22617 { echo "$as_me:$LINENO: checking for expat.h" >&5
22618 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
22619 if test "${ac_cv_header_expat_h+set}" = set; then
22620 echo $ECHO_N "(cached) $ECHO_C" >&6
22621 fi
22622 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22623 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
22624 else
22625 # Is the header compilable?
22626 { echo "$as_me:$LINENO: checking expat.h usability" >&5
22627 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6; }
22628 cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h. */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 $ac_includes_default
22635 #include <expat.h>
22636 _ACEOF
22637 rm -f conftest.$ac_objext
22638 if { (ac_try="$ac_compile"
22639 case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642 esac
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_compile") 2>conftest.er1
22645 ac_status=$?
22646 grep -v '^ *+' conftest.er1 >conftest.err
22647 rm -f conftest.er1
22648 cat conftest.err >&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest.$ac_objext; then
22654 ac_header_compiler=yes
22655 else
22656 echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ac_header_compiler=no
22660 fi
22661
22662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22664 echo "${ECHO_T}$ac_header_compiler" >&6; }
22665
22666 # Is the header present?
22667 { echo "$as_me:$LINENO: checking expat.h presence" >&5
22668 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6; }
22669 cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h. */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h. */
22675 #include <expat.h>
22676 _ACEOF
22677 if { (ac_try="$ac_cpp conftest.$ac_ext"
22678 case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681 esac
22682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22684 ac_status=$?
22685 grep -v '^ *+' conftest.er1 >conftest.err
22686 rm -f conftest.er1
22687 cat conftest.err >&5
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); } >/dev/null && {
22690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22691 test ! -s conftest.err
22692 }; then
22693 ac_header_preproc=yes
22694 else
22695 echo "$as_me: failed program was:" >&5
22696 sed 's/^/| /' conftest.$ac_ext >&5
22697
22698 ac_header_preproc=no
22699 fi
22700
22701 rm -f conftest.err conftest.$ac_ext
22702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22703 echo "${ECHO_T}$ac_header_preproc" >&6; }
22704
22705 # So? What about this header?
22706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22707 yes:no: )
22708 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22709 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22710 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22711 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22712 ac_header_preproc=yes
22713 ;;
22714 no:yes:* )
22715 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22716 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
22717 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22718 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22719 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22720 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22721 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22722 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
22723 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22724 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
22725 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22726 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
22727
22728 ;;
22729 esac
22730 { echo "$as_me:$LINENO: checking for expat.h" >&5
22731 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
22732 if test "${ac_cv_header_expat_h+set}" = set; then
22733 echo $ECHO_N "(cached) $ECHO_C" >&6
22734 else
22735 ac_cv_header_expat_h=$ac_header_preproc
22736 fi
22737 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22738 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
22739
22740 fi
22741
22742
22743 case "$ac_cv_header_expat_h" in
22744 no)
22745 if test "${ac_cv_header_xmlparse_h+set}" = set; then
22746 { echo "$as_me:$LINENO: checking for xmlparse.h" >&5
22747 echo $ECHO_N "checking for xmlparse.h... $ECHO_C" >&6; }
22748 if test "${ac_cv_header_xmlparse_h+set}" = set; then
22749 echo $ECHO_N "(cached) $ECHO_C" >&6
22750 fi
22751 { echo "$as_me:$LINENO: result: $ac_cv_header_xmlparse_h" >&5
22752 echo "${ECHO_T}$ac_cv_header_xmlparse_h" >&6; }
22753 else
22754 # Is the header compilable?
22755 { echo "$as_me:$LINENO: checking xmlparse.h usability" >&5
22756 echo $ECHO_N "checking xmlparse.h usability... $ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 $ac_includes_default
22764 #include <xmlparse.h>
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_compile") 2>conftest.er1
22774 ac_status=$?
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } && {
22780 test -z "$ac_c_werror_flag" ||
22781 test ! -s conftest.err
22782 } && test -s conftest.$ac_objext; then
22783 ac_header_compiler=yes
22784 else
22785 echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 ac_header_compiler=no
22789 fi
22790
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22793 echo "${ECHO_T}$ac_header_compiler" >&6; }
22794
22795 # Is the header present?
22796 { echo "$as_me:$LINENO: checking xmlparse.h presence" >&5
22797 echo $ECHO_N "checking xmlparse.h presence... $ECHO_C" >&6; }
22798 cat >conftest.$ac_ext <<_ACEOF
22799 /* confdefs.h. */
22800 _ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22804 #include <xmlparse.h>
22805 _ACEOF
22806 if { (ac_try="$ac_cpp conftest.$ac_ext"
22807 case "(($ac_try" in
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809 *) ac_try_echo=$ac_try;;
22810 esac
22811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22813 ac_status=$?
22814 grep -v '^ *+' conftest.er1 >conftest.err
22815 rm -f conftest.er1
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); } >/dev/null && {
22819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22820 test ! -s conftest.err
22821 }; then
22822 ac_header_preproc=yes
22823 else
22824 echo "$as_me: failed program was:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22826
22827 ac_header_preproc=no
22828 fi
22829
22830 rm -f conftest.err conftest.$ac_ext
22831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22832 echo "${ECHO_T}$ac_header_preproc" >&6; }
22833
22834 # So? What about this header?
22835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22836 yes:no: )
22837 { echo "$as_me:$LINENO: WARNING: xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&5
22838 echo "$as_me: WARNING: xmlparse.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22839 { echo "$as_me:$LINENO: WARNING: xmlparse.h: proceeding with the compiler's result" >&5
22840 echo "$as_me: WARNING: xmlparse.h: proceeding with the compiler's result" >&2;}
22841 ac_header_preproc=yes
22842 ;;
22843 no:yes:* )
22844 { echo "$as_me:$LINENO: WARNING: xmlparse.h: present but cannot be compiled" >&5
22845 echo "$as_me: WARNING: xmlparse.h: present but cannot be compiled" >&2;}
22846 { echo "$as_me:$LINENO: WARNING: xmlparse.h: check for missing prerequisite headers?" >&5
22847 echo "$as_me: WARNING: xmlparse.h: check for missing prerequisite headers?" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: xmlparse.h: see the Autoconf documentation" >&5
22849 echo "$as_me: WARNING: xmlparse.h: see the Autoconf documentation" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: xmlparse.h: section \"Present But Cannot Be Compiled\"" >&5
22851 echo "$as_me: WARNING: xmlparse.h: section \"Present But Cannot Be Compiled\"" >&2;}
22852 { echo "$as_me:$LINENO: WARNING: xmlparse.h: proceeding with the preprocessor's result" >&5
22853 echo "$as_me: WARNING: xmlparse.h: proceeding with the preprocessor's result" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: xmlparse.h: in the future, the compiler will take precedence" >&5
22855 echo "$as_me: WARNING: xmlparse.h: in the future, the compiler will take precedence" >&2;}
22856
22857 ;;
22858 esac
22859 { echo "$as_me:$LINENO: checking for xmlparse.h" >&5
22860 echo $ECHO_N "checking for xmlparse.h... $ECHO_C" >&6; }
22861 if test "${ac_cv_header_xmlparse_h+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22863 else
22864 ac_cv_header_xmlparse_h=$ac_header_preproc
22865 fi
22866 { echo "$as_me:$LINENO: result: $ac_cv_header_xmlparse_h" >&5
22867 echo "${ECHO_T}$ac_cv_header_xmlparse_h" >&6; }
22868
22869 fi
22870
22871
22872 case "$ac_cv_header_xmlparse_h" in
22873 no)
22874 have_expat_header=no;
22875 ;;
22876 yes)
22877 HAVE_XMLPARSE_H=1
22878
22879
22880 cat >>confdefs.h <<_ACEOF
22881 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
22882 _ACEOF
22883
22884 have_expat_header=yes
22885 ;;
22886 esac
22887 ;;
22888 yes)
22889 have_expat_header=yes
22890 ;;
22891 esac
22892 case "$have_expat_header" in
22893 no)
22894 expat=no
22895 ;;
22896 yes)
22897
22898 for ac_func in XML_SetDoctypeDeclHandler
22899 do
22900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22904 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 else
22906 cat >conftest.$ac_ext <<_ACEOF
22907 /* confdefs.h. */
22908 _ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22914 #define $ac_func innocuous_$ac_func
22915
22916 /* System header to define __stub macros and hopefully few prototypes,
22917 which can conflict with char $ac_func (); below.
22918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22919 <limits.h> exists even on freestanding compilers. */
22920
22921 #ifdef __STDC__
22922 # include <limits.h>
22923 #else
22924 # include <assert.h>
22925 #endif
22926
22927 #undef $ac_func
22928
22929 /* Override any GCC internal prototype to avoid an error.
22930 Use char because int might match the return type of a GCC
22931 builtin and then its argument prototype would still apply. */
22932 #ifdef __cplusplus
22933 extern "C"
22934 #endif
22935 char $ac_func ();
22936 /* The GNU C library defines this for functions which it implements
22937 to always fail with ENOSYS. Some functions are actually named
22938 something starting with __ and the normal name is an alias. */
22939 #if defined __stub_$ac_func || defined __stub___$ac_func
22940 choke me
22941 #endif
22942
22943 int
22944 main ()
22945 {
22946 return $ac_func ();
22947 ;
22948 return 0;
22949 }
22950 _ACEOF
22951 rm -f conftest.$ac_objext conftest$ac_exeext
22952 if { (ac_try="$ac_link"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_link") 2>conftest.er1
22959 ac_status=$?
22960 grep -v '^ *+' conftest.er1 >conftest.err
22961 rm -f conftest.er1
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); } && {
22965 test -z "$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22967 } && test -s conftest$ac_exeext &&
22968 $as_test_x conftest$ac_exeext; then
22969 eval "$as_ac_var=yes"
22970 else
22971 echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22973
22974 eval "$as_ac_var=no"
22975 fi
22976
22977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22978 conftest$ac_exeext conftest.$ac_ext
22979 fi
22980 ac_res=`eval echo '${'$as_ac_var'}'`
22981 { echo "$as_me:$LINENO: result: $ac_res" >&5
22982 echo "${ECHO_T}$ac_res" >&6; }
22983 if test `eval echo '${'$as_ac_var'}'` = yes; then
22984 cat >>confdefs.h <<_ACEOF
22985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22986 _ACEOF
22987
22988 fi
22989 done
22990
22991 case "$ac_cv_func_XML_SetDoctypeDeclHandler" in
22992 yes)
22993 HAVE_EXPAT=1
22994
22995
22996 cat >>confdefs.h <<_ACEOF
22997 #define HAVE_EXPAT $HAVE_EXPAT
22998 _ACEOF
22999
23000 ;;
23001 *)
23002 expat=no
23003 ;;
23004 esac
23005 ;;
23006 esac
23007 CPPFLAGS="$expatsaved_CPPFLAGS"
23008 LIBS="$expatsaved_LIBS"
23009 ;;
23010 esac
23011
23012
23013
23014
23015 case "$expat" in
23016 no)
23017 EXPAT_CFLAGS=""
23018 EXPAT_LIBS=""
23019
23020 { echo "$as_me:$LINENO: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&5
23021 echo "$as_me: WARNING: Cannot find usable expat library. Trying to use libxml2 as fallback." >&2;}
23022 ;;
23023 esac
23024 fi
23025
23026 #
23027 # Check libxml2 configuration
23028 #
23029
23030 # Check whether --enable-libxml2 was given.
23031 if test "${enable_libxml2+set}" = set; then
23032 enableval=$enable_libxml2;
23033 fi
23034
23035
23036
23037
23038 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23039 if test -n "$ac_tool_prefix"; then
23040 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23041 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23044 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047 case $PKG_CONFIG in
23048 [\\/]* | ?:[\\/]*)
23049 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23050 ;;
23051 *)
23052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23053 for as_dir in $PATH
23054 do
23055 IFS=$as_save_IFS
23056 test -z "$as_dir" && as_dir=.
23057 for ac_exec_ext in '' $ac_executable_extensions; do
23058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23059 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23061 break 2
23062 fi
23063 done
23064 done
23065 IFS=$as_save_IFS
23066
23067 ;;
23068 esac
23069 fi
23070 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23071 if test -n "$PKG_CONFIG"; then
23072 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23073 echo "${ECHO_T}$PKG_CONFIG" >&6; }
23074 else
23075 { echo "$as_me:$LINENO: result: no" >&5
23076 echo "${ECHO_T}no" >&6; }
23077 fi
23078
23079
23080 fi
23081 if test -z "$ac_cv_path_PKG_CONFIG"; then
23082 ac_pt_PKG_CONFIG=$PKG_CONFIG
23083 # Extract the first word of "pkg-config", so it can be a program name with args.
23084 set dummy pkg-config; ac_word=$2
23085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23087 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
23088 echo $ECHO_N "(cached) $ECHO_C" >&6
23089 else
23090 case $ac_pt_PKG_CONFIG in
23091 [\\/]* | ?:[\\/]*)
23092 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23093 ;;
23094 *)
23095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23096 for as_dir in $PATH
23097 do
23098 IFS=$as_save_IFS
23099 test -z "$as_dir" && as_dir=.
23100 for ac_exec_ext in '' $ac_executable_extensions; do
23101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23102 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23104 break 2
23105 fi
23106 done
23107 done
23108 IFS=$as_save_IFS
23109
23110 ;;
23111 esac
23112 fi
23113 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23114 if test -n "$ac_pt_PKG_CONFIG"; then
23115 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
23116 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
23117 else
23118 { echo "$as_me:$LINENO: result: no" >&5
23119 echo "${ECHO_T}no" >&6; }
23120 fi
23121
23122 if test "x$ac_pt_PKG_CONFIG" = x; then
23123 PKG_CONFIG=""
23124 else
23125 case $cross_compiling:$ac_tool_warned in
23126 yes:)
23127 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
23128 whose name does not start with the host triplet. If you think this
23129 configuration is useful to you, please write to autoconf (at] gnu.org." >&5
23130 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
23131 whose name does not start with the host triplet. If you think this
23132 configuration is useful to you, please write to autoconf (at] gnu.org." >&2;}
23133 ac_tool_warned=yes ;;
23134 esac
23135 PKG_CONFIG=$ac_pt_PKG_CONFIG
23136 fi
23137 else
23138 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23139 fi
23140
23141 fi
23142 if test -n "$PKG_CONFIG"; then
23143 _pkg_min_version=0.9.0
23144 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
23145 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
23146 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23147 { echo "$as_me:$LINENO: result: yes" >&5
23148 echo "${ECHO_T}yes" >&6; }
23149 else
23150 { echo "$as_me:$LINENO: result: no" >&5
23151 echo "${ECHO_T}no" >&6; }
23152 PKG_CONFIG=""
23153 fi
23154
23155 fi
23156
23157 if test "$enable_libxml2" = "yes" -o "$expat" = "no"; then
23158
23159 pkg_failed=no
23160 { echo "$as_me:$LINENO: checking for LIBXML2" >&5
23161 echo $ECHO_N "checking for LIBXML2... $ECHO_C" >&6; }
23162
23163 if test -n "$PKG_CONFIG"; then
23164 if test -n "$LIBXML2_CFLAGS"; then
23165 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
23166 else
23167 if test -n "$PKG_CONFIG" && \
23168 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\"") >&5
23169 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; then
23173 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
23174 else
23175 pkg_failed=yes
23176 fi
23177 fi
23178 else
23179 pkg_failed=untried
23180 fi
23181 if test -n "$PKG_CONFIG"; then
23182 if test -n "$LIBXML2_LIBS"; then
23183 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
23184 else
23185 if test -n "$PKG_CONFIG" && \
23186 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\"") >&5
23187 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
23188 ac_status=$?
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; then
23191 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
23192 else
23193 pkg_failed=yes
23194 fi
23195 fi
23196 else
23197 pkg_failed=untried
23198 fi
23199
23200
23201
23202 if test $pkg_failed = yes; then
23203
23204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23205 _pkg_short_errors_supported=yes
23206 else
23207 _pkg_short_errors_supported=no
23208 fi
23209 if test $_pkg_short_errors_supported = yes; then
23210 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= 2.6"`
23211 else
23212 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6"`
23213 fi
23214 # Put the nasty error message in config.log where it belongs
23215 echo "$LIBXML2_PKG_ERRORS" >&5
23216
23217 { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0 >= 2.6) were not met:
23218
23219 $LIBXML2_PKG_ERRORS
23220
23221 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23222 installed software in a non-standard prefix.
23223
23224 Alternatively, you may set the environment variables LIBXML2_CFLAGS
23225 and LIBXML2_LIBS to avoid the need to call pkg-config.
23226 See the pkg-config man page for more details.
23227 " >&5
23228 echo "$as_me: error: Package requirements (libxml-2.0 >= 2.6) were not met:
23229
23230 $LIBXML2_PKG_ERRORS
23231
23232 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23233 installed software in a non-standard prefix.
23234
23235 Alternatively, you may set the environment variables LIBXML2_CFLAGS
23236 and LIBXML2_LIBS to avoid the need to call pkg-config.
23237 See the pkg-config man page for more details.
23238 " >&2;}
23239 { (exit 1); exit 1; }; }
23240 elif test $pkg_failed = untried; then
23241 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
23242 is in your PATH or set the PKG_CONFIG environment variable to the full
23243 path to pkg-config.
23244
23245 Alternatively, you may set the environment variables LIBXML2_CFLAGS
23246 and LIBXML2_LIBS to avoid the need to call pkg-config.
23247 See the pkg-config man page for more details.
23248
23249 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23250 See \`config.log' for more details." >&5
23251 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
23252 is in your PATH or set the PKG_CONFIG environment variable to the full
23253 path to pkg-config.
23254
23255 Alternatively, you may set the environment variables LIBXML2_CFLAGS
23256 and LIBXML2_LIBS to avoid the need to call pkg-config.
23257 See the pkg-config man page for more details.
23258
23259 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23260 See \`config.log' for more details." >&2;}
23261 { (exit 1); exit 1; }; }
23262 else
23263 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
23264 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
23265 { echo "$as_me:$LINENO: result: yes" >&5
23266 echo "${ECHO_T}yes" >&6; }
23267 :
23268 fi
23269
23270 cat >>confdefs.h <<_ACEOF
23271 #define ENABLE_LIBXML2 1
23272 _ACEOF
23273
23274
23275
23276
23277 fi
23278
23279 #
23280 # Set default font directory
23281 #
23282
23283
23284 # Check whether --with-default-fonts was given.
23285 if test "${with_default_fonts+set}" = set; then
23286 withval=$with_default_fonts; default_fonts="$withval"
23287 else
23288 default_fonts=yes
23289 fi
23290
23291
23292 case "$default_fonts" in
23293 yes)
23294 if test "$os_win32" = "yes"; then
23295 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
23296
23297 cat >>confdefs.h <<_ACEOF
23298 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
23299 _ACEOF
23300
23301 else
23302 FC_DEFAULT_FONTS="/usr/share/fonts"
23303
23304 cat >>confdefs.h <<_ACEOF
23305 #define FC_DEFAULT_FONTS "/usr/share/fonts"
23306 _ACEOF
23307
23308 fi
23309 ;;
23310 *)
23311 FC_DEFAULT_FONTS="$default_fonts"
23312
23313 cat >>confdefs.h <<_ACEOF
23314 #define FC_DEFAULT_FONTS "$default_fonts"
23315 _ACEOF
23316
23317 ;;
23318 esac
23319
23320
23321
23322 #
23323 # Add more fonts if available. By default, add only the directories
23324 # with outline fonts; those with bitmaps can be added as desired in
23325 # local.conf or ~/.fonts.conf
23326 #
23327
23328 # Check whether --with-add-fonts was given.
23329 if test "${with_add_fonts+set}" = set; then
23330 withval=$with_add_fonts; add_fonts="$withval"
23331 else
23332 add_fonts=yes
23333 fi
23334
23335
23336 case "$add_fonts" in
23337 yes)
23338 FC_ADD_FONTS=""
23339 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
23340 case x"$FC_ADD_FONTS" in
23341 x)
23342 sub="$dir/fonts"
23343 if test -d "$sub"; then
23344 case x$FC_ADD_FONTS in
23345 x)
23346 FC_ADD_FONTS="$sub"
23347 ;;
23348 *)
23349 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
23350 ;;
23351 esac
23352 fi
23353 ;;
23354 esac
23355 done
23356
23357 cat >>confdefs.h <<_ACEOF
23358 #define FC_ADD_FONTS "$add_fonts"
23359 _ACEOF
23360
23361 ;;
23362 no)
23363 FC_ADD_FONTS=""
23364 ;;
23365 *)
23366 FC_ADD_FONTS="$add_fonts"
23367
23368 cat >>confdefs.h <<_ACEOF
23369 #define FC_ADD_FONTS "$add_fonts"
23370 _ACEOF
23371
23372 ;;
23373 esac
23374
23375
23376
23377 FC_FONTPATH=""
23378
23379 case "$FC_ADD_FONTS" in
23380 "")
23381 ;;
23382 *)
23383 FC_FONTPATH=`echo $FC_ADD_FONTS |
23384 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
23385 ;;
23386 esac
23387
23388
23389
23390 #
23391 # Set default cache directory path
23392 #
23393
23394 # Check whether --with-cache-dir was given.
23395 if test "${with_cache_dir+set}" = set; then
23396 withval=$with_cache_dir; fc_cachedir="$withval"
23397 else
23398 fc_cachedir=yes
23399 fi
23400
23401
23402 case $fc_cachedir in
23403 no|yes)
23404 if test "$os_win32" = "yes"; then
23405 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
23406 else
23407 fc_cachedir=`eval echo "${localstatedir}/cache/"${PACKAGE}`
23408 fi
23409 ;;
23410 *)
23411 ;;
23412 esac
23413
23414 FC_CACHEDIR=${fc_cachedir}
23415
23416
23417 FC_FONTDATE=`LC_ALL=C date`
23418
23419
23420
23421
23422 # Check whether --with-confdir was given.
23423 if test "${with_confdir+set}" = set; then
23424 withval=$with_confdir; confdir="$withval"
23425 else
23426 confdir=yes
23427 fi
23428
23429
23430 #
23431 # Set CONFDIR and FONTCONFIG_PATH
23432 #
23433
23434 case "$confdir" in
23435 no|yes)
23436 confdir='${sysconfdir}'/fonts
23437 ;;
23438 *)
23439 ;;
23440 esac
23441
23442 CONFDIR=${confdir}
23443
23444 cat >>confdefs.h <<_ACEOF
23445 #define CONFDIR "$CONFDIR"
23446 _ACEOF
23447
23448
23449
23450 #
23451 # Find out what language orthographies are included
23452 #
23453
23454 ORTH_FILES=`cd ${srcdir}/fc-lang && echo *.orth`
23455
23456
23457 #
23458 # Let people not build/install docs if they don't have docbook
23459 #
23460
23461 # Extract the first word of "docbook2html", so it can be a program name with args.
23462 set dummy docbook2html; ac_word=$2
23463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23465 if test "${ac_cv_prog_HASDOCBOOK+set}" = set; then
23466 echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468 if test -n "$HASDOCBOOK"; then
23469 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
23470 else
23471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23472 for as_dir in $PATH
23473 do
23474 IFS=$as_save_IFS
23475 test -z "$as_dir" && as_dir=.
23476 for ac_exec_ext in '' $ac_executable_extensions; do
23477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23478 ac_cv_prog_HASDOCBOOK="yes"
23479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23480 break 2
23481 fi
23482 done
23483 done
23484 IFS=$as_save_IFS
23485
23486 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
23487 fi
23488 fi
23489 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
23490 if test -n "$HASDOCBOOK"; then
23491 { echo "$as_me:$LINENO: result: $HASDOCBOOK" >&5
23492 echo "${ECHO_T}$HASDOCBOOK" >&6; }
23493 else
23494 { echo "$as_me:$LINENO: result: no" >&5
23495 echo "${ECHO_T}no" >&6; }
23496 fi
23497
23498
23499
23500
23501
23502 if test "x$HASDOCBOOK" = xyes; then
23503 USEDOCBOOK_TRUE=
23504 USEDOCBOOK_FALSE='#'
23505 else
23506 USEDOCBOOK_TRUE='#'
23507 USEDOCBOOK_FALSE=
23508 fi
23509
23510
23511 default_docs="yes"
23512 #
23513 # Check if docs exist or can be created
23514 #
23515 if test x$HASDOCBOOK = xno; then
23516 if test -f $srcdir/doc/fonts-conf.5; then
23517 :
23518 else
23519 default_docs="no"
23520 fi
23521 fi
23522
23523 # Check whether --enable-docs was given.
23524 if test "${enable_docs+set}" = set; then
23525 enableval=$enable_docs;
23526 else
23527 enable_docs=$default_docs
23528 fi
23529
23530
23531
23532
23533 if test "x$enable_docs" = xyes; then
23534 ENABLE_DOCS_TRUE=
23535 ENABLE_DOCS_FALSE='#'
23536 else
23537 ENABLE_DOCS_TRUE='#'
23538 ENABLE_DOCS_FALSE=
23539 fi
23540
23541
23542 if test "x$enable_docs" = xyes; then
23543 DOCSRC="doc"
23544 tmp=funcs.$$
23545 cat $srcdir/doc/*.fncs | awk '
23546 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
23547 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
23548 /^@@/ { done = 0; }' > $tmp
23549 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
23550 echo DOCMAN3 $DOCMAN3
23551 rm -f $tmp
23552 else
23553 DOCSRC=""
23554 DOCMAN3=""
23555 fi
23556
23557
23558
23559
23560 #
23561 # Figure out where to install documentation
23562 #
23563
23564
23565 # Check whether --with-docdir was given.
23566 if test "${with_docdir+set}" = set; then
23567 withval=$with_docdir; confdir="$withval"
23568 fi
23569
23570
23571 if test "x$with_docdir" = "x" ; then
23572 DOCDIR='${datadir}/doc/fontconfig'
23573 else
23574 DOCDIR=$with_docdir
23575 fi
23576
23577
23578
23579
23580 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile fc-arch/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fonts.conf fontconfig-zip"
23581
23582 cat >confcache <<\_ACEOF
23583 # This file is a shell script that caches the results of configure
23584 # tests run on this system so they can be shared between configure
23585 # scripts and configure runs, see configure's option --config-cache.
23586 # It is not useful on other systems. If it contains results you don't
23587 # want to keep, you may remove or edit it.
23588 #
23589 # config.status only pays attention to the cache file if you give it
23590 # the --recheck option to rerun configure.
23591 #
23592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23594 # following values.
23595
23596 _ACEOF
23597
23598 # The following way of writing the cache mishandles newlines in values,
23599 # but we know of no workaround that is simple, portable, and efficient.
23600 # So, we kill variables containing newlines.
23601 # Ultrix sh set writes to stderr and can't be redirected directly,
23602 # and sets the high bit in the cache file unless we assign to the vars.
23603 (
23604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23605 eval ac_val=\$$ac_var
23606 case $ac_val in #(
23607 *${as_nl}*)
23608 case $ac_var in #(
23609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23610 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23611 esac
23612 case $ac_var in #(
23613 _ | IFS | as_nl) ;; #(
23614 *) $as_unset $ac_var ;;
23615 esac ;;
23616 esac
23617 done
23618
23619 (set) 2>&1 |
23620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23621 *${as_nl}ac_space=\ *)
23622 # `set' does not quote correctly, so add quotes (double-quote
23623 # substitution turns \\\\ into \\, and sed turns \\ into \).
23624 sed -n \
23625 "s/'/'\\\\''/g;
23626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23627 ;; #(
23628 *)
23629 # `set' quotes correctly as required by POSIX, so do not add quotes.
23630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23631 ;;
23632 esac |
23633 sort
23634 ) |
23635 sed '
23636 /^ac_cv_env_/b end
23637 t clear
23638 :clear
23639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23640 t end
23641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23642 :end' >>confcache
23643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23644 if test -w "$cache_file"; then
23645 test "x$cache_file" != "x/dev/null" &&
23646 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23647 echo "$as_me: updating cache $cache_file" >&6;}
23648 cat confcache >$cache_file
23649 else
23650 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23651 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23652 fi
23653 fi
23654 rm -f confcache
23655
23656 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23657 # Let make expand exec_prefix.
23658 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23659
23660 DEFS=-DHAVE_CONFIG_H
23661
23662 ac_libobjs=
23663 ac_ltlibobjs=
23664 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23665 # 1. Remove the extension, and $U if already installed.
23666 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23667 ac_i=`echo "$ac_i" | sed "$ac_script"`
23668 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23669 # will be set to the directory where LIBOBJS objects are built.
23670 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23671 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23672 done
23673 LIBOBJS=$ac_libobjs
23674
23675 LTLIBOBJS=$ac_ltlibobjs
23676
23677
23678 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23679 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23680 Usually this means the macro was only invoked conditionally." >&5
23681 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23682 Usually this means the macro was only invoked conditionally." >&2;}
23683 { (exit 1); exit 1; }; }
23684 fi
23685 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23686 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23687 Usually this means the macro was only invoked conditionally." >&5
23688 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23689 Usually this means the macro was only invoked conditionally." >&2;}
23690 { (exit 1); exit 1; }; }
23691 fi
23692 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23693 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23694 Usually this means the macro was only invoked conditionally." >&5
23695 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23696 Usually this means the macro was only invoked conditionally." >&2;}
23697 { (exit 1); exit 1; }; }
23698 fi
23699 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23700 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23701 Usually this means the macro was only invoked conditionally." >&5
23702 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23703 Usually this means the macro was only invoked conditionally." >&2;}
23704 { (exit 1); exit 1; }; }
23705 fi
23706 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
23707 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined.
23708 Usually this means the macro was only invoked conditionally." >&5
23709 echo "$as_me: error: conditional \"OS_WIN32\" was never defined.
23710 Usually this means the macro was only invoked conditionally." >&2;}
23711 { (exit 1); exit 1; }; }
23712 fi
23713 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
23714 { { echo "$as_me:$LINENO: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
23715 Usually this means the macro was only invoked conditionally." >&5
23716 echo "$as_me: error: conditional \"MS_LIB_AVAILABLE\" was never defined.
23717 Usually this means the macro was only invoked conditionally." >&2;}
23718 { (exit 1); exit 1; }; }
23719 fi
23720 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
23721 { { echo "$as_me:$LINENO: error: conditional \"CROSS_COMPILING\" was never defined.
23722 Usually this means the macro was only invoked conditionally." >&5
23723 echo "$as_me: error: conditional \"CROSS_COMPILING\" was never defined.
23724 Usually this means the macro was only invoked conditionally." >&2;}
23725 { (exit 1); exit 1; }; }
23726 fi
23727 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
23728 { { echo "$as_me:$LINENO: error: conditional \"USEDOCBOOK\" was never defined.
23729 Usually this means the macro was only invoked conditionally." >&5
23730 echo "$as_me: error: conditional \"USEDOCBOOK\" was never defined.
23731 Usually this means the macro was only invoked conditionally." >&2;}
23732 { (exit 1); exit 1; }; }
23733 fi
23734 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
23735 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCS\" was never defined.
23736 Usually this means the macro was only invoked conditionally." >&5
23737 echo "$as_me: error: conditional \"ENABLE_DOCS\" was never defined.
23738 Usually this means the macro was only invoked conditionally." >&2;}
23739 { (exit 1); exit 1; }; }
23740 fi
23741
23742 : ${CONFIG_STATUS=./config.status}
23743 ac_clean_files_save=$ac_clean_files
23744 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23745 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23746 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23747 cat >$CONFIG_STATUS <<_ACEOF
23748 #! $SHELL
23749 # Generated by $as_me.
23750 # Run this file to recreate the current configuration.
23751 # Compiler output produced by configure, useful for debugging
23752 # configure, is in config.log if it exists.
23753
23754 debug=false
23755 ac_cs_recheck=false
23756 ac_cs_silent=false
23757 SHELL=\${CONFIG_SHELL-$SHELL}
23758 _ACEOF
23759
23760 cat >>$CONFIG_STATUS <<\_ACEOF
23761 ## --------------------- ##
23762 ## M4sh Initialization. ##
23763 ## --------------------- ##
23764
23765 # Be more Bourne compatible
23766 DUALCASE=1; export DUALCASE # for MKS sh
23767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23768 emulate sh
23769 NULLCMD=:
23770 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23771 # is contrary to our usage. Disable this feature.
23772 alias -g '${1+"$@"}'='"$@"'
23773 setopt NO_GLOB_SUBST
23774 else
23775 case `(set -o) 2>/dev/null` in
23776 *posix*) set -o posix ;;
23777 esac
23778
23779 fi
23780
23781
23782
23783
23784 # PATH needs CR
23785 # Avoid depending upon Character Ranges.
23786 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23787 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23788 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23789 as_cr_digits='0123456789'
23790 as_cr_alnum=$as_cr_Letters$as_cr_digits
23791
23792 # The user is always right.
23793 if test "${PATH_SEPARATOR+set}" != set; then
23794 echo "#! /bin/sh" >conf$$.sh
23795 echo "exit 0" >>conf$$.sh
23796 chmod +x conf$$.sh
23797 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23798 PATH_SEPARATOR=';'
23799 else
23800 PATH_SEPARATOR=:
23801 fi
23802 rm -f conf$$.sh
23803 fi
23804
23805 # Support unset when possible.
23806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23807 as_unset=unset
23808 else
23809 as_unset=false
23810 fi
23811
23812
23813 # IFS
23814 # We need space, tab and new line, in precisely that order. Quoting is
23815 # there to prevent editors from complaining about space-tab.
23816 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23817 # splitting by setting IFS to empty value.)
23818 as_nl='
23819 '
23820 IFS=" "" $as_nl"
23821
23822 # Find who we are. Look in the path if we contain no directory separator.
23823 case $0 in
23824 *[\\/]* ) as_myself=$0 ;;
23825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23826 for as_dir in $PATH
23827 do
23828 IFS=$as_save_IFS
23829 test -z "$as_dir" && as_dir=.
23830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23831 done
23832 IFS=$as_save_IFS
23833
23834 ;;
23835 esac
23836 # We did not find ourselves, most probably we were run as `sh COMMAND'
23837 # in which case we are not to be found in the path.
23838 if test "x$as_myself" = x; then
23839 as_myself=$0
23840 fi
23841 if test ! -f "$as_myself"; then
23842 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23843 { (exit 1); exit 1; }
23844 fi
23845
23846 # Work around bugs in pre-3.0 UWIN ksh.
23847 for as_var in ENV MAIL MAILPATH
23848 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23849 done
23850 PS1='$ '
23851 PS2='> '
23852 PS4='+ '
23853
23854 # NLS nuisances.
23855 for as_var in \
23856 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23857 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23858 LC_TELEPHONE LC_TIME
23859 do
23860 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23861 eval $as_var=C; export $as_var
23862 else
23863 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23864 fi
23865 done
23866
23867 # Required to use basename.
23868 if expr a : '\(a\)' >/dev/null 2>&1 &&
23869 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23870 as_expr=expr
23871 else
23872 as_expr=false
23873 fi
23874
23875 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23876 as_basename=basename
23877 else
23878 as_basename=false
23879 fi
23880
23881
23882 # Name of the executable.
23883 as_me=`$as_basename -- "$0" ||
23884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23885 X"$0" : 'X\(//\)$' \| \
23886 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23887 echo X/"$0" |
23888 sed '/^.*\/\([^/][^/]*\)\/*$/{
23889 s//\1/
23890 q
23891 }
23892 /^X\/\(\/\/\)$/{
23893 s//\1/
23894 q
23895 }
23896 /^X\/\(\/\).*/{
23897 s//\1/
23898 q
23899 }
23900 s/.*/./; q'`
23901
23902 # CDPATH.
23903 $as_unset CDPATH
23904
23905
23906
23907 as_lineno_1=$LINENO
23908 as_lineno_2=$LINENO
23909 test "x$as_lineno_1" != "x$as_lineno_2" &&
23910 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23911
23912 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23913 # uniformly replaced by the line number. The first 'sed' inserts a
23914 # line-number line after each line using $LINENO; the second 'sed'
23915 # does the real work. The second script uses 'N' to pair each
23916 # line-number line with the line containing $LINENO, and appends
23917 # trailing '-' during substitution so that $LINENO is not a special
23918 # case at line end.
23919 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23920 # scripts with optimization help from Paolo Bonzini. Blame Lee
23921 # E. McMahon (1931-1989) for sed's syntax. :-)
23922 sed -n '
23923 p
23924 /[$]LINENO/=
23925 ' <$as_myself |
23926 sed '
23927 s/[$]LINENO.*/&-/
23928 t lineno
23929 b
23930 :lineno
23931 N
23932 :loop
23933 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23934 t loop
23935 s/-\n.*//
23936 ' >$as_me.lineno &&
23937 chmod +x "$as_me.lineno" ||
23938 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23939 { (exit 1); exit 1; }; }
23940
23941 # Don't try to exec as it changes $[0], causing all sort of problems
23942 # (the dirname of $[0] is not the place where we might find the
23943 # original and so on. Autoconf is especially sensitive to this).
23944 . "./$as_me.lineno"
23945 # Exit status is that of the last command.
23946 exit
23947 }
23948
23949
23950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23951 as_dirname=dirname
23952 else
23953 as_dirname=false
23954 fi
23955
23956 ECHO_C= ECHO_N= ECHO_T=
23957 case `echo -n x` in
23958 -n*)
23959 case `echo 'x\c'` in
23960 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23961 *) ECHO_C='\c';;
23962 esac;;
23963 *)
23964 ECHO_N='-n';;
23965 esac
23966
23967 if expr a : '\(a\)' >/dev/null 2>&1 &&
23968 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23969 as_expr=expr
23970 else
23971 as_expr=false
23972 fi
23973
23974 rm -f conf$$ conf$$.exe conf$$.file
23975 if test -d conf$$.dir; then
23976 rm -f conf$$.dir/conf$$.file
23977 else
23978 rm -f conf$$.dir
23979 mkdir conf$$.dir
23980 fi
23981 echo >conf$$.file
23982 if ln -s conf$$.file conf$$ 2>/dev/null; then
23983 as_ln_s='ln -s'
23984 # ... but there are two gotchas:
23985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23987 # In both cases, we have to default to `cp -p'.
23988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23989 as_ln_s='cp -p'
23990 elif ln conf$$.file conf$$ 2>/dev/null; then
23991 as_ln_s=ln
23992 else
23993 as_ln_s='cp -p'
23994 fi
23995 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23996 rmdir conf$$.dir 2>/dev/null
23997
23998 if mkdir -p . 2>/dev/null; then
23999 as_mkdir_p=:
24000 else
24001 test -d ./-p && rmdir ./-p
24002 as_mkdir_p=false
24003 fi
24004
24005 if test -x / >/dev/null 2>&1; then
24006 as_test_x='test -x'
24007 else
24008 if ls -dL / >/dev/null 2>&1; then
24009 as_ls_L_option=L
24010 else
24011 as_ls_L_option=
24012 fi
24013 as_test_x='
24014 eval sh -c '\''
24015 if test -d "$1"; then
24016 test -d "$1/.";
24017 else
24018 case $1 in
24019 -*)set "./$1";;
24020 esac;
24021 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24022 ???[sx]*):;;*)false;;esac;fi
24023 '\'' sh
24024 '
24025 fi
24026 as_executable_p=$as_test_x
24027
24028 # Sed expression to map a string onto a valid CPP name.
24029 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24030
24031 # Sed expression to map a string onto a valid variable name.
24032 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24033
24034
24035 exec 6>&1
24036
24037 # Save the log message, to keep $[0] and so on meaningful, and to
24038 # report actual input values of CONFIG_FILES etc. instead of their
24039 # values after options handling.
24040 ac_log="
24041 This file was extended by $as_me, which was
24042 generated by GNU Autoconf 2.61. Invocation command line was
24043
24044 CONFIG_FILES = $CONFIG_FILES
24045 CONFIG_HEADERS = $CONFIG_HEADERS
24046 CONFIG_LINKS = $CONFIG_LINKS
24047 CONFIG_COMMANDS = $CONFIG_COMMANDS
24048 $ $0 $@
24049
24050 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24051 "
24052
24053 _ACEOF
24054
24055 cat >>$CONFIG_STATUS <<_ACEOF
24056 # Files that config.status was made for.
24057 config_files="$ac_config_files"
24058 config_headers="$ac_config_headers"
24059 config_commands="$ac_config_commands"
24060
24061 _ACEOF
24062
24063 cat >>$CONFIG_STATUS <<\_ACEOF
24064 ac_cs_usage="\
24065 \`$as_me' instantiates files from templates according to the
24066 current configuration.
24067
24068 Usage: $0 [OPTIONS] [FILE]...
24069
24070 -h, --help print this help, then exit
24071 -V, --version print version number and configuration settings, then exit
24072 -q, --quiet do not print progress messages
24073 -d, --debug don't remove temporary files
24074 --recheck update $as_me by reconfiguring in the same conditions
24075 --file=FILE[:TEMPLATE]
24076 instantiate the configuration file FILE
24077 --header=FILE[:TEMPLATE]
24078 instantiate the configuration header FILE
24079
24080 Configuration files:
24081 $config_files
24082
24083 Configuration headers:
24084 $config_headers
24085
24086 Configuration commands:
24087 $config_commands
24088
24089 Report bugs to <bug-autoconf (at] gnu.org>."
24090
24091 _ACEOF
24092 cat >>$CONFIG_STATUS <<_ACEOF
24093 ac_cs_version="\\
24094 config.status
24095 configured by $0, generated by GNU Autoconf 2.61,
24096 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24097
24098 Copyright (C) 2006 Free Software Foundation, Inc.
24099 This config.status script is free software; the Free Software Foundation
24100 gives unlimited permission to copy, distribute and modify it."
24101
24102 ac_pwd='$ac_pwd'
24103 srcdir='$srcdir'
24104 INSTALL='$INSTALL'
24105 _ACEOF
24106
24107 cat >>$CONFIG_STATUS <<\_ACEOF
24108 # If no file are specified by the user, then we need to provide default
24109 # value. By we need to know if files were specified by the user.
24110 ac_need_defaults=:
24111 while test $# != 0
24112 do
24113 case $1 in
24114 --*=*)
24115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24117 ac_shift=:
24118 ;;
24119 *)
24120 ac_option=$1
24121 ac_optarg=$2
24122 ac_shift=shift
24123 ;;
24124 esac
24125
24126 case $ac_option in
24127 # Handling of the options.
24128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24129 ac_cs_recheck=: ;;
24130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24131 echo "$ac_cs_version"; exit ;;
24132 --debug | --debu | --deb | --de | --d | -d )
24133 debug=: ;;
24134 --file | --fil | --fi | --f )
24135 $ac_shift
24136 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24137 ac_need_defaults=false;;
24138 --header | --heade | --head | --hea )
24139 $ac_shift
24140 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24141 ac_need_defaults=false;;
24142 --he | --h)
24143 # Conflict between --help and --header
24144 { echo "$as_me: error: ambiguous option: $1
24145 Try \`$0 --help' for more information." >&2
24146 { (exit 1); exit 1; }; };;
24147 --help | --hel | -h )
24148 echo "$ac_cs_usage"; exit ;;
24149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24150 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24151 ac_cs_silent=: ;;
24152
24153 # This is an error.
24154 -*) { echo "$as_me: error: unrecognized option: $1
24155 Try \`$0 --help' for more information." >&2
24156 { (exit 1); exit 1; }; } ;;
24157
24158 *) ac_config_targets="$ac_config_targets $1"
24159 ac_need_defaults=false ;;
24160
24161 esac
24162 shift
24163 done
24164
24165 ac_configure_extra_args=
24166
24167 if $ac_cs_silent; then
24168 exec 6>/dev/null
24169 ac_configure_extra_args="$ac_configure_extra_args --silent"
24170 fi
24171
24172 _ACEOF
24173 cat >>$CONFIG_STATUS <<_ACEOF
24174 if \$ac_cs_recheck; then
24175 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24176 CONFIG_SHELL=$SHELL
24177 export CONFIG_SHELL
24178 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24179 fi
24180
24181 _ACEOF
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24183 exec 5>>config.log
24184 {
24185 echo
24186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24187 ## Running $as_me. ##
24188 _ASBOX
24189 echo "$ac_log"
24190 } >&5
24191
24192 _ACEOF
24193 cat >>$CONFIG_STATUS <<_ACEOF
24194 #
24195 # INIT-COMMANDS
24196 #
24197 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24198
24199 _ACEOF
24200
24201 cat >>$CONFIG_STATUS <<\_ACEOF
24202
24203 # Handling of arguments.
24204 for ac_config_target in $ac_config_targets
24205 do
24206 case $ac_config_target in
24207 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24208 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24209 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24210 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
24211 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
24212 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
24213 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
24214 "fc-arch/Makefile") CONFIG_FILES="$CONFIG_FILES fc-arch/Makefile" ;;
24215 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24216 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
24217 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
24218 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
24219 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
24220 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
24221 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24222 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
24223 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
24224 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
24225 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
24226 "fonts.conf") CONFIG_FILES="$CONFIG_FILES fonts.conf" ;;
24227 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
24228
24229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24231 { (exit 1); exit 1; }; };;
24232 esac
24233 done
24234
24235
24236 # If the user did not use the arguments to specify the items to instantiate,
24237 # then the envvar interface is used. Set only those that are not.
24238 # We use the long form for the default assignment because of an extremely
24239 # bizarre bug on SunOS 4.1.3.
24240 if $ac_need_defaults; then
24241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24244 fi
24245
24246 # Have a temporary directory for convenience. Make it in the build tree
24247 # simply because there is no reason against having it here, and in addition,
24248 # creating and moving files from /tmp can sometimes cause problems.
24249 # Hook for its removal unless debugging.
24250 # Note that there is a small window in which the directory will not be cleaned:
24251 # after its creation but before its name has been assigned to `$tmp'.
24252 $debug ||
24253 {
24254 tmp=
24255 trap 'exit_status=$?
24256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24257 ' 0
24258 trap '{ (exit 1); exit 1; }' 1 2 13 15
24259 }
24260 # Create a (secure) tmp directory for tmp files.
24261
24262 {
24263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24264 test -n "$tmp" && test -d "$tmp"
24265 } ||
24266 {
24267 tmp=./conf$$-$RANDOM
24268 (umask 077 && mkdir "$tmp")
24269 } ||
24270 {
24271 echo "$me: cannot create a temporary directory in ." >&2
24272 { (exit 1); exit 1; }
24273 }
24274
24275 #
24276 # Set up the sed scripts for CONFIG_FILES section.
24277 #
24278
24279 # No need to generate the scripts if there are no CONFIG_FILES.
24280 # This happens for instance when ./config.status config.h
24281 if test -n "$CONFIG_FILES"; then
24282
24283 _ACEOF
24284
24285
24286
24287 ac_delim='%!_!# '
24288 for ac_last_try in false false false false false :; do
24289 cat >conf$$subs.sed <<_ACEOF
24290 SHELL!$SHELL$ac_delim
24291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24297 exec_prefix!$exec_prefix$ac_delim
24298 prefix!$prefix$ac_delim
24299 program_transform_name!$program_transform_name$ac_delim
24300 bindir!$bindir$ac_delim
24301 sbindir!$sbindir$ac_delim
24302 libexecdir!$libexecdir$ac_delim
24303 datarootdir!$datarootdir$ac_delim
24304 datadir!$datadir$ac_delim
24305 sysconfdir!$sysconfdir$ac_delim
24306 sharedstatedir!$sharedstatedir$ac_delim
24307 localstatedir!$localstatedir$ac_delim
24308 includedir!$includedir$ac_delim
24309 oldincludedir!$oldincludedir$ac_delim
24310 docdir!$docdir$ac_delim
24311 infodir!$infodir$ac_delim
24312 htmldir!$htmldir$ac_delim
24313 dvidir!$dvidir$ac_delim
24314 pdfdir!$pdfdir$ac_delim
24315 psdir!$psdir$ac_delim
24316 libdir!$libdir$ac_delim
24317 localedir!$localedir$ac_delim
24318 mandir!$mandir$ac_delim
24319 DEFS!$DEFS$ac_delim
24320 ECHO_C!$ECHO_C$ac_delim
24321 ECHO_N!$ECHO_N$ac_delim
24322 ECHO_T!$ECHO_T$ac_delim
24323 LIBS!$LIBS$ac_delim
24324 build_alias!$build_alias$ac_delim
24325 host_alias!$host_alias$ac_delim
24326 target_alias!$target_alias$ac_delim
24327 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24328 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24329 INSTALL_DATA!$INSTALL_DATA$ac_delim
24330 CYGPATH_W!$CYGPATH_W$ac_delim
24331 PACKAGE!$PACKAGE$ac_delim
24332 VERSION!$VERSION$ac_delim
24333 ACLOCAL!$ACLOCAL$ac_delim
24334 AUTOCONF!$AUTOCONF$ac_delim
24335 AUTOMAKE!$AUTOMAKE$ac_delim
24336 AUTOHEADER!$AUTOHEADER$ac_delim
24337 MAKEINFO!$MAKEINFO$ac_delim
24338 install_sh!$install_sh$ac_delim
24339 STRIP!$STRIP$ac_delim
24340 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24341 mkdir_p!$mkdir_p$ac_delim
24342 AWK!$AWK$ac_delim
24343 SET_MAKE!$SET_MAKE$ac_delim
24344 am__leading_dot!$am__leading_dot$ac_delim
24345 AMTAR!$AMTAR$ac_delim
24346 am__tar!$am__tar$ac_delim
24347 am__untar!$am__untar$ac_delim
24348 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24349 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24350 MAINT!$MAINT$ac_delim
24351 LIBT_CURRENT!$LIBT_CURRENT$ac_delim
24352 LIBT_REVISION!$LIBT_REVISION$ac_delim
24353 LIBT_VERSION_INFO!$LIBT_VERSION_INFO$ac_delim
24354 LIBT_CURRENT_MINUS_AGE!$LIBT_CURRENT_MINUS_AGE$ac_delim
24355 CC!$CC$ac_delim
24356 CFLAGS!$CFLAGS$ac_delim
24357 LDFLAGS!$LDFLAGS$ac_delim
24358 CPPFLAGS!$CPPFLAGS$ac_delim
24359 ac_ct_CC!$ac_ct_CC$ac_delim
24360 EXEEXT!$EXEEXT$ac_delim
24361 OBJEXT!$OBJEXT$ac_delim
24362 DEPDIR!$DEPDIR$ac_delim
24363 am__include!$am__include$ac_delim
24364 am__quote!$am__quote$ac_delim
24365 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24366 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24367 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24368 CCDEPMODE!$CCDEPMODE$ac_delim
24369 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24370 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24371 LN_S!$LN_S$ac_delim
24372 build!$build$ac_delim
24373 build_cpu!$build_cpu$ac_delim
24374 build_vendor!$build_vendor$ac_delim
24375 build_os!$build_os$ac_delim
24376 host!$host$ac_delim
24377 host_cpu!$host_cpu$ac_delim
24378 host_vendor!$host_vendor$ac_delim
24379 host_os!$host_os$ac_delim
24380 SED!$SED$ac_delim
24381 GREP!$GREP$ac_delim
24382 EGREP!$EGREP$ac_delim
24383 ECHO!$ECHO$ac_delim
24384 AR!$AR$ac_delim
24385 RANLIB!$RANLIB$ac_delim
24386 DSYMUTIL!$DSYMUTIL$ac_delim
24387 _ACEOF
24388
24389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24390 break
24391 elif $ac_last_try; then
24392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24394 { (exit 1); exit 1; }; }
24395 else
24396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24397 fi
24398 done
24399
24400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24401 if test -n "$ac_eof"; then
24402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24403 ac_eof=`expr $ac_eof + 1`
24404 fi
24405
24406 cat >>$CONFIG_STATUS <<_ACEOF
24407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24409 _ACEOF
24410 sed '
24411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24412 s/^/s,@/; s/!/@,|#_!!_#|/
24413 :n
24414 t n
24415 s/'"$ac_delim"'$/,g/; t
24416 s/$/\\/; p
24417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24418 ' >>$CONFIG_STATUS <conf$$subs.sed
24419 rm -f conf$$subs.sed
24420 cat >>$CONFIG_STATUS <<_ACEOF
24421 CEOF$ac_eof
24422 _ACEOF
24423
24424
24425 ac_delim='%!_!# '
24426 for ac_last_try in false false false false false :; do
24427 cat >conf$$subs.sed <<_ACEOF
24428 NMEDIT!$NMEDIT$ac_delim
24429 DLLTOOL!$DLLTOOL$ac_delim
24430 AS!$AS$ac_delim
24431 OBJDUMP!$OBJDUMP$ac_delim
24432 CPP!$CPP$ac_delim
24433 CXX!$CXX$ac_delim
24434 CXXFLAGS!$CXXFLAGS$ac_delim
24435 ac_ct_CXX!$ac_ct_CXX$ac_delim
24436 CXXDEPMODE!$CXXDEPMODE$ac_delim
24437 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24438 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24439 CXXCPP!$CXXCPP$ac_delim
24440 F77!$F77$ac_delim
24441 FFLAGS!$FFLAGS$ac_delim
24442 ac_ct_F77!$ac_ct_F77$ac_delim
24443 LIBTOOL!$LIBTOOL$ac_delim
24444 DOLT_BASH!$DOLT_BASH$ac_delim
24445 LTCOMPILE!$LTCOMPILE$ac_delim
24446 LTCXXCOMPILE!$LTCXXCOMPILE$ac_delim
24447 OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim
24448 OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim
24449 ms_librarian!$ms_librarian$ac_delim
24450 MS_LIB_AVAILABLE_TRUE!$MS_LIB_AVAILABLE_TRUE$ac_delim
24451 MS_LIB_AVAILABLE_FALSE!$MS_LIB_AVAILABLE_FALSE$ac_delim
24452 WARN_CFLAGS!$WARN_CFLAGS$ac_delim
24453 CROSS_COMPILING_TRUE!$CROSS_COMPILING_TRUE$ac_delim
24454 CROSS_COMPILING_FALSE!$CROSS_COMPILING_FALSE$ac_delim
24455 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
24456 EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
24457 ARCHITECTURE!$ARCHITECTURE$ac_delim
24458 ICONV_LIBS!$ICONV_LIBS$ac_delim
24459 ft_config!$ft_config$ac_delim
24460 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24461 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24462 HAVE_XMLPARSE_H!$HAVE_XMLPARSE_H$ac_delim
24463 HAVE_EXPAT!$HAVE_EXPAT$ac_delim
24464 EXPAT_CFLAGS!$EXPAT_CFLAGS$ac_delim
24465 EXPAT_LIBS!$EXPAT_LIBS$ac_delim
24466 PKG_CONFIG!$PKG_CONFIG$ac_delim
24467 LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim
24468 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
24469 FC_DEFAULT_FONTS!$FC_DEFAULT_FONTS$ac_delim
24470 FC_ADD_FONTS!$FC_ADD_FONTS$ac_delim
24471 FC_FONTPATH!$FC_FONTPATH$ac_delim
24472 fc_cachedir!$fc_cachedir$ac_delim
24473 FC_CACHEDIR!$FC_CACHEDIR$ac_delim
24474 FC_FONTDATE!$FC_FONTDATE$ac_delim
24475 confdir!$confdir$ac_delim
24476 CONFDIR!$CONFDIR$ac_delim
24477 ORTH_FILES!$ORTH_FILES$ac_delim
24478 HASDOCBOOK!$HASDOCBOOK$ac_delim
24479 USEDOCBOOK_TRUE!$USEDOCBOOK_TRUE$ac_delim
24480 USEDOCBOOK_FALSE!$USEDOCBOOK_FALSE$ac_delim
24481 ENABLE_DOCS_TRUE!$ENABLE_DOCS_TRUE$ac_delim
24482 ENABLE_DOCS_FALSE!$ENABLE_DOCS_FALSE$ac_delim
24483 DOCSRC!$DOCSRC$ac_delim
24484 DOCMAN3!$DOCMAN3$ac_delim
24485 DOCDIR!$DOCDIR$ac_delim
24486 LIBOBJS!$LIBOBJS$ac_delim
24487 LTLIBOBJS!$LTLIBOBJS$ac_delim
24488 _ACEOF
24489
24490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
24491 break
24492 elif $ac_last_try; then
24493 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24494 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24495 { (exit 1); exit 1; }; }
24496 else
24497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24498 fi
24499 done
24500
24501 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24502 if test -n "$ac_eof"; then
24503 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24504 ac_eof=`expr $ac_eof + 1`
24505 fi
24506
24507 cat >>$CONFIG_STATUS <<_ACEOF
24508 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24509 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24510 _ACEOF
24511 sed '
24512 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24513 s/^/s,@/; s/!/@,|#_!!_#|/
24514 :n
24515 t n
24516 s/'"$ac_delim"'$/,g/; t
24517 s/$/\\/; p
24518 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24519 ' >>$CONFIG_STATUS <conf$$subs.sed
24520 rm -f conf$$subs.sed
24521 cat >>$CONFIG_STATUS <<_ACEOF
24522 :end
24523 s/|#_!!_#|//g
24524 CEOF$ac_eof
24525 _ACEOF
24526
24527
24528 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24529 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24530 # trailing colons and then remove the whole line if VPATH becomes empty
24531 # (actually we leave an empty line to preserve line numbers).
24532 if test "x$srcdir" = x.; then
24533 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24534 s/:*\$(srcdir):*/:/
24535 s/:*\${srcdir}:*/:/
24536 s/:*@srcdir@:*/:/
24537 s/^\([^=]*=[ ]*\):*/\1/
24538 s/:*$//
24539 s/^[^=]*=[ ]*$//
24540 }'
24541 fi
24542
24543 cat >>$CONFIG_STATUS <<\_ACEOF
24544 fi # test -n "$CONFIG_FILES"
24545
24546
24547 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24548 do
24549 case $ac_tag in
24550 :[FHLC]) ac_mode=$ac_tag; continue;;
24551 esac
24552 case $ac_mode$ac_tag in
24553 :[FHL]*:*);;
24554 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24555 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24556 { (exit 1); exit 1; }; };;
24557 :[FH]-) ac_tag=-:-;;
24558 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24559 esac
24560 ac_save_IFS=$IFS
24561 IFS=:
24562 set x $ac_tag
24563 IFS=$ac_save_IFS
24564 shift
24565 ac_file=$1
24566 shift
24567
24568 case $ac_mode in
24569 :L) ac_source=$1;;
24570 :[FH])
24571 ac_file_inputs=
24572 for ac_f
24573 do
24574 case $ac_f in
24575 -) ac_f="$tmp/stdin";;
24576 *) # Look for the file first in the build tree, then in the source tree
24577 # (if the path is not absolute). The absolute path cannot be DOS-style,
24578 # because $ac_f cannot contain `:'.
24579 test -f "$ac_f" ||
24580 case $ac_f in
24581 [\\/$]*) false;;
24582 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24583 esac ||
24584 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24585 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24586 { (exit 1); exit 1; }; };;
24587 esac
24588 ac_file_inputs="$ac_file_inputs $ac_f"
24589 done
24590
24591 # Let's still pretend it is `configure' which instantiates (i.e., don't
24592 # use $as_me), people would be surprised to read:
24593 # /* config.h. Generated by config.status. */
24594 configure_input="Generated from "`IFS=:
24595 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24596 if test x"$ac_file" != x-; then
24597 configure_input="$ac_file. $configure_input"
24598 { echo "$as_me:$LINENO: creating $ac_file" >&5
24599 echo "$as_me: creating $ac_file" >&6;}
24600 fi
24601
24602 case $ac_tag in
24603 *:-:* | *:-) cat >"$tmp/stdin";;
24604 esac
24605 ;;
24606 esac
24607
24608 ac_dir=`$as_dirname -- "$ac_file" ||
24609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24610 X"$ac_file" : 'X\(//\)[^/]' \| \
24611 X"$ac_file" : 'X\(//\)$' \| \
24612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24613 echo X"$ac_file" |
24614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24615 s//\1/
24616 q
24617 }
24618 /^X\(\/\/\)[^/].*/{
24619 s//\1/
24620 q
24621 }
24622 /^X\(\/\/\)$/{
24623 s//\1/
24624 q
24625 }
24626 /^X\(\/\).*/{
24627 s//\1/
24628 q
24629 }
24630 s/.*/./; q'`
24631 { as_dir="$ac_dir"
24632 case $as_dir in #(
24633 -*) as_dir=./$as_dir;;
24634 esac
24635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24636 as_dirs=
24637 while :; do
24638 case $as_dir in #(
24639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24640 *) as_qdir=$as_dir;;
24641 esac
24642 as_dirs="'$as_qdir' $as_dirs"
24643 as_dir=`$as_dirname -- "$as_dir" ||
24644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24645 X"$as_dir" : 'X\(//\)[^/]' \| \
24646 X"$as_dir" : 'X\(//\)$' \| \
24647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24648 echo X"$as_dir" |
24649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24650 s//\1/
24651 q
24652 }
24653 /^X\(\/\/\)[^/].*/{
24654 s//\1/
24655 q
24656 }
24657 /^X\(\/\/\)$/{
24658 s//\1/
24659 q
24660 }
24661 /^X\(\/\).*/{
24662 s//\1/
24663 q
24664 }
24665 s/.*/./; q'`
24666 test -d "$as_dir" && break
24667 done
24668 test -z "$as_dirs" || eval "mkdir $as_dirs"
24669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24671 { (exit 1); exit 1; }; }; }
24672 ac_builddir=.
24673
24674 case "$ac_dir" in
24675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24676 *)
24677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24678 # A ".." for each directory in $ac_dir_suffix.
24679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24680 case $ac_top_builddir_sub in
24681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24683 esac ;;
24684 esac
24685 ac_abs_top_builddir=$ac_pwd
24686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24687 # for backward compatibility:
24688 ac_top_builddir=$ac_top_build_prefix
24689
24690 case $srcdir in
24691 .) # We are building in place.
24692 ac_srcdir=.
24693 ac_top_srcdir=$ac_top_builddir_sub
24694 ac_abs_top_srcdir=$ac_pwd ;;
24695 [\\/]* | ?:[\\/]* ) # Absolute name.
24696 ac_srcdir=$srcdir$ac_dir_suffix;
24697 ac_top_srcdir=$srcdir
24698 ac_abs_top_srcdir=$srcdir ;;
24699 *) # Relative name.
24700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24701 ac_top_srcdir=$ac_top_build_prefix$srcdir
24702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24703 esac
24704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24705
24706
24707 case $ac_mode in
24708 :F)
24709 #
24710 # CONFIG_FILE
24711 #
24712
24713 case $INSTALL in
24714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24715 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24716 esac
24717 _ACEOF
24718
24719 cat >>$CONFIG_STATUS <<\_ACEOF
24720 # If the template does not know about datarootdir, expand it.
24721 # FIXME: This hack should be removed a few years after 2.60.
24722 ac_datarootdir_hack=; ac_datarootdir_seen=
24723
24724 case `sed -n '/datarootdir/ {
24725 p
24726 q
24727 }
24728 /@datadir@/p
24729 /@docdir@/p
24730 /@infodir@/p
24731 /@localedir@/p
24732 /@mandir@/p
24733 ' $ac_file_inputs` in
24734 *datarootdir*) ac_datarootdir_seen=yes;;
24735 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24736 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24737 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24738 _ACEOF
24739 cat >>$CONFIG_STATUS <<_ACEOF
24740 ac_datarootdir_hack='
24741 s&@datadir@&$datadir&g
24742 s&@docdir@&$docdir&g
24743 s&@infodir@&$infodir&g
24744 s&@localedir@&$localedir&g
24745 s&@mandir@&$mandir&g
24746 s&\\\${datarootdir}&$datarootdir&g' ;;
24747 esac
24748 _ACEOF
24749
24750 # Neutralize VPATH when `$srcdir' = `.'.
24751 # Shell code in configure.ac might set extrasub.
24752 # FIXME: do we really want to maintain this feature?
24753 cat >>$CONFIG_STATUS <<_ACEOF
24754 sed "$ac_vpsub
24755 $extrasub
24756 _ACEOF
24757 cat >>$CONFIG_STATUS <<\_ACEOF
24758 :t
24759 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24760 s&@configure_input@&$configure_input&;t t
24761 s&@top_builddir@&$ac_top_builddir_sub&;t t
24762 s&@srcdir@&$ac_srcdir&;t t
24763 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24764 s&@top_srcdir@&$ac_top_srcdir&;t t
24765 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24766 s&@builddir@&$ac_builddir&;t t
24767 s&@abs_builddir@&$ac_abs_builddir&;t t
24768 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24769 s&@INSTALL@&$ac_INSTALL&;t t
24770 $ac_datarootdir_hack
24771 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24772
24773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24774 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24776 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24777 which seems to be undefined. Please make sure it is defined." >&5
24778 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24779 which seems to be undefined. Please make sure it is defined." >&2;}
24780
24781 rm -f "$tmp/stdin"
24782 case $ac_file in
24783 -) cat "$tmp/out"; rm -f "$tmp/out";;
24784 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24785 esac
24786 ;;
24787 :H)
24788 #
24789 # CONFIG_HEADER
24790 #
24791 _ACEOF
24792
24793 # Transform confdefs.h into a sed script `conftest.defines', that
24794 # substitutes the proper values into config.h.in to produce config.h.
24795 rm -f conftest.defines conftest.tail
24796 # First, append a space to every undef/define line, to ease matching.
24797 echo 's/$/ /' >conftest.defines
24798 # Then, protect against being on the right side of a sed subst, or in
24799 # an unquoted here document, in config.status. If some macros were
24800 # called several times there might be several #defines for the same
24801 # symbol, which is useless. But do not sort them, since the last
24802 # AC_DEFINE must be honored.
24803 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24804 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24805 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24806 # PARAMS is the parameter list in the macro definition--in most cases, it's
24807 # just an empty string.
24808 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24809 ac_dB='\\)[ (].*,\\1define\\2'
24810 ac_dC=' '
24811 ac_dD=' ,'
24812
24813 uniq confdefs.h |
24814 sed -n '
24815 t rset
24816 :rset
24817 s/^[ ]*#[ ]*define[ ][ ]*//
24818 t ok
24819 d
24820 :ok
24821 s/[\\&,]/\\&/g
24822 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24823 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24824 ' >>conftest.defines
24825
24826 # Remove the space that was appended to ease matching.
24827 # Then replace #undef with comments. This is necessary, for
24828 # example, in the case of _POSIX_SOURCE, which is predefined and required
24829 # on some systems where configure will not decide to define it.
24830 # (The regexp can be short, since the line contains either #define or #undef.)
24831 echo 's/ $//
24832 s,^[ #]*u.*,/* & */,' >>conftest.defines
24833
24834 # Break up conftest.defines:
24835 ac_max_sed_lines=50
24836
24837 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24838 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24839 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24840 # et cetera.
24841 ac_in='$ac_file_inputs'
24842 ac_out='"$tmp/out1"'
24843 ac_nxt='"$tmp/out2"'
24844
24845 while :
24846 do
24847 # Write a here document:
24848 cat >>$CONFIG_STATUS <<_ACEOF
24849 # First, check the format of the line:
24850 cat >"\$tmp/defines.sed" <<\\CEOF
24851 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24852 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24853 b
24854 :def
24855 _ACEOF
24856 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24857 echo 'CEOF
24858 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24859 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24860 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24861 grep . conftest.tail >/dev/null || break
24862 rm -f conftest.defines
24863 mv conftest.tail conftest.defines
24864 done
24865 rm -f conftest.defines conftest.tail
24866
24867 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24868 cat >>$CONFIG_STATUS <<\_ACEOF
24869 if test x"$ac_file" != x-; then
24870 echo "/* $configure_input */" >"$tmp/config.h"
24871 cat "$ac_result" >>"$tmp/config.h"
24872 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24873 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24874 echo "$as_me: $ac_file is unchanged" >&6;}
24875 else
24876 rm -f $ac_file
24877 mv "$tmp/config.h" $ac_file
24878 fi
24879 else
24880 echo "/* $configure_input */"
24881 cat "$ac_result"
24882 fi
24883 rm -f "$tmp/out12"
24884 # Compute $ac_file's index in $config_headers.
24885 _am_stamp_count=1
24886 for _am_header in $config_headers :; do
24887 case $_am_header in
24888 $ac_file | $ac_file:* )
24889 break ;;
24890 * )
24891 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24892 esac
24893 done
24894 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24895 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24896 X$ac_file : 'X\(//\)[^/]' \| \
24897 X$ac_file : 'X\(//\)$' \| \
24898 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24899 echo X$ac_file |
24900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24901 s//\1/
24902 q
24903 }
24904 /^X\(\/\/\)[^/].*/{
24905 s//\1/
24906 q
24907 }
24908 /^X\(\/\/\)$/{
24909 s//\1/
24910 q
24911 }
24912 /^X\(\/\).*/{
24913 s//\1/
24914 q
24915 }
24916 s/.*/./; q'`/stamp-h$_am_stamp_count
24917 ;;
24918
24919 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24920 echo "$as_me: executing $ac_file commands" >&6;}
24921 ;;
24922 esac
24923
24924
24925 case $ac_file$ac_mode in
24926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24927 # Strip MF so we end up with the name of the file.
24928 mf=`echo "$mf" | sed -e 's/:.*$//'`
24929 # Check whether this is an Automake generated Makefile or not.
24930 # We used to match only the files named `Makefile.in', but
24931 # some people rename them; so instead we look at the file content.
24932 # Grep'ing the first line is not enough: some people post-process
24933 # each Makefile.in and add a new line on top of each file to say so.
24934 # So let's grep whole file.
24935 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24936 dirpart=`$as_dirname -- "$mf" ||
24937 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24938 X"$mf" : 'X\(//\)[^/]' \| \
24939 X"$mf" : 'X\(//\)$' \| \
24940 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24941 echo X"$mf" |
24942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24943 s//\1/
24944 q
24945 }
24946 /^X\(\/\/\)[^/].*/{
24947 s//\1/
24948 q
24949 }
24950 /^X\(\/\/\)$/{
24951 s//\1/
24952 q
24953 }
24954 /^X\(\/\).*/{
24955 s//\1/
24956 q
24957 }
24958 s/.*/./; q'`
24959 else
24960 continue
24961 fi
24962 # Extract the definition of DEPDIR, am__include, and am__quote
24963 # from the Makefile without running `make'.
24964 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24965 test -z "$DEPDIR" && continue
24966 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24967 test -z "am__include" && continue
24968 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24969 # When using ansi2knr, U may be empty or an underscore; expand it
24970 U=`sed -n 's/^U = //p' < "$mf"`
24971 # Find all dependency output files, they are included files with
24972 # $(DEPDIR) in their names. We invoke sed twice because it is the
24973 # simplest approach to changing $(DEPDIR) to its actual value in the
24974 # expansion.
24975 for file in `sed -n "
24976 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24977 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24978 # Make sure the directory exists.
24979 test -f "$dirpart/$file" && continue
24980 fdir=`$as_dirname -- "$file" ||
24981 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24982 X"$file" : 'X\(//\)[^/]' \| \
24983 X"$file" : 'X\(//\)$' \| \
24984 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24985 echo X"$file" |
24986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24987 s//\1/
24988 q
24989 }
24990 /^X\(\/\/\)[^/].*/{
24991 s//\1/
24992 q
24993 }
24994 /^X\(\/\/\)$/{
24995 s//\1/
24996 q
24997 }
24998 /^X\(\/\).*/{
24999 s//\1/
25000 q
25001 }
25002 s/.*/./; q'`
25003 { as_dir=$dirpart/$fdir
25004 case $as_dir in #(
25005 -*) as_dir=./$as_dir;;
25006 esac
25007 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25008 as_dirs=
25009 while :; do
25010 case $as_dir in #(
25011 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25012 *) as_qdir=$as_dir;;
25013 esac
25014 as_dirs="'$as_qdir' $as_dirs"
25015 as_dir=`$as_dirname -- "$as_dir" ||
25016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25017 X"$as_dir" : 'X\(//\)[^/]' \| \
25018 X"$as_dir" : 'X\(//\)$' \| \
25019 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25020 echo X"$as_dir" |
25021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25022 s//\1/
25023 q
25024 }
25025 /^X\(\/\/\)[^/].*/{
25026 s//\1/
25027 q
25028 }
25029 /^X\(\/\/\)$/{
25030 s//\1/
25031 q
25032 }
25033 /^X\(\/\).*/{
25034 s//\1/
25035 q
25036 }
25037 s/.*/./; q'`
25038 test -d "$as_dir" && break
25039 done
25040 test -z "$as_dirs" || eval "mkdir $as_dirs"
25041 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25042 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25043 { (exit 1); exit 1; }; }; }
25044 # echo "creating $dirpart/$file"
25045 echo '# dummy' > "$dirpart/$file"
25046 done
25047 done
25048 ;;
25049
25050 esac
25051 done # for ac_tag
25052
25053
25054 { (exit 0); exit 0; }
25055 _ACEOF
25056 chmod +x $CONFIG_STATUS
25057 ac_clean_files=$ac_clean_files_save
25058
25059
25060 # configure is writing to config.log, and then calls config.status.
25061 # config.status does its own redirection, appending to config.log.
25062 # Unfortunately, on DOS this fails, as config.log is still kept open
25063 # by configure, so config.status won't be able to write to it; its
25064 # output is simply discarded. So we exec the FD to /dev/null,
25065 # effectively closing config.log, so it can be properly (re)opened and
25066 # appended to by config.status. When coming back to configure, we
25067 # need to make the FD available again.
25068 if test "$no_create" != yes; then
25069 ac_cs_success=:
25070 ac_config_status_args=
25071 test "$silent" = yes &&
25072 ac_config_status_args="$ac_config_status_args --quiet"
25073 exec 5>/dev/null
25074 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25075 exec 5>>config.log
25076 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25077 # would make configure fail if this is the last instruction.
25078 $ac_cs_success || { (exit 1); exit 1; }
25079 fi
25080
25081