Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/libxslt/configure

Issue 661058: libxslt update (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/libxslt/config.h.in ('k') | third_party/libxslt/configure.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 te st'; 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 "$e cho_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="libxslt/xslt.c"
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 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 LIBXSLT_MAJOR_VERSION
816 LIBXSLT_MINOR_VERSION
817 LIBXSLT_MICRO_VERSION
818 LIBXSLT_VERSION
819 LIBXSLT_VERSION_INFO
820 LIBXSLT_VERSION_NUMBER
821 LIBXSLT_VERSION_EXTRA
822 LIBXSLT_MAJOR_MINOR_VERSION
823 LIBEXSLT_MAJOR_VERSION
824 LIBEXSLT_MINOR_VERSION
825 LIBEXSLT_MICRO_VERSION
826 LIBEXSLT_VERSION
827 LIBEXSLT_VERSION_INFO
828 LIBEXSLT_VERSION_NUMBER
829 LIBEXSLT_VERSION_EXTRA
830 INSTALL_PROGRAM
831 INSTALL_SCRIPT
832 INSTALL_DATA
833 am__isrc
834 CYGPATH_W
835 PACKAGE
836 VERSION
837 ACLOCAL
838 AUTOCONF
839 AUTOMAKE
840 AUTOHEADER
841 MAKEINFO
842 install_sh
843 STRIP
844 INSTALL_STRIP_PROGRAM
845 mkdir_p
846 AWK
847 SET_MAKE
848 am__leading_dot
849 AMTAR
850 am__tar
851 am__untar
852 HTML_DIR
853 CC
854 CFLAGS
855 LDFLAGS
856 CPPFLAGS
857 ac_ct_CC
858 EXEEXT
859 OBJEXT
860 DEPDIR
861 am__include
862 am__quote
863 AMDEP_TRUE
864 AMDEP_FALSE
865 AMDEPBACKSLASH
866 CCDEPMODE
867 am__fastdepCC_TRUE
868 am__fastdepCC_FALSE
869 CPP
870 RM
871 MV
872 TAR
873 GREP
874 EGREP
875 SED
876 LN_S
877 ECHO
878 AR
879 RANLIB
880 CXX
881 CXXFLAGS
882 ac_ct_CXX
883 CXXDEPMODE
884 am__fastdepCXX_TRUE
885 am__fastdepCXX_FALSE
886 CXXCPP
887 F77
888 FFLAGS
889 ac_ct_F77
890 LIBTOOL
891 WITH_TRIO
892 PERL
893 WITH_PERL_TRUE
894 WITH_PERL_FALSE
895 PYTHON
896 WITH_PYTHON_TRUE
897 WITH_PYTHON_FALSE
898 pythondir
899 PYTHON_SUBDIR
900 LIBGCRYPT_CONFIG
901 WITH_CRYPTO
902 LIBGCRYPT_CFLAGS
903 LIBGCRYPT_LIBS
904 STATIC_BINARIES
905 WITH_XSLT_DEBUG
906 WITH_MEM_DEBUG
907 WITH_DEBUGGER
908 LIBXML_SRC
909 LIBXML_REQUIRED_VERSION
910 WITH_MODULES
911 WITH_MODULES_TRUE
912 WITH_MODULES_FALSE
913 LIBXSLT_DEFAULT_PLUGINS_PATH
914 WIN32_EXTRA_LIBADD
915 WIN32_EXTRA_LDFLAGS
916 XSLTPROCDV
917 PYTHONSODV
918 XML_CONFIG
919 LIBXML_LIBS
920 LIBXML_CFLAGS
921 PYTHON_VERSION
922 PYTHON_INCLUDES
923 PYTHON_SITE_PACKAGES
924 XSLT_LIBDIR
925 XSLT_INCLUDEDIR
926 XSLT_LIBS
927 EXSLT_LIBDIR
928 EXSLT_INCLUDEDIR
929 EXSLT_LIBS
930 EXTRA_LIBS
931 M_LIBS
932 RELDATE
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936 ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 CC
940 CFLAGS
941 LDFLAGS
942 LIBS
943 CPPFLAGS
944 CPP
945 CXX
946 CXXFLAGS
947 CCC
948 CXXCPP
949 F77
950 FFLAGS'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
958 cache_file=/dev/null
959 exec_prefix=NONE
960 no_create=
961 no_recursion=
962 prefix=NONE
963 program_prefix=NONE
964 program_suffix=NONE
965 program_transform_name=s,x,x,
966 silent=
967 site=
968 srcdir=
969 verbose=
970 x_includes=NONE
971 x_libraries=NONE
972
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 includedir='${prefix}/include'
988 oldincludedir='/usr/include'
989 docdir='${datarootdir}/doc/${PACKAGE}'
990 infodir='${datarootdir}/info'
991 htmldir='${docdir}'
992 dvidir='${docdir}'
993 pdfdir='${docdir}'
994 psdir='${docdir}'
995 libdir='${exec_prefix}/lib'
996 localedir='${datarootdir}/locale'
997 mandir='${datarootdir}/man'
998
999 ac_prev=
1000 ac_dashdash=
1001 for ac_option
1002 do
1003 # If the previous option needs an argument, assign it.
1004 if test -n "$ac_prev"; then
1005 eval $ac_prev=\$ac_option
1006 ac_prev=
1007 continue
1008 fi
1009
1010 case $ac_option in
1011 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 *) ac_optarg=yes ;;
1013 esac
1014
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1016
1017 case $ac_dashdash$ac_option in
1018 --)
1019 ac_dashdash=yes ;;
1020
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1022 ac_prev=bindir ;;
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1025
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1030
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1037
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1040
1041 -datadir | --datadir | --datadi | --datad)
1042 ac_prev=datadir ;;
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1045
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1052
1053 -disable-* | --disable-*)
1054 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1060 eval enable_$ac_feature=no ;;
1061
1062 -docdir | --docdir | --docdi | --doc | --do)
1063 ac_prev=docdir ;;
1064 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1065 docdir=$ac_optarg ;;
1066
1067 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 ac_prev=dvidir ;;
1069 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1070 dvidir=$ac_optarg ;;
1071
1072 -enable-* | --enable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_$ac_feature=\$ac_optarg ;;
1080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1100
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1105
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1135
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1152
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1173
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1209
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
1224 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225 ac_prev=sbindir ;;
1226 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227 | --sbi=* | --sb=*)
1228 sbindir=$ac_optarg ;;
1229
1230 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232 | --sharedst | --shareds | --shared | --share | --shar \
1233 | --sha | --sh)
1234 ac_prev=sharedstatedir ;;
1235 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238 | --sha=* | --sh=*)
1239 sharedstatedir=$ac_optarg ;;
1240
1241 -site | --site | --sit)
1242 ac_prev=site ;;
1243 -site=* | --site=* | --sit=*)
1244 site=$ac_optarg ;;
1245
1246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247 ac_prev=srcdir ;;
1248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249 srcdir=$ac_optarg ;;
1250
1251 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252 | --syscon | --sysco | --sysc | --sys | --sy)
1253 ac_prev=sysconfdir ;;
1254 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256 sysconfdir=$ac_optarg ;;
1257
1258 -target | --target | --targe | --targ | --tar | --ta | --t)
1259 ac_prev=target_alias ;;
1260 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261 target_alias=$ac_optarg ;;
1262
1263 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264 verbose=yes ;;
1265
1266 -version | --version | --versio | --versi | --vers | -V)
1267 ac_init_version=: ;;
1268
1269 -with-* | --with-*)
1270 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 { echo "$as_me: error: invalid package name: $ac_package" >&2
1274 { (exit 1); exit 1; }; }
1275 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276 eval with_$ac_package=\$ac_optarg ;;
1277
1278 -without-* | --without-*)
1279 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
1284 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1285 eval with_$ac_package=no ;;
1286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) { echo "$as_me: error: unrecognized option: $ac_option
1306 Try \`$0 --help' for more information." >&2
1307 { (exit 1); exit 1; }; }
1308 ;;
1309
1310 *=*)
1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1314 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1315 { (exit 1); exit 1; }; }
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opti on}
1325 ;;
1326
1327 esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 { echo "$as_me: error: missing argument to $ac_option" >&2
1333 { (exit 1); exit 1; }; }
1334 fi
1335
1336 # Be sure to have absolute directory names.
1337 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1338 datadir sysconfdir sharedstatedir localstatedir includedir \
1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1340 libdir localedir mandir
1341 do
1342 eval ac_val=\$$ac_var
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_ val" >&2
1348 { (exit 1); exit 1; }; }
1349 done
1350
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1354 build=$build_alias
1355 host=$host_alias
1356 target=$target_alias
1357
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --ho st.
1363 If a cross compiler is detected then cross compile mode will be used." >&2
1364 elif test "x$build_alias" != "x$host_alias"; then
1365 cross_compiling=yes
1366 fi
1367 fi
1368
1369 ac_tool_prefix=
1370 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1371
1372 test "$silent" = yes && exec 6>/dev/null
1373
1374
1375 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1376 ac_ls_di=`ls -di .` &&
1377 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1378 { echo "$as_me: error: Working directory cannot be determined" >&2
1379 { (exit 1); exit 1; }; }
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 { echo "$as_me: error: pwd does not report name of working directory" >&2
1382 { (exit 1); exit 1; }; }
1383
1384
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir=`$as_dirname -- "$0" ||
1390 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$0" : 'X\(//\)[^/]' \| \
1392 X"$0" : 'X\(//\)$' \| \
1393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1394 echo X"$0" |
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)[^/].*/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\).*/{
1408 s//\1/
1409 q
1410 }
1411 s/.*/./; q'`
1412 srcdir=$ac_confdir
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 srcdir=..
1415 fi
1416 else
1417 ac_srcdir_defaulted=no
1418 fi
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1422 { (exit 1); exit 1; }; }
1423 fi
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $a c_msg" >&2
1427 { (exit 1); exit 1; }; }
1428 pwd)`
1429 # When building in place, set srcdir=.
1430 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 srcdir=.
1432 fi
1433 # Remove unnecessary trailing slashes from srcdir.
1434 # Double slashes in file names in object file debugging info
1435 # mess up M-x gdb in Emacs.
1436 case $srcdir in
1437 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 esac
1439 for ac_var in $ac_precious_vars; do
1440 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_${ac_var}_value=\$${ac_var}
1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444 done
1445
1446 #
1447 # Report the --help message.
1448 #
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1452 cat <<_ACEOF
1453 \`configure' configures this package to adapt to many kinds of systems.
1454
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1456
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1459
1460 Defaults for the options are specified in brackets.
1461
1462 Configuration:
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 [PREFIX]
1478
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1483
1484 For better control, use the options below.
1485
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1506 _ACEOF
1507
1508 cat <<\_ACEOF
1509
1510 Program names:
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
1515 System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 _ACEOF
1519 fi
1520
1521 if test -n "$ac_init_help"; then
1522
1523 cat <<\_ACEOF
1524
1525 Optional Features:
1526 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1527 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-shared[=PKGS] build shared libraries [default=yes]
1531 --enable-static[=PKGS] build static libraries [default=yes]
1532 --enable-fast-install[=PKGS]
1533 optimize for fast installation [default=yes]
1534 --disable-libtool-lock avoid locking (might break parallel builds)
1535
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-html-dir=PATH path to installed docs
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-pic try to use only PIC/non-PIC objects [default=use
1542 both]
1543 --with-tags[=TAGS] include additional configurations [automatic]
1544 --with-python=DIR Build Python bindings if found
1545 --with-crypto Add crypto support to exslt (on)
1546 --with-debug Add the debugging code (on)
1547 --with-mem-debug Add the memory debugging module (off)
1548 --with-debugger Add the debugging support (on)
1549 --with-libxml-prefix=PFX Specify location of libxml config
1550 --with-libxml-include-prefix=PFX Specify location of libxml headers
1551 --with-libxml-libs-prefix=PFX Specify location of libxml libs
1552 --with-libxml-src=DIR For libxml thats not installed yet (sets al l three above)
1553 --with-plugins Add plugin extension support (on)
1554
1555 Some influential environment variables:
1556 CC C compiler command
1557 CFLAGS C compiler flags
1558 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1559 nonstandard directory <lib dir>
1560 LIBS libraries to pass to the linker, e.g. -l<library>
1561 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1562 you have headers in a nonstandard directory <include dir>
1563 CPP C preprocessor
1564 CXX C++ compiler command
1565 CXXFLAGS C++ compiler flags
1566 CXXCPP C++ preprocessor
1567 F77 Fortran 77 compiler command
1568 FFLAGS Fortran 77 compiler flags
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 _ACEOF
1574 ac_status=$?
1575 fi
1576
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" || continue
1581 ac_builddir=.
1582
1583 case "$ac_dir" in
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585 *)
1586 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 esac ;;
1593 esac
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1598
1599 case $srcdir in
1600 .) # We are building in place.
1601 ac_srcdir=.
1602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
1605 ac_srcdir=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1608 *) # Relative name.
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612 esac
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1623 else
1624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 fi || ac_status=$?
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1627 done
1628 fi
1629
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1632 cat <<\_ACEOF
1633 configure
1634 generated by GNU Autoconf 2.61
1635
1636 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1637 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1638 This configure script is free software; the Free Software Foundation
1639 gives unlimited permission to copy, distribute and modify it.
1640 _ACEOF
1641 exit
1642 fi
1643 cat >config.log <<_ACEOF
1644 This file contains any messages produced by compilers while
1645 running configure, to aid debugging if configure makes a mistake.
1646
1647 It was created by $as_me, which was
1648 generated by GNU Autoconf 2.61. Invocation command line was
1649
1650 $ $0 $@
1651
1652 _ACEOF
1653 exec 5>>config.log
1654 {
1655 cat <<_ASUNAME
1656 ## --------- ##
1657 ## Platform. ##
1658 ## --------- ##
1659
1660 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1661 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1662 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1663 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1664 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1665
1666 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1667 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1668
1669 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1670 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1671 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1672 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1673 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1674 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1675 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1676
1677 _ASUNAME
1678
1679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 for as_dir in $PATH
1681 do
1682 IFS=$as_save_IFS
1683 test -z "$as_dir" && as_dir=.
1684 echo "PATH: $as_dir"
1685 done
1686 IFS=$as_save_IFS
1687
1688 } >&5
1689
1690 cat >&5 <<_ACEOF
1691
1692
1693 ## ----------- ##
1694 ## Core tests. ##
1695 ## ----------- ##
1696
1697 _ACEOF
1698
1699
1700 # Keep a trace of the command line.
1701 # Strip out --no-create and --no-recursion so they do not pile up.
1702 # Strip out --silent because we don't want to record it for future runs.
1703 # Also quote any args containing shell meta-characters.
1704 # Make two passes to allow for proper duplicate-argument suppression.
1705 ac_configure_args=
1706 ac_configure_args0=
1707 ac_configure_args1=
1708 ac_must_keep_next=false
1709 for ac_pass in 1 2
1710 do
1711 for ac_arg
1712 do
1713 case $ac_arg in
1714 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1715 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1716 | -silent | --silent | --silen | --sile | --sil)
1717 continue ;;
1718 *\'*)
1719 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1720 esac
1721 case $ac_pass in
1722 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1723 2)
1724 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1725 if test $ac_must_keep_next = true; then
1726 ac_must_keep_next=false # Got value, back to normal.
1727 else
1728 case $ac_arg in
1729 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1731 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1732 | -with-* | --with-* | -without-* | --without-* | --x)
1733 case "$ac_configure_args0 " in
1734 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1735 esac
1736 ;;
1737 -* ) ac_must_keep_next=true ;;
1738 esac
1739 fi
1740 ac_configure_args="$ac_configure_args '$ac_arg'"
1741 ;;
1742 esac
1743 done
1744 done
1745 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_ configure_args0=; export ac_configure_args0; }
1746 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_ configure_args1=; export ac_configure_args1; }
1747
1748 # When interrupted or exit'd, cleanup temporary files, and complete
1749 # config.log. We remove comments because anyway the quotes in there
1750 # would cause problems or look ugly.
1751 # WARNING: Use '\'' to represent an apostrophe within the trap.
1752 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1753 trap 'exit_status=$?
1754 # Save into config.log some information that might help in debugging.
1755 {
1756 echo
1757
1758 cat <<\_ASBOX
1759 ## ---------------- ##
1760 ## Cache variables. ##
1761 ## ---------------- ##
1762 _ASBOX
1763 echo
1764 # The following way of writing the cache mishandles newlines in values,
1765 (
1766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\ ''`; do
1767 eval ac_val=\$$ac_var
1768 case $ac_val in #(
1769 *${as_nl}*)
1770 case $ac_var in #(
1771 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1772 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1773 esac
1774 case $ac_var in #(
1775 _ | IFS | as_nl) ;; #(
1776 *) $as_unset $ac_var ;;
1777 esac ;;
1778 esac
1779 done
1780 (set) 2>&1 |
1781 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1782 *${as_nl}ac_space=\ *)
1783 sed -n \
1784 "s/'\''/'\''\\\\'\'''\''/g;
1785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\'' /p"
1786 ;; #(
1787 *)
1788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1789 ;;
1790 esac |
1791 sort
1792 )
1793 echo
1794
1795 cat <<\_ASBOX
1796 ## ----------------- ##
1797 ## Output variables. ##
1798 ## ----------------- ##
1799 _ASBOX
1800 echo
1801 for ac_var in $ac_subst_vars
1802 do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in
1805 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806 esac
1807 echo "$ac_var='\''$ac_val'\''"
1808 done | sort
1809 echo
1810
1811 if test -n "$ac_subst_files"; then
1812 cat <<\_ASBOX
1813 ## ------------------- ##
1814 ## File substitutions. ##
1815 ## ------------------- ##
1816 _ASBOX
1817 echo
1818 for ac_var in $ac_subst_files
1819 do
1820 eval ac_val=\$$ac_var
1821 case $ac_val in
1822 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1823 esac
1824 echo "$ac_var='\''$ac_val'\''"
1825 done | sort
1826 echo
1827 fi
1828
1829 if test -s confdefs.h; then
1830 cat <<\_ASBOX
1831 ## ----------- ##
1832 ## confdefs.h. ##
1833 ## ----------- ##
1834 _ASBOX
1835 echo
1836 cat confdefs.h
1837 echo
1838 fi
1839 test "$ac_signal" != 0 &&
1840 echo "$as_me: caught signal $ac_signal"
1841 echo "$as_me: exit $exit_status"
1842 } >&5
1843 rm -f core *.core core.conftest.* &&
1844 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1845 exit $exit_status
1846 ' 0
1847 for ac_signal in 1 2 13 15; do
1848 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1849 done
1850 ac_signal=0
1851
1852 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1853 rm -f -r conftest* confdefs.h
1854
1855 # Predefined preprocessor variables.
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_NAME "$PACKAGE_NAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_STRING "$PACKAGE_STRING"
1874 _ACEOF
1875
1876
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1879 _ACEOF
1880
1881
1882 # Let the site file select an alternate cache file if it wants to.
1883 # Prefer explicitly selected file to automatically selected ones.
1884 if test -n "$CONFIG_SITE"; then
1885 set x "$CONFIG_SITE"
1886 elif test "x$prefix" != xNONE; then
1887 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1888 else
1889 set x "$ac_default_prefix/share/config.site" \
1890 "$ac_default_prefix/etc/config.site"
1891 fi
1892 shift
1893 for ac_site_file
1894 do
1895 if test -r "$ac_site_file"; then
1896 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 echo "$as_me: loading site script $ac_site_file" >&6;}
1898 sed 's/^/| /' "$ac_site_file" >&5
1899 . "$ac_site_file"
1900 fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904 # Some versions of bash will fail to source /dev/null (special
1905 # files actually), so we avoid doing that.
1906 if test -f "$cache_file"; then
1907 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 echo "$as_me: loading cache $cache_file" >&6;}
1909 case $cache_file in
1910 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911 *) . "./$cache_file";;
1912 esac
1913 fi
1914 else
1915 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 echo "$as_me: creating cache $cache_file" >&6;}
1917 >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925 eval ac_new_set=\$ac_env_${ac_var}_set
1926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927 eval ac_new_val=\$ac_env_${ac_var}_value
1928 case $ac_old_set,$ac_new_set in
1929 set,)
1930 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" > &2;}
1932 ac_cache_corrupted=: ;;
1933 ,set)
1934 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936 ac_cache_corrupted=: ;;
1937 ,);;
1938 *)
1939 if test "x$ac_old_val" != "x$ac_new_val"; then
1940 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1942 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1943 echo "$as_me: former value: $ac_old_val" >&2;}
1944 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1945 echo "$as_me: current value: $ac_new_val" >&2;}
1946 ac_cache_corrupted=:
1947 fi;;
1948 esac
1949 # Pass precious variables to config.status.
1950 if test "$ac_new_set" = set; then
1951 case $ac_new_val in
1952 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1953 *) ac_arg=$ac_var=$ac_new_val ;;
1954 esac
1955 case " $ac_configure_args " in
1956 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1957 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1958 esac
1959 fi
1960 done
1961 if $ac_cache_corrupted; then
1962 { echo "$as_me:$LINENO: error: changes in the environment can compromise the b uild" >&5
1963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1964 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file ' and start over" >&5
1965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start ov er" >&2;}
1966 { (exit 1); exit 1; }; }
1967 fi
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985 ac_ext=c
1986 ac_cpp='$CPP $CPPFLAGS'
1987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
1989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1990
1991
1992 ac_config_headers="$ac_config_headers config.h"
1993
1994 ac_aux_dir=
1995 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1996 if test -f "$ac_dir/install-sh"; then
1997 ac_aux_dir=$ac_dir
1998 ac_install_sh="$ac_aux_dir/install-sh -c"
1999 break
2000 elif 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/shtool"; then
2005 ac_aux_dir=$ac_dir
2006 ac_install_sh="$ac_aux_dir/shtool install -c"
2007 break
2008 fi
2009 done
2010 if test -z "$ac_aux_dir"; then
2011 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$sr cdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2012 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcd ir/..\" \"$srcdir/../..\"" >&2;}
2013 { (exit 1); exit 1; }; }
2014 fi
2015
2016 # These three variables are undocumented and unsupported,
2017 # and are intended to be withdrawn in a future Autoconf release.
2018 # They can cause serious problems if a builder's source tree is in a directory
2019 # whose full name contains unusual characters.
2020 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2021 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2022 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2023
2024
2025 # Make sure we can run config.sub.
2026 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2027 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2028 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2029 { (exit 1); exit 1; }; }
2030
2031 { echo "$as_me:$LINENO: checking build system type" >&5
2032 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2033 if test "${ac_cv_build+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 ac_build_alias=$build_alias
2037 test "x$ac_build_alias" = x &&
2038 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2039 test "x$ac_build_alias" = x &&
2040 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one " >&5
2041 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2042 { (exit 1); exit 1; }; }
2043 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2044 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2045 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2046 { (exit 1); exit 1; }; }
2047
2048 fi
2049 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2050 echo "${ECHO_T}$ac_cv_build" >&6; }
2051 case $ac_cv_build in
2052 *-*-*) ;;
2053 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2054 echo "$as_me: error: invalid value of canonical build" >&2;}
2055 { (exit 1); exit 1; }; };;
2056 esac
2057 build=$ac_cv_build
2058 ac_save_IFS=$IFS; IFS='-'
2059 set x $ac_cv_build
2060 shift
2061 build_cpu=$1
2062 build_vendor=$2
2063 shift; shift
2064 # Remember, the first character of IFS is used to create $*,
2065 # except with old shells:
2066 build_os=$*
2067 IFS=$ac_save_IFS
2068 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2069
2070
2071 { echo "$as_me:$LINENO: checking host system type" >&5
2072 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2073 if test "${ac_cv_host+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 if test "x$host_alias" = x; then
2077 ac_cv_host=$ac_cv_build
2078 else
2079 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2080 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias f ailed" >&5
2081 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084
2085 fi
2086 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2087 echo "${ECHO_T}$ac_cv_host" >&6; }
2088 case $ac_cv_host in
2089 *-*-*) ;;
2090 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2091 echo "$as_me: error: invalid value of canonical host" >&2;}
2092 { (exit 1); exit 1; }; };;
2093 esac
2094 host=$ac_cv_host
2095 ac_save_IFS=$IFS; IFS='-'
2096 set x $ac_cv_host
2097 shift
2098 host_cpu=$1
2099 host_vendor=$2
2100 shift; shift
2101 # Remember, the first character of IFS is used to create $*,
2102 # except with old shells:
2103 host_os=$*
2104 IFS=$ac_save_IFS
2105 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2106
2107
2108
2109 LIBXSLT_MAJOR_VERSION=1
2110 LIBXSLT_MINOR_VERSION=1
2111 LIBXSLT_MICRO_VERSION=24
2112 PACKAGE=libxslt
2113 LIBEXSLT_MAJOR_VERSION=0
2114 LIBEXSLT_MINOR_VERSION=8
2115 LIBEXSLT_MICRO_VERSION=13
2116 LIBXML_REQUIRED_VERSION=2.6.27
2117
2118
2119 LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VER SION
2120 LIBXSLT_VERSION_INFO=`expr $LIBXSLT_MAJOR_VERSION + $LIBXSLT_MINOR_VERSION`:$LIB XSLT_MICRO_VERSION:$LIBXSLT_MINOR_VERSION
2121
2122 LIBXSLT_VERSION_NUMBER=`expr $LIBXSLT_MAJOR_VERSION \* 10000 + $LIBXSLT_MINOR_VE RSION \* 100 + $LIBXSLT_MICRO_VERSION`
2123 LIBXSLT_MAJOR_MINOR_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION
2124
2125 if test -f CVS/Entries; then
2126 extra=`grep ChangeLog CVS/Entries | grep -v LIBXSLT | sed -e s\%/ChangeLog/1\. %% -e s\%/.*$%%`
2127 echo extra=$extra
2128 if test "$extra" != ""
2129 then
2130 LIBXSLT_VERSION_EXTRA="-CVS$extra"
2131 fi
2132 else if test -d .svn ; then
2133 extra=`svn info | grep Revision | sed 's+Revision: ++'`
2134 echo extra=$extra
2135 if test "$extra" != ""
2136 then
2137 LIBXSLT_VERSION_EXTRA="-SVN$extra"
2138 fi
2139 fi
2140 fi
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152 LIBEXSLT_VERSION=$LIBEXSLT_MAJOR_VERSION.$LIBEXSLT_MINOR_VERSION.$LIBEXSLT_MICRO _VERSION
2153 LIBEXSLT_VERSION_INFO=`expr $LIBEXSLT_MAJOR_VERSION + $LIBEXSLT_MINOR_VERSION`:$ LIBEXSLT_MICRO_VERSION:$LIBEXSLT_MINOR_VERSION
2154
2155 LIBEXSLT_VERSION_NUMBER=`expr $LIBEXSLT_MAJOR_VERSION \* 10000 + $LIBEXSLT_MINOR _VERSION \* 100 + $LIBEXSLT_MICRO_VERSION`
2156
2157 if test -f CVS/Entries; then
2158 LIBEXSLT_VERSION_EXTRA=-CVS`grep ChangeLog CVS/Entries | sed -e s\%/ChangeLog/ 1\.%% -e s\%/.*$%%`
2159 fi
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169 VERSION=${LIBXSLT_VERSION}
2170
2171 am__api_version='1.10'
2172
2173 # Find a good install program. We prefer a C program (faster),
2174 # so one script is as good as another. But avoid the broken or
2175 # incompatible versions:
2176 # SysV /etc/install, /usr/sbin/install
2177 # SunOS /usr/etc/install
2178 # IRIX /sbin/install
2179 # AIX /bin/install
2180 # AmigaOS /C/install, which installs bootblocks on floppy discs
2181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2184 # OS/2's system install, which has a completely different semantic
2185 # ./install, which can be erroneously created by make from ./install.sh.
2186 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2187 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2188 if test -z "$INSTALL"; then
2189 if test "${ac_cv_path_install+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 # Account for people who put trailing slashes in PATH elements.
2198 case $as_dir/ in
2199 ./ | .// | /cC/* | \
2200 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2201 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2202 /usr/ucb/* ) ;;
2203 *)
2204 # OSF1 and SCO ODT 3.0 have their own names for install.
2205 # Don't use installbsd from OSF since it installs stuff as root
2206 # by default.
2207 for ac_prog in ginstall scoinst install; do
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; }; then
2210 if test $ac_prog = install &&
2211 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2212 # AIX install. It has an incompatible calling convention.
2213 :
2214 elif test $ac_prog = install &&
2215 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2216 # program-specific install script used by HP pwplus--don't use.
2217 :
2218 else
2219 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2220 break 3
2221 fi
2222 fi
2223 done
2224 done
2225 ;;
2226 esac
2227 done
2228 IFS=$as_save_IFS
2229
2230
2231 fi
2232 if test "${ac_cv_path_install+set}" = set; then
2233 INSTALL=$ac_cv_path_install
2234 else
2235 # As a last resort, use the slow shell script. Don't cache a
2236 # value for INSTALL within a source directory, because that will
2237 # break other packages using the cache if that directory is
2238 # removed, or if the value is a relative name.
2239 INSTALL=$ac_install_sh
2240 fi
2241 fi
2242 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2243 echo "${ECHO_T}$INSTALL" >&6; }
2244
2245 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2246 # It thinks the first close brace ends the variable substitution.
2247 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2248
2249 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2250
2251 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2252
2253 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2254 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2255 # Just in case
2256 sleep 1
2257 echo timestamp > conftest.file
2258 # Do `set' in a subshell so we don't clobber the current shell's
2259 # arguments. Must try -L first in case configure is actually a
2260 # symlink; some systems play weird games with the mod time of symlinks
2261 # (eg FreeBSD returns the mod time of the symlink's containing
2262 # directory).
2263 if (
2264 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2265 if test "$*" = "X"; then
2266 # -L didn't work.
2267 set X `ls -t $srcdir/configure conftest.file`
2268 fi
2269 rm -f conftest.file
2270 if test "$*" != "X $srcdir/configure conftest.file" \
2271 && test "$*" != "X conftest.file $srcdir/configure"; then
2272
2273 # If neither matched, then we have a broken ls. This can happen
2274 # if, for instance, CONFIG_SHELL is bash and it inherits a
2275 # broken ls alias from the environment. This has actually
2276 # happened. Such a system could not be considered "sane".
2277 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there i s not a broken
2278 alias in your environment" >&5
2279 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2280 alias in your environment" >&2;}
2281 { (exit 1); exit 1; }; }
2282 fi
2283
2284 test "$2" = conftest.file
2285 )
2286 then
2287 # Ok.
2288 :
2289 else
2290 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2291 Check your system clock" >&5
2292 echo "$as_me: error: newly created file is older than distributed files!
2293 Check your system clock" >&2;}
2294 { (exit 1); exit 1; }; }
2295 fi
2296 { echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6; }
2298 test "$program_prefix" != NONE &&
2299 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2300 # Use a double $ so make ignores it.
2301 test "$program_suffix" != NONE &&
2302 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2303 # Double any \ or $. echo might interpret backslashes.
2304 # By default was `s,x,x', remove it if useless.
2305 cat <<\_ACEOF >conftest.sed
2306 s/[\\$]/&&/g;s/;s,x,x,$//
2307 _ACEOF
2308 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2309 rm -f conftest.sed
2310
2311 # expand $ac_aux_dir to an absolute path
2312 am_aux_dir=`cd $ac_aux_dir && pwd`
2313
2314 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2315 # Use eval to expand $SHELL
2316 if eval "$MISSING --run true"; then
2317 am_missing_run="$MISSING --run "
2318 else
2319 am_missing_run=
2320 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2321 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2322 fi
2323
2324 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2325 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2326 if test -z "$MKDIR_P"; then
2327 if test "${ac_cv_path_mkdir+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2332 do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 for ac_prog in mkdir gmkdir; do
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; } || continue
2338 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2339 'mkdir (GNU coreutils) '* | \
2340 'mkdir (coreutils) '* | \
2341 'mkdir (fileutils) '4.1*)
2342 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2343 break 3;;
2344 esac
2345 done
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351
2352 if test "${ac_cv_path_mkdir+set}" = set; then
2353 MKDIR_P="$ac_cv_path_mkdir -p"
2354 else
2355 # As a last resort, use the slow shell script. Don't cache a
2356 # value for MKDIR_P within a source directory, because that will
2357 # break other packages using the cache if that directory is
2358 # removed, or if the value is a relative name.
2359 test -d ./--version && rmdir ./--version
2360 MKDIR_P="$ac_install_sh -d"
2361 fi
2362 fi
2363 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2364 echo "${ECHO_T}$MKDIR_P" >&6; }
2365
2366 mkdir_p="$MKDIR_P"
2367 case $mkdir_p in
2368 [\\/$]* | ?:[\\/]*) ;;
2369 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2370 esac
2371
2372 for ac_prog in gawk mawk nawk awk
2373 do
2374 # Extract the first word of "$ac_prog", so it can be a program name with args.
2375 set dummy $ac_prog; ac_word=$2
2376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2378 if test "${ac_cv_prog_AWK+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 else
2381 if test -n "$AWK"; then
2382 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2383 else
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385 for as_dir in $PATH
2386 do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2391 ac_cv_prog_AWK="$ac_prog"
2392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 break 2
2394 fi
2395 done
2396 done
2397 IFS=$as_save_IFS
2398
2399 fi
2400 fi
2401 AWK=$ac_cv_prog_AWK
2402 if test -n "$AWK"; then
2403 { echo "$as_me:$LINENO: result: $AWK" >&5
2404 echo "${ECHO_T}$AWK" >&6; }
2405 else
2406 { echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6; }
2408 fi
2409
2410
2411 test -n "$AWK" && break
2412 done
2413
2414 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2415 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2416 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2417 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set "; }; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419 else
2420 cat >conftest.make <<\_ACEOF
2421 SHELL = /bin/sh
2422 all:
2423 @echo '@@@%%%=$(MAKE)=@@@%%%'
2424 _ACEOF
2425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2426 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2427 *@@@%%%=?*=@@@%%%*)
2428 eval ac_cv_prog_make_${ac_make}_set=yes;;
2429 *)
2430 eval ac_cv_prog_make_${ac_make}_set=no;;
2431 esac
2432 rm -f conftest.make
2433 fi
2434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2435 { echo "$as_me:$LINENO: result: yes" >&5
2436 echo "${ECHO_T}yes" >&6; }
2437 SET_MAKE=
2438 else
2439 { echo "$as_me:$LINENO: result: no" >&5
2440 echo "${ECHO_T}no" >&6; }
2441 SET_MAKE="MAKE=${MAKE-make}"
2442 fi
2443
2444 rm -rf .tst 2>/dev/null
2445 mkdir .tst 2>/dev/null
2446 if test -d .tst; then
2447 am__leading_dot=.
2448 else
2449 am__leading_dot=_
2450 fi
2451 rmdir .tst 2>/dev/null
2452
2453 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2454 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2455 # is not polluted with repeated "-I."
2456 am__isrc=' -I$(srcdir)'
2457 # test to see if srcdir already configured
2458 if test -f $srcdir/config.status; then
2459 { { echo "$as_me:$LINENO: error: source directory already configured; run \" make distclean\" there first" >&5
2460 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2461 { (exit 1); exit 1; }; }
2462 fi
2463 fi
2464
2465 # test whether we have cygpath
2466 if test -z "$CYGPATH_W"; then
2467 if (cygpath --version) >/dev/null 2>/dev/null; then
2468 CYGPATH_W='cygpath -w'
2469 else
2470 CYGPATH_W=echo
2471 fi
2472 fi
2473
2474
2475 # Define the identity of the package.
2476 PACKAGE=$PACKAGE
2477 VERSION=$VERSION
2478
2479
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE "$PACKAGE"
2482 _ACEOF
2483
2484
2485 cat >>confdefs.h <<_ACEOF
2486 #define VERSION "$VERSION"
2487 _ACEOF
2488
2489 # Some tools Automake needs.
2490
2491 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2492
2493
2494 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2495
2496
2497 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2498
2499
2500 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2501
2502
2503 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2504
2505 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2506
2507 # Installed binaries are usually stripped using `strip' when the user
2508 # run `make install-strip'. However `strip' might not be the right
2509 # tool to use in cross-compilation environments, therefore Automake
2510 # will honor the `STRIP' environment variable to overrule this program.
2511 if test "$cross_compiling" != no; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
2514 set dummy ${ac_tool_prefix}strip; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_STRIP+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519 else
2520 if test -n "$STRIP"; then
2521 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2530 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534 done
2535 done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 STRIP=$ac_cv_prog_STRIP
2541 if test -n "$STRIP"; then
2542 { echo "$as_me:$LINENO: result: $STRIP" >&5
2543 echo "${ECHO_T}$STRIP" >&6; }
2544 else
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$ac_cv_prog_STRIP"; then
2552 ac_ct_STRIP=$STRIP
2553 # Extract the first word of "strip", so it can be a program name with args.
2554 set dummy strip; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 if test -n "$ac_ct_STRIP"; then
2561 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2570 ac_cv_prog_ac_ct_STRIP="strip"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2573 fi
2574 done
2575 done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2581 if test -n "$ac_ct_STRIP"; then
2582 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2583 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2584 else
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587 fi
2588
2589 if test "x$ac_ct_STRIP" = x; then
2590 STRIP=":"
2591 else
2592 case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
2595 whose name does not start with the host triplet. If you think this
2596 configuration is useful to you, please write to autoconf@gnu.org." >&5
2597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2600 ac_tool_warned=yes ;;
2601 esac
2602 STRIP=$ac_ct_STRIP
2603 fi
2604 else
2605 STRIP="$ac_cv_prog_STRIP"
2606 fi
2607
2608 fi
2609 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2610
2611 # We need awk for the "check" target. The system "awk" is bad on
2612 # some platforms.
2613 # Always define AMTAR for backward compatibility.
2614
2615 AMTAR=${AMTAR-"${am_missing_run}tar"}
2616
2617 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2618
2619
2620
2621
2622
2623
2624 # AM_MAINTAINER_MODE
2625
2626
2627 # Check whether --with-html-dir was given.
2628 if test "${with_html_dir+set}" = set; then
2629 withval=$with_html_dir;
2630 fi
2631
2632
2633
2634 if test "x$with_html_dir" = "x" ; then
2635 HTML_DIR='$(prefix)/doc'
2636 else
2637 HTML_DIR=$with_html_dir
2638 fi
2639
2640
2641
2642 DEPDIR="${am__leading_dot}deps"
2643
2644 ac_config_commands="$ac_config_commands depfiles"
2645
2646
2647 am_make=${MAKE-make}
2648 cat > confinc << 'END'
2649 am__doit:
2650 @echo done
2651 .PHONY: am__doit
2652 END
2653 # If we don't find an include directive, just comment out the code.
2654 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2655 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2656 am__include="#"
2657 am__quote=
2658 _am_result=none
2659 # First try GNU make style include.
2660 echo "include confinc" > confmf
2661 # We grep out `Entering directory' and `Leaving directory'
2662 # messages which can occur if `w' ends up in MAKEFLAGS.
2663 # In particular we don't look at `^make:' because GNU make might
2664 # be invoked under some other name (usually "gmake"), in which
2665 # case it prints its new name instead of `make'.
2666 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done "; then
2667 am__include=include
2668 am__quote=
2669 _am_result=GNU
2670 fi
2671 # Now try BSD make style include.
2672 if test "$am__include" = "#"; then
2673 echo '.include "confinc"' > confmf
2674 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2675 am__include=.include
2676 am__quote="\""
2677 _am_result=BSD
2678 fi
2679 fi
2680
2681
2682 { echo "$as_me:$LINENO: result: $_am_result" >&5
2683 echo "${ECHO_T}$_am_result" >&6; }
2684 rm -f confinc confmf
2685
2686 # Check whether --enable-dependency-tracking was given.
2687 if test "${enable_dependency_tracking+set}" = set; then
2688 enableval=$enable_dependency_tracking;
2689 fi
2690
2691 if test "x$enable_dependency_tracking" != xno; then
2692 am_depcomp="$ac_aux_dir/depcomp"
2693 AMDEPBACKSLASH='\'
2694 fi
2695 if test "x$enable_dependency_tracking" != xno; then
2696 AMDEP_TRUE=
2697 AMDEP_FALSE='#'
2698 else
2699 AMDEP_TRUE='#'
2700 AMDEP_FALSE=
2701 fi
2702
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 if test -n "$ac_tool_prefix"; then
2710 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
2711 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2714 if test "${ac_cv_prog_CC+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717 if test -n "$CC"; then
2718 ac_cv_prog_CC="$CC" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2722 do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2727 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2730 fi
2731 done
2732 done
2733 IFS=$as_save_IFS
2734
2735 fi
2736 fi
2737 CC=$ac_cv_prog_CC
2738 if test -n "$CC"; then
2739 { echo "$as_me:$LINENO: result: $CC" >&5
2740 echo "${ECHO_T}$CC" >&6; }
2741 else
2742 { echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6; }
2744 fi
2745
2746
2747 fi
2748 if test -z "$ac_cv_prog_CC"; then
2749 ac_ct_CC=$CC
2750 # Extract the first word of "gcc", so it can be a program name with args.
2751 set dummy gcc; ac_word=$2
2752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757 if test -n "$ac_ct_CC"; then
2758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2767 ac_cv_prog_ac_ct_CC="gcc"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 fi
2776 fi
2777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2778 if test -n "$ac_ct_CC"; then
2779 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2780 echo "${ECHO_T}$ac_ct_CC" >&6; }
2781 else
2782 { echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6; }
2784 fi
2785
2786 if test "x$ac_ct_CC" = x; then
2787 CC=""
2788 else
2789 case $cross_compiling:$ac_tool_warned in
2790 yes:)
2791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
2792 whose name does not start with the host triplet. If you think this
2793 configuration is useful to you, please write to autoconf@gnu.org." >&5
2794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet. If you think this
2796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2797 ac_tool_warned=yes ;;
2798 esac
2799 CC=$ac_ct_CC
2800 fi
2801 else
2802 CC="$ac_cv_prog_CC"
2803 fi
2804
2805 if test -z "$CC"; then
2806 if test -n "$ac_tool_prefix"; then
2807 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
2808 set dummy ${ac_tool_prefix}cc; ac_word=$2
2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811 if test "${ac_cv_prog_CC+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 if test -n "$CC"; then
2815 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2824 ac_cv_prog_CC="${ac_tool_prefix}cc"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2827 fi
2828 done
2829 done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 CC=$ac_cv_prog_CC
2835 if test -n "$CC"; then
2836 { echo "$as_me:$LINENO: result: $CC" >&5
2837 echo "${ECHO_T}$CC" >&6; }
2838 else
2839 { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2841 fi
2842
2843
2844 fi
2845 fi
2846 if test -z "$CC"; then
2847 # Extract the first word of "cc", so it can be a program name with args.
2848 set dummy cc; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_CC+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 else
2854 if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 ac_prog_rejected=no
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2865 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2866 ac_prog_rejected=yes
2867 continue
2868 fi
2869 ac_cv_prog_CC="cc"
2870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 if test $ac_prog_rejected = yes; then
2878 # We found a bogon in the path, so make sure we never use it.
2879 set dummy $ac_cv_prog_CC
2880 shift
2881 if test $# != 0; then
2882 # We chose a different compiler from the bogus one.
2883 # However, it has the same basename, so the bogon will be chosen
2884 # first if we set CC to just the basename; use the full file name.
2885 shift
2886 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2887 fi
2888 fi
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { echo "$as_me:$LINENO: result: $CC" >&5
2894 echo "${ECHO_T}$CC" >&6; }
2895 else
2896 { echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6; }
2898 fi
2899
2900
2901 fi
2902 if test -z "$CC"; then
2903 if test -n "$ac_tool_prefix"; then
2904 for ac_prog in cl.exe
2905 do
2906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
2907 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2923 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 CC=$ac_cv_prog_CC
2934 if test -n "$CC"; then
2935 { echo "$as_me:$LINENO: result: $CC" >&5
2936 echo "${ECHO_T}$CC" >&6; }
2937 else
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942
2943 test -n "$CC" && break
2944 done
2945 fi
2946 if test -z "$CC"; then
2947 ac_ct_CC=$CC
2948 for ac_prog in cl.exe
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2967 ac_cv_prog_ac_ct_CC="$ac_prog"
2968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978 if test -n "$ac_ct_CC"; then
2979 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2980 echo "${ECHO_T}$ac_ct_CC" >&6; }
2981 else
2982 { echo "$as_me:$LINENO: result: no" >&5
2983 echo "${ECHO_T}no" >&6; }
2984 fi
2985
2986
2987 test -n "$ac_ct_CC" && break
2988 done
2989
2990 if test "x$ac_ct_CC" = x; then
2991 CC=""
2992 else
2993 case $cross_compiling:$ac_tool_warned in
2994 yes:)
2995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
2996 whose name does not start with the host triplet. If you think this
2997 configuration is useful to you, please write to autoconf@gnu.org." >&5
2998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2999 whose name does not start with the host triplet. If you think this
3000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3001 ac_tool_warned=yes ;;
3002 esac
3003 CC=$ac_ct_CC
3004 fi
3005 fi
3006
3007 fi
3008
3009
3010 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3011 See \`config.log' for more details." >&5
3012 echo "$as_me: error: no acceptable C compiler found in \$PATH
3013 See \`config.log' for more details." >&2;}
3014 { (exit 1); exit 1; }; }
3015
3016 # Provide some information about the compiler.
3017 echo "$as_me:$LINENO: checking for C compiler version" >&5
3018 ac_compiler=`set X $ac_compile; echo $2`
3019 { (ac_try="$ac_compiler --version >&5"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compiler --version >&5") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }
3029 { (ac_try="$ac_compiler -v >&5"
3030 case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033 esac
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compiler -v >&5") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3039 { (ac_try="$ac_compiler -V >&5"
3040 case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compiler -V >&5") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }
3049
3050 cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h. */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056
3057 int
3058 main ()
3059 {
3060
3061 ;
3062 return 0;
3063 }
3064 _ACEOF
3065 ac_clean_files_save=$ac_clean_files
3066 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3067 # Try to create an executable without -o first, disregard a.out.
3068 # It will help us diagnose broken compilers, and finding out an intuition
3069 # of exeext.
3070 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3071 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3072 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3073 #
3074 # List of possible output files, starting from the most likely.
3075 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3076 # only as a last resort. b.out is created by i960 compilers.
3077 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3078 #
3079 # The IRIX 6 linker writes into existing files which may not be
3080 # executable, retaining their permissions. Remove them first so a
3081 # subsequent execution test works.
3082 ac_rmfiles=
3083 for ac_file in $ac_files
3084 do
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3087 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088 esac
3089 done
3090 rm -f $ac_rmfiles
3091
3092 if { (ac_try="$ac_link_default"
3093 case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3096 esac
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_link_default") 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; then
3102 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3103 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3104 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3105 # so that the user can short-circuit this test for compilers unknown to
3106 # Autoconf.
3107 for ac_file in $ac_files ''
3108 do
3109 test -f "$ac_file" || continue
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3112 ;;
3113 [ab].out )
3114 # We found the default executable, but exeext='' is most
3115 # certainly right.
3116 break;;
3117 *.* )
3118 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3119 then :; else
3120 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 fi
3122 # We set ac_cv_exeext here because the later test for it is not
3123 # safe: cross compilers may not add the suffix if given an `-o'
3124 # argument, so we may need to know it at that point already.
3125 # Even if this section looks crufty: it has the advantage of
3126 # actually working.
3127 break;;
3128 * )
3129 break;;
3130 esac
3131 done
3132 test "$ac_cv_exeext" = no && ac_cv_exeext=
3133
3134 else
3135 ac_file=''
3136 fi
3137
3138 { echo "$as_me:$LINENO: result: $ac_file" >&5
3139 echo "${ECHO_T}$ac_file" >&6; }
3140 if test -z "$ac_file"; then
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C compiler cannot create executables
3147 See \`config.log' for more details." >&2;}
3148 { (exit 77); exit 77; }; }
3149 fi
3150
3151 ac_exeext=$ac_cv_exeext
3152
3153 # Check that the compiler produces executables we can run. If not, either
3154 # the compiler is broken, or we cross compile.
3155 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3156 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3157 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3158 # If not cross compiling, check that we can run a simple program.
3159 if test "$cross_compiling" != yes; then
3160 if { ac_try='./$ac_file'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
3170 cross_compiling=no
3171 else
3172 if test "$cross_compiling" = maybe; then
3173 cross_compiling=yes
3174 else
3175 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3176 If you meant to cross compile, use \`--host'.
3177 See \`config.log' for more details." >&5
3178 echo "$as_me: error: cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details." >&2;}
3181 { (exit 1); exit 1; }; }
3182 fi
3183 fi
3184 fi
3185 { echo "$as_me:$LINENO: result: yes" >&5
3186 echo "${ECHO_T}yes" >&6; }
3187
3188 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3189 ac_clean_files=$ac_clean_files_save
3190 # Check that the compiler produces executables we can run. If not, either
3191 # the compiler is broken, or we cross compile.
3192 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3193 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3194 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3195 echo "${ECHO_T}$cross_compiling" >&6; }
3196
3197 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3198 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3199 if { (ac_try="$ac_link"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_link") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; then
3209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3211 # work properly (i.e., refer to `conftest.exe'), while it won't with
3212 # `rm'.
3213 for ac_file in conftest.exe conftest conftest.*; do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 break;;
3219 * ) break;;
3220 esac
3221 done
3222 else
3223 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3224 See \`config.log' for more details." >&5
3225 echo "$as_me: error: cannot compute suffix of executables: cannot compile and li nk
3226 See \`config.log' for more details." >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230 rm -f conftest$ac_cv_exeext
3231 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3232 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233
3234 rm -f conftest.$ac_ext
3235 EXEEXT=$ac_cv_exeext
3236 ac_exeext=$EXEEXT
3237 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3238 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3239 if test "${ac_cv_objext+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 else
3242 cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h. */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3248
3249 int
3250 main ()
3251 {
3252
3253 ;
3254 return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.o conftest.obj
3258 if { (ac_try="$ac_compile"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_compile") 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); }; then
3268 for ac_file in conftest.o conftest.obj conftest.*; do
3269 test -f "$ac_file" || continue;
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3272 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273 break;;
3274 esac
3275 done
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot c ompile
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3283 See \`config.log' for more details." >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 fi
3289 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3290 echo "${ECHO_T}$ac_cv_objext" >&6; }
3291 OBJEXT=$ac_cv_objext
3292 ac_objext=$OBJEXT
3293 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3294 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3295 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 else
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308 #ifndef __GNUC__
3309 choke me
3310 #endif
3311
3312 ;
3313 return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3324 ac_status=$?
3325 grep -v '^ *+' conftest.er1 >conftest.err
3326 rm -f conftest.er1
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } && {
3330 test -z "$ac_c_werror_flag" ||
3331 test ! -s conftest.err
3332 } && test -s conftest.$ac_objext; then
3333 ac_compiler_gnu=yes
3334 else
3335 echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 ac_compiler_gnu=no
3339 fi
3340
3341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3343
3344 fi
3345 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3346 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3347 GCC=`test $ac_compiler_gnu = yes && echo yes`
3348 ac_test_CFLAGS=${CFLAGS+set}
3349 ac_save_CFLAGS=$CFLAGS
3350 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3351 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3352 if test "${ac_cv_prog_cc_g+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355 ac_save_c_werror_flag=$ac_c_werror_flag
3356 ac_c_werror_flag=yes
3357 ac_cv_prog_cc_g=no
3358 CFLAGS="-g"
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365
3366 int
3367 main ()
3368 {
3369
3370 ;
3371 return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (ac_try="$ac_compile"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_compile") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
3391 ac_cv_prog_cc_g=yes
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 CFLAGS=""
3397 cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h. */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403
3404 int
3405 main ()
3406 {
3407
3408 ;
3409 return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (ac_try="$ac_compile"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3419 (eval "$ac_compile") 2>conftest.er1
3420 ac_status=$?
3421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } && {
3426 test -z "$ac_c_werror_flag" ||
3427 test ! -s conftest.err
3428 } && test -s conftest.$ac_objext; then
3429 :
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 ac_c_werror_flag=$ac_save_c_werror_flag
3435 CFLAGS="-g"
3436 cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442
3443 int
3444 main ()
3445 {
3446
3447 ;
3448 return 0;
3449 }
3450 _ACEOF
3451 rm -f conftest.$ac_objext
3452 if { (ac_try="$ac_compile"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_compile") 2>conftest.er1
3459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } && {
3465 test -z "$ac_c_werror_flag" ||
3466 test ! -s conftest.err
3467 } && test -s conftest.$ac_objext; then
3468 ac_cv_prog_cc_g=yes
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 sed 's/^/| /' conftest.$ac_ext >&5
3472
3473
3474 fi
3475
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 fi
3478
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 fi
3481
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3484 fi
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3487 if test "$ac_test_CFLAGS" = set; then
3488 CFLAGS=$ac_save_CFLAGS
3489 elif test $ac_cv_prog_cc_g = yes; then
3490 if test "$GCC" = yes; then
3491 CFLAGS="-g -O2"
3492 else
3493 CFLAGS="-g"
3494 fi
3495 else
3496 if test "$GCC" = yes; then
3497 CFLAGS="-O2"
3498 else
3499 CFLAGS=
3500 fi
3501 fi
3502 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3503 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3504 if test "${ac_cv_prog_cc_c89+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 ac_cv_prog_cc_c89=no
3508 ac_save_CC=$CC
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 #include <stdarg.h>
3516 #include <stdio.h>
3517 #include <sys/types.h>
3518 #include <sys/stat.h>
3519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3520 struct buf { int x; };
3521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3522 static char *e (p, i)
3523 char **p;
3524 int i;
3525 {
3526 return p[i];
3527 }
3528 static char *f (char * (*g) (char **, int), char **p, ...)
3529 {
3530 char *s;
3531 va_list v;
3532 va_start (v,p);
3533 s = g (p, va_arg (v,int));
3534 va_end (v);
3535 return s;
3536 }
3537
3538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3539 function prototypes and stuff, but not '\xHH' hex character constants.
3540 These don't provoke an error unfortunately, instead are silently treated
3541 as 'x'. The following induces an error, until -std is added to get
3542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3543 array size at least. It's necessary to write '\x00'==0 to get something
3544 that's true only with -std. */
3545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546
3547 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3548 inside strings and character constants. */
3549 #define FOO(x) 'x'
3550 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551
3552 int test (int i, double x);
3553 struct s1 {int (*f) (int a);};
3554 struct s2 {int (*f) (double a);};
3555 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
3556 int argc;
3557 char **argv;
3558 int
3559 main ()
3560 {
3561 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 do
3569 CC="$ac_save_CC $ac_arg"
3570 rm -f conftest.$ac_objext
3571 if { (ac_try="$ac_compile"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_compile") 2>conftest.er1
3578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } && {
3584 test -z "$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 } && test -s conftest.$ac_objext; then
3587 ac_cv_prog_cc_c89=$ac_arg
3588 else
3589 echo "$as_me: failed program was:" >&5
3590 sed 's/^/| /' conftest.$ac_ext >&5
3591
3592
3593 fi
3594
3595 rm -f core conftest.err conftest.$ac_objext
3596 test "x$ac_cv_prog_cc_c89" != "xno" && break
3597 done
3598 rm -f conftest.$ac_ext
3599 CC=$ac_save_CC
3600
3601 fi
3602 # AC_CACHE_VAL
3603 case "x$ac_cv_prog_cc_c89" in
3604 x)
3605 { echo "$as_me:$LINENO: result: none needed" >&5
3606 echo "${ECHO_T}none needed" >&6; } ;;
3607 xno)
3608 { echo "$as_me:$LINENO: result: unsupported" >&5
3609 echo "${ECHO_T}unsupported" >&6; } ;;
3610 *)
3611 CC="$CC $ac_cv_prog_cc_c89"
3612 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3613 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3614 esac
3615
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623 depcc="$CC" am_compiler_list=
3624
3625 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3626 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3627 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3631 # We make a subdir and do the tests there. Otherwise we can end up
3632 # making bogus files that we don't know about and never remove. For
3633 # instance it was reported that on HP-UX the gcc test will end up
3634 # making a dummy file named `D' -- because `-MD' means `put the output
3635 # in D'.
3636 mkdir conftest.dir
3637 # Copy depcomp to subdir because otherwise we won't find it if we're
3638 # using a relative directory.
3639 cp "$am_depcomp" conftest.dir
3640 cd conftest.dir
3641 # We will build objects and dependencies in a subdirectory because
3642 # it helps to detect inapplicable dependency modes. For instance
3643 # both Tru64's cc and ICC support -MD to output dependencies as a
3644 # side effect of compilation, but ICC will put the dependencies in
3645 # the current directory while Tru64 will put them in the object
3646 # directory.
3647 mkdir sub
3648
3649 am_cv_CC_dependencies_compiler_type=none
3650 if test "$am_compiler_list" = ""; then
3651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3652 fi
3653 for depmode in $am_compiler_list; do
3654 # Setup a source with many dependencies, because some compilers
3655 # like to wrap large dependency lists on column 80 (with \), and
3656 # we should not choose a depcomp mode which is confused by this.
3657 #
3658 # We need to recreate these files for each test, as the compiler may
3659 # overwrite some of them when testing with obscure command lines.
3660 # This happens at least with the AIX C compiler.
3661 : > sub/conftest.c
3662 for i in 1 2 3 4 5 6; do
3663 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3664 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3665 # Solaris 8's {/usr,}/bin/sh.
3666 touch sub/conftst$i.h
3667 done
3668 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3669
3670 case $depmode in
3671 nosideeffect)
3672 # after this tag, mechanisms are not by side-effect, so they'll
3673 # only be used when explicitly requested
3674 if test "x$enable_dependency_tracking" = xyes; then
3675 continue
3676 else
3677 break
3678 fi
3679 ;;
3680 none) break ;;
3681 esac
3682 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3683 # mode. It turns out that the SunPro C++ compiler does not properly
3684 # handle `-M -o', and we need to detect this.
3685 if depmode=$depmode \
3686 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3687 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3688 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3689 >/dev/null 2>conftest.err &&
3690 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3691 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3692 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3693 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3694 # icc doesn't choke on unknown options, it will just issue warnings
3695 # or remarks (even with -Werror). So we grep stderr for any message
3696 # that says an option was ignored or not supported.
3697 # When given -MP, icc 7.0 and 7.1 complain thusly:
3698 # icc: Command line warning: ignoring option '-M'; no argument required
3699 # The diagnosis changed in icc 8.0:
3700 # icc: Command line remark: option '-MP' not supported
3701 if (grep 'ignoring option' conftest.err ||
3702 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3703 am_cv_CC_dependencies_compiler_type=$depmode
3704 break
3705 fi
3706 fi
3707 done
3708
3709 cd ..
3710 rm -rf conftest.dir
3711 else
3712 am_cv_CC_dependencies_compiler_type=none
3713 fi
3714
3715 fi
3716 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3717 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3718 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3719
3720 if
3721 test "x$enable_dependency_tracking" != xno \
3722 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3723 am__fastdepCC_TRUE=
3724 am__fastdepCC_FALSE='#'
3725 else
3726 am__fastdepCC_TRUE='#'
3727 am__fastdepCC_FALSE=
3728 fi
3729
3730
3731
3732 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3733 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3734 if test "${ac_cv_search_strerror+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737 ac_func_search_save_LIBS=$LIBS
3738 cat >conftest.$ac_ext <<_ACEOF
3739 /* confdefs.h. */
3740 _ACEOF
3741 cat confdefs.h >>conftest.$ac_ext
3742 cat >>conftest.$ac_ext <<_ACEOF
3743 /* end confdefs.h. */
3744
3745 /* Override any GCC internal prototype to avoid an error.
3746 Use char because int might match the return type of a GCC
3747 builtin and then its argument prototype would still apply. */
3748 #ifdef __cplusplus
3749 extern "C"
3750 #endif
3751 char strerror ();
3752 int
3753 main ()
3754 {
3755 return strerror ();
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 for ac_lib in '' cposix; do
3761 if test -z "$ac_lib"; then
3762 ac_res="none required"
3763 else
3764 ac_res=-l$ac_lib
3765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3766 fi
3767 rm -f conftest.$ac_objext conftest$ac_exeext
3768 if { (ac_try="$ac_link"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_link") 2>conftest.er1
3775 ac_status=$?
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } && {
3781 test -z "$ac_c_werror_flag" ||
3782 test ! -s conftest.err
3783 } && test -s conftest$ac_exeext &&
3784 $as_test_x conftest$ac_exeext; then
3785 ac_cv_search_strerror=$ac_res
3786 else
3787 echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790
3791 fi
3792
3793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3794 conftest$ac_exeext
3795 if test "${ac_cv_search_strerror+set}" = set; then
3796 break
3797 fi
3798 done
3799 if test "${ac_cv_search_strerror+set}" = set; then
3800 :
3801 else
3802 ac_cv_search_strerror=no
3803 fi
3804 rm conftest.$ac_ext
3805 LIBS=$ac_func_search_save_LIBS
3806 fi
3807 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3808 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3809 ac_res=$ac_cv_search_strerror
3810 if test "$ac_res" != no; then
3811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3812
3813 fi
3814
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820 if test -n "$ac_tool_prefix"; then
3821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
3822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3825 if test "${ac_cv_prog_CC+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 else
3828 if test -n "$CC"; then
3829 ac_cv_prog_CC="$CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3841 fi
3842 done
3843 done
3844 IFS=$as_save_IFS
3845
3846 fi
3847 fi
3848 CC=$ac_cv_prog_CC
3849 if test -n "$CC"; then
3850 { echo "$as_me:$LINENO: result: $CC" >&5
3851 echo "${ECHO_T}$CC" >&6; }
3852 else
3853 { echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6; }
3855 fi
3856
3857
3858 fi
3859 if test -z "$ac_cv_prog_CC"; then
3860 ac_ct_CC=$CC
3861 # Extract the first word of "gcc", so it can be a program name with args.
3862 set dummy gcc; ac_word=$2
3863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868 if test -n "$ac_ct_CC"; then
3869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3870 else
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3873 do
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3878 ac_cv_prog_ac_ct_CC="gcc"
3879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 break 2
3881 fi
3882 done
3883 done
3884 IFS=$as_save_IFS
3885
3886 fi
3887 fi
3888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3889 if test -n "$ac_ct_CC"; then
3890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3891 echo "${ECHO_T}$ac_ct_CC" >&6; }
3892 else
3893 { echo "$as_me:$LINENO: result: no" >&5
3894 echo "${ECHO_T}no" >&6; }
3895 fi
3896
3897 if test "x$ac_ct_CC" = x; then
3898 CC=""
3899 else
3900 case $cross_compiling:$ac_tool_warned in
3901 yes:)
3902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
3903 whose name does not start with the host triplet. If you think this
3904 configuration is useful to you, please write to autoconf@gnu.org." >&5
3905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3906 whose name does not start with the host triplet. If you think this
3907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3908 ac_tool_warned=yes ;;
3909 esac
3910 CC=$ac_ct_CC
3911 fi
3912 else
3913 CC="$ac_cv_prog_CC"
3914 fi
3915
3916 if test -z "$CC"; then
3917 if test -n "$ac_tool_prefix"; then
3918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
3919 set dummy ${ac_tool_prefix}cc; ac_word=$2
3920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3935 ac_cv_prog_CC="${ac_tool_prefix}cc"
3936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3938 fi
3939 done
3940 done
3941 IFS=$as_save_IFS
3942
3943 fi
3944 fi
3945 CC=$ac_cv_prog_CC
3946 if test -n "$CC"; then
3947 { echo "$as_me:$LINENO: result: $CC" >&5
3948 echo "${ECHO_T}$CC" >&6; }
3949 else
3950 { echo "$as_me:$LINENO: result: no" >&5
3951 echo "${ECHO_T}no" >&6; }
3952 fi
3953
3954
3955 fi
3956 fi
3957 if test -z "$CC"; then
3958 # Extract the first word of "cc", so it can be a program name with args.
3959 set dummy cc; ac_word=$2
3960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3962 if test "${ac_cv_prog_CC+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 if test -n "$CC"; then
3966 ac_cv_prog_CC="$CC" # Let the user override the test.
3967 else
3968 ac_prog_rejected=no
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH
3971 do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3977 ac_prog_rejected=yes
3978 continue
3979 fi
3980 ac_cv_prog_CC="cc"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 if test $ac_prog_rejected = yes; then
3989 # We found a bogon in the path, so make sure we never use it.
3990 set dummy $ac_cv_prog_CC
3991 shift
3992 if test $# != 0; then
3993 # We chose a different compiler from the bogus one.
3994 # However, it has the same basename, so the bogon will be chosen
3995 # first if we set CC to just the basename; use the full file name.
3996 shift
3997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3998 fi
3999 fi
4000 fi
4001 fi
4002 CC=$ac_cv_prog_CC
4003 if test -n "$CC"; then
4004 { echo "$as_me:$LINENO: result: $CC" >&5
4005 echo "${ECHO_T}$CC" >&6; }
4006 else
4007 { echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6; }
4009 fi
4010
4011
4012 fi
4013 if test -z "$CC"; then
4014 if test -n "$ac_tool_prefix"; then
4015 for ac_prog in cl.exe
4016 do
4017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
4018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4021 if test "${ac_cv_prog_CC+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 if test -n "$CC"; then
4025 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 for as_dir in $PATH
4029 do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 break 2
4037 fi
4038 done
4039 done
4040 IFS=$as_save_IFS
4041
4042 fi
4043 fi
4044 CC=$ac_cv_prog_CC
4045 if test -n "$CC"; then
4046 { echo "$as_me:$LINENO: result: $CC" >&5
4047 echo "${ECHO_T}$CC" >&6; }
4048 else
4049 { echo "$as_me:$LINENO: result: no" >&5
4050 echo "${ECHO_T}no" >&6; }
4051 fi
4052
4053
4054 test -n "$CC" && break
4055 done
4056 fi
4057 if test -z "$CC"; then
4058 ac_ct_CC=$CC
4059 for ac_prog in cl.exe
4060 do
4061 # Extract the first word of "$ac_prog", so it can be a program name with args.
4062 set dummy $ac_prog; ac_word=$2
4063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 if test -n "$ac_ct_CC"; then
4069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4078 ac_cv_prog_ac_ct_CC="$ac_prog"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 fi
4087 fi
4088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4089 if test -n "$ac_ct_CC"; then
4090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4091 echo "${ECHO_T}$ac_ct_CC" >&6; }
4092 else
4093 { echo "$as_me:$LINENO: result: no" >&5
4094 echo "${ECHO_T}no" >&6; }
4095 fi
4096
4097
4098 test -n "$ac_ct_CC" && break
4099 done
4100
4101 if test "x$ac_ct_CC" = x; then
4102 CC=""
4103 else
4104 case $cross_compiling:$ac_tool_warned in
4105 yes:)
4106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
4107 whose name does not start with the host triplet. If you think this
4108 configuration is useful to you, please write to autoconf@gnu.org." >&5
4109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4110 whose name does not start with the host triplet. If you think this
4111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4112 ac_tool_warned=yes ;;
4113 esac
4114 CC=$ac_ct_CC
4115 fi
4116 fi
4117
4118 fi
4119
4120
4121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4122 See \`config.log' for more details." >&5
4123 echo "$as_me: error: no acceptable C compiler found in \$PATH
4124 See \`config.log' for more details." >&2;}
4125 { (exit 1); exit 1; }; }
4126
4127 # Provide some information about the compiler.
4128 echo "$as_me:$LINENO: checking for C compiler version" >&5
4129 ac_compiler=`set X $ac_compile; echo $2`
4130 { (ac_try="$ac_compiler --version >&5"
4131 case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134 esac
4135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_compiler --version >&5") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }
4140 { (ac_try="$ac_compiler -v >&5"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compiler -v >&5") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }
4150 { (ac_try="$ac_compiler -V >&5"
4151 case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154 esac
4155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_compiler -V >&5") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }
4160
4161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 else
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172
4173 int
4174 main ()
4175 {
4176 #ifndef __GNUC__
4177 choke me
4178 #endif
4179
4180 ;
4181 return 0;
4182 }
4183 _ACEOF
4184 rm -f conftest.$ac_objext
4185 if { (ac_try="$ac_compile"
4186 case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189 esac
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4192 ac_status=$?
4193 grep -v '^ *+' conftest.er1 >conftest.err
4194 rm -f conftest.er1
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
4200 } && test -s conftest.$ac_objext; then
4201 ac_compiler_gnu=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 ac_compiler_gnu=no
4207 fi
4208
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4211
4212 fi
4213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4215 GCC=`test $ac_compiler_gnu = yes && echo yes`
4216 ac_test_CFLAGS=${CFLAGS+set}
4217 ac_save_CFLAGS=$CFLAGS
4218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4220 if test "${ac_cv_prog_cc_g+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 ac_save_c_werror_flag=$ac_c_werror_flag
4224 ac_c_werror_flag=yes
4225 ac_cv_prog_cc_g=no
4226 CFLAGS="-g"
4227 cat >conftest.$ac_ext <<_ACEOF
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4233
4234 int
4235 main ()
4236 {
4237
4238 ;
4239 return 0;
4240 }
4241 _ACEOF
4242 rm -f conftest.$ac_objext
4243 if { (ac_try="$ac_compile"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } && {
4256 test -z "$ac_c_werror_flag" ||
4257 test ! -s conftest.err
4258 } && test -s conftest.$ac_objext; then
4259 ac_cv_prog_cc_g=yes
4260 else
4261 echo "$as_me: failed program was:" >&5
4262 sed 's/^/| /' conftest.$ac_ext >&5
4263
4264 CFLAGS=""
4265 cat >conftest.$ac_ext <<_ACEOF
4266 /* confdefs.h. */
4267 _ACEOF
4268 cat confdefs.h >>conftest.$ac_ext
4269 cat >>conftest.$ac_ext <<_ACEOF
4270 /* end confdefs.h. */
4271
4272 int
4273 main ()
4274 {
4275
4276 ;
4277 return 0;
4278 }
4279 _ACEOF
4280 rm -f conftest.$ac_objext
4281 if { (ac_try="$ac_compile"
4282 case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4288 ac_status=$?
4289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
4297 :
4298 else
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4301
4302 ac_c_werror_flag=$ac_save_c_werror_flag
4303 CFLAGS="-g"
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310
4311 int
4312 main ()
4313 {
4314
4315 ;
4316 return 0;
4317 }
4318 _ACEOF
4319 rm -f conftest.$ac_objext
4320 if { (ac_try="$ac_compile"
4321 case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_compile") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest.$ac_objext; then
4336 ac_cv_prog_cc_g=yes
4337 else
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341
4342 fi
4343
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 ac_c_werror_flag=$ac_save_c_werror_flag
4352 fi
4353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4355 if test "$ac_test_CFLAGS" = set; then
4356 CFLAGS=$ac_save_CFLAGS
4357 elif test $ac_cv_prog_cc_g = yes; then
4358 if test "$GCC" = yes; then
4359 CFLAGS="-g -O2"
4360 else
4361 CFLAGS="-g"
4362 fi
4363 else
4364 if test "$GCC" = yes; then
4365 CFLAGS="-O2"
4366 else
4367 CFLAGS=
4368 fi
4369 fi
4370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4372 if test "${ac_cv_prog_cc_c89+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375 ac_cv_prog_cc_c89=no
4376 ac_save_CC=$CC
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h. */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4383 #include <stdarg.h>
4384 #include <stdio.h>
4385 #include <sys/types.h>
4386 #include <sys/stat.h>
4387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4388 struct buf { int x; };
4389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4390 static char *e (p, i)
4391 char **p;
4392 int i;
4393 {
4394 return p[i];
4395 }
4396 static char *f (char * (*g) (char **, int), char **p, ...)
4397 {
4398 char *s;
4399 va_list v;
4400 va_start (v,p);
4401 s = g (p, va_arg (v,int));
4402 va_end (v);
4403 return s;
4404 }
4405
4406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4407 function prototypes and stuff, but not '\xHH' hex character constants.
4408 These don't provoke an error unfortunately, instead are silently treated
4409 as 'x'. The following induces an error, until -std is added to get
4410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4411 array size at least. It's necessary to write '\x00'==0 to get something
4412 that's true only with -std. */
4413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4414
4415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4416 inside strings and character constants. */
4417 #define FOO(x) 'x'
4418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4419
4420 int test (int i, double x);
4421 struct s1 {int (*f) (int a);};
4422 struct s2 {int (*f) (double a);};
4423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
4424 int argc;
4425 char **argv;
4426 int
4427 main ()
4428 {
4429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4430 ;
4431 return 0;
4432 }
4433 _ACEOF
4434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4436 do
4437 CC="$ac_save_CC $ac_arg"
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4440 case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.$ac_objext; then
4455 ac_cv_prog_cc_c89=$ac_arg
4456 else
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460
4461 fi
4462
4463 rm -f core conftest.err conftest.$ac_objext
4464 test "x$ac_cv_prog_cc_c89" != "xno" && break
4465 done
4466 rm -f conftest.$ac_ext
4467 CC=$ac_save_CC
4468
4469 fi
4470 # AC_CACHE_VAL
4471 case "x$ac_cv_prog_cc_c89" in
4472 x)
4473 { echo "$as_me:$LINENO: result: none needed" >&5
4474 echo "${ECHO_T}none needed" >&6; } ;;
4475 xno)
4476 { echo "$as_me:$LINENO: result: unsupported" >&5
4477 echo "${ECHO_T}unsupported" >&6; } ;;
4478 *)
4479 CC="$CC $ac_cv_prog_cc_c89"
4480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4482 esac
4483
4484
4485 ac_ext=c
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4490
4491 depcc="$CC" am_compiler_list=
4492
4493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 else
4498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4499 # We make a subdir and do the tests there. Otherwise we can end up
4500 # making bogus files that we don't know about and never remove. For
4501 # instance it was reported that on HP-UX the gcc test will end up
4502 # making a dummy file named `D' -- because `-MD' means `put the output
4503 # in D'.
4504 mkdir conftest.dir
4505 # Copy depcomp to subdir because otherwise we won't find it if we're
4506 # using a relative directory.
4507 cp "$am_depcomp" conftest.dir
4508 cd conftest.dir
4509 # We will build objects and dependencies in a subdirectory because
4510 # it helps to detect inapplicable dependency modes. For instance
4511 # both Tru64's cc and ICC support -MD to output dependencies as a
4512 # side effect of compilation, but ICC will put the dependencies in
4513 # the current directory while Tru64 will put them in the object
4514 # directory.
4515 mkdir sub
4516
4517 am_cv_CC_dependencies_compiler_type=none
4518 if test "$am_compiler_list" = ""; then
4519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4520 fi
4521 for depmode in $am_compiler_list; do
4522 # Setup a source with many dependencies, because some compilers
4523 # like to wrap large dependency lists on column 80 (with \), and
4524 # we should not choose a depcomp mode which is confused by this.
4525 #
4526 # We need to recreate these files for each test, as the compiler may
4527 # overwrite some of them when testing with obscure command lines.
4528 # This happens at least with the AIX C compiler.
4529 : > sub/conftest.c
4530 for i in 1 2 3 4 5 6; do
4531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4533 # Solaris 8's {/usr,}/bin/sh.
4534 touch sub/conftst$i.h
4535 done
4536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4537
4538 case $depmode in
4539 nosideeffect)
4540 # after this tag, mechanisms are not by side-effect, so they'll
4541 # only be used when explicitly requested
4542 if test "x$enable_dependency_tracking" = xyes; then
4543 continue
4544 else
4545 break
4546 fi
4547 ;;
4548 none) break ;;
4549 esac
4550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4551 # mode. It turns out that the SunPro C++ compiler does not properly
4552 # handle `-M -o', and we need to detect this.
4553 if depmode=$depmode \
4554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4557 >/dev/null 2>conftest.err &&
4558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4560 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4562 # icc doesn't choke on unknown options, it will just issue warnings
4563 # or remarks (even with -Werror). So we grep stderr for any message
4564 # that says an option was ignored or not supported.
4565 # When given -MP, icc 7.0 and 7.1 complain thusly:
4566 # icc: Command line warning: ignoring option '-M'; no argument required
4567 # The diagnosis changed in icc 8.0:
4568 # icc: Command line remark: option '-MP' not supported
4569 if (grep 'ignoring option' conftest.err ||
4570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4571 am_cv_CC_dependencies_compiler_type=$depmode
4572 break
4573 fi
4574 fi
4575 done
4576
4577 cd ..
4578 rm -rf conftest.dir
4579 else
4580 am_cv_CC_dependencies_compiler_type=none
4581 fi
4582
4583 fi
4584 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4585 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4587
4588 if
4589 test "x$enable_dependency_tracking" != xno \
4590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4591 am__fastdepCC_TRUE=
4592 am__fastdepCC_FALSE='#'
4593 else
4594 am__fastdepCC_TRUE='#'
4595 am__fastdepCC_FALSE=
4596 fi
4597
4598
4599 # Find a good install program. We prefer a C program (faster),
4600 # so one script is as good as another. But avoid the broken or
4601 # incompatible versions:
4602 # SysV /etc/install, /usr/sbin/install
4603 # SunOS /usr/etc/install
4604 # IRIX /sbin/install
4605 # AIX /bin/install
4606 # AmigaOS /C/install, which installs bootblocks on floppy discs
4607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4610 # OS/2's system install, which has a completely different semantic
4611 # ./install, which can be erroneously created by make from ./install.sh.
4612 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4613 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4614 if test -z "$INSTALL"; then
4615 if test "${ac_cv_path_install+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 # Account for people who put trailing slashes in PATH elements.
4624 case $as_dir/ in
4625 ./ | .// | /cC/* | \
4626 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4627 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4628 /usr/ucb/* ) ;;
4629 *)
4630 # OSF1 and SCO ODT 3.0 have their own names for install.
4631 # Don't use installbsd from OSF since it installs stuff as root
4632 # by default.
4633 for ac_prog in ginstall scoinst install; do
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; }; then
4636 if test $ac_prog = install &&
4637 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4638 # AIX install. It has an incompatible calling convention.
4639 :
4640 elif test $ac_prog = install &&
4641 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4642 # program-specific install script used by HP pwplus--don't use.
4643 :
4644 else
4645 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4646 break 3
4647 fi
4648 fi
4649 done
4650 done
4651 ;;
4652 esac
4653 done
4654 IFS=$as_save_IFS
4655
4656
4657 fi
4658 if test "${ac_cv_path_install+set}" = set; then
4659 INSTALL=$ac_cv_path_install
4660 else
4661 # As a last resort, use the slow shell script. Don't cache a
4662 # value for INSTALL within a source directory, because that will
4663 # break other packages using the cache if that directory is
4664 # removed, or if the value is a relative name.
4665 INSTALL=$ac_install_sh
4666 fi
4667 fi
4668 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4669 echo "${ECHO_T}$INSTALL" >&6; }
4670
4671 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4672 # It thinks the first close brace ends the variable substitution.
4673 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4674
4675 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4676
4677 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4678
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4686 # On Suns, sometimes $CPP names a directory.
4687 if test -n "$CPP" && test -d "$CPP"; then
4688 CPP=
4689 fi
4690 if test -z "$CPP"; then
4691 if test "${ac_cv_prog_CPP+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 # Double quotes because CPP needs to be expanded
4695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4696 do
4697 ac_preproc_ok=false
4698 for ac_c_preproc_warn_flag in '' yes
4699 do
4700 # Use a header file that comes with gcc, so configuring glibc
4701 # with a fresh cross-compiler works.
4702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703 # <limits.h> exists even on freestanding compilers.
4704 # On the NeXT, cc -E runs the code through the compiler's parser,
4705 # not just through cpp. "Syntax error" is here to catch this case.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717 Syntax error
4718 _ACEOF
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 :
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 # Broken: fails on valid input.
4741 continue
4742 fi
4743
4744 rm -f conftest.err conftest.$ac_ext
4745
4746 # OK, works on sane cases. Now check whether nonexistent headers
4747 # can be detected and how.
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 #include <ac_nonexistent.h>
4755 _ACEOF
4756 if { (ac_try="$ac_cpp conftest.$ac_ext"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null && {
4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 }; then
4772 # Broken: success on invalid input.
4773 continue
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 # Passes both tests.
4779 ac_preproc_ok=:
4780 break
4781 fi
4782
4783 rm -f conftest.err conftest.$ac_ext
4784
4785 done
4786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787 rm -f conftest.err conftest.$ac_ext
4788 if $ac_preproc_ok; then
4789 break
4790 fi
4791
4792 done
4793 ac_cv_prog_CPP=$CPP
4794
4795 fi
4796 CPP=$ac_cv_prog_CPP
4797 else
4798 ac_cv_prog_CPP=$CPP
4799 fi
4800 { echo "$as_me:$LINENO: result: $CPP" >&5
4801 echo "${ECHO_T}$CPP" >&6; }
4802 ac_preproc_ok=false
4803 for ac_c_preproc_warn_flag in '' yes
4804 do
4805 # Use a header file that comes with gcc, so configuring glibc
4806 # with a fresh cross-compiler works.
4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4808 # <limits.h> exists even on freestanding compilers.
4809 # On the NeXT, cc -E runs the code through the compiler's parser,
4810 # not just through cpp. "Syntax error" is here to catch this case.
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #ifdef __STDC__
4818 # include <limits.h>
4819 #else
4820 # include <assert.h>
4821 #endif
4822 Syntax error
4823 _ACEOF
4824 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 }; then
4840 :
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 # Broken: fails on valid input.
4846 continue
4847 fi
4848
4849 rm -f conftest.err conftest.$ac_ext
4850
4851 # OK, works on sane cases. Now check whether nonexistent headers
4852 # can be detected and how.
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <ac_nonexistent.h>
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null && {
4874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 }; then
4877 # Broken: success on invalid input.
4878 continue
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 # Passes both tests.
4884 ac_preproc_ok=:
4885 break
4886 fi
4887
4888 rm -f conftest.err conftest.$ac_ext
4889
4890 done
4891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892 rm -f conftest.err conftest.$ac_ext
4893 if $ac_preproc_ok; then
4894 :
4895 else
4896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4897 See \`config.log' for more details." >&5
4898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4899 See \`config.log' for more details." >&2;}
4900 { (exit 1); exit 1; }; }
4901 fi
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909 # Extract the first word of "rm", so it can be a program name with args.
4910 set dummy rm; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_path_RM+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916 case $RM in
4917 [\\/]* | ?:[\\/]*)
4918 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4919 ;;
4920 *)
4921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH
4923 do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4928 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932 done
4933 done
4934 IFS=$as_save_IFS
4935
4936 test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
4937 ;;
4938 esac
4939 fi
4940 RM=$ac_cv_path_RM
4941 if test -n "$RM"; then
4942 { echo "$as_me:$LINENO: result: $RM" >&5
4943 echo "${ECHO_T}$RM" >&6; }
4944 else
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950 # Extract the first word of "mv", so it can be a program name with args.
4951 set dummy mv; ac_word=$2
4952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4954 if test "${ac_cv_path_MV+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957 case $MV in
4958 [\\/]* | ?:[\\/]*)
4959 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4960 ;;
4961 *)
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4969 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973 done
4974 done
4975 IFS=$as_save_IFS
4976
4977 test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
4978 ;;
4979 esac
4980 fi
4981 MV=$ac_cv_path_MV
4982 if test -n "$MV"; then
4983 { echo "$as_me:$LINENO: result: $MV" >&5
4984 echo "${ECHO_T}$MV" >&6; }
4985 else
4986 { echo "$as_me:$LINENO: result: no" >&5
4987 echo "${ECHO_T}no" >&6; }
4988 fi
4989
4990
4991 # Extract the first word of "tar", so it can be a program name with args.
4992 set dummy tar; ac_word=$2
4993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4995 if test "${ac_cv_path_TAR+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 case $TAR in
4999 [\\/]* | ?:[\\/]*)
5000 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5001 ;;
5002 *)
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH
5005 do
5006 IFS=$as_save_IFS
5007 test -z "$as_dir" && as_dir=.
5008 for ac_exec_ext in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5010 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 break 2
5013 fi
5014 done
5015 done
5016 IFS=$as_save_IFS
5017
5018 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
5019 ;;
5020 esac
5021 fi
5022 TAR=$ac_cv_path_TAR
5023 if test -n "$TAR"; then
5024 { echo "$as_me:$LINENO: result: $TAR" >&5
5025 echo "${ECHO_T}$TAR" >&6; }
5026 else
5027 { echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6; }
5029 fi
5030
5031
5032
5033
5034 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5035 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5036 if test "${ac_cv_path_GREP+set}" = set; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 else
5039 # Extract the first word of "grep ggrep" to use in msg output
5040 if test -z "$GREP"; then
5041 set dummy grep ggrep; ac_prog_name=$2
5042 if test "${ac_cv_path_GREP+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 ac_path_GREP_found=false
5046 # Loop through the user's path and test for each of PROGNAME-LIST
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5049 do
5050 IFS=$as_save_IFS
5051 test -z "$as_dir" && as_dir=.
5052 for ac_prog in grep ggrep; do
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5055 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5056 # Check for GNU ac_path_GREP and select it if it is found.
5057 # Check for GNU $ac_path_GREP
5058 case `"$ac_path_GREP" --version 2>&1` in
5059 *GNU*)
5060 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5061 *)
5062 ac_count=0
5063 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5064 while :
5065 do
5066 cat "conftest.in" "conftest.in" >"conftest.tmp"
5067 mv "conftest.tmp" "conftest.in"
5068 cp "conftest.in" "conftest.nl"
5069 echo 'GREP' >> "conftest.nl"
5070 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
5071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5072 ac_count=`expr $ac_count + 1`
5073 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5074 # Best one so far, save it but keep looking for a better one
5075 ac_cv_path_GREP="$ac_path_GREP"
5076 ac_path_GREP_max=$ac_count
5077 fi
5078 # 10*(2^10) chars as input seems more than enough
5079 test $ac_count -gt 10 && break
5080 done
5081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5082 esac
5083
5084
5085 $ac_path_GREP_found && break 3
5086 done
5087 done
5088
5089 done
5090 IFS=$as_save_IFS
5091
5092
5093 fi
5094
5095 GREP="$ac_cv_path_GREP"
5096 if test -z "$GREP"; then
5097 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5098 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SE PARATOR/usr/xpg4/bin" >&2;}
5099 { (exit 1); exit 1; }; }
5100 fi
5101
5102 else
5103 ac_cv_path_GREP=$GREP
5104 fi
5105
5106
5107 fi
5108 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5109 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5110 GREP="$ac_cv_path_GREP"
5111
5112
5113 { echo "$as_me:$LINENO: checking for egrep" >&5
5114 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5115 if test "${ac_cv_path_EGREP+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 else
5118 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5119 then ac_cv_path_EGREP="$GREP -E"
5120 else
5121 # Extract the first word of "egrep" to use in msg output
5122 if test -z "$EGREP"; then
5123 set dummy egrep; ac_prog_name=$2
5124 if test "${ac_cv_path_EGREP+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127 ac_path_EGREP_found=false
5128 # Loop through the user's path and test for each of PROGNAME-LIST
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_prog in egrep; do
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5137 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5138 # Check for GNU ac_path_EGREP and select it if it is found.
5139 # Check for GNU $ac_path_EGREP
5140 case `"$ac_path_EGREP" --version 2>&1` in
5141 *GNU*)
5142 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5143 *)
5144 ac_count=0
5145 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5146 while :
5147 do
5148 cat "conftest.in" "conftest.in" >"conftest.tmp"
5149 mv "conftest.tmp" "conftest.in"
5150 cp "conftest.in" "conftest.nl"
5151 echo 'EGREP' >> "conftest.nl"
5152 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
5153 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5154 ac_count=`expr $ac_count + 1`
5155 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5156 # Best one so far, save it but keep looking for a better one
5157 ac_cv_path_EGREP="$ac_path_EGREP"
5158 ac_path_EGREP_max=$ac_count
5159 fi
5160 # 10*(2^10) chars as input seems more than enough
5161 test $ac_count -gt 10 && break
5162 done
5163 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5164 esac
5165
5166
5167 $ac_path_EGREP_found && break 3
5168 done
5169 done
5170
5171 done
5172 IFS=$as_save_IFS
5173
5174
5175 fi
5176
5177 EGREP="$ac_cv_path_EGREP"
5178 if test -z "$EGREP"; then
5179 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5180 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SE PARATOR/usr/xpg4/bin" >&2;}
5181 { (exit 1); exit 1; }; }
5182 fi
5183
5184 else
5185 ac_cv_path_EGREP=$EGREP
5186 fi
5187
5188
5189 fi
5190 fi
5191 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5192 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5193 EGREP="$ac_cv_path_EGREP"
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.$a c_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 # Check whether --enable-shared was given.
5371 if test "${enable_shared+set}" = set; then
5372 enableval=$enable_shared; p=${PACKAGE-default}
5373 case $enableval in
5374 yes) enable_shared=yes ;;
5375 no) enable_shared=no ;;
5376 *)
5377 enable_shared=no
5378 # Look at the argument we got. We use all the common list separators.
5379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5380 for pkg in $enableval; do
5381 IFS="$lt_save_ifs"
5382 if test "X$pkg" = "X$p"; then
5383 enable_shared=yes
5384 fi
5385 done
5386 IFS="$lt_save_ifs"
5387 ;;
5388 esac
5389 else
5390 enable_shared=yes
5391 fi
5392
5393
5394 # Check whether --enable-static was given.
5395 if test "${enable_static+set}" = set; then
5396 enableval=$enable_static; p=${PACKAGE-default}
5397 case $enableval in
5398 yes) enable_static=yes ;;
5399 no) enable_static=no ;;
5400 *)
5401 enable_static=no
5402 # Look at the argument we got. We use all the common list separators.
5403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5404 for pkg in $enableval; do
5405 IFS="$lt_save_ifs"
5406 if test "X$pkg" = "X$p"; then
5407 enable_static=yes
5408 fi
5409 done
5410 IFS="$lt_save_ifs"
5411 ;;
5412 esac
5413 else
5414 enable_static=yes
5415 fi
5416
5417
5418 # Check whether --enable-fast-install was given.
5419 if test "${enable_fast_install+set}" = set; then
5420 enableval=$enable_fast_install; p=${PACKAGE-default}
5421 case $enableval in
5422 yes) enable_fast_install=yes ;;
5423 no) enable_fast_install=no ;;
5424 *)
5425 enable_fast_install=no
5426 # Look at the argument we got. We use all the common list separators.
5427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5428 for pkg in $enableval; do
5429 IFS="$lt_save_ifs"
5430 if test "X$pkg" = "X$p"; then
5431 enable_fast_install=yes
5432 fi
5433 done
5434 IFS="$lt_save_ifs"
5435 ;;
5436 esac
5437 else
5438 enable_fast_install=yes
5439 fi
5440
5441
5442 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5443 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5444 if test "${lt_cv_path_SED+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 # Loop through the user's path and test for sed and gsed.
5448 # Then use that list of sed's as ones to test for truncation.
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450 for as_dir in $PATH
5451 do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for lt_ac_prog in sed gsed; do
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ ac_prog$ac_exec_ext"; }; then
5457 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5458 fi
5459 done
5460 done
5461 done
5462 IFS=$as_save_IFS
5463 lt_ac_max=0
5464 lt_ac_count=0
5465 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5466 # along with /bin/sed that truncates output.
5467 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5468 test ! -f $lt_ac_sed && continue
5469 cat /dev/null > conftest.in
5470 lt_ac_count=0
5471 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5472 # Check for GNU sed and select it if it is found.
5473 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5474 lt_cv_path_SED=$lt_ac_sed
5475 break
5476 fi
5477 while true; do
5478 cat conftest.in conftest.in >conftest.tmp
5479 mv conftest.tmp conftest.in
5480 cp conftest.in conftest.nl
5481 echo >>conftest.nl
5482 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5483 cmp -s conftest.out conftest.nl || break
5484 # 10000 chars as input seems more than enough
5485 test $lt_ac_count -gt 10 && break
5486 lt_ac_count=`expr $lt_ac_count + 1`
5487 if test $lt_ac_count -gt $lt_ac_max; then
5488 lt_ac_max=$lt_ac_count
5489 lt_cv_path_SED=$lt_ac_sed
5490 fi
5491 done
5492 done
5493
5494 fi
5495
5496 SED=$lt_cv_path_SED
5497
5498 { echo "$as_me:$LINENO: result: $SED" >&5
5499 echo "${ECHO_T}$SED" >&6; }
5500
5501
5502 # Check whether --with-gnu-ld was given.
5503 if test "${with_gnu_ld+set}" = set; then
5504 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5505 else
5506 with_gnu_ld=no
5507 fi
5508
5509 ac_prog=ld
5510 if test "$GCC" = yes; then
5511 # Check if gcc -print-prog-name=ld gives a path.
5512 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5513 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5514 case $host in
5515 *-*-mingw*)
5516 # gcc leaves a trailing carriage return which upsets mingw
5517 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5518 *)
5519 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5520 esac
5521 case $ac_prog in
5522 # Accept absolute paths.
5523 [\\/]* | ?:[\\/]*)
5524 re_direlt='/[^/][^/]*/\.\./'
5525 # Canonicalize the pathname of ld
5526 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5527 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5528 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5529 done
5530 test -z "$LD" && LD="$ac_prog"
5531 ;;
5532 "")
5533 # If it fails, then pretend we aren't using GCC.
5534 ac_prog=ld
5535 ;;
5536 *)
5537 # If it is relative, then search for the first ld in PATH.
5538 with_gnu_ld=unknown
5539 ;;
5540 esac
5541 elif test "$with_gnu_ld" = yes; then
5542 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5543 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5544 else
5545 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5546 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5547 fi
5548 if test "${lt_cv_path_LD+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 if test -z "$LD"; then
5552 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5553 for ac_dir in $PATH; do
5554 IFS="$lt_save_ifs"
5555 test -z "$ac_dir" && ac_dir=.
5556 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5557 lt_cv_path_LD="$ac_dir/$ac_prog"
5558 # Check to see if the program is GNU ld. I'd rather use --version,
5559 # but apparently some variants of GNU ld only accept -v.
5560 # Break only if it was the GNU/non-GNU ld that we prefer.
5561 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5562 *GNU* | *'with BFD'*)
5563 test "$with_gnu_ld" != no && break
5564 ;;
5565 *)
5566 test "$with_gnu_ld" != yes && break
5567 ;;
5568 esac
5569 fi
5570 done
5571 IFS="$lt_save_ifs"
5572 else
5573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5574 fi
5575 fi
5576
5577 LD="$lt_cv_path_LD"
5578 if test -n "$LD"; then
5579 { echo "$as_me:$LINENO: result: $LD" >&5
5580 echo "${ECHO_T}$LD" >&6; }
5581 else
5582 { echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6; }
5584 fi
5585 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PA TH" >&5
5586 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5587 { (exit 1); exit 1; }; }
5588 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5589 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5590 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5594 case `$LD -v 2>&1 </dev/null` in
5595 *GNU* | *'with BFD'*)
5596 lt_cv_prog_gnu_ld=yes
5597 ;;
5598 *)
5599 lt_cv_prog_gnu_ld=no
5600 ;;
5601 esac
5602 fi
5603 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5604 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5605 with_gnu_ld=$lt_cv_prog_gnu_ld
5606
5607
5608 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5609 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5610 if test "${lt_cv_ld_reload_flag+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 lt_cv_ld_reload_flag='-r'
5614 fi
5615 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5616 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5617 reload_flag=$lt_cv_ld_reload_flag
5618 case $reload_flag in
5619 "" | " "*) ;;
5620 *) reload_flag=" $reload_flag" ;;
5621 esac
5622 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5623 case $host_os in
5624 darwin*)
5625 if test "$GCC" = yes; then
5626 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5627 else
5628 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5629 fi
5630 ;;
5631 esac
5632
5633 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5634 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5635 if test "${lt_cv_path_NM+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 if test -n "$NM"; then
5639 # Let the user override the test.
5640 lt_cv_path_NM="$NM"
5641 else
5642 lt_nm_to_check="${ac_tool_prefix}nm"
5643 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5644 lt_nm_to_check="$lt_nm_to_check nm"
5645 fi
5646 for lt_tmp_nm in $lt_nm_to_check; do
5647 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5648 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5649 IFS="$lt_save_ifs"
5650 test -z "$ac_dir" && ac_dir=.
5651 tmp_nm="$ac_dir/$lt_tmp_nm"
5652 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5653 # Check to see if the nm accepts a BSD-compat flag.
5654 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5655 # nm: unknown option "B" ignored
5656 # Tru64's nm complains that /dev/null is an invalid object file
5657 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5658 */dev/null* | *'Invalid file or object type'*)
5659 lt_cv_path_NM="$tmp_nm -B"
5660 break
5661 ;;
5662 *)
5663 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5664 */dev/null*)
5665 lt_cv_path_NM="$tmp_nm -p"
5666 break
5667 ;;
5668 *)
5669 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5670 continue # so that we can try to find one that supports BSD flags
5671 ;;
5672 esac
5673 ;;
5674 esac
5675 fi
5676 done
5677 IFS="$lt_save_ifs"
5678 done
5679 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5680 fi
5681 fi
5682 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5683 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5684 NM="$lt_cv_path_NM"
5685
5686 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5687 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5688 LN_S=$as_ln_s
5689 if test "$LN_S" = "ln -s"; then
5690 { echo "$as_me:$LINENO: result: yes" >&5
5691 echo "${ECHO_T}yes" >&6; }
5692 else
5693 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5694 echo "${ECHO_T}no, using $LN_S" >&6; }
5695 fi
5696
5697 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5698 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5699 if test "${lt_cv_deplibs_check_method+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 lt_cv_file_magic_cmd='$MAGIC_CMD'
5703 lt_cv_file_magic_test_file=
5704 lt_cv_deplibs_check_method='unknown'
5705 # Need to set the preceding variable on all platforms that support
5706 # interlibrary dependencies.
5707 # 'none' -- dependencies not supported.
5708 # `unknown' -- same as none, but documents that we really don't know.
5709 # 'pass_all' -- all dependencies passed with no checks.
5710 # 'test_compile' -- check by making test program.
5711 # 'file_magic [[regex]]' -- check by looking for files in library path
5712 # which responds to the $file_magic_cmd with a given extended regex.
5713 # If you have `file' or equivalent on your system and you're not sure
5714 # whether `pass_all' will *always* work, you probably want this one.
5715
5716 case $host_os in
5717 aix4* | aix5*)
5718 lt_cv_deplibs_check_method=pass_all
5719 ;;
5720
5721 beos*)
5722 lt_cv_deplibs_check_method=pass_all
5723 ;;
5724
5725 bsdi[45]*)
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje ct|dynamic lib)'
5727 lt_cv_file_magic_cmd='/usr/bin/file -L'
5728 lt_cv_file_magic_test_file=/shlib/libc.so
5729 ;;
5730
5731 cygwin*)
5732 # func_win32_libid is a shell function defined in ltmain.sh
5733 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5734 lt_cv_file_magic_cmd='func_win32_libid'
5735 ;;
5736
5737 mingw* | pw32*)
5738 # Base MSYS/MinGW do not provide the 'file' command needed by
5739 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5740 # unless we find 'file', for example because we are cross-compiling.
5741 if ( file / ) >/dev/null 2>&1; then
5742 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5743 lt_cv_file_magic_cmd='func_win32_libid'
5744 else
5745 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5746 lt_cv_file_magic_cmd='$OBJDUMP -f'
5747 fi
5748 ;;
5749
5750 darwin* | rhapsody*)
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 freebsd* | dragonfly*)
5755 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5756 case $host_cpu in
5757 i*86 )
5758 # Not sure whether the presence of OpenBSD here was a mistake.
5759 # Let's accept both of them until this is cleared up.
5760 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 6 (compact )?demand paged shared library'
5761 lt_cv_file_magic_cmd=/usr/bin/file
5762 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5763 ;;
5764 esac
5765 else
5766 lt_cv_deplibs_check_method=pass_all
5767 fi
5768 ;;
5769
5770 gnu*)
5771 lt_cv_deplibs_check_method=pass_all
5772 ;;
5773
5774 hpux10.20* | hpux11*)
5775 lt_cv_file_magic_cmd=/usr/bin/file
5776 case $host_cpu in
5777 ia64*)
5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - IA64'
5779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5780 ;;
5781 hppa*64*)
5782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - PA-RISC [0-9].[0-9]'
5783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5784 ;;
5785 *)
5786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5787 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5788 ;;
5789 esac
5790 ;;
5791
5792 interix[3-9]*)
5793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5795 ;;
5796
5797 irix5* | irix6* | nonstopux*)
5798 case $LD in
5799 *-32|*"-32 ") libmagic=32-bit;;
5800 *-n32|*"-n32 ") libmagic=N32;;
5801 *-64|*"-64 ") libmagic=64-bit;;
5802 *) libmagic=never-match;;
5803 esac
5804 lt_cv_deplibs_check_method=pass_all
5805 ;;
5806
5807 # This must be Linux ELF.
5808 linux* | k*bsd*-gnu)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 netbsd*)
5813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
5815 else
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5817 fi
5818 ;;
5819
5820 newos6*)
5821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| dynamic lib)'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5824 ;;
5825
5826 nto-qnx*)
5827 lt_cv_deplibs_check_method=unknown
5828 ;;
5829
5830 openbsd*)
5831 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_ cpu" = "openbsd2.8-powerpc"; then
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s o|_pic\.a)$'
5833 else
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
5835 fi
5836 ;;
5837
5838 osf3* | osf4* | osf5*)
5839 lt_cv_deplibs_check_method=pass_all
5840 ;;
5841
5842 rdos*)
5843 lt_cv_deplibs_check_method=pass_all
5844 ;;
5845
5846 solaris*)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850 sysv4 | sysv4.3*)
5851 case $host_vendor in
5852 motorola)
5853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob ject|dynamic lib) M[0-9][0-9]* Version [0-9]'
5854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5855 ;;
5856 ncr)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859 sequent)
5860 lt_cv_file_magic_cmd='/bin/file'
5861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob ject|dynamic lib )'
5862 ;;
5863 sni)
5864 lt_cv_file_magic_cmd='/bin/file'
5865 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li b"
5866 lt_cv_file_magic_test_file=/lib/libc.so
5867 ;;
5868 siemens)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871 pc)
5872 lt_cv_deplibs_check_method=pass_all
5873 ;;
5874 esac
5875 ;;
5876
5877 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880 esac
5881
5882 fi
5883 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5884 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5885 file_magic_cmd=$lt_cv_file_magic_cmd
5886 deplibs_check_method=$lt_cv_deplibs_check_method
5887 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5888
5889
5890
5891
5892 # If no C compiler was specified, use CC.
5893 LTCC=${LTCC-"$CC"}
5894
5895 # If no C compiler flags were specified, use CFLAGS.
5896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5897
5898 # Allow CC to be a program name with arguments.
5899 compiler=$CC
5900
5901 # Check whether --enable-libtool-lock was given.
5902 if test "${enable_libtool_lock+set}" = set; then
5903 enableval=$enable_libtool_lock;
5904 fi
5905
5906 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5907
5908 # Some flags need to be propagated to the compiler or linker for good
5909 # libtool support.
5910 case $host in
5911 ia64-*-hpux*)
5912 # Find out which ABI we are using.
5913 echo 'int i;' > conftest.$ac_ext
5914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5915 (eval $ac_compile) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; then
5919 case `/usr/bin/file conftest.$ac_objext` in
5920 *ELF-32*)
5921 HPUX_IA64_MODE="32"
5922 ;;
5923 *ELF-64*)
5924 HPUX_IA64_MODE="64"
5925 ;;
5926 esac
5927 fi
5928 rm -rf conftest*
5929 ;;
5930 *-*-irix6*)
5931 # Find out which ABI we are using.
5932 echo '#line 5932 "configure"' > conftest.$ac_ext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; then
5938 if test "$lt_cv_prog_gnu_ld" = yes; then
5939 case `/usr/bin/file conftest.$ac_objext` in
5940 *32-bit*)
5941 LD="${LD-ld} -melf32bsmip"
5942 ;;
5943 *N32*)
5944 LD="${LD-ld} -melf32bmipn32"
5945 ;;
5946 *64-bit*)
5947 LD="${LD-ld} -melf64bmip"
5948 ;;
5949 esac
5950 else
5951 case `/usr/bin/file conftest.$ac_objext` in
5952 *32-bit*)
5953 LD="${LD-ld} -32"
5954 ;;
5955 *N32*)
5956 LD="${LD-ld} -n32"
5957 ;;
5958 *64-bit*)
5959 LD="${LD-ld} -64"
5960 ;;
5961 esac
5962 fi
5963 fi
5964 rm -rf conftest*
5965 ;;
5966
5967 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5968 s390*-*linux*|sparc*-*linux*)
5969 # Find out which ABI we are using.
5970 echo 'int i;' > conftest.$ac_ext
5971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972 (eval $ac_compile) 2>&5
5973 ac_status=$?
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; then
5976 case `/usr/bin/file conftest.o` in
5977 *32-bit*)
5978 case $host in
5979 x86_64-*kfreebsd*-gnu)
5980 LD="${LD-ld} -m elf_i386_fbsd"
5981 ;;
5982 x86_64-*linux*)
5983 LD="${LD-ld} -m elf_i386"
5984 ;;
5985 ppc64-*linux*|powerpc64-*linux*)
5986 LD="${LD-ld} -m elf32ppclinux"
5987 ;;
5988 s390x-*linux*)
5989 LD="${LD-ld} -m elf_s390"
5990 ;;
5991 sparc64-*linux*)
5992 LD="${LD-ld} -m elf32_sparc"
5993 ;;
5994 esac
5995 ;;
5996 *64-bit*)
5997 libsuff=64
5998 case $host in
5999 x86_64-*kfreebsd*-gnu)
6000 LD="${LD-ld} -m elf_x86_64_fbsd"
6001 ;;
6002 x86_64-*linux*)
6003 LD="${LD-ld} -m elf_x86_64"
6004 ;;
6005 ppc*-*linux*|powerpc*-*linux*)
6006 LD="${LD-ld} -m elf64ppc"
6007 ;;
6008 s390*-*linux*)
6009 LD="${LD-ld} -m elf64_s390"
6010 ;;
6011 sparc*-*linux*)
6012 LD="${LD-ld} -m elf64_sparc"
6013 ;;
6014 esac
6015 ;;
6016 esac
6017 fi
6018 rm -rf conftest*
6019 ;;
6020
6021 *-*-sco3.2v5*)
6022 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6023 SAVE_CFLAGS="$CFLAGS"
6024 CFLAGS="$CFLAGS -belf"
6025 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6026 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6027 if test "${lt_cv_cc_needs_belf+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030 ac_ext=c
6031 ac_cpp='$CPP $CPPFLAGS'
6032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036 cat >conftest.$ac_ext <<_ACEOF
6037 /* confdefs.h. */
6038 _ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042
6043 int
6044 main ()
6045 {
6046
6047 ;
6048 return 0;
6049 }
6050 _ACEOF
6051 rm -f conftest.$ac_objext conftest$ac_exeext
6052 if { (ac_try="$ac_link"
6053 case "(($ac_try" in
6054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055 *) ac_try_echo=$ac_try;;
6056 esac
6057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6058 (eval "$ac_link") 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest$ac_exeext &&
6068 $as_test_x conftest$ac_exeext; then
6069 lt_cv_cc_needs_belf=yes
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 lt_cv_cc_needs_belf=no
6075 fi
6076
6077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6079 ac_ext=c
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084
6085 fi
6086 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6087 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6090 CFLAGS="$SAVE_CFLAGS"
6091 fi
6092 ;;
6093 sparc*-*solaris*)
6094 # Find out which ABI we are using.
6095 echo 'int i;' > conftest.$ac_ext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; then
6101 case `/usr/bin/file conftest.o` in
6102 *64-bit*)
6103 case $lt_cv_prog_gnu_ld in
6104 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6105 *) LD="${LD-ld} -64" ;;
6106 esac
6107 ;;
6108 esac
6109 fi
6110 rm -rf conftest*
6111 ;;
6112
6113
6114 esac
6115
6116 need_locks="$enable_libtool_lock"
6117
6118
6119 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6130 inttypes.h stdint.h unistd.h
6131 do
6132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 else
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6145
6146 #include <$ac_header>
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (ac_try="$ac_compile"
6150 case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_compile") 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } && {
6162 test -z "$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6164 } && test -s conftest.$ac_objext; then
6165 eval "$as_ac_Header=yes"
6166 else
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 eval "$as_ac_Header=no"
6171 fi
6172
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 ac_res=`eval echo '${'$as_ac_Header'}'`
6176 { echo "$as_me:$LINENO: result: $ac_res" >&5
6177 echo "${ECHO_T}$ac_res" >&6; }
6178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6179 cat >>confdefs.h <<_ACEOF
6180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6181 _ACEOF
6182
6183 fi
6184
6185 done
6186
6187
6188
6189 for ac_header in dlfcn.h
6190 do
6191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 fi
6198 ac_res=`eval echo '${'$as_ac_Header'}'`
6199 { echo "$as_me:$LINENO: result: $ac_res" >&5
6200 echo "${ECHO_T}$ac_res" >&6; }
6201 else
6202 # Is the header compilable?
6203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6212 #include <$ac_header>
6213 _ACEOF
6214 rm -f conftest.$ac_objext
6215 if { (ac_try="$ac_compile"
6216 case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compile") 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest.$ac_objext; then
6231 ac_header_compiler=yes
6232 else
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_header_compiler=no
6237 fi
6238
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6241 echo "${ECHO_T}$ac_header_compiler" >&6; }
6242
6243 # Is the header present?
6244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6246 cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h. */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h. */
6252 #include <$ac_header>
6253 _ACEOF
6254 if { (ac_try="$ac_cpp conftest.$ac_ext"
6255 case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } >/dev/null && {
6267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6269 }; then
6270 ac_header_preproc=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_header_preproc=no
6276 fi
6277
6278 rm -f conftest.err conftest.$ac_ext
6279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6280 echo "${ECHO_T}$ac_header_preproc" >&6; }
6281
6282 # So? What about this header?
6283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6284 yes:no: )
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec ted by the preprocessor!" >&5
6286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre processor!" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6289 ac_header_preproc=yes
6290 ;;
6291 no:yes:* )
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis ite headers?" >&5
6295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno t Be Compiled\"" >&5
6299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\ "" >&2;}
6300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso r's result" >&5
6301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 2;}
6302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil l take precedence" >&5
6303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede nce" >&2;}
6304
6305 ;;
6306 esac
6307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 eval "$as_ac_Header=\$ac_header_preproc"
6313 fi
6314 ac_res=`eval echo '${'$as_ac_Header'}'`
6315 { echo "$as_me:$LINENO: result: $ac_res" >&5
6316 echo "${ECHO_T}$ac_res" >&6; }
6317
6318 fi
6319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6320 cat >>confdefs.h <<_ACEOF
6321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6322 _ACEOF
6323
6324 fi
6325
6326 done
6327
6328 ac_ext=cpp
6329 ac_cpp='$CXXCPP $CPPFLAGS'
6330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
6332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6333 if test -z "$CXX"; then
6334 if test -n "$CCC"; then
6335 CXX=$CCC
6336 else
6337 if test -n "$ac_tool_prefix"; then
6338 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6339 do
6340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
6341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_prog_CXX+set}" = set; then
6345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347 if test -n "$CXX"; then
6348 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6357 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 CXX=$ac_cv_prog_CXX
6368 if test -n "$CXX"; then
6369 { echo "$as_me:$LINENO: result: $CXX" >&5
6370 echo "${ECHO_T}$CXX" >&6; }
6371 else
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6374 fi
6375
6376
6377 test -n "$CXX" && break
6378 done
6379 fi
6380 if test -z "$CXX"; then
6381 ac_ct_CXX=$CXX
6382 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6383 do
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385 set dummy $ac_prog; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391 if test -n "$ac_ct_CXX"; then
6392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6401 ac_cv_prog_ac_ct_CXX="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6412 if test -n "$ac_ct_CXX"; then
6413 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6414 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6415 else
6416 { echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6; }
6418 fi
6419
6420
6421 test -n "$ac_ct_CXX" && break
6422 done
6423
6424 if test "x$ac_ct_CXX" = x; then
6425 CXX="g++"
6426 else
6427 case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
6430 whose name does not start with the host triplet. If you think this
6431 configuration is useful to you, please write to autoconf@gnu.org." >&5
6432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437 CXX=$ac_ct_CXX
6438 fi
6439 fi
6440
6441 fi
6442 fi
6443 # Provide some information about the compiler.
6444 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6445 ac_compiler=`set X $ac_compile; echo $2`
6446 { (ac_try="$ac_compiler --version >&5"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compiler --version >&5") 2>&5
6453 ac_status=$?
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }
6456 { (ac_try="$ac_compiler -v >&5"
6457 case "(($ac_try" in
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6460 esac
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compiler -v >&5") 2>&5
6463 ac_status=$?
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }
6466 { (ac_try="$ac_compiler -V >&5"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compiler -V >&5") 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }
6476
6477 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6478 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 ; }
6479 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482 cat >conftest.$ac_ext <<_ACEOF
6483 /* confdefs.h. */
6484 _ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488
6489 int
6490 main ()
6491 {
6492 #ifndef __GNUC__
6493 choke me
6494 #endif
6495
6496 ;
6497 return 0;
6498 }
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_cxx_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 ac_compiler_gnu=yes
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522 ac_compiler_gnu=no
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6527
6528 fi
6529 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6530 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6531 GXX=`test $ac_compiler_gnu = yes && echo yes`
6532 ac_test_CXXFLAGS=${CXXFLAGS+set}
6533 ac_save_CXXFLAGS=$CXXFLAGS
6534 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6535 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6536 if test "${ac_cv_prog_cxx_g+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6540 ac_cxx_werror_flag=yes
6541 ac_cv_prog_cxx_g=no
6542 CXXFLAGS="-g"
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549
6550 int
6551 main ()
6552 {
6553
6554 ;
6555 return 0;
6556 }
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (ac_try="$ac_compile"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_compile") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } && {
6572 test -z "$ac_cxx_werror_flag" ||
6573 test ! -s conftest.err
6574 } && test -s conftest.$ac_objext; then
6575 ac_cv_prog_cxx_g=yes
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 CXXFLAGS=""
6581 cat >conftest.$ac_ext <<_ACEOF
6582 /* confdefs.h. */
6583 _ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6587
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6598 case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_cxx_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 :
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6619 CXXFLAGS="-g"
6620 cat >conftest.$ac_ext <<_ACEOF
6621 /* confdefs.h. */
6622 _ACEOF
6623 cat confdefs.h >>conftest.$ac_ext
6624 cat >>conftest.$ac_ext <<_ACEOF
6625 /* end confdefs.h. */
6626
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_cxx_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_prog_cxx_g=yes
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6656
6657
6658 fi
6659
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 fi
6662
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 fi
6665
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6668 fi
6669 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6670 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6671 if test "$ac_test_CXXFLAGS" = set; then
6672 CXXFLAGS=$ac_save_CXXFLAGS
6673 elif test $ac_cv_prog_cxx_g = yes; then
6674 if test "$GXX" = yes; then
6675 CXXFLAGS="-g -O2"
6676 else
6677 CXXFLAGS="-g"
6678 fi
6679 else
6680 if test "$GXX" = yes; then
6681 CXXFLAGS="-O2"
6682 else
6683 CXXFLAGS=
6684 fi
6685 fi
6686 ac_ext=cpp
6687 ac_cpp='$CXXCPP $CPPFLAGS'
6688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6691
6692 depcc="$CXX" am_compiler_list=
6693
6694 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6695 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6696 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6700 # We make a subdir and do the tests there. Otherwise we can end up
6701 # making bogus files that we don't know about and never remove. For
6702 # instance it was reported that on HP-UX the gcc test will end up
6703 # making a dummy file named `D' -- because `-MD' means `put the output
6704 # in D'.
6705 mkdir conftest.dir
6706 # Copy depcomp to subdir because otherwise we won't find it if we're
6707 # using a relative directory.
6708 cp "$am_depcomp" conftest.dir
6709 cd conftest.dir
6710 # We will build objects and dependencies in a subdirectory because
6711 # it helps to detect inapplicable dependency modes. For instance
6712 # both Tru64's cc and ICC support -MD to output dependencies as a
6713 # side effect of compilation, but ICC will put the dependencies in
6714 # the current directory while Tru64 will put them in the object
6715 # directory.
6716 mkdir sub
6717
6718 am_cv_CXX_dependencies_compiler_type=none
6719 if test "$am_compiler_list" = ""; then
6720 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6721 fi
6722 for depmode in $am_compiler_list; do
6723 # Setup a source with many dependencies, because some compilers
6724 # like to wrap large dependency lists on column 80 (with \), and
6725 # we should not choose a depcomp mode which is confused by this.
6726 #
6727 # We need to recreate these files for each test, as the compiler may
6728 # overwrite some of them when testing with obscure command lines.
6729 # This happens at least with the AIX C compiler.
6730 : > sub/conftest.c
6731 for i in 1 2 3 4 5 6; do
6732 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6733 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6734 # Solaris 8's {/usr,}/bin/sh.
6735 touch sub/conftst$i.h
6736 done
6737 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6738
6739 case $depmode in
6740 nosideeffect)
6741 # after this tag, mechanisms are not by side-effect, so they'll
6742 # only be used when explicitly requested
6743 if test "x$enable_dependency_tracking" = xyes; then
6744 continue
6745 else
6746 break
6747 fi
6748 ;;
6749 none) break ;;
6750 esac
6751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6752 # mode. It turns out that the SunPro C++ compiler does not properly
6753 # handle `-M -o', and we need to detect this.
6754 if depmode=$depmode \
6755 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6757 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6758 >/dev/null 2>conftest.err &&
6759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6761 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6763 # icc doesn't choke on unknown options, it will just issue warnings
6764 # or remarks (even with -Werror). So we grep stderr for any message
6765 # that says an option was ignored or not supported.
6766 # When given -MP, icc 7.0 and 7.1 complain thusly:
6767 # icc: Command line warning: ignoring option '-M'; no argument required
6768 # The diagnosis changed in icc 8.0:
6769 # icc: Command line remark: option '-MP' not supported
6770 if (grep 'ignoring option' conftest.err ||
6771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6772 am_cv_CXX_dependencies_compiler_type=$depmode
6773 break
6774 fi
6775 fi
6776 done
6777
6778 cd ..
6779 rm -rf conftest.dir
6780 else
6781 am_cv_CXX_dependencies_compiler_type=none
6782 fi
6783
6784 fi
6785 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6786 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6787 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6788
6789 if
6790 test "x$enable_dependency_tracking" != xno \
6791 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6792 am__fastdepCXX_TRUE=
6793 am__fastdepCXX_FALSE='#'
6794 else
6795 am__fastdepCXX_TRUE='#'
6796 am__fastdepCXX_FALSE=
6797 fi
6798
6799
6800
6801
6802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6804 (test "X$CXX" != "Xg++"))) ; then
6805 ac_ext=cpp
6806 ac_cpp='$CXXCPP $CPPFLAGS'
6807 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6808 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
6809 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6810 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6811 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6812 if test -z "$CXXCPP"; then
6813 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816 # Double quotes because CXXCPP needs to be expanded
6817 for CXXCPP in "$CXX -E" "/lib/cpp"
6818 do
6819 ac_preproc_ok=false
6820 for ac_cxx_preproc_warn_flag in '' yes
6821 do
6822 # Use a header file that comes with gcc, so configuring glibc
6823 # with a fresh cross-compiler works.
6824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6825 # <limits.h> exists even on freestanding compilers.
6826 # On the NeXT, cc -E runs the code through the compiler's parser,
6827 # not just through cpp. "Syntax error" is here to catch this case.
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #ifdef __STDC__
6835 # include <limits.h>
6836 #else
6837 # include <assert.h>
6838 #endif
6839 Syntax error
6840 _ACEOF
6841 if { (ac_try="$ac_cpp conftest.$ac_ext"
6842 case "(($ac_try" in
6843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6845 esac
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6848 ac_status=$?
6849 grep -v '^ *+' conftest.er1 >conftest.err
6850 rm -f conftest.er1
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } >/dev/null && {
6854 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6855 test ! -s conftest.err
6856 }; then
6857 :
6858 else
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6861
6862 # Broken: fails on valid input.
6863 continue
6864 fi
6865
6866 rm -f conftest.err conftest.$ac_ext
6867
6868 # OK, works on sane cases. Now check whether nonexistent headers
6869 # can be detected and how.
6870 cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h. */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6876 #include <ac_nonexistent.h>
6877 _ACEOF
6878 if { (ac_try="$ac_cpp conftest.$ac_ext"
6879 case "(($ac_try" in
6880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6881 *) ac_try_echo=$ac_try;;
6882 esac
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6885 ac_status=$?
6886 grep -v '^ *+' conftest.er1 >conftest.err
6887 rm -f conftest.er1
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } >/dev/null && {
6891 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6892 test ! -s conftest.err
6893 }; then
6894 # Broken: success on invalid input.
6895 continue
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6899
6900 # Passes both tests.
6901 ac_preproc_ok=:
6902 break
6903 fi
6904
6905 rm -f conftest.err conftest.$ac_ext
6906
6907 done
6908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6909 rm -f conftest.err conftest.$ac_ext
6910 if $ac_preproc_ok; then
6911 break
6912 fi
6913
6914 done
6915 ac_cv_prog_CXXCPP=$CXXCPP
6916
6917 fi
6918 CXXCPP=$ac_cv_prog_CXXCPP
6919 else
6920 ac_cv_prog_CXXCPP=$CXXCPP
6921 fi
6922 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6923 echo "${ECHO_T}$CXXCPP" >&6; }
6924 ac_preproc_ok=false
6925 for ac_cxx_preproc_warn_flag in '' yes
6926 do
6927 # Use a header file that comes with gcc, so configuring glibc
6928 # with a fresh cross-compiler works.
6929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930 # <limits.h> exists even on freestanding compilers.
6931 # On the NeXT, cc -E runs the code through the compiler's parser,
6932 # not just through cpp. "Syntax error" is here to catch this case.
6933 cat >conftest.$ac_ext <<_ACEOF
6934 /* confdefs.h. */
6935 _ACEOF
6936 cat confdefs.h >>conftest.$ac_ext
6937 cat >>conftest.$ac_ext <<_ACEOF
6938 /* end confdefs.h. */
6939 #ifdef __STDC__
6940 # include <limits.h>
6941 #else
6942 # include <assert.h>
6943 #endif
6944 Syntax error
6945 _ACEOF
6946 if { (ac_try="$ac_cpp conftest.$ac_ext"
6947 case "(($ac_try" in
6948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949 *) ac_try_echo=$ac_try;;
6950 esac
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6953 ac_status=$?
6954 grep -v '^ *+' conftest.er1 >conftest.err
6955 rm -f conftest.er1
6956 cat conftest.err >&5
6957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958 (exit $ac_status); } >/dev/null && {
6959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6960 test ! -s conftest.err
6961 }; then
6962 :
6963 else
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967 # Broken: fails on valid input.
6968 continue
6969 fi
6970
6971 rm -f conftest.err conftest.$ac_ext
6972
6973 # OK, works on sane cases. Now check whether nonexistent headers
6974 # can be detected and how.
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #include <ac_nonexistent.h>
6982 _ACEOF
6983 if { (ac_try="$ac_cpp conftest.$ac_ext"
6984 case "(($ac_try" in
6985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986 *) ac_try_echo=$ac_try;;
6987 esac
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } >/dev/null && {
6996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6997 test ! -s conftest.err
6998 }; then
6999 # Broken: success on invalid input.
7000 continue
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 # Passes both tests.
7006 ac_preproc_ok=:
7007 break
7008 fi
7009
7010 rm -f conftest.err conftest.$ac_ext
7011
7012 done
7013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7014 rm -f conftest.err conftest.$ac_ext
7015 if $ac_preproc_ok; then
7016 :
7017 else
7018 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity che ck
7019 See \`config.log' for more details." >&5
7020 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7021 See \`config.log' for more details." >&2;}
7022 { (exit 1); exit 1; }; }
7023 fi
7024
7025 ac_ext=cpp
7026 ac_cpp='$CXXCPP $CPPFLAGS'
7027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
7029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7030
7031 fi
7032
7033
7034 ac_ext=f
7035 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7036 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7038 if test -n "$ac_tool_prefix"; then
7039 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pgh pf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7040 do
7041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
7042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7045 if test "${ac_cv_prog_F77+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 else
7048 if test -n "$F77"; then
7049 ac_cv_prog_F77="$F77" # Let the user override the test.
7050 else
7051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052 for as_dir in $PATH
7053 do
7054 IFS=$as_save_IFS
7055 test -z "$as_dir" && as_dir=.
7056 for ac_exec_ext in '' $ac_executable_extensions; do
7057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7058 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060 break 2
7061 fi
7062 done
7063 done
7064 IFS=$as_save_IFS
7065
7066 fi
7067 fi
7068 F77=$ac_cv_prog_F77
7069 if test -n "$F77"; then
7070 { echo "$as_me:$LINENO: result: $F77" >&5
7071 echo "${ECHO_T}$F77" >&6; }
7072 else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7075 fi
7076
7077
7078 test -n "$F77" && break
7079 done
7080 fi
7081 if test -z "$F77"; then
7082 ac_ct_F77=$F77
7083 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pgh pf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7084 do
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 if test -n "$ac_ct_F77"; then
7093 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7102 ac_cv_prog_ac_ct_F77="$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7113 if test -n "$ac_ct_F77"; then
7114 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7115 echo "${ECHO_T}$ac_ct_F77" >&6; }
7116 else
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 test -n "$ac_ct_F77" && break
7123 done
7124
7125 if test "x$ac_ct_F77" = x; then
7126 F77=""
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
7131 whose name does not start with the host triplet. If you think this
7132 configuration is useful to you, please write to autoconf@gnu.org." >&5
7133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7134 whose name does not start with the host triplet. If you think this
7135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7136 ac_tool_warned=yes ;;
7137 esac
7138 F77=$ac_ct_F77
7139 fi
7140 fi
7141
7142
7143 # Provide some information about the compiler.
7144 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7145 ac_compiler=`set X $ac_compile; echo $2`
7146 { (ac_try="$ac_compiler --version >&5"
7147 case "(($ac_try" in
7148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149 *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152 (eval "$ac_compiler --version >&5") 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }
7156 { (ac_try="$ac_compiler -v >&5"
7157 case "(($ac_try" in
7158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7159 *) ac_try_echo=$ac_try;;
7160 esac
7161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7162 (eval "$ac_compiler -v >&5") 2>&5
7163 ac_status=$?
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }
7166 { (ac_try="$ac_compiler -V >&5"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_compiler -V >&5") 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }
7176 rm -f a.out
7177
7178 # If we don't use `.F' as extension, the preprocessor is not run on the
7179 # input file. (Note that this only needs to work for GNU compilers.)
7180 ac_save_ext=$ac_ext
7181 ac_ext=F
7182 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compile r" >&5
7183 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO _C" >&6; }
7184 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 cat >conftest.$ac_ext <<_ACEOF
7188 program main
7189 #ifndef __GNUC__
7190 choke me
7191 #endif
7192
7193 end
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7197 case "(($ac_try" in
7198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7200 esac
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
7203 ac_status=$?
7204 grep -v '^ *+' conftest.er1 >conftest.err
7205 rm -f conftest.er1
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_f77_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.$ac_objext; then
7212 ac_compiler_gnu=yes
7213 else
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 ac_compiler_gnu=no
7218 fi
7219
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7222
7223 fi
7224 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7225 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7226 ac_ext=$ac_save_ext
7227 ac_test_FFLAGS=${FFLAGS+set}
7228 ac_save_FFLAGS=$FFLAGS
7229 FFLAGS=
7230 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7231 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7232 if test "${ac_cv_prog_f77_g+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 FFLAGS=-g
7236 cat >conftest.$ac_ext <<_ACEOF
7237 program main
7238
7239 end
7240 _ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (ac_try="$ac_compile"
7243 case "(($ac_try" in
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7246 esac
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_compile") 2>conftest.er1
7249 ac_status=$?
7250 grep -v '^ *+' conftest.er1 >conftest.err
7251 rm -f conftest.er1
7252 cat conftest.err >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && {
7255 test -z "$ac_f77_werror_flag" ||
7256 test ! -s conftest.err
7257 } && test -s conftest.$ac_objext; then
7258 ac_cv_prog_f77_g=yes
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 ac_cv_prog_f77_g=no
7264 fi
7265
7266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267
7268 fi
7269 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7270 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7271 if test "$ac_test_FFLAGS" = set; then
7272 FFLAGS=$ac_save_FFLAGS
7273 elif test $ac_cv_prog_f77_g = yes; then
7274 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7275 FFLAGS="-g -O2"
7276 else
7277 FFLAGS="-g"
7278 fi
7279 else
7280 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7281 FFLAGS="-O2"
7282 else
7283 FFLAGS=
7284 fi
7285 fi
7286
7287 G77=`test $ac_compiler_gnu = yes && echo yes`
7288 ac_ext=c
7289 ac_cpp='$CPP $CPPFLAGS'
7290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
7292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7293
7294
7295
7296 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7297
7298 # find the maximum length of command line arguments
7299 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" > &5
7300 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7301 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 i=0
7305 teststring="ABCD"
7306
7307 case $build_os in
7308 msdosdjgpp*)
7309 # On DJGPP, this test can blow up pretty badly due to problems in libc
7310 # (any single argument exceeding 2000 bytes causes a buffer overrun
7311 # during glob expansion). Even if it were fixed, the result of this
7312 # check would be larger than it should be.
7313 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7314 ;;
7315
7316 gnu*)
7317 # Under GNU Hurd, this test is not required because there is
7318 # no limit to the length of command line arguments.
7319 # Libtool will interpret -1 as no limit whatsoever
7320 lt_cv_sys_max_cmd_len=-1;
7321 ;;
7322
7323 cygwin* | mingw*)
7324 # On Win9x/ME, this test blows up -- it succeeds, but takes
7325 # about 5 minutes as the teststring grows exponentially.
7326 # Worse, since 9x/ME are not pre-emptively multitasking,
7327 # you end up with a "frozen" computer, even though with patience
7328 # the test eventually succeeds (with a max line length of 256k).
7329 # Instead, let's just punt: use the minimum linelength reported by
7330 # all of the supported platforms: 8192 (on NT/2K/XP).
7331 lt_cv_sys_max_cmd_len=8192;
7332 ;;
7333
7334 amigaos*)
7335 # On AmigaOS with pdksh, this test takes hours, literally.
7336 # So we just punt and use a minimum line length of 8192.
7337 lt_cv_sys_max_cmd_len=8192;
7338 ;;
7339
7340 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7341 # This has been around since 386BSD, at least. Likely further.
7342 if test -x /sbin/sysctl; then
7343 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7344 elif test -x /usr/sbin/sysctl; then
7345 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7346 else
7347 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7348 fi
7349 # And add a safety zone
7350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7352 ;;
7353
7354 interix*)
7355 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7356 lt_cv_sys_max_cmd_len=196608
7357 ;;
7358
7359 osf*)
7360 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7361 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7362 # nice to cause kernel panics so lets avoid the loop below.
7363 # First set a reasonable default.
7364 lt_cv_sys_max_cmd_len=16384
7365 #
7366 if test -x /sbin/sysconfig; then
7367 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7368 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7369 esac
7370 fi
7371 ;;
7372 sco3.2v5*)
7373 lt_cv_sys_max_cmd_len=102400
7374 ;;
7375 sysv5* | sco5v6* | sysv4.2uw2*)
7376 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7377 if test -n "$kargmax"; then
7378 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7379 else
7380 lt_cv_sys_max_cmd_len=32768
7381 fi
7382 ;;
7383 *)
7384 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7385 if test -n "$lt_cv_sys_max_cmd_len"; then
7386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7388 else
7389 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7390 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7391 = "XX$teststring") >/dev/null 2>&1 &&
7392 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7393 lt_cv_sys_max_cmd_len=$new_result &&
7394 test $i != 17 # 1/2 MB should be enough
7395 do
7396 i=`expr $i + 1`
7397 teststring=$teststring$teststring
7398 done
7399 teststring=
7400 # Add a significant safety factor because C++ compilers can tack on massiv e
7401 # amounts of additional arguments before passing them to the linker.
7402 # It appears as though 1/2 is a usable value.
7403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7404 fi
7405 ;;
7406 esac
7407
7408 fi
7409
7410 if test -n $lt_cv_sys_max_cmd_len ; then
7411 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7412 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7413 else
7414 { echo "$as_me:$LINENO: result: none" >&5
7415 echo "${ECHO_T}none" >&6; }
7416 fi
7417
7418
7419
7420
7421
7422 # Check for command to grab the raw symbol name followed by C symbol from nm.
7423 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler obje ct" >&5
7424 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECH O_C" >&6; }
7425 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428
7429 # These are sane defaults that work on at least a few old systems.
7430 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7431
7432 # Character class describing NM global symbol codes.
7433 symcode='[BCDEGRST]'
7434
7435 # Regexp to match symbols that can be accessed directly from C.
7436 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7437
7438 # Transform an extracted symbol line into a proper C declaration
7439 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7440
7441 # Transform an extracted symbol line into symbol name and symbol address
7442 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'"
7443
7444 # Define system-specific variables.
7445 case $host_os in
7446 aix*)
7447 symcode='[BCDT]'
7448 ;;
7449 cygwin* | mingw* | pw32*)
7450 symcode='[ABCDGISTW]'
7451 ;;
7452 hpux*) # Its linker distinguishes data from code symbols
7453 if test "$host_cpu" = ia64; then
7454 symcode='[ABCDEGRST]'
7455 fi
7456 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/ p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7457 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'"
7458 ;;
7459 linux* | k*bsd*-gnu)
7460 if test "$host_cpu" = ia64; then
7461 symcode='[ABCDGIRSTW]'
7462 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1() ;/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7463 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\ \"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_p tr) \&\2},/p'"
7464 fi
7465 ;;
7466 irix* | nonstopux*)
7467 symcode='[BCDEGRST]'
7468 ;;
7469 osf*)
7470 symcode='[BCDEGQRST]'
7471 ;;
7472 solaris*)
7473 symcode='[BDRT]'
7474 ;;
7475 sco3.2v5*)
7476 symcode='[DT]'
7477 ;;
7478 sysv4.2uw2*)
7479 symcode='[DT]'
7480 ;;
7481 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7482 symcode='[ABDT]'
7483 ;;
7484 sysv4)
7485 symcode='[DFNSTU]'
7486 ;;
7487 esac
7488
7489 # Handle CRLF in mingw tool chain
7490 opt_cr=
7491 case $build_os in
7492 mingw*)
7493 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7494 ;;
7495 esac
7496
7497 # If we're using GNU nm, then use its standard symbol codes.
7498 case `$NM -V 2>&1` in
7499 *GNU* | *'with BFD'*)
7500 symcode='[ABCDGIRSTW]' ;;
7501 esac
7502
7503 # Try without a prefix undercore, then with it.
7504 for ac_symprfx in "" "_"; do
7505
7506 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7507 symxfrm="\\1 $ac_symprfx\\2 \\2"
7508
7509 # Write the raw and C identifiers.
7510 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7511
7512 # Check to see that the pipe works correctly.
7513 pipe_works=no
7514
7515 rm -f conftest*
7516 cat > conftest.$ac_ext <<EOF
7517 #ifdef __cplusplus
7518 extern "C" {
7519 #endif
7520 char nm_test_var;
7521 void nm_test_func(){}
7522 #ifdef __cplusplus
7523 }
7524 #endif
7525 int main(){nm_test_var='a';nm_test_func();return(0);}
7526 EOF
7527
7528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; then
7533 # Now try to grab the symbols.
7534 nlist=conftest.nm
7535 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_glo bal_symbol_pipe \> $nlist\"") >&5
7536 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && test -s "$nlist"; then
7540 # Try sorting and uniquifying the output.
7541 if sort "$nlist" | uniq > "$nlist"T; then
7542 mv -f "$nlist"T "$nlist"
7543 else
7544 rm -f "$nlist"T
7545 fi
7546
7547 # Make sure that we snagged all the symbols we need.
7548 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7549 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7550 cat <<EOF > conftest.$ac_ext
7551 #ifdef __cplusplus
7552 extern "C" {
7553 #endif
7554
7555 EOF
7556 # Now generate the symbol file.
7557 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7558
7559 cat <<EOF >> conftest.$ac_ext
7560 #if defined (__STDC__) && __STDC__
7561 # define lt_ptr_t void *
7562 #else
7563 # define lt_ptr_t char *
7564 # define const
7565 #endif
7566
7567 /* The mapping between symbol names and symbols. */
7568 const struct {
7569 const char *name;
7570 lt_ptr_t address;
7571 }
7572 lt_preloaded_symbols[] =
7573 {
7574 EOF
7575 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2}, /" < "$nlist" | grep -v main >> conftest.$ac_ext
7576 cat <<\EOF >> conftest.$ac_ext
7577 {0, (lt_ptr_t) 0}
7578 };
7579
7580 #ifdef __cplusplus
7581 }
7582 #endif
7583 EOF
7584 # Now try linking the two files.
7585 mv conftest.$ac_objext conftstm.$ac_objext
7586 lt_save_LIBS="$LIBS"
7587 lt_save_CFLAGS="$CFLAGS"
7588 LIBS="conftstm.$ac_objext"
7589 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7591 (eval $ac_link) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7595 pipe_works=yes
7596 fi
7597 LIBS="$lt_save_LIBS"
7598 CFLAGS="$lt_save_CFLAGS"
7599 else
7600 echo "cannot find nm_test_func in $nlist" >&5
7601 fi
7602 else
7603 echo "cannot find nm_test_var in $nlist" >&5
7604 fi
7605 else
7606 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7607 fi
7608 else
7609 echo "$progname: failed program was:" >&5
7610 cat conftest.$ac_ext >&5
7611 fi
7612 rm -f conftest* conftst*
7613
7614 # Do not use the global_symbol_pipe unless it works.
7615 if test "$pipe_works" = yes; then
7616 break
7617 else
7618 lt_cv_sys_global_symbol_pipe=
7619 fi
7620 done
7621
7622 fi
7623
7624 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7625 lt_cv_sys_global_symbol_to_cdecl=
7626 fi
7627 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n
7628 { echo "$as_me:$LINENO: result: failed" >&5
7629 echo "${ECHO_T}failed" >&6; }
7630 else
7631 { echo "$as_me:$LINENO: result: ok" >&5
7632 echo "${ECHO_T}ok" >&6; }
7633 fi
7634
7635 { echo "$as_me:$LINENO: checking for objdir" >&5
7636 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7637 if test "${lt_cv_objdir+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640 rm -f .libs 2>/dev/null
7641 mkdir .libs 2>/dev/null
7642 if test -d .libs; then
7643 lt_cv_objdir=.libs
7644 else
7645 # MS-DOS does not allow filenames that begin with a dot.
7646 lt_cv_objdir=_libs
7647 fi
7648 rmdir .libs 2>/dev/null
7649 fi
7650 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7651 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7652 objdir=$lt_cv_objdir
7653
7654
7655
7656
7657
7658 case $host_os in
7659 aix3*)
7660 # AIX sometimes has problems with the GCC collect2 program. For some
7661 # reason, if we set the COLLECT_NAMES environment variable, the problems
7662 # vanish in a puff of smoke.
7663 if test "X${COLLECT_NAMES+set}" != Xset; then
7664 COLLECT_NAMES=
7665 export COLLECT_NAMES
7666 fi
7667 ;;
7668 esac
7669
7670 # Sed substitution that helps us do robust quoting. It backslashifies
7671 # metacharacters that are still active within double-quoted strings.
7672 Xsed='sed -e 1s/^X//'
7673 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7674
7675 # Same as above, but do not quote variable references.
7676 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7677
7678 # Sed substitution to delay expansion of an escaped shell variable in a
7679 # double_quote_subst'ed string.
7680 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7681
7682 # Sed substitution to avoid accidental globbing in evaled expressions
7683 no_glob_subst='s/\*/\\\*/g'
7684
7685 # Constants:
7686 rm="rm -f"
7687
7688 # Global variables:
7689 default_ofile=libtool
7690 can_build_shared=yes
7691
7692 # All known linkers require a `.a' archive for static linking (except MSVC,
7693 # which needs '.lib').
7694 libext=a
7695 ltmain="$ac_aux_dir/ltmain.sh"
7696 ofile="$default_ofile"
7697 with_gnu_ld="$lt_cv_prog_gnu_ld"
7698
7699 if test -n "$ac_tool_prefix"; then
7700 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}ar; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_prog_AR+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 if test -n "$AR"; then
7708 ac_cv_prog_AR="$AR" # Let the user override the test.
7709 else
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH
7712 do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7717 ac_cv_prog_AR="${ac_tool_prefix}ar"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721 done
7722 done
7723 IFS=$as_save_IFS
7724
7725 fi
7726 fi
7727 AR=$ac_cv_prog_AR
7728 if test -n "$AR"; then
7729 { echo "$as_me:$LINENO: result: $AR" >&5
7730 echo "${ECHO_T}$AR" >&6; }
7731 else
7732 { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7734 fi
7735
7736
7737 fi
7738 if test -z "$ac_cv_prog_AR"; then
7739 ac_ct_AR=$AR
7740 # Extract the first word of "ar", so it can be a program name with args.
7741 set dummy ar; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 if test -n "$ac_ct_AR"; then
7748 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7752 do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7757 ac_cv_prog_ac_ct_AR="ar"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761 done
7762 done
7763 IFS=$as_save_IFS
7764
7765 fi
7766 fi
7767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7768 if test -n "$ac_ct_AR"; then
7769 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7770 echo "${ECHO_T}$ac_ct_AR" >&6; }
7771 else
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7774 fi
7775
7776 if test "x$ac_ct_AR" = x; then
7777 AR="false"
7778 else
7779 case $cross_compiling:$ac_tool_warned in
7780 yes:)
7781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
7782 whose name does not start with the host triplet. If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&5
7784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet. If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 AR=$ac_ct_AR
7790 fi
7791 else
7792 AR="$ac_cv_prog_AR"
7793 fi
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_prog_RANLIB+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803 if test -n "$RANLIB"; then
7804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7805 else
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809 IFS=$as_save_IFS
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7813 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7815 break 2
7816 fi
7817 done
7818 done
7819 IFS=$as_save_IFS
7820
7821 fi
7822 fi
7823 RANLIB=$ac_cv_prog_RANLIB
7824 if test -n "$RANLIB"; then
7825 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7826 echo "${ECHO_T}$RANLIB" >&6; }
7827 else
7828 { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7830 fi
7831
7832
7833 fi
7834 if test -z "$ac_cv_prog_RANLIB"; then
7835 ac_ct_RANLIB=$RANLIB
7836 # Extract the first word of "ranlib", so it can be a program name with args.
7837 set dummy ranlib; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843 if test -n "$ac_ct_RANLIB"; then
7844 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7848 do
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7853 ac_cv_prog_ac_ct_RANLIB="ranlib"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7856 fi
7857 done
7858 done
7859 IFS=$as_save_IFS
7860
7861 fi
7862 fi
7863 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7864 if test -n "$ac_ct_RANLIB"; then
7865 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7866 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7867 else
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7870 fi
7871
7872 if test "x$ac_ct_RANLIB" = x; then
7873 RANLIB=":"
7874 else
7875 case $cross_compiling:$ac_tool_warned in
7876 yes:)
7877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
7878 whose name does not start with the host triplet. If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&5
7880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet. If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7883 ac_tool_warned=yes ;;
7884 esac
7885 RANLIB=$ac_ct_RANLIB
7886 fi
7887 else
7888 RANLIB="$ac_cv_prog_RANLIB"
7889 fi
7890
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
7893 set dummy ${ac_tool_prefix}strip; ac_word=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_prog_STRIP+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899 if test -n "$STRIP"; then
7900 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905 IFS=$as_save_IFS
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7909 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7911 break 2
7912 fi
7913 done
7914 done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 STRIP=$ac_cv_prog_STRIP
7920 if test -n "$STRIP"; then
7921 { echo "$as_me:$LINENO: result: $STRIP" >&5
7922 echo "${ECHO_T}$STRIP" >&6; }
7923 else
7924 { echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6; }
7926 fi
7927
7928
7929 fi
7930 if test -z "$ac_cv_prog_STRIP"; then
7931 ac_ct_STRIP=$STRIP
7932 # Extract the first word of "strip", so it can be a program name with args.
7933 set dummy strip; ac_word=$2
7934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7936 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939 if test -n "$ac_ct_STRIP"; then
7940 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7941 else
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7944 do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
7949 ac_cv_prog_ac_ct_STRIP="strip"
7950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7952 fi
7953 done
7954 done
7955 IFS=$as_save_IFS
7956
7957 fi
7958 fi
7959 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7960 if test -n "$ac_ct_STRIP"; then
7961 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7962 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7963 else
7964 { echo "$as_me:$LINENO: result: no" >&5
7965 echo "${ECHO_T}no" >&6; }
7966 fi
7967
7968 if test "x$ac_ct_STRIP" = x; then
7969 STRIP=":"
7970 else
7971 case $cross_compiling:$ac_tool_warned in
7972 yes:)
7973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-t ools
7974 whose name does not start with the host triplet. If you think this
7975 configuration is useful to you, please write to autoconf@gnu.org." >&5
7976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7977 whose name does not start with the host triplet. If you think this
7978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7979 ac_tool_warned=yes ;;
7980 esac
7981 STRIP=$ac_ct_STRIP
7982 fi
7983 else
7984 STRIP="$ac_cv_prog_STRIP"
7985 fi
7986
7987
7988 old_CC="$CC"
7989 old_CFLAGS="$CFLAGS"
7990
7991 # Set sane defaults for various variables
7992 test -z "$AR" && AR=ar
7993 test -z "$AR_FLAGS" && AR_FLAGS=cru
7994 test -z "$AS" && AS=as
7995 test -z "$CC" && CC=cc
7996 test -z "$LTCC" && LTCC=$CC
7997 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7998 test -z "$DLLTOOL" && DLLTOOL=dlltool
7999 test -z "$LD" && LD=ld
8000 test -z "$LN_S" && LN_S="ln -s"
8001 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8002 test -z "$NM" && NM=nm
8003 test -z "$SED" && SED=sed
8004 test -z "$OBJDUMP" && OBJDUMP=objdump
8005 test -z "$RANLIB" && RANLIB=:
8006 test -z "$STRIP" && STRIP=:
8007 test -z "$ac_objext" && ac_objext=o
8008
8009 # Determine commands to create old-style static archives.
8010 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8011 old_postinstall_cmds='chmod 644 $oldlib'
8012 old_postuninstall_cmds=
8013
8014 if test -n "$RANLIB"; then
8015 case $host_os in
8016 openbsd*)
8017 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8018 ;;
8019 *)
8020 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8021 ;;
8022 esac
8023 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8024 fi
8025
8026 for cc_temp in $compiler""; do
8027 case $cc_temp in
8028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8030 \-*) ;;
8031 *) break;;
8032 esac
8033 done
8034 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8035
8036
8037 # Only perform the check for file, if the check method requires it
8038 case $deplibs_check_method in
8039 file_magic*)
8040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8041 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8042 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 else
8046 case $MAGIC_CMD in
8047 [\\/*] | ?:[\\/]*)
8048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
8049 ;;
8050 *)
8051 lt_save_MAGIC_CMD="$MAGIC_CMD"
8052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8054 for ac_dir in $ac_dummy; do
8055 IFS="$lt_save_ifs"
8056 test -z "$ac_dir" && ac_dir=.
8057 if test -f $ac_dir/${ac_tool_prefix}file; then
8058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8059 if test -n "$file_magic_test_file"; then
8060 case $deplibs_check_method in
8061 "file_magic "*)
8062 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8065 $EGREP "$file_magic_regex" > /dev/null; then
8066 :
8067 else
8068 cat <<EOF 1>&2
8069
8070 *** Warning: the command libtool uses to detect shared libraries,
8071 *** $file_magic_cmd, produces output that libtool cannot recognize.
8072 *** The result is that libtool may fail to recognize shared libraries
8073 *** as such. This will affect the creation of libtool libraries that
8074 *** depend on shared libraries, but programs linked with such libtool
8075 *** libraries will work regardless of this problem. Nevertheless, you
8076 *** may want to report the problem to your system manager and/or to
8077 *** bug-libtool@gnu.org
8078
8079 EOF
8080 fi ;;
8081 esac
8082 fi
8083 break
8084 fi
8085 done
8086 IFS="$lt_save_ifs"
8087 MAGIC_CMD="$lt_save_MAGIC_CMD"
8088 ;;
8089 esac
8090 fi
8091
8092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093 if test -n "$MAGIC_CMD"; then
8094 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8095 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8096 else
8097 { echo "$as_me:$LINENO: result: no" >&5
8098 echo "${ECHO_T}no" >&6; }
8099 fi
8100
8101 if test -z "$lt_cv_path_MAGIC_CMD"; then
8102 if test -n "$ac_tool_prefix"; then
8103 { echo "$as_me:$LINENO: checking for file" >&5
8104 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 else
8108 case $MAGIC_CMD in
8109 [\\/*] | ?:[\\/]*)
8110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
8111 ;;
8112 *)
8113 lt_save_MAGIC_CMD="$MAGIC_CMD"
8114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8116 for ac_dir in $ac_dummy; do
8117 IFS="$lt_save_ifs"
8118 test -z "$ac_dir" && ac_dir=.
8119 if test -f $ac_dir/file; then
8120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8121 if test -n "$file_magic_test_file"; then
8122 case $deplibs_check_method in
8123 "file_magic "*)
8124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8127 $EGREP "$file_magic_regex" > /dev/null; then
8128 :
8129 else
8130 cat <<EOF 1>&2
8131
8132 *** Warning: the command libtool uses to detect shared libraries,
8133 *** $file_magic_cmd, produces output that libtool cannot recognize.
8134 *** The result is that libtool may fail to recognize shared libraries
8135 *** as such. This will affect the creation of libtool libraries that
8136 *** depend on shared libraries, but programs linked with such libtool
8137 *** libraries will work regardless of this problem. Nevertheless, you
8138 *** may want to report the problem to your system manager and/or to
8139 *** bug-libtool@gnu.org
8140
8141 EOF
8142 fi ;;
8143 esac
8144 fi
8145 break
8146 fi
8147 done
8148 IFS="$lt_save_ifs"
8149 MAGIC_CMD="$lt_save_MAGIC_CMD"
8150 ;;
8151 esac
8152 fi
8153
8154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155 if test -n "$MAGIC_CMD"; then
8156 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8157 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8158 else
8159 { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8161 fi
8162
8163 else
8164 MAGIC_CMD=:
8165 fi
8166 fi
8167
8168 fi
8169 ;;
8170 esac
8171
8172 enable_dlopen=no
8173 enable_win32_dll=no
8174
8175 # Check whether --enable-libtool-lock was given.
8176 if test "${enable_libtool_lock+set}" = set; then
8177 enableval=$enable_libtool_lock;
8178 fi
8179
8180 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8181
8182
8183 # Check whether --with-pic was given.
8184 if test "${with_pic+set}" = set; then
8185 withval=$with_pic; pic_mode="$withval"
8186 else
8187 pic_mode=default
8188 fi
8189
8190 test -z "$pic_mode" && pic_mode=default
8191
8192 # Use C for the default configuration in the libtool script
8193 tagname=
8194 lt_save_CC="$CC"
8195 ac_ext=c
8196 ac_cpp='$CPP $CPPFLAGS'
8197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
8199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8200
8201
8202 # Source file extension for C test sources.
8203 ac_ext=c
8204
8205 # Object file extension for compiled C test sources.
8206 objext=o
8207 objext=$objext
8208
8209 # Code to be used in simple compile tests
8210 lt_simple_compile_test_code="int some_variable = 0;"
8211
8212 # Code to be used in simple link tests
8213 lt_simple_link_test_code='int main(){return(0);}'
8214
8215
8216 # If no C compiler was specified, use CC.
8217 LTCC=${LTCC-"$CC"}
8218
8219 # If no C compiler flags were specified, use CFLAGS.
8220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8221
8222 # Allow CC to be a program name with arguments.
8223 compiler=$CC
8224
8225
8226 # save warnings/boilerplate of simple test code
8227 ac_outfile=conftest.$ac_objext
8228 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8229 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8230 _lt_compiler_boilerplate=`cat conftest.err`
8231 $rm conftest*
8232
8233 ac_outfile=conftest.$ac_objext
8234 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8235 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8236 _lt_linker_boilerplate=`cat conftest.err`
8237 $rm conftest*
8238
8239
8240
8241 lt_prog_compiler_no_builtin_flag=
8242
8243 if test "$GCC" = yes; then
8244 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8245
8246
8247 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions " >&5
8248 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_ C" >&6; }
8249 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 lt_cv_prog_compiler_rtti_exceptions=no
8253 ac_outfile=conftest.$ac_objext
8254 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8255 lt_compiler_flag="-fno-rtti -fno-exceptions"
8256 # Insert the option either (1) after the last *FLAGS variable, or
8257 # (2) before a word containing "conftest.", or (3) at the end.
8258 # Note that $ac_compile itself does not contain backslashes and begins
8259 # with a dollar sign (not a hyphen), so the echo should work correctly.
8260 # The option is referenced via a variable to avoid confusing sed.
8261 lt_compile=`echo "$ac_compile" | $SED \
8262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8264 -e 's:$: $lt_compiler_flag:'`
8265 (eval echo "\"\$as_me:8265: $lt_compile\"" >&5)
8266 (eval "$lt_compile" 2>conftest.err)
8267 ac_status=$?
8268 cat conftest.err >&5
8269 echo "$as_me:8269: \$? = $ac_status" >&5
8270 if (exit $ac_status) && test -s "$ac_outfile"; then
8271 # The compiler can only warn and ignore the option if not recognized
8272 # So say no if there are warnings other than the usual output.
8273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
8276 lt_cv_prog_compiler_rtti_exceptions=yes
8277 fi
8278 fi
8279 $rm conftest*
8280
8281 fi
8282 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8283 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8284
8285 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8286 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt i -fno-exceptions"
8287 else
8288 :
8289 fi
8290
8291 fi
8292
8293 lt_prog_compiler_wl=
8294 lt_prog_compiler_pic=
8295 lt_prog_compiler_static=
8296
8297 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8298 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8299
8300 if test "$GCC" = yes; then
8301 lt_prog_compiler_wl='-Wl,'
8302 lt_prog_compiler_static='-static'
8303
8304 case $host_os in
8305 aix*)
8306 # All AIX code is PIC.
8307 if test "$host_cpu" = ia64; then
8308 # AIX 5 now supports IA64 processor
8309 lt_prog_compiler_static='-Bstatic'
8310 fi
8311 ;;
8312
8313 amigaos*)
8314 # FIXME: we need at least 68020 code to build shared libraries, but
8315 # adding the `-m68020' flag to GCC prevents building anything better,
8316 # like `-m68040'.
8317 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8318 ;;
8319
8320 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8321 # PIC is the default for these OSes.
8322 ;;
8323
8324 mingw* | cygwin* | pw32* | os2*)
8325 # This hack is so that the source file can tell whether it is being
8326 # built for inclusion in a dll (and should export symbols for example).
8327 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8328 # (--disable-auto-import) libraries
8329 lt_prog_compiler_pic='-DDLL_EXPORT'
8330 ;;
8331
8332 darwin* | rhapsody*)
8333 # PIC is the default on this platform
8334 # Common symbols not allowed in MH_DYLIB files
8335 lt_prog_compiler_pic='-fno-common'
8336 ;;
8337
8338 interix[3-9]*)
8339 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8340 # Instead, we relocate shared libraries at runtime.
8341 ;;
8342
8343 msdosdjgpp*)
8344 # Just because we use GCC doesn't mean we suddenly get shared libraries
8345 # on systems that don't support them.
8346 lt_prog_compiler_can_build_shared=no
8347 enable_shared=no
8348 ;;
8349
8350 sysv4*MP*)
8351 if test -d /usr/nec; then
8352 lt_prog_compiler_pic=-Kconform_pic
8353 fi
8354 ;;
8355
8356 hpux*)
8357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8358 # not for PA HP-UX.
8359 case $host_cpu in
8360 hppa*64*|ia64*)
8361 # +Z the default
8362 ;;
8363 *)
8364 lt_prog_compiler_pic='-fPIC'
8365 ;;
8366 esac
8367 ;;
8368
8369 *)
8370 lt_prog_compiler_pic='-fPIC'
8371 ;;
8372 esac
8373 else
8374 # PORTME Check for flag to pass linker flags through the system compiler.
8375 case $host_os in
8376 aix*)
8377 lt_prog_compiler_wl='-Wl,'
8378 if test "$host_cpu" = ia64; then
8379 # AIX 5 now supports IA64 processor
8380 lt_prog_compiler_static='-Bstatic'
8381 else
8382 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8383 fi
8384 ;;
8385 darwin*)
8386 # PIC is the default on this platform
8387 # Common symbols not allowed in MH_DYLIB files
8388 case $cc_basename in
8389 xlc*)
8390 lt_prog_compiler_pic='-qnocommon'
8391 lt_prog_compiler_wl='-Wl,'
8392 ;;
8393 esac
8394 ;;
8395
8396 mingw* | cygwin* | pw32* | os2*)
8397 # This hack is so that the source file can tell whether it is being
8398 # built for inclusion in a dll (and should export symbols for example).
8399 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 ;;
8401
8402 hpux9* | hpux10* | hpux11*)
8403 lt_prog_compiler_wl='-Wl,'
8404 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8405 # not for PA HP-UX.
8406 case $host_cpu in
8407 hppa*64*|ia64*)
8408 # +Z the default
8409 ;;
8410 *)
8411 lt_prog_compiler_pic='+Z'
8412 ;;
8413 esac
8414 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
8415 lt_prog_compiler_static='${wl}-a ${wl}archive'
8416 ;;
8417
8418 irix5* | irix6* | nonstopux*)
8419 lt_prog_compiler_wl='-Wl,'
8420 # PIC (with -KPIC) is the default.
8421 lt_prog_compiler_static='-non_shared'
8422 ;;
8423
8424 newsos6)
8425 lt_prog_compiler_pic='-KPIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428
8429 linux* | k*bsd*-gnu)
8430 case $cc_basename in
8431 icc* | ecc*)
8432 lt_prog_compiler_wl='-Wl,'
8433 lt_prog_compiler_pic='-KPIC'
8434 lt_prog_compiler_static='-static'
8435 ;;
8436 pgcc* | pgf77* | pgf90* | pgf95*)
8437 # Portland Group compilers (*not* the Pentium gcc compiler,
8438 # which looks to be a dead project)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-fpic'
8441 lt_prog_compiler_static='-Bstatic'
8442 ;;
8443 ccc*)
8444 lt_prog_compiler_wl='-Wl,'
8445 # All Alpha code is PIC.
8446 lt_prog_compiler_static='-non_shared'
8447 ;;
8448 *)
8449 case `$CC -V 2>&1 | sed 5q` in
8450 *Sun\ C*)
8451 # Sun C 5.9
8452 lt_prog_compiler_pic='-KPIC'
8453 lt_prog_compiler_static='-Bstatic'
8454 lt_prog_compiler_wl='-Wl,'
8455 ;;
8456 *Sun\ F*)
8457 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8458 lt_prog_compiler_pic='-KPIC'
8459 lt_prog_compiler_static='-Bstatic'
8460 lt_prog_compiler_wl=''
8461 ;;
8462 esac
8463 ;;
8464 esac
8465 ;;
8466
8467 osf3* | osf4* | osf5*)
8468 lt_prog_compiler_wl='-Wl,'
8469 # All OSF/1 code is PIC.
8470 lt_prog_compiler_static='-non_shared'
8471 ;;
8472
8473 rdos*)
8474 lt_prog_compiler_static='-non_shared'
8475 ;;
8476
8477 solaris*)
8478 lt_prog_compiler_pic='-KPIC'
8479 lt_prog_compiler_static='-Bstatic'
8480 case $cc_basename in
8481 f77* | f90* | f95*)
8482 lt_prog_compiler_wl='-Qoption ld ';;
8483 *)
8484 lt_prog_compiler_wl='-Wl,';;
8485 esac
8486 ;;
8487
8488 sunos4*)
8489 lt_prog_compiler_wl='-Qoption ld '
8490 lt_prog_compiler_pic='-PIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 ;;
8493
8494 sysv4 | sysv4.2uw2* | sysv4.3*)
8495 lt_prog_compiler_wl='-Wl,'
8496 lt_prog_compiler_pic='-KPIC'
8497 lt_prog_compiler_static='-Bstatic'
8498 ;;
8499
8500 sysv4*MP*)
8501 if test -d /usr/nec ;then
8502 lt_prog_compiler_pic='-Kconform_pic'
8503 lt_prog_compiler_static='-Bstatic'
8504 fi
8505 ;;
8506
8507 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8508 lt_prog_compiler_wl='-Wl,'
8509 lt_prog_compiler_pic='-KPIC'
8510 lt_prog_compiler_static='-Bstatic'
8511 ;;
8512
8513 unicos*)
8514 lt_prog_compiler_wl='-Wl,'
8515 lt_prog_compiler_can_build_shared=no
8516 ;;
8517
8518 uts4*)
8519 lt_prog_compiler_pic='-pic'
8520 lt_prog_compiler_static='-Bstatic'
8521 ;;
8522
8523 *)
8524 lt_prog_compiler_can_build_shared=no
8525 ;;
8526 esac
8527 fi
8528
8529 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8530 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8531
8532 #
8533 # Check to make sure the PIC flag actually works.
8534 #
8535 if test -n "$lt_prog_compiler_pic"; then
8536
8537 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic wor ks" >&5
8538 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECH O_C" >&6; }
8539 if test "${lt_prog_compiler_pic_works+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 else
8542 lt_prog_compiler_pic_works=no
8543 ac_outfile=conftest.$ac_objext
8544 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8545 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8546 # Insert the option either (1) after the last *FLAGS variable, or
8547 # (2) before a word containing "conftest.", or (3) at the end.
8548 # Note that $ac_compile itself does not contain backslashes and begins
8549 # with a dollar sign (not a hyphen), so the echo should work correctly.
8550 # The option is referenced via a variable to avoid confusing sed.
8551 lt_compile=`echo "$ac_compile" | $SED \
8552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554 -e 's:$: $lt_compiler_flag:'`
8555 (eval echo "\"\$as_me:8555: $lt_compile\"" >&5)
8556 (eval "$lt_compile" 2>conftest.err)
8557 ac_status=$?
8558 cat conftest.err >&5
8559 echo "$as_me:8559: \$? = $ac_status" >&5
8560 if (exit $ac_status) && test -s "$ac_outfile"; then
8561 # The compiler can only warn and ignore the option if not recognized
8562 # So say no if there are warnings other than the usual output.
8563 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8564 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8565 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
8566 lt_prog_compiler_pic_works=yes
8567 fi
8568 fi
8569 $rm conftest*
8570
8571 fi
8572 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8573 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8574
8575 if test x"$lt_prog_compiler_pic_works" = xyes; then
8576 case $lt_prog_compiler_pic in
8577 "" | " "*) ;;
8578 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8579 esac
8580 else
8581 lt_prog_compiler_pic=
8582 lt_prog_compiler_can_build_shared=no
8583 fi
8584
8585 fi
8586 case $host_os in
8587 # For platforms which do not support PIC, -DPIC is meaningless:
8588 *djgpp*)
8589 lt_prog_compiler_pic=
8590 ;;
8591 *)
8592 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8593 ;;
8594 esac
8595
8596 #
8597 # Check to make sure the static flag actually works.
8598 #
8599 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8600 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag wo rks" >&5
8601 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC HO_C" >&6; }
8602 if test "${lt_prog_compiler_static_works+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605 lt_prog_compiler_static_works=no
8606 save_LDFLAGS="$LDFLAGS"
8607 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8608 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8609 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8610 # The linker can only warn and ignore the option if not recognized
8611 # So say no if there are warnings
8612 if test -s conftest.err; then
8613 # Append any errors to the config.log.
8614 cat conftest.err 1>&5
8615 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8617 if diff conftest.exp conftest.er2 >/dev/null; then
8618 lt_prog_compiler_static_works=yes
8619 fi
8620 else
8621 lt_prog_compiler_static_works=yes
8622 fi
8623 fi
8624 $rm conftest*
8625 LDFLAGS="$save_LDFLAGS"
8626
8627 fi
8628 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8629 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8630
8631 if test x"$lt_prog_compiler_static_works" = xyes; then
8632 :
8633 else
8634 lt_prog_compiler_static=
8635 fi
8636
8637
8638 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >& 5
8639 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" > &6; }
8640 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 lt_cv_prog_compiler_c_o=no
8644 $rm -r conftest 2>/dev/null
8645 mkdir conftest
8646 cd conftest
8647 mkdir out
8648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8649
8650 lt_compiler_flag="-o out/conftest2.$ac_objext"
8651 # Insert the option either (1) after the last *FLAGS variable, or
8652 # (2) before a word containing "conftest.", or (3) at the end.
8653 # Note that $ac_compile itself does not contain backslashes and begins
8654 # with a dollar sign (not a hyphen), so the echo should work correctly.
8655 lt_compile=`echo "$ac_compile" | $SED \
8656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8658 -e 's:$: $lt_compiler_flag:'`
8659 (eval echo "\"\$as_me:8659: $lt_compile\"" >&5)
8660 (eval "$lt_compile" 2>out/conftest.err)
8661 ac_status=$?
8662 cat out/conftest.err >&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8665 then
8666 # The compiler can only warn and ignore the option if not recognized
8667 # So say no if there are warnings
8668 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
8671 lt_cv_prog_compiler_c_o=yes
8672 fi
8673 fi
8674 chmod u+w . 2>&5
8675 $rm conftest*
8676 # SGI C++ compiler will create directory out/ii_files/ for
8677 # template instantiation
8678 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8679 $rm out/* && rmdir out
8680 cd ..
8681 rmdir conftest
8682 $rm conftest*
8683
8684 fi
8685 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8686 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8687
8688
8689 hard_links="nottested"
8690 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8691 # do not overwrite the value of need_locks provided by the user
8692 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8693 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8694 hard_links=yes
8695 $rm conftest*
8696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697 touch conftest.a
8698 ln conftest.a conftest.b 2>&5 || hard_links=no
8699 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8700 { echo "$as_me:$LINENO: result: $hard_links" >&5
8701 echo "${ECHO_T}$hard_links" >&6; }
8702 if test "$hard_links" = no; then
8703 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8704 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un safe" >&2;}
8705 need_locks=warn
8706 fi
8707 else
8708 need_locks=no
8709 fi
8710
8711 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports sha red libraries" >&5
8712 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar ies... $ECHO_C" >&6; }
8713
8714 runpath_var=
8715 allow_undefined_flag=
8716 enable_shared_with_static_runtimes=no
8717 archive_cmds=
8718 archive_expsym_cmds=
8719 old_archive_From_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 export_dynamic_flag_spec=
8722 whole_archive_flag_spec=
8723 thread_safe_flag_spec=
8724 hardcode_libdir_flag_spec=
8725 hardcode_libdir_flag_spec_ld=
8726 hardcode_libdir_separator=
8727 hardcode_direct=no
8728 hardcode_minus_L=no
8729 hardcode_shlibpath_var=unsupported
8730 link_all_deplibs=unknown
8731 hardcode_automatic=no
8732 module_cmds=
8733 module_expsym_cmds=
8734 always_export_symbols=no
8735 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\ ''s/.* //'\'' | sort | uniq > $export_symbols'
8736 # include_expsyms should be a list of space-separated symbols to be *always*
8737 # included in the symbol list
8738 include_expsyms=
8739 # exclude_expsyms can be an extended regexp of symbols to exclude
8740 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8741 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8742 # as well as any symbol that contains `d'.
8743 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8744 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8745 # platforms (ab)use it in PIC code, but their linkers get confused if
8746 # the symbol is explicitly referenced. Since portable code cannot
8747 # rely on this symbol name, it's probably fine to never include it in
8748 # preloaded symbol tables.
8749 extract_expsyms_cmds=
8750 # Just being paranoid about ensuring that cc_basename is set.
8751 for cc_temp in $compiler""; do
8752 case $cc_temp in
8753 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8754 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8755 \-*) ;;
8756 *) break;;
8757 esac
8758 done
8759 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8760
8761 case $host_os in
8762 cygwin* | mingw* | pw32*)
8763 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8764 # When not using gcc, we currently assume that we are using
8765 # Microsoft Visual C++.
8766 if test "$GCC" != yes; then
8767 with_gnu_ld=no
8768 fi
8769 ;;
8770 interix*)
8771 # we just hope/assume this is gcc and not c89 (= MSVC++)
8772 with_gnu_ld=yes
8773 ;;
8774 openbsd*)
8775 with_gnu_ld=no
8776 ;;
8777 esac
8778
8779 ld_shlibs=yes
8780 if test "$with_gnu_ld" = yes; then
8781 # If archive_cmds runs LD, not CC, wlarc should be empty
8782 wlarc='${wl}'
8783
8784 # Set some defaults for GNU ld with shared library support. These
8785 # are reset later if shared libraries are not supported. Putting them
8786 # here allows them to be overridden if necessary.
8787 runpath_var=LD_RUN_PATH
8788 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8789 export_dynamic_flag_spec='${wl}--export-dynamic'
8790 # ancient GNU ld didn't support --whole-archive et. al.
8791 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8792 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'- -no-whole-archive'
8793 else
8794 whole_archive_flag_spec=
8795 fi
8796 supports_anon_versioning=no
8797 case `$LD -v 2>/dev/null` in
8798 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8799 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8800 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8801 *\ 2.11.*) ;; # other 2.11 versions
8802 *) supports_anon_versioning=yes ;;
8803 esac
8804
8805 # See if GNU ld supports shared libraries.
8806 case $host_os in
8807 aix3* | aix4* | aix5*)
8808 # On AIX/PPC, the GNU linker is very broken
8809 if test "$host_cpu" != ia64; then
8810 ld_shlibs=no
8811 cat <<EOF 1>&2
8812
8813 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8814 *** to be unable to reliably create shared libraries on AIX.
8815 *** Therefore, libtool is disabling shared libraries support. If you
8816 *** really care for shared libraries, you may want to modify your PATH
8817 *** so that a non-GNU linker is found, and then restart.
8818
8819 EOF
8820 fi
8821 ;;
8822
8823 amigaos*)
8824 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $lib name" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_ objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlib rary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~ $AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8825 hardcode_libdir_flag_spec='-L$libdir'
8826 hardcode_minus_L=yes
8827
8828 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8829 # that the semantics of dynamic libraries on AmigaOS, at least up
8830 # to version 4, is to share data among multiple programs linked
8831 # with the same dynamic library. Since this doesn't match the
8832 # behavior of shared libraries on other platforms, we can't use
8833 # them.
8834 ld_shlibs=no
8835 ;;
8836
8837 beos*)
8838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8839 allow_undefined_flag=unsupported
8840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8841 # support --undefined. This deserves some investigation. FIXME
8842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname -o $lib'
8843 else
8844 ld_shlibs=no
8845 fi
8846 ;;
8847
8848 cygwin* | mingw* | pw32*)
8849 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8850 # as there is no search path for DLLs.
8851 hardcode_libdir_flag_spec='-L$libdir'
8852 allow_undefined_flag=unsupported
8853 always_export_symbols=no
8854 enable_shared_with_static_runtimes=yes
8855 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]/ /'\'' | sort | uniq > $export_symbols'
8856
8857 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859 # If the export-symbols file already is a .def file (1st line
8860 # is EXPORTS), use it as is; otherwise, prepend...
8861 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th en
8862 cp $export_symbols $output_objdir/$soname.def;
8863 else
8864 echo EXPORTS > $output_objdir/$soname.def;
8865 cat $export_symbols >> $output_objdir/$soname.def;
8866 fi~
8867 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
8868 else
8869 ld_shlibs=no
8870 fi
8871 ;;
8872
8873 interix[3-9]*)
8874 hardcode_direct=no
8875 hardcode_shlibpath_var=no
8876 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8877 export_dynamic_flag_spec='${wl}-E'
8878 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8879 # Instead, shared libraries are loaded at an image base (0x10000000 by
8880 # default) and relocated if they conflict, which is a slow very memory
8881 # consuming and fragmenting process. To avoid this, we pick a random,
8882 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8883 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8884 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl }-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -o $lib'
8885 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'
8886 ;;
8887
8888 gnu* | linux* | k*bsd*-gnu)
8889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8890 tmp_addflag=
8891 case $cc_basename,$host_cpu in
8892 pgcc*) # Portland Group C compiler
8893 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'
8894 tmp_addflag=' $pic_flag'
8895 ;;
8896 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8897 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'
8898 tmp_addflag=' $pic_flag -Mnomain' ;;
8899 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8900 tmp_addflag=' -i_dynamic' ;;
8901 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8902 tmp_addflag=' -i_dynamic -nofor_main' ;;
8903 ifc* | ifort*) # Intel Fortran compiler
8904 tmp_addflag=' -nofor_main' ;;
8905 esac
8906 case `$CC -V 2>&1 | sed 5q` in
8907 *Sun\ C*) # Sun C 5.9
8908 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for co nv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenien ce,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8909 tmp_sharedflag='-G' ;;
8910 *Sun\ F*) # Sun Fortran 8.3
8911 tmp_sharedflag='-G' ;;
8912 *)
8913 tmp_sharedflag='-shared' ;;
8914 esac
8915 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
8916
8917 if test $supports_anon_versioning = yes; then
8918 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8919 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8920 $echo "local: *; };" >> $output_objdir/$libname.ver~
8921 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flag s ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8922 fi
8923 else
8924 ld_shlibs=no
8925 fi
8926 ;;
8927
8928 netbsd*)
8929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8931 wlarc=
8932 else
8933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8935 fi
8936 ;;
8937
8938 solaris*)
8939 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8940 ld_shlibs=no
8941 cat <<EOF 1>&2
8942
8943 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8944 *** create shared libraries on Solaris systems. Therefore, libtool
8945 *** is disabling shared libraries support. We urge you to upgrade GNU
8946 *** binutils to release 2.9.1 or newer. Another option is to modify
8947 *** your PATH or compiler configuration so that the native linker is
8948 *** used, and then restart.
8949
8950 EOF
8951 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8954 else
8955 ld_shlibs=no
8956 fi
8957 ;;
8958
8959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8960 case `$LD -v 2>&1` in
8961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8962 ld_shlibs=no
8963 cat <<_LT_EOF 1>&2
8964
8965 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8966 *** reliably create shared libraries on SCO systems. Therefore, libtool
8967 *** is disabling shared libraries support. We urge you to upgrade GNU
8968 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8969 *** your PATH or compiler configuration so that the native linker is
8970 *** used, and then restart.
8971
8972 _LT_EOF
8973 ;;
8974 *)
8975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th en
8976 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpat h,$libdir`'
8977 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8978 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$expo rt_symbols -o $lib'
8979 else
8980 ld_shlibs=no
8981 fi
8982 ;;
8983 esac
8984 ;;
8985
8986 sunos4*)
8987 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8988 wlarc=
8989 hardcode_direct=yes
8990 hardcode_shlibpath_var=no
8991 ;;
8992
8993 *)
8994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8996 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8997 else
8998 ld_shlibs=no
8999 fi
9000 ;;
9001 esac
9002
9003 if test "$ld_shlibs" = no; then
9004 runpath_var=
9005 hardcode_libdir_flag_spec=
9006 export_dynamic_flag_spec=
9007 whole_archive_flag_spec=
9008 fi
9009 else
9010 # PORTME fill in a description of your system's linker (not GNU ld)
9011 case $host_os in
9012 aix3*)
9013 allow_undefined_flag=unsupported
9014 always_export_symbols=yes
9015 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd ir/$soname'
9016 # Note: this linker hardcodes the directories in LIBPATH if there
9017 # are no directories specified by -L.
9018 hardcode_minus_L=yes
9019 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9020 # Neither direct hardcoding nor static linking is supported with a
9021 # broken collect2.
9022 hardcode_direct=unsupported
9023 fi
9024 ;;
9025
9026 aix4* | aix5*)
9027 if test "$host_cpu" = ia64; then
9028 # On IA64, the linker does run time linking by default, so we don't
9029 # have to do anything special.
9030 aix_use_runtimelinking=no
9031 exp_sym_flag='-Bexport'
9032 no_entry_flag=""
9033 else
9034 # If we're using GNU nm, then we don't want the "-C" option.
9035 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9036 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9037 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if ((( \$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { prin t \$3 } }'\'' | sort -u > $export_symbols'
9038 else
9039 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (( (\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { pri nt \$3 } }'\'' | sort -u > $export_symbols'
9040 fi
9041 aix_use_runtimelinking=no
9042
9043 # Test if we are trying to use run time linking or normal
9044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9045 # need to do runtime linking.
9046 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9047 for ld_flag in $LDFLAGS; do
9048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9049 aix_use_runtimelinking=yes
9050 break
9051 fi
9052 done
9053 ;;
9054 esac
9055
9056 exp_sym_flag='-bexport'
9057 no_entry_flag='-bnoentry'
9058 fi
9059
9060 # When large executables or shared objects are built, AIX ld can
9061 # have problems creating the table of contents. If linking a library
9062 # or program results in "error TOC overflow" add -mminimal-toc to
9063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9065
9066 archive_cmds=''
9067 hardcode_direct=yes
9068 hardcode_libdir_separator=':'
9069 link_all_deplibs=yes
9070
9071 if test "$GCC" = yes; then
9072 case $host_os in aix4.[012]|aix4.[012].*)
9073 # We only want to do this on AIX 4.2 and lower, the check
9074 # below for broken collect2 doesn't work under 4.3+
9075 collect2name=`${CC} -print-prog-name=collect2`
9076 if test -f "$collect2name" && \
9077 strings "$collect2name" | grep resolve_lib_name >/dev/null
9078 then
9079 # We have reworked collect2
9080 :
9081 else
9082 # We have old collect2
9083 hardcode_direct=unsupported
9084 # It fails to find uninstalled libraries when the uninstalled
9085 # path is not listed in the libpath. Setting hardcode_minus_L
9086 # to unsupported forces relinking
9087 hardcode_minus_L=yes
9088 hardcode_libdir_flag_spec='-L$libdir'
9089 hardcode_libdir_separator=
9090 fi
9091 ;;
9092 esac
9093 shared_flag='-shared'
9094 if test "$aix_use_runtimelinking" = yes; then
9095 shared_flag="$shared_flag "'${wl}-G'
9096 fi
9097 else
9098 # not using gcc
9099 if test "$host_cpu" = ia64; then
9100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9101 # chokes on -Wl,-G. The following line is correct:
9102 shared_flag='-G'
9103 else
9104 if test "$aix_use_runtimelinking" = yes; then
9105 shared_flag='${wl}-G'
9106 else
9107 shared_flag='${wl}-bM:SRE'
9108 fi
9109 fi
9110 fi
9111
9112 # It seems that -bexpall does not export symbols beginning with
9113 # underscore (_), so it is better to generate a list of symbols to export.
9114 always_export_symbols=yes
9115 if test "$aix_use_runtimelinking" = yes; then
9116 # Warning - without using the other runtime loading flags (-brtl),
9117 # -berok will link without error, but may produce a broken library.
9118 allow_undefined_flag='-berok'
9119 # Determine the default libpath from the value encoded in an empty execut able.
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126
9127 int
9128 main ()
9129 {
9130
9131 ;
9132 return 0;
9133 }
9134 _ACEOF
9135 rm -f conftest.$ac_objext conftest$ac_exeext
9136 if { (ac_try="$ac_link"
9137 case "(($ac_try" in
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9140 esac
9141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9142 (eval "$ac_link") 2>conftest.er1
9143 ac_status=$?
9144 grep -v '^ *+' conftest.er1 >conftest.err
9145 rm -f conftest.er1
9146 cat conftest.err >&5
9147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148 (exit $ac_status); } && {
9149 test -z "$ac_c_werror_flag" ||
9150 test ! -s conftest.err
9151 } && test -s conftest$ac_exeext &&
9152 $as_test_x conftest$ac_exeext; then
9153
9154 lt_aix_libpath_sed='
9155 /Import File Strings/,/^$/ {
9156 /^0/ {
9157 s/^0 *\(.*\)$/\1/
9158 p
9159 }
9160 }'
9161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
9162 # Check for a 64-bit object if we didn't find anything.
9163 if test -z "$aix_libpath"; then
9164 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
9165 fi
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170
9171 fi
9172
9173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9174 conftest$ac_exeext conftest.$ac_ext
9175 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9176
9177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9178 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"
9179 else
9180 if test "$host_cpu" = ia64; then
9181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9182 allow_undefined_flag="-z nodefs"
9183 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f lag} '"\${wl}$exp_sym_flag:\$export_symbols"
9184 else
9185 # Determine the default libpath from the value encoded in an empty exec utable.
9186 cat >conftest.$ac_ext <<_ACEOF
9187 /* confdefs.h. */
9188 _ACEOF
9189 cat confdefs.h >>conftest.$ac_ext
9190 cat >>conftest.$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9192
9193 int
9194 main ()
9195 {
9196
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (ac_try="$ac_link"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208 (eval "$ac_link") 2>conftest.er1
9209 ac_status=$?
9210 grep -v '^ *+' conftest.er1 >conftest.err
9211 rm -f conftest.er1
9212 cat conftest.err >&5
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } && {
9215 test -z "$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9217 } && test -s conftest$ac_exeext &&
9218 $as_test_x conftest$ac_exeext; then
9219
9220 lt_aix_libpath_sed='
9221 /Import File Strings/,/^$/ {
9222 /^0/ {
9223 s/^0 *\(.*\)$/\1/
9224 p
9225 }
9226 }'
9227 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
9228 # Check for a 64-bit object if we didn't find anything.
9229 if test -z "$aix_libpath"; then
9230 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
9231 fi
9232 else
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236
9237 fi
9238
9239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9240 conftest$ac_exeext conftest.$ac_ext
9241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9242
9243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9244 # Warning - without using the other run time loading flags,
9245 # -berok will link without error, but may produce a broken library.
9246 no_undefined_flag=' ${wl}-bernotok'
9247 allow_undefined_flag=' ${wl}-berok'
9248 # Exported symbols can be pulled into shared objects from archives
9249 whole_archive_flag_spec='$convenience'
9250 archive_cmds_need_lc=yes
9251 # This is similar to how AIX traditionally builds its shared libraries .
9252 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so name'
9253 fi
9254 fi
9255 ;;
9256
9257 amigaos*)
9258 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $lib name" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_ objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlib rary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~ $AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 hardcode_minus_L=yes
9261 # see comment about different semantics on the GNU ld section
9262 ld_shlibs=no
9263 ;;
9264
9265 bsdi[45]*)
9266 export_dynamic_flag_spec=-rdynamic
9267 ;;
9268
9269 cygwin* | mingw* | pw32*)
9270 # When not using gcc, we currently assume that we are using
9271 # Microsoft Visual C++.
9272 # hardcode_libdir_flag_spec is actually meaningless, as there is
9273 # no search path for DLLs.
9274 hardcode_libdir_flag_spec=' '
9275 allow_undefined_flag=unsupported
9276 # Tell ltmain to make .lib files, not .a files.
9277 libext=lib
9278 # Tell ltmain to make .dll files, not .so files.
9279 shrext_cmds=".dll"
9280 # FIXME: Setting linknames here is a bad hack.
9281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9282 # The linker will automatically build a .lib file if we build a DLL.
9283 old_archive_From_new_cmds='true'
9284 # FIXME: Should let the user specify the lib program.
9285 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9286 fix_srcfile_path='`cygpath -w "$srcfile"`'
9287 enable_shared_with_static_runtimes=yes
9288 ;;
9289
9290 darwin* | rhapsody*)
9291 case $host_os in
9292 rhapsody* | darwin1.[012])
9293 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9294 ;;
9295 *) # Darwin 1.3 on
9296 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9297 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppr ess'
9298 else
9299 case ${MACOSX_DEPLOYMENT_TARGET} in
9300 10.[012])
9301 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}s uppress'
9302 ;;
9303 10.*)
9304 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9305 ;;
9306 esac
9307 fi
9308 ;;
9309 esac
9310 archive_cmds_need_lc=no
9311 hardcode_direct=no
9312 hardcode_automatic=yes
9313 hardcode_shlibpath_var=unsupported
9314 whole_archive_flag_spec=''
9315 link_all_deplibs=yes
9316 if test "$GCC" = yes ; then
9317 output_verbose_link_cmd='echo'
9318 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $de plibs $compiler_flags -install_name $rpath/$soname $verstring'
9319 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$c ompiler_flags'
9320 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e xist in older darwin lds
9321 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&, " < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $ allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rp ath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib} '
9322 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefin ed_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objd ir/${libname}-symbols.expsym ${lib}'
9323 else
9324 case $cc_basename in
9325 xlc*)
9326 output_verbose_link_cmd='echo'
9327 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $de plibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstrin g'
9328 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplib s$compiler_flags'
9329 # Don't fix this by using the ld -exported_symbols_list flag, it doesn 't exist in older darwin lds
9330 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_n ame ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbol s.expsym ${lib}'
9331 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\), _&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_und efined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_ objdir/${libname}-symbols.expsym ${lib}'
9332 ;;
9333 *)
9334 ld_shlibs=no
9335 ;;
9336 esac
9337 fi
9338 ;;
9339
9340 dgux*)
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_libdir_flag_spec='-L$libdir'
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 freebsd1*)
9347 ld_shlibs=no
9348 ;;
9349
9350 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9351 # support. Future versions do this automatically, but an explicit c++rt0.o
9352 # does not break anything, and helps significantly (at the cost of a little
9353 # extra space).
9354 freebsd2.2*)
9355 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr /lib/c++rt0.o'
9356 hardcode_libdir_flag_spec='-R$libdir'
9357 hardcode_direct=yes
9358 hardcode_shlibpath_var=no
9359 ;;
9360
9361 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9362 freebsd2*)
9363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes
9365 hardcode_minus_L=yes
9366 hardcode_shlibpath_var=no
9367 ;;
9368
9369 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9370 freebsd* | dragonfly*)
9371 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9372 hardcode_libdir_flag_spec='-R$libdir'
9373 hardcode_direct=yes
9374 hardcode_shlibpath_var=no
9375 ;;
9376
9377 hpux9*)
9378 if test "$GCC" = yes; then
9379 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'
9380 else
9381 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $o utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9382 fi
9383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_direct=yes
9386
9387 # hardcode_minus_L: Not really in the search PATH,
9388 # but as the default location of the library.
9389 hardcode_minus_L=yes
9390 export_dynamic_flag_spec='${wl}-E'
9391 ;;
9392
9393 hpux10*)
9394 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$insta ll_libdir -o $lib $libobjs $deplibs $compiler_flags'
9396 else
9397 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep libs $linker_flags'
9398 fi
9399 if test "$with_gnu_ld" = no; then
9400 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401 hardcode_libdir_separator=:
9402
9403 hardcode_direct=yes
9404 export_dynamic_flag_spec='${wl}-E'
9405
9406 # hardcode_minus_L: Not really in the search PATH,
9407 # but as the default location of the library.
9408 hardcode_minus_L=yes
9409 fi
9410 ;;
9411
9412 hpux11*)
9413 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9414 case $host_cpu in
9415 hppa*64*)
9416 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli bs $compiler_flags'
9417 ;;
9418 ia64*)
9419 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9420 ;;
9421 *)
9422 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$ins tall_libdir -o $lib $libobjs $deplibs $compiler_flags'
9423 ;;
9424 esac
9425 else
9426 case $host_cpu in
9427 hppa*64*)
9428 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c ompiler_flags'
9429 ;;
9430 ia64*)
9431 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9432 ;;
9433 *)
9434 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9435 ;;
9436 esac
9437 fi
9438 if test "$with_gnu_ld" = no; then
9439 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9440 hardcode_libdir_separator=:
9441
9442 case $host_cpu in
9443 hppa*64*|ia64*)
9444 hardcode_libdir_flag_spec_ld='+b $libdir'
9445 hardcode_direct=no
9446 hardcode_shlibpath_var=no
9447 ;;
9448 *)
9449 hardcode_direct=yes
9450 export_dynamic_flag_spec='${wl}-E'
9451
9452 # hardcode_minus_L: Not really in the search PATH,
9453 # but as the default location of the library.
9454 hardcode_minus_L=yes
9455 ;;
9456 esac
9457 fi
9458 ;;
9459
9460 irix5* | irix6* | nonstopux*)
9461 if test "$GCC" = yes; then
9462 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'
9463 else
9464 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $sonam e `test -n "$verstring" && echo -set_version $verstring` -update_registry ${outp ut_objdir}/so_locations -o $lib'
9465 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9466 fi
9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468 hardcode_libdir_separator=:
9469 link_all_deplibs=yes
9470 ;;
9471
9472 netbsd*)
9473 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9475 else
9476 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9477 fi
9478 hardcode_libdir_flag_spec='-R$libdir'
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 newsos6)
9484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485 hardcode_direct=yes
9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487 hardcode_libdir_separator=:
9488 hardcode_shlibpath_var=no
9489 ;;
9490
9491 openbsd*)
9492 if test -f /usr/libexec/ld.so; then
9493 hardcode_direct=yes
9494 hardcode_shlibpath_var=no
9495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os- $host_cpu" = "openbsd2.8-powerpc"; then
9496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
9497 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9498 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9499 export_dynamic_flag_spec='${wl}-E'
9500 else
9501 case $host_os in
9502 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_fla gs'
9504 hardcode_libdir_flag_spec='-R$libdir'
9505 ;;
9506 *)
9507 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $comp iler_flags'
9508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509 ;;
9510 esac
9511 fi
9512 else
9513 ld_shlibs=no
9514 fi
9515 ;;
9516
9517 os2*)
9518 hardcode_libdir_flag_spec='-L$libdir'
9519 hardcode_minus_L=yes
9520 allow_undefined_flag=unsupported
9521 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn ame.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DA TA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$l ibname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $outp ut_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_fl ags $output_objdir/$libname.def'
9522 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_obj dir/$libname.def'
9523 ;;
9524
9525 osf3*)
9526 if test "$GCC" = yes; then
9527 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9528 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_ver sion ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations - o $lib'
9529 else
9530 allow_undefined_flag=' -expect_unresolved \*'
9531 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $link er_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9532 fi
9533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9534 hardcode_libdir_separator=:
9535 ;;
9536
9537 osf4* | osf5*) # as osf3* with the addition of -msym flag
9538 if test "$GCC" = yes; then
9539 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9540 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_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'
9541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9542 else
9543 allow_undefined_flag=' -expect_unresolved \*'
9544 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $link er_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verst ring` -update_registry ${output_objdir}/so_locations -o $lib'
9545 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n " -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9546 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring ` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9547
9548 # Both c and cxx compiler support -rpath directly
9549 hardcode_libdir_flag_spec='-rpath $libdir'
9550 fi
9551 hardcode_libdir_separator=:
9552 ;;
9553
9554 solaris*)
9555 no_undefined_flag=' -z text'
9556 if test "$GCC" = yes; then
9557 wlarc='${wl}'
9558 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9559 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9560 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj s $deplibs $compiler_flags~$rm $lib.exp'
9561 else
9562 wlarc=''
9563 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9565 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d eplibs $linker_flags~$rm $lib.exp'
9566 fi
9567 hardcode_libdir_flag_spec='-R$libdir'
9568 hardcode_shlibpath_var=no
9569 case $host_os in
9570 solaris2.[0-5] | solaris2.[0-5].*) ;;
9571 *)
9572 # The compiler driver will combine and reorder linker options,
9573 # but understands `-z linker_flag'. GCC discards it without `$wl',
9574 # but is careful enough not to reorder.
9575 # Supported since Solaris 2.6 (maybe 2.5.1?)
9576 if test "$GCC" = yes; then
9577 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z $ {wl}defaultextract'
9578 else
9579 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9580 fi
9581 ;;
9582 esac
9583 link_all_deplibs=yes
9584 ;;
9585
9586 sunos4*)
9587 if test "x$host_vendor" = xsequent; then
9588 # Use $CC to link under sequent, because it throws in some extra .o
9589 # files that make .init and .fini sections work.
9590 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler _flags'
9591 else
9592 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $ linker_flags'
9593 fi
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_direct=yes
9596 hardcode_minus_L=yes
9597 hardcode_shlibpath_var=no
9598 ;;
9599
9600 sysv4)
9601 case $host_vendor in
9602 sni)
9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
9604 hardcode_direct=yes # is this really true???
9605 ;;
9606 siemens)
9607 ## LD is ld it makes a PLAMLIB
9608 ## CC just makes a GrossModule.
9609 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9610 reload_cmds='$CC -r -o $output$reload_objs'
9611 hardcode_direct=no
9612 ;;
9613 motorola)
9614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
9615 hardcode_direct=no #Motorola manual says yes, but my tests say they li e
9616 ;;
9617 esac
9618 runpath_var='LD_RUN_PATH'
9619 hardcode_shlibpath_var=no
9620 ;;
9621
9622 sysv4.3*)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_shlibpath_var=no
9625 export_dynamic_flag_spec='-Bexport'
9626 ;;
9627
9628 sysv4*MP*)
9629 if test -d /usr/nec; then
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_shlibpath_var=no
9632 runpath_var=LD_RUN_PATH
9633 hardcode_runpath_var=yes
9634 ld_shlibs=yes
9635 fi
9636 ;;
9637
9638 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
9639 no_undefined_flag='${wl}-z,text'
9640 archive_cmds_need_lc=no
9641 hardcode_shlibpath_var=no
9642 runpath_var='LD_RUN_PATH'
9643
9644 if test "$GCC" = yes; then
9645 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
9646 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
9647 else
9648 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
9649 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
9650 fi
9651 ;;
9652
9653 sysv5* | sco3.2v5* | sco5v6*)
9654 # Note: We can NOT use -z defs as we might desire, because we do not
9655 # link with -lc, and that would cause any symbols used from libc to
9656 # always be unresolved, which means just about no library would
9657 # ever link correctly. If we're not using GNU ld we use -z text
9658 # though, which does catch some bad symbols but isn't as heavy-handed
9659 # as -z defs.
9660 no_undefined_flag='${wl}-z,text'
9661 allow_undefined_flag='${wl}-z,nodefs'
9662 archive_cmds_need_lc=no
9663 hardcode_shlibpath_var=no
9664 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir` '
9665 hardcode_libdir_separator=':'
9666 link_all_deplibs=yes
9667 export_dynamic_flag_spec='${wl}-Bexport'
9668 runpath_var='LD_RUN_PATH'
9669
9670 if test "$GCC" = yes; then
9671 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$son ame -o $lib $libobjs $deplibs $compiler_flags'
9672 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\ ${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_fla gs'
9673 else
9674 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname - o $lib $libobjs $deplibs $compiler_flags'
9675 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCO ABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9676 fi
9677 ;;
9678
9679 uts4*)
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_libdir_flag_spec='-L$libdir'
9682 hardcode_shlibpath_var=no
9683 ;;
9684
9685 *)
9686 ld_shlibs=no
9687 ;;
9688 esac
9689 fi
9690
9691 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9692 echo "${ECHO_T}$ld_shlibs" >&6; }
9693 test "$ld_shlibs" = no && can_build_shared=no
9694
9695 #
9696 # Do we need to explicitly link libc?
9697 #
9698 case "x$archive_cmds_need_lc" in
9699 x|xyes)
9700 # Assume -lc should be added
9701 archive_cmds_need_lc=yes
9702
9703 if test "$enable_shared" = yes && test "$GCC" = yes; then
9704 case $archive_cmds in
9705 *'~'*)
9706 # FIXME: we may have to deal with multi-command sequences.
9707 ;;
9708 '$CC '*)
9709 # Test whether the compiler implicitly links with -lc since on some
9710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9711 # to ld, don't add -lc before -lgcc.
9712 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked i n" >&5
9713 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& 6; }
9714 $rm conftest*
9715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9716
9717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9718 (eval $ac_compile) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } 2>conftest.err; then
9722 soname=conftest
9723 lib=conftest
9724 libobjs=conftest.$ac_objext
9725 deplibs=
9726 wl=$lt_prog_compiler_wl
9727 pic_flag=$lt_prog_compiler_pic
9728 compiler_flags=-v
9729 linker_flags=-v
9730 verstring=
9731 output_objdir=.
9732 libname=conftest
9733 lt_save_allow_undefined_flag=$allow_undefined_flag
9734 allow_undefined_flag=
9735 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \ " \>/dev/null 2\>\&1\"") >&5
9736 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9737 ac_status=$?
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }
9740 then
9741 archive_cmds_need_lc=no
9742 else
9743 archive_cmds_need_lc=yes
9744 fi
9745 allow_undefined_flag=$lt_save_allow_undefined_flag
9746 else
9747 cat conftest.err 1>&5
9748 fi
9749 $rm conftest*
9750 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9751 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9752 ;;
9753 esac
9754 fi
9755 ;;
9756 esac
9757
9758 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9759 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9760 library_names_spec=
9761 libname_spec='lib$name'
9762 soname_spec=
9763 shrext_cmds=".so"
9764 postinstall_cmds=
9765 postuninstall_cmds=
9766 finish_cmds=
9767 finish_eval=
9768 shlibpath_var=
9769 shlibpath_overrides_runpath=unknown
9770 version_type=none
9771 dynamic_linker="$host_os ld.so"
9772 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9773
9774 if test "$GCC" = yes; then
9775 case $host_os in
9776 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9777 *) lt_awk_arg="/^libraries:/" ;;
9778 esac
9779 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e "s,=/,/,g"`
9780 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9781 # if the path contains ";" then we assume it to be the separator
9782 # otherwise default to the standard path separator (i.e. ":") - it is
9783 # assumed that no part of a normal pathname contains ";" but that should
9784 # okay in the real world where ";" in dirpaths is itself problematic.
9785 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9786 else
9787 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARAT OR/ /g"`
9788 fi
9789 # Ok, now we have the path, separated by spaces, we can step through it
9790 # and add multilib dir if necessary.
9791 lt_tmp_lt_search_path_spec=
9792 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d ev/null`
9793 for lt_sys_path in $lt_search_path_spec; do
9794 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9795 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m ulti_os_dir"
9796 else
9797 test -d "$lt_sys_path" && \
9798 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9799 fi
9800 done
9801 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9802 BEGIN {RS=" "; FS="/|\n";} {
9803 lt_foo="";
9804 lt_count=0;
9805 for (lt_i = NF; lt_i > 0; lt_i--) {
9806 if ($lt_i != "" && $lt_i != ".") {
9807 if ($lt_i == "..") {
9808 lt_count++;
9809 } else {
9810 if (lt_count == 0) {
9811 lt_foo="/" $lt_i lt_foo;
9812 } else {
9813 lt_count--;
9814 }
9815 }
9816 }
9817 }
9818 if (lt_foo != "") { lt_freq[lt_foo]++; }
9819 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9820 }'`
9821 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9822 else
9823 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9824 fi
9825 need_lib_prefix=unknown
9826 hardcode_into_libs=no
9827
9828 # when you set need_version to no, make sure it does not cause -set_version
9829 # flags to be left without arguments
9830 need_version=unknown
9831
9832 case $host_os in
9833 aix3*)
9834 version_type=linux
9835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9836 shlibpath_var=LIBPATH
9837
9838 # AIX 3 has no versioning support, so we append a major version to the name.
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 ;;
9841
9842 aix4* | aix5*)
9843 version_type=linux
9844 need_lib_prefix=no
9845 need_version=no
9846 hardcode_into_libs=yes
9847 if test "$host_cpu" = ia64; then
9848 # AIX 5 supports IA64
9849 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
9850 shlibpath_var=LD_LIBRARY_PATH
9851 else
9852 # With GCC up to 2.95.x, collect2 would create an import file
9853 # for dependence libraries. The import file would start with
9854 # the line `#! .'. This would cause the generated library to
9855 # depend on `.', always an invalid library. This was fixed in
9856 # development snapshots of GCC prior to 3.0.
9857 case $host_os in
9858 aix4 | aix4.[01] | aix4.[01].*)
9859 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9860 echo ' yes '
9861 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9862 :
9863 else
9864 can_build_shared=no
9865 fi
9866 ;;
9867 esac
9868 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
9869 # soname into executable. Probably we can add versioning support to
9870 # collect2, so additional links can be useful in future.
9871 if test "$aix_use_runtimelinking" = yes; then
9872 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9873 # instead of lib<name>.a to let people know that these are not
9874 # typical AIX shared libraries.
9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
9876 else
9877 # We preserve .a as extension for shared libraries through AIX4.2
9878 # and later when we are not doing run time linking.
9879 library_names_spec='${libname}${release}.a $libname.a'
9880 soname_spec='${libname}${release}${shared_ext}$major'
9881 fi
9882 shlibpath_var=LIBPATH
9883 fi
9884 ;;
9885
9886 amigaos*)
9887 library_names_spec='$libname.ixlibrary $libname.a'
9888 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9889 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib s/${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'
9890 ;;
9891
9892 beos*)
9893 library_names_spec='${libname}${shared_ext}'
9894 dynamic_linker="$host_os ld.so"
9895 shlibpath_var=LIBRARY_PATH
9896 ;;
9897
9898 bsdi[45]*)
9899 version_type=linux
9900 need_version=no
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9904 shlibpath_var=LD_LIBRARY_PATH
9905 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
9906 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9907 # the default ld.so.conf also contains /usr/contrib/lib and
9908 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9909 # libtool to hard-code these into programs
9910 ;;
9911
9912 cygwin* | mingw* | pw32*)
9913 version_type=windows
9914 shrext_cmds=".dll"
9915 need_version=no
9916 need_lib_prefix=no
9917
9918 case $GCC,$host_os in
9919 yes,cygwin* | yes,mingw* | yes,pw32*)
9920 library_names_spec='$libname.dll.a'
9921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9922 postinstall_cmds='base_file=`basename \${file}`~
9923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\'' `~
9924 dldir=$destdir/`dirname \$dlpath`~
9925 test -d \$dldir || mkdir -p \$dldir~
9926 $install_prog $dir/$dlname \$dldir/$dlname~
9927 chmod a+x \$dldir/$dlname'
9928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9929 dlpath=$dir/\$dldll~
9930 $rm \$dlpath'
9931 shlibpath_overrides_runpath=yes
9932
9933 case $host_os in
9934 cygwin*)
9935 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9936 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9937 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9938 ;;
9939 mingw*)
9940 # MinGW DLLs use traditional 'lib' prefix
9941 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
9942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S ED -e "s/^libraries://" -e "s,=/,/,g"`
9943 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9944 # It is most probably a Windows format PATH printed by
9945 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9946 # path with ; separators, and with drive letters. We can handle the
9947 # drive letters (cygwin fileutils understands them), so leave them,
9948 # especially as we might pass files found there to a mingw objdump,
9949 # which wouldn't understand a cygwinified path. Ahh.
9950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/ ;/ /g'`
9951 else
9952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
9953 fi
9954 ;;
9955 pw32*)
9956 # pw32 DLLs use 'pw' prefix rather than 'lib'
9957 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9958 ;;
9959 esac
9960 ;;
9961
9962 *)
9963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
9964 ;;
9965 esac
9966 dynamic_linker='Win32 ld.exe'
9967 # FIXME: first we should search . and the directory the executable is in
9968 shlibpath_var=PATH
9969 ;;
9970
9971 darwin* | rhapsody*)
9972 dynamic_linker="$host_os dyld"
9973 version_type=darwin
9974 need_lib_prefix=no
9975 need_version=no
9976 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re lease}${major}$shared_ext ${libname}$shared_ext'
9977 soname_spec='${libname}${release}${major}$shared_ext'
9978 shlibpath_overrides_runpath=yes
9979 shlibpath_var=DYLD_LIBRARY_PATH
9980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9981
9982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9984 ;;
9985
9986 dgux*)
9987 version_type=linux
9988 need_lib_prefix=no
9989 need_version=no
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 ;;
9994
9995 freebsd1*)
9996 dynamic_linker=no
9997 ;;
9998
9999 freebsd* | dragonfly*)
10000 # DragonFly does not have aout. When/if they implement a new
10001 # versioning mechanism, adjust this.
10002 if test -x /usr/bin/objformat; then
10003 objformat=`/usr/bin/objformat`
10004 else
10005 case $host_os in
10006 freebsd[123]*) objformat=aout ;;
10007 *) objformat=elf ;;
10008 esac
10009 fi
10010 version_type=freebsd-$objformat
10011 case $version_type in
10012 freebsd-elf*)
10013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
10014 need_version=no
10015 need_lib_prefix=no
10016 ;;
10017 freebsd-*)
10018 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
10019 need_version=yes
10020 ;;
10021 esac
10022 shlibpath_var=LD_LIBRARY_PATH
10023 case $host_os in
10024 freebsd2*)
10025 shlibpath_overrides_runpath=yes
10026 ;;
10027 freebsd3.[01]* | freebsdelf3.[01]*)
10028 shlibpath_overrides_runpath=yes
10029 hardcode_into_libs=yes
10030 ;;
10031 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10032 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 ;;
10036 *) # from 4.6 on, and DragonFly
10037 shlibpath_overrides_runpath=yes
10038 hardcode_into_libs=yes
10039 ;;
10040 esac
10041 ;;
10042
10043 gnu*)
10044 version_type=linux
10045 need_lib_prefix=no
10046 need_version=no
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 shlibpath_var=LD_LIBRARY_PATH
10050 hardcode_into_libs=yes
10051 ;;
10052
10053 hpux9* | hpux10* | hpux11*)
10054 # Give a soname corresponding to the major version so that dld.sl refuses to
10055 # link against other versions.
10056 version_type=sunos
10057 need_lib_prefix=no
10058 need_version=no
10059 case $host_cpu in
10060 ia64*)
10061 shrext_cmds='.so'
10062 hardcode_into_libs=yes
10063 dynamic_linker="$host_os dld.so"
10064 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
10067 soname_spec='${libname}${release}${shared_ext}$major'
10068 if test "X$HPUX_IA64_MODE" = X32; then
10069 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
10070 else
10071 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10072 fi
10073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10074 ;;
10075 hppa*64*)
10076 shrext_cmds='.sl'
10077 hardcode_into_libs=yes
10078 dynamic_linker="$host_os dld.sl"
10079 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$ {release}${shared_ext}$major $libname${shared_ext}'
10082 soname_spec='${libname}${release}${shared_ext}$major'
10083 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10084 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10085 ;;
10086 *)
10087 shrext_cmds='.sl'
10088 dynamic_linker="$host_os dld.sl"
10089 shlibpath_var=SHLIB_PATH
10090 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 ;;
10094 esac
10095 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10096 postinstall_cmds='chmod 555 $lib'
10097 ;;
10098
10099 interix[3-9]*)
10100 version_type=linux
10101 need_lib_prefix=no
10102 need_version=no
10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10106 shlibpath_var=LD_LIBRARY_PATH
10107 shlibpath_overrides_runpath=no
10108 hardcode_into_libs=yes
10109 ;;
10110
10111 irix5* | irix6* | nonstopux*)
10112 case $host_os in
10113 nonstopux*) version_type=nonstopux ;;
10114 *)
10115 if test "$lt_cv_prog_gnu_ld" = yes; then
10116 version_type=linux
10117 else
10118 version_type=irix
10119 fi ;;
10120 esac
10121 need_lib_prefix=no
10122 need_version=no
10123 soname_spec='${libname}${release}${shared_ext}$major'
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
10125 case $host_os in
10126 irix5* | nonstopux*)
10127 libsuff= shlibsuff=
10128 ;;
10129 *)
10130 case $LD in # libtool.m4 will add one of these switches to LD
10131 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10132 libsuff= shlibsuff= libmagic=32-bit;;
10133 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10134 libsuff=32 shlibsuff=N32 libmagic=N32;;
10135 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10136 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10137 *) libsuff= shlibsuff= libmagic=never-match;;
10138 esac
10139 ;;
10140 esac
10141 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10142 shlibpath_overrides_runpath=no
10143 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
10144 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10145 hardcode_into_libs=yes
10146 ;;
10147
10148 # No shared lib support for Linux oldld, aout, or coff.
10149 linux*oldld* | linux*aout* | linux*coff*)
10150 dynamic_linker=no
10151 ;;
10152
10153 # This must be Linux ELF.
10154 linux* | k*bsd*-gnu)
10155 version_type=linux
10156 need_lib_prefix=no
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 shlibpath_overrides_runpath=no
10163 # This implies no fast_install, which is unacceptable.
10164 # Some rework will be needed to allow for fast_install
10165 # before this can be enabled.
10166 hardcode_into_libs=yes
10167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
10168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10169
10170 # Append ld.so.conf contents to the search path
10171 if test -f /etc/ld.so.conf; then
10172 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 | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10173 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10174 fi
10175
10176 # We used to test for /lib/ld.so.1 and disable shared libraries on
10177 # powerpc, because MkLinux only supported shared libraries with the
10178 # GNU dynamic linker. Since this was broken with cross compilers,
10179 # most powerpc-linux boxes support dynamic linking these days and
10180 # people can always --disable-shared, the test was removed, and we
10181 # assume the GNU/Linux dynamic linker is in use.
10182 dynamic_linker='GNU/Linux ld.so'
10183 ;;
10184
10185 netbsd*)
10186 version_type=sunos
10187 need_lib_prefix=no
10188 need_version=no
10189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10192 dynamic_linker='NetBSD (a.out) ld.so'
10193 else
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 dynamic_linker='NetBSD ld.elf_so'
10197 fi
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 hardcode_into_libs=yes
10201 ;;
10202
10203 newsos6)
10204 version_type=linux
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=yes
10208 ;;
10209
10210 nto-qnx*)
10211 version_type=linux
10212 need_lib_prefix=no
10213 need_version=no
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=yes
10218 ;;
10219
10220 openbsd*)
10221 version_type=sunos
10222 sys_lib_dlsearch_path_spec="/usr/lib"
10223 need_lib_prefix=no
10224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10225 case $host_os in
10226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10227 *) need_version=no ;;
10228 esac
10229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
10230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_ cpu" = "openbsd2.8-powerpc"; then
10233 case $host_os in
10234 openbsd2.[89] | openbsd2.[89].*)
10235 shlibpath_overrides_runpath=no
10236 ;;
10237 *)
10238 shlibpath_overrides_runpath=yes
10239 ;;
10240 esac
10241 else
10242 shlibpath_overrides_runpath=yes
10243 fi
10244 ;;
10245
10246 os2*)
10247 libname_spec='$name'
10248 shrext_cmds=".dll"
10249 need_lib_prefix=no
10250 library_names_spec='$libname${shared_ext} $libname.a'
10251 dynamic_linker='OS/2 ld.exe'
10252 shlibpath_var=LIBPATH
10253 ;;
10254
10255 osf3* | osf4* | osf5*)
10256 version_type=osf
10257 need_lib_prefix=no
10258 need_version=no
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10261 shlibpath_var=LD_LIBRARY_PATH
10262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10264 ;;
10265
10266 rdos*)
10267 dynamic_linker=no
10268 ;;
10269
10270 solaris*)
10271 version_type=linux
10272 need_lib_prefix=no
10273 need_version=no
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes
10278 hardcode_into_libs=yes
10279 # ldd complains unless libraries are executable
10280 postinstall_cmds='chmod +x $lib'
10281 ;;
10282
10283 sunos4*)
10284 version_type=sunos
10285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
10286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10289 if test "$with_gnu_ld" = yes; then
10290 need_lib_prefix=no
10291 fi
10292 need_version=yes
10293 ;;
10294
10295 sysv4 | sysv4.3*)
10296 version_type=linux
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 case $host_vendor in
10301 sni)
10302 shlibpath_overrides_runpath=no
10303 need_lib_prefix=no
10304 export_dynamic_flag_spec='${wl}-Blargedynsym'
10305 runpath_var=LD_RUN_PATH
10306 ;;
10307 siemens)
10308 need_lib_prefix=no
10309 ;;
10310 motorola)
10311 need_lib_prefix=no
10312 need_version=no
10313 shlibpath_overrides_runpath=no
10314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10315 ;;
10316 esac
10317 ;;
10318
10319 sysv4*MP*)
10320 if test -d /usr/nec ;then
10321 version_type=linux
10322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
10323 soname_spec='$libname${shared_ext}.$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 fi
10326 ;;
10327
10328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10329 version_type=freebsd-elf
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 hardcode_into_libs=yes
10336 if test "$with_gnu_ld" = yes; then
10337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10338 shlibpath_overrides_runpath=no
10339 else
10340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10341 shlibpath_overrides_runpath=yes
10342 case $host_os in
10343 sco3.2v5*)
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10345 ;;
10346 esac
10347 fi
10348 sys_lib_dlsearch_path_spec='/usr/lib'
10349 ;;
10350
10351 uts4*)
10352 version_type=linux
10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 shlibpath_var=LD_LIBRARY_PATH
10356 ;;
10357
10358 *)
10359 dynamic_linker=no
10360 ;;
10361 esac
10362 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10363 echo "${ECHO_T}$dynamic_linker" >&6; }
10364 test "$dynamic_linker" = no && can_build_shared=no
10365
10366 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10367 if test "$GCC" = yes; then
10368 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
10369 fi
10370
10371 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >& 5
10372 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" > &6; }
10373 hardcode_action=
10374 if test -n "$hardcode_libdir_flag_spec" || \
10375 test -n "$runpath_var" || \
10376 test "X$hardcode_automatic" = "Xyes" ; then
10377
10378 # We can hardcode non-existant directories.
10379 if test "$hardcode_direct" != no &&
10380 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10381 # have to relink, otherwise we might link with an installed library
10382 # when we should be linking with a yet-to-be-installed one
10383 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10384 test "$hardcode_minus_L" != no; then
10385 # Linking always hardcodes the temporary library directory.
10386 hardcode_action=relink
10387 else
10388 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10389 hardcode_action=immediate
10390 fi
10391 else
10392 # We cannot hardcode anything, or else we can only hardcode existing
10393 # directories.
10394 hardcode_action=unsupported
10395 fi
10396 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10397 echo "${ECHO_T}$hardcode_action" >&6; }
10398
10399 if test "$hardcode_action" = relink; then
10400 # Fast installation is not supported
10401 enable_fast_install=no
10402 elif test "$shlibpath_overrides_runpath" = yes ||
10403 test "$enable_shared" = no; then
10404 # Fast installation is not necessary
10405 enable_fast_install=needless
10406 fi
10407
10408 striplib=
10409 old_striplib=
10410 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10411 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10412 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10413 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10414 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10415 { echo "$as_me:$LINENO: result: yes" >&5
10416 echo "${ECHO_T}yes" >&6; }
10417 else
10418 # FIXME - insert some real tests, host_os isn't really good enough
10419 case $host_os in
10420 darwin*)
10421 if test -n "$STRIP" ; then
10422 striplib="$STRIP -x"
10423 old_striplib="$STRIP -S"
10424 { echo "$as_me:$LINENO: result: yes" >&5
10425 echo "${ECHO_T}yes" >&6; }
10426 else
10427 { echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6; }
10429 fi
10430 ;;
10431 *)
10432 { echo "$as_me:$LINENO: result: no" >&5
10433 echo "${ECHO_T}no" >&6; }
10434 ;;
10435 esac
10436 fi
10437
10438 if test "x$enable_dlopen" != xyes; then
10439 enable_dlopen=unknown
10440 enable_dlopen_self=unknown
10441 enable_dlopen_self_static=unknown
10442 else
10443 lt_cv_dlopen=no
10444 lt_cv_dlopen_libs=
10445
10446 case $host_os in
10447 beos*)
10448 lt_cv_dlopen="load_add_on"
10449 lt_cv_dlopen_libs=
10450 lt_cv_dlopen_self=yes
10451 ;;
10452
10453 mingw* | pw32*)
10454 lt_cv_dlopen="LoadLibrary"
10455 lt_cv_dlopen_libs=
10456 ;;
10457
10458 cygwin*)
10459 lt_cv_dlopen="dlopen"
10460 lt_cv_dlopen_libs=
10461 ;;
10462
10463 darwin*)
10464 # if libdl is installed we need to link against it
10465 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10468 echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470 ac_check_lib_save_LIBS=$LIBS
10471 LIBS="-ldl $LIBS"
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478
10479 /* Override any GCC internal prototype to avoid an error.
10480 Use char because int might match the return type of a GCC
10481 builtin and then its argument prototype would still apply. */
10482 #ifdef __cplusplus
10483 extern "C"
10484 #endif
10485 char dlopen ();
10486 int
10487 main ()
10488 {
10489 return dlopen ();
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 rm -f conftest.$ac_objext conftest$ac_exeext
10495 if { (ac_try="$ac_link"
10496 case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10499 esac
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_link") 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } && {
10508 test -z "$ac_c_werror_flag" ||
10509 test ! -s conftest.err
10510 } && test -s conftest$ac_exeext &&
10511 $as_test_x conftest$ac_exeext; then
10512 ac_cv_lib_dl_dlopen=yes
10513 else
10514 echo "$as_me: failed program was:" >&5
10515 sed 's/^/| /' conftest.$ac_ext >&5
10516
10517 ac_cv_lib_dl_dlopen=no
10518 fi
10519
10520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10521 conftest$ac_exeext conftest.$ac_ext
10522 LIBS=$ac_check_lib_save_LIBS
10523 fi
10524 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10525 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10526 if test $ac_cv_lib_dl_dlopen = yes; then
10527 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10528 else
10529
10530 lt_cv_dlopen="dyld"
10531 lt_cv_dlopen_libs=
10532 lt_cv_dlopen_self=yes
10533
10534 fi
10535
10536 ;;
10537
10538 *)
10539 { echo "$as_me:$LINENO: checking for shl_load" >&5
10540 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10541 if test "${ac_cv_func_shl_load+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10543 else
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h. */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10550 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load .
10551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10552 #define shl_load innocuous_shl_load
10553
10554 /* System header to define __stub macros and hopefully few prototypes,
10555 which can conflict with char shl_load (); below.
10556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557 <limits.h> exists even on freestanding compilers. */
10558
10559 #ifdef __STDC__
10560 # include <limits.h>
10561 #else
10562 # include <assert.h>
10563 #endif
10564
10565 #undef shl_load
10566
10567 /* Override any GCC internal prototype to avoid an error.
10568 Use char because int might match the return type of a GCC
10569 builtin and then its argument prototype would still apply. */
10570 #ifdef __cplusplus
10571 extern "C"
10572 #endif
10573 char shl_load ();
10574 /* The GNU C library defines this for functions which it implements
10575 to always fail with ENOSYS. Some functions are actually named
10576 something starting with __ and the normal name is an alias. */
10577 #if defined __stub_shl_load || defined __stub___shl_load
10578 choke me
10579 #endif
10580
10581 int
10582 main ()
10583 {
10584 return shl_load ();
10585 ;
10586 return 0;
10587 }
10588 _ACEOF
10589 rm -f conftest.$ac_objext conftest$ac_exeext
10590 if { (ac_try="$ac_link"
10591 case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10594 esac
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_link") 2>conftest.er1
10597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest$ac_exeext &&
10606 $as_test_x conftest$ac_exeext; then
10607 ac_cv_func_shl_load=yes
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ac_cv_func_shl_load=no
10613 fi
10614
10615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10616 conftest$ac_exeext conftest.$ac_ext
10617 fi
10618 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10619 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10620 if test $ac_cv_func_shl_load = yes; then
10621 lt_cv_dlopen="shl_load"
10622 else
10623 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10624 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10625 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 ac_check_lib_save_LIBS=$LIBS
10629 LIBS="-ldld $LIBS"
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636
10637 /* Override any GCC internal prototype to avoid an error.
10638 Use char because int might match the return type of a GCC
10639 builtin and then its argument prototype would still apply. */
10640 #ifdef __cplusplus
10641 extern "C"
10642 #endif
10643 char shl_load ();
10644 int
10645 main ()
10646 {
10647 return shl_load ();
10648 ;
10649 return 0;
10650 }
10651 _ACEOF
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10657 esac
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_link") 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext &&
10669 $as_test_x conftest$ac_exeext; then
10670 ac_cv_lib_dld_shl_load=yes
10671 else
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675 ac_cv_lib_dld_shl_load=no
10676 fi
10677
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS=$ac_check_lib_save_LIBS
10681 fi
10682 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10683 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10684 if test $ac_cv_lib_dld_shl_load = yes; then
10685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10686 else
10687 { echo "$as_me:$LINENO: checking for dlopen" >&5
10688 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10689 if test "${ac_cv_func_dlopen+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700 #define dlopen innocuous_dlopen
10701
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char dlopen (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10706
10707 #ifdef __STDC__
10708 # include <limits.h>
10709 #else
10710 # include <assert.h>
10711 #endif
10712
10713 #undef dlopen
10714
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char dlopen ();
10722 /* The GNU C library defines this for functions which it implements
10723 to always fail with ENOSYS. Some functions are actually named
10724 something starting with __ and the normal name is an alias. */
10725 #if defined __stub_dlopen || defined __stub___dlopen
10726 choke me
10727 #endif
10728
10729 int
10730 main ()
10731 {
10732 return dlopen ();
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_link") 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext &&
10754 $as_test_x conftest$ac_exeext; then
10755 ac_cv_func_dlopen=yes
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 ac_cv_func_dlopen=no
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764 conftest$ac_exeext conftest.$ac_ext
10765 fi
10766 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10767 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10768 if test $ac_cv_func_dlopen = yes; then
10769 lt_cv_dlopen="dlopen"
10770 else
10771 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10772 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-ldl $LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784
10785 /* Override any GCC internal prototype to avoid an error.
10786 Use char because int might match the return type of a GCC
10787 builtin and then its argument prototype would still apply. */
10788 #ifdef __cplusplus
10789 extern "C"
10790 #endif
10791 char dlopen ();
10792 int
10793 main ()
10794 {
10795 return dlopen ();
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10808 ac_status=$?
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 ac_cv_lib_dl_dlopen=yes
10819 else
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823 ac_cv_lib_dl_dlopen=no
10824 fi
10825
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10828 LIBS=$ac_check_lib_save_LIBS
10829 fi
10830 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10831 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10832 if test $ac_cv_lib_dl_dlopen = yes; then
10833 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10834 else
10835 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10836 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10837 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840 ac_check_lib_save_LIBS=$LIBS
10841 LIBS="-lsvld $LIBS"
10842 cat >conftest.$ac_ext <<_ACEOF
10843 /* confdefs.h. */
10844 _ACEOF
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848
10849 /* Override any GCC internal prototype to avoid an error.
10850 Use char because int might match the return type of a GCC
10851 builtin and then its argument prototype would still apply. */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 char dlopen ();
10856 int
10857 main ()
10858 {
10859 return dlopen ();
10860 ;
10861 return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_link") 2>conftest.er1
10872 ac_status=$?
10873 grep -v '^ *+' conftest.er1 >conftest.err
10874 rm -f conftest.er1
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } && {
10878 test -z "$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10880 } && test -s conftest$ac_exeext &&
10881 $as_test_x conftest$ac_exeext; then
10882 ac_cv_lib_svld_dlopen=yes
10883 else
10884 echo "$as_me: failed program was:" >&5
10885 sed 's/^/| /' conftest.$ac_ext >&5
10886
10887 ac_cv_lib_svld_dlopen=no
10888 fi
10889
10890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10891 conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10895 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10896 if test $ac_cv_lib_svld_dlopen = yes; then
10897 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10898 else
10899 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10900 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10901 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 ac_check_lib_save_LIBS=$LIBS
10905 LIBS="-ldld $LIBS"
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char dld_link ();
10920 int
10921 main ()
10922 {
10923 return dld_link ();
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (ac_try="$ac_link"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_link") 2>conftest.er1
10936 ac_status=$?
10937 grep -v '^ *+' conftest.er1 >conftest.err
10938 rm -f conftest.er1
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest$ac_exeext &&
10945 $as_test_x conftest$ac_exeext; then
10946 ac_cv_lib_dld_dld_link=yes
10947 else
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951 ac_cv_lib_dld_dld_link=no
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10955 conftest$ac_exeext conftest.$ac_ext
10956 LIBS=$ac_check_lib_save_LIBS
10957 fi
10958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10959 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10960 if test $ac_cv_lib_dld_dld_link = yes; then
10961 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10962 fi
10963
10964
10965 fi
10966
10967
10968 fi
10969
10970
10971 fi
10972
10973
10974 fi
10975
10976
10977 fi
10978
10979 ;;
10980 esac
10981
10982 if test "x$lt_cv_dlopen" != xno; then
10983 enable_dlopen=yes
10984 else
10985 enable_dlopen=no
10986 fi
10987
10988 case $lt_cv_dlopen in
10989 dlopen)
10990 save_CPPFLAGS="$CPPFLAGS"
10991 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10992
10993 save_LDFLAGS="$LDFLAGS"
10994 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10995
10996 save_LIBS="$LIBS"
10997 LIBS="$lt_cv_dlopen_libs $LIBS"
10998
10999 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11000 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11001 if test "${lt_cv_dlopen_self+set}" = set; then
11002 echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004 if test "$cross_compiling" = yes; then :
11005 lt_cv_dlopen_self=cross
11006 else
11007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11008 lt_status=$lt_dlunknown
11009 cat > conftest.$ac_ext <<EOF
11010 #line 11010 "configure"
11011 #include "confdefs.h"
11012
11013 #if HAVE_DLFCN_H
11014 #include <dlfcn.h>
11015 #endif
11016
11017 #include <stdio.h>
11018
11019 #ifdef RTLD_GLOBAL
11020 # define LT_DLGLOBAL RTLD_GLOBAL
11021 #else
11022 # ifdef DL_GLOBAL
11023 # define LT_DLGLOBAL DL_GLOBAL
11024 # else
11025 # define LT_DLGLOBAL 0
11026 # endif
11027 #endif
11028
11029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11030 find out it does not work in some platform. */
11031 #ifndef LT_DLLAZY_OR_NOW
11032 # ifdef RTLD_LAZY
11033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11034 # else
11035 # ifdef DL_LAZY
11036 # define LT_DLLAZY_OR_NOW DL_LAZY
11037 # else
11038 # ifdef RTLD_NOW
11039 # define LT_DLLAZY_OR_NOW RTLD_NOW
11040 # else
11041 # ifdef DL_NOW
11042 # define LT_DLLAZY_OR_NOW DL_NOW
11043 # else
11044 # define LT_DLLAZY_OR_NOW 0
11045 # endif
11046 # endif
11047 # endif
11048 # endif
11049 #endif
11050
11051 #ifdef __cplusplus
11052 extern "C" void exit (int);
11053 #endif
11054
11055 void fnord() { int i=42;}
11056 int main ()
11057 {
11058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11059 int status = $lt_dlunknown;
11060
11061 if (self)
11062 {
11063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11064 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11065 /* dlclose (self); */
11066 }
11067 else
11068 puts (dlerror ());
11069
11070 exit (status);
11071 }
11072 EOF
11073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11078 (./conftest; exit; ) >&5 2>/dev/null
11079 lt_status=$?
11080 case x$lt_status in
11081 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11082 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11083 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11084 esac
11085 else :
11086 # compilation failed
11087 lt_cv_dlopen_self=no
11088 fi
11089 fi
11090 rm -fr conftest*
11091
11092
11093 fi
11094 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11095 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11096
11097 if test "x$lt_cv_dlopen_self" = xyes; then
11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
11099 { echo "$as_me:$LINENO: checking whether a statically linked program can d lopen itself" >&5
11100 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11101 if test "${lt_cv_dlopen_self_static+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 else
11104 if test "$cross_compiling" = yes; then :
11105 lt_cv_dlopen_self_static=cross
11106 else
11107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11108 lt_status=$lt_dlunknown
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11110 "configure"
11111 #include "confdefs.h"
11112
11113 #if HAVE_DLFCN_H
11114 #include <dlfcn.h>
11115 #endif
11116
11117 #include <stdio.h>
11118
11119 #ifdef RTLD_GLOBAL
11120 # define LT_DLGLOBAL RTLD_GLOBAL
11121 #else
11122 # ifdef DL_GLOBAL
11123 # define LT_DLGLOBAL DL_GLOBAL
11124 # else
11125 # define LT_DLGLOBAL 0
11126 # endif
11127 #endif
11128
11129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11130 find out it does not work in some platform. */
11131 #ifndef LT_DLLAZY_OR_NOW
11132 # ifdef RTLD_LAZY
11133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11134 # else
11135 # ifdef DL_LAZY
11136 # define LT_DLLAZY_OR_NOW DL_LAZY
11137 # else
11138 # ifdef RTLD_NOW
11139 # define LT_DLLAZY_OR_NOW RTLD_NOW
11140 # else
11141 # ifdef DL_NOW
11142 # define LT_DLLAZY_OR_NOW DL_NOW
11143 # else
11144 # define LT_DLLAZY_OR_NOW 0
11145 # endif
11146 # endif
11147 # endif
11148 # endif
11149 #endif
11150
11151 #ifdef __cplusplus
11152 extern "C" void exit (int);
11153 #endif
11154
11155 void fnord() { int i=42;}
11156 int main ()
11157 {
11158 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11159 int status = $lt_dlunknown;
11160
11161 if (self)
11162 {
11163 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11164 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11165 /* dlclose (self); */
11166 }
11167 else
11168 puts (dlerror ());
11169
11170 exit (status);
11171 }
11172 EOF
11173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11174 (eval $ac_link) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11178 (./conftest; exit; ) >&5 2>/dev/null
11179 lt_status=$?
11180 case x$lt_status in
11181 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11182 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11183 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11184 esac
11185 else :
11186 # compilation failed
11187 lt_cv_dlopen_self_static=no
11188 fi
11189 fi
11190 rm -fr conftest*
11191
11192
11193 fi
11194 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11195 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11196 fi
11197
11198 CPPFLAGS="$save_CPPFLAGS"
11199 LDFLAGS="$save_LDFLAGS"
11200 LIBS="$save_LIBS"
11201 ;;
11202 esac
11203
11204 case $lt_cv_dlopen_self in
11205 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11206 *) enable_dlopen_self=unknown ;;
11207 esac
11208
11209 case $lt_cv_dlopen_self_static in
11210 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11211 *) enable_dlopen_self_static=unknown ;;
11212 esac
11213 fi
11214
11215
11216 # Report which library types will actually be built
11217 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11218 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11219 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11220 echo "${ECHO_T}$can_build_shared" >&6; }
11221
11222 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11223 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11224 test "$can_build_shared" = "no" && enable_shared=no
11225
11226 # On AIX, shared libraries and static libraries use the same namespace, and
11227 # are all built from PIC.
11228 case $host_os in
11229 aix3*)
11230 test "$enable_shared" = yes && enable_static=no
11231 if test -n "$RANLIB"; then
11232 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11233 postinstall_cmds='$RANLIB $lib'
11234 fi
11235 ;;
11236
11237 aix4* | aix5*)
11238 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11239 test "$enable_shared" = yes && enable_static=no
11240 fi
11241 ;;
11242 esac
11243 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11244 echo "${ECHO_T}$enable_shared" >&6; }
11245
11246 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11247 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11248 # Make sure either enable_shared or enable_static is yes.
11249 test "$enable_shared" = yes || enable_static=yes
11250 { echo "$as_me:$LINENO: result: $enable_static" >&5
11251 echo "${ECHO_T}$enable_static" >&6; }
11252
11253 # The else clause should only fire when bootstrapping the
11254 # libtool distribution, otherwise you forgot to ship ltmain.sh
11255 # with your package, and you will get complaints that there are
11256 # no rules to generate ltmain.sh.
11257 if test -f "$ltmain"; then
11258 # See if we are running on zsh, and set the options which allow our commands t hrough
11259 # without removal of \ escapes.
11260 if test -n "${ZSH_VERSION+set}" ; then
11261 setopt NO_GLOB_SUBST
11262 fi
11263 # Now quote all the things that may contain metacharacters while being
11264 # careful not to overquote the AC_SUBSTed values. We take copies of the
11265 # variables and quote the copies for generation of the libtool script.
11266 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11267 SED SHELL STRIP \
11268 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11269 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11270 deplibs_check_method reload_flag reload_cmds need_locks \
11271 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11272 lt_cv_sys_global_symbol_to_c_name_address \
11273 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11274 old_postinstall_cmds old_postuninstall_cmds \
11275 compiler \
11276 CC \
11277 LD \
11278 lt_prog_compiler_wl \
11279 lt_prog_compiler_pic \
11280 lt_prog_compiler_static \
11281 lt_prog_compiler_no_builtin_flag \
11282 export_dynamic_flag_spec \
11283 thread_safe_flag_spec \
11284 whole_archive_flag_spec \
11285 enable_shared_with_static_runtimes \
11286 old_archive_cmds \
11287 old_archive_from_new_cmds \
11288 predep_objects \
11289 postdep_objects \
11290 predeps \
11291 postdeps \
11292 compiler_lib_search_path \
11293 archive_cmds \
11294 archive_expsym_cmds \
11295 postinstall_cmds \
11296 postuninstall_cmds \
11297 old_archive_from_expsyms_cmds \
11298 allow_undefined_flag \
11299 no_undefined_flag \
11300 export_symbols_cmds \
11301 hardcode_libdir_flag_spec \
11302 hardcode_libdir_flag_spec_ld \
11303 hardcode_libdir_separator \
11304 hardcode_automatic \
11305 module_cmds \
11306 module_expsym_cmds \
11307 lt_cv_prog_compiler_c_o \
11308 fix_srcfile_path \
11309 exclude_expsyms \
11310 include_expsyms; do
11311
11312 case $var in
11313 old_archive_cmds | \
11314 old_archive_from_new_cmds | \
11315 archive_cmds | \
11316 archive_expsym_cmds | \
11317 module_cmds | \
11318 module_expsym_cmds | \
11319 old_archive_from_expsyms_cmds | \
11320 export_symbols_cmds | \
11321 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11322 postinstall_cmds | postuninstall_cmds | \
11323 old_postinstall_cmds | old_postuninstall_cmds | \
11324 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11325 # Double-quote double-evaled strings.
11326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\ " -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11327 ;;
11328 *)
11329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\` \\\""
11330 ;;
11331 esac
11332 done
11333
11334 case $lt_echo in
11335 *'\$0 --fallback-echo"')
11336 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa llback-echo"/'`
11337 ;;
11338 esac
11339
11340 cfgfile="${ofile}T"
11341 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11342 $rm -f "$cfgfile"
11343 { echo "$as_me:$LINENO: creating $ofile" >&5
11344 echo "$as_me: creating $ofile" >&6;}
11345
11346 cat <<__EOF__ >> "$cfgfile"
11347 #! $SHELL
11348
11349 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building sup port services.
11350 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11351 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11352 #
11353 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 , 2007
11354 # Free Software Foundation, Inc.
11355 #
11356 # This file is part of GNU Libtool:
11357 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11358 #
11359 # This program is free software; you can redistribute it and/or modify
11360 # it under the terms of the GNU General Public License as published by
11361 # the Free Software Foundation; either version 2 of the License, or
11362 # (at your option) any later version.
11363 #
11364 # This program is distributed in the hope that it will be useful, but
11365 # WITHOUT ANY WARRANTY; without even the implied warranty of
11366 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11367 # General Public License for more details.
11368 #
11369 # You should have received a copy of the GNU General Public License
11370 # along with this program; if not, write to the Free Software
11371 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11372 #
11373 # As a special exception to the GNU General Public License, if you
11374 # distribute this file as part of a program that contains a
11375 # configuration script generated by Autoconf, you may include it under
11376 # the same distribution terms that you use for the rest of that program.
11377
11378 # A sed program that does not truncate output.
11379 SED=$lt_SED
11380
11381 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11382 Xsed="$SED -e 1s/^X//"
11383
11384 # The HP-UX ksh and POSIX shell print the target directory to stdout
11385 # if CDPATH is set.
11386 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11387
11388 # The names of the tagged configurations supported by this script.
11389 available_tags=
11390
11391 # ### BEGIN LIBTOOL CONFIG
11392
11393 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11394
11395 # Shell to use when invoking shell scripts.
11396 SHELL=$lt_SHELL
11397
11398 # Whether or not to build shared libraries.
11399 build_libtool_libs=$enable_shared
11400
11401 # Whether or not to build static libraries.
11402 build_old_libs=$enable_static
11403
11404 # Whether or not to add -lc for building shared libraries.
11405 build_libtool_need_lc=$archive_cmds_need_lc
11406
11407 # Whether or not to disallow shared libs when runtime libs are static
11408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11409
11410 # Whether or not to optimize for fast installation.
11411 fast_install=$enable_fast_install
11412
11413 # The host system.
11414 host_alias=$host_alias
11415 host=$host
11416 host_os=$host_os
11417
11418 # The build system.
11419 build_alias=$build_alias
11420 build=$build
11421 build_os=$build_os
11422
11423 # An echo program that does not interpret backslashes.
11424 echo=$lt_echo
11425
11426 # The archiver.
11427 AR=$lt_AR
11428 AR_FLAGS=$lt_AR_FLAGS
11429
11430 # A C compiler.
11431 LTCC=$lt_LTCC
11432
11433 # LTCC compiler flags.
11434 LTCFLAGS=$lt_LTCFLAGS
11435
11436 # A language-specific compiler.
11437 CC=$lt_compiler
11438
11439 # Is the compiler the GNU C compiler?
11440 with_gcc=$GCC
11441
11442 # An ERE matcher.
11443 EGREP=$lt_EGREP
11444
11445 # The linker used to build libraries.
11446 LD=$lt_LD
11447
11448 # Whether we need hard or soft links.
11449 LN_S=$lt_LN_S
11450
11451 # A BSD-compatible nm program.
11452 NM=$lt_NM
11453
11454 # A symbol stripping program
11455 STRIP=$lt_STRIP
11456
11457 # Used to examine libraries when file_magic_cmd begins "file"
11458 MAGIC_CMD=$MAGIC_CMD
11459
11460 # Used on cygwin: DLL creation program.
11461 DLLTOOL="$DLLTOOL"
11462
11463 # Used on cygwin: object dumper.
11464 OBJDUMP="$OBJDUMP"
11465
11466 # Used on cygwin: assembler.
11467 AS="$AS"
11468
11469 # The name of the directory that contains temporary libtool files.
11470 objdir=$objdir
11471
11472 # How to create reloadable object files.
11473 reload_flag=$lt_reload_flag
11474 reload_cmds=$lt_reload_cmds
11475
11476 # How to pass a linker flag through the compiler.
11477 wl=$lt_lt_prog_compiler_wl
11478
11479 # Object file suffix (normally "o").
11480 objext="$ac_objext"
11481
11482 # Old archive suffix (normally "a").
11483 libext="$libext"
11484
11485 # Shared library suffix (normally ".so").
11486 shrext_cmds='$shrext_cmds'
11487
11488 # Executable file suffix (normally "").
11489 exeext="$exeext"
11490
11491 # Additional compiler flags for building library objects.
11492 pic_flag=$lt_lt_prog_compiler_pic
11493 pic_mode=$pic_mode
11494
11495 # What is the maximum length of a command?
11496 max_cmd_len=$lt_cv_sys_max_cmd_len
11497
11498 # Does compiler simultaneously support -c and -o options?
11499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11500
11501 # Must we lock files when doing compilation?
11502 need_locks=$lt_need_locks
11503
11504 # Do we need the lib prefix for modules?
11505 need_lib_prefix=$need_lib_prefix
11506
11507 # Do we need a version for libraries?
11508 need_version=$need_version
11509
11510 # Whether dlopen is supported.
11511 dlopen_support=$enable_dlopen
11512
11513 # Whether dlopen of programs is supported.
11514 dlopen_self=$enable_dlopen_self
11515
11516 # Whether dlopen of statically linked programs is supported.
11517 dlopen_self_static=$enable_dlopen_self_static
11518
11519 # Compiler flag to prevent dynamic linking.
11520 link_static_flag=$lt_lt_prog_compiler_static
11521
11522 # Compiler flag to turn off builtin functions.
11523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11524
11525 # Compiler flag to allow reflexive dlopens.
11526 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11527
11528 # Compiler flag to generate shared objects directly from archives.
11529 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11530
11531 # Compiler flag to generate thread-safe objects.
11532 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11533
11534 # Library versioning type.
11535 version_type=$version_type
11536
11537 # Format of library name prefix.
11538 libname_spec=$lt_libname_spec
11539
11540 # List of archive names. First name is the real one, the rest are links.
11541 # The last name is the one that the linker finds with -lNAME.
11542 library_names_spec=$lt_library_names_spec
11543
11544 # The coded name of the library, if different from the real name.
11545 soname_spec=$lt_soname_spec
11546
11547 # Commands used to build and install an old-style archive.
11548 RANLIB=$lt_RANLIB
11549 old_archive_cmds=$lt_old_archive_cmds
11550 old_postinstall_cmds=$lt_old_postinstall_cmds
11551 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11552
11553 # Create an old-style archive from a shared archive.
11554 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11555
11556 # Create a temporary old-style archive to link instead of a shared archive.
11557 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11558
11559 # Commands used to build and install a shared archive.
11560 archive_cmds=$lt_archive_cmds
11561 archive_expsym_cmds=$lt_archive_expsym_cmds
11562 postinstall_cmds=$lt_postinstall_cmds
11563 postuninstall_cmds=$lt_postuninstall_cmds
11564
11565 # Commands used to build a loadable module (assumed same as above if empty)
11566 module_cmds=$lt_module_cmds
11567 module_expsym_cmds=$lt_module_expsym_cmds
11568
11569 # Commands to strip libraries.
11570 old_striplib=$lt_old_striplib
11571 striplib=$lt_striplib
11572
11573 # Dependencies to place before the objects being linked to create a
11574 # shared library.
11575 predep_objects=$lt_predep_objects
11576
11577 # Dependencies to place after the objects being linked to create a
11578 # shared library.
11579 postdep_objects=$lt_postdep_objects
11580
11581 # Dependencies to place before the objects being linked to create a
11582 # shared library.
11583 predeps=$lt_predeps
11584
11585 # Dependencies to place after the objects being linked to create a
11586 # shared library.
11587 postdeps=$lt_postdeps
11588
11589 # The library search path used internally by the compiler when linking
11590 # a shared library.
11591 compiler_lib_search_path=$lt_compiler_lib_search_path
11592
11593 # Method to check whether dependent libraries are shared objects.
11594 deplibs_check_method=$lt_deplibs_check_method
11595
11596 # Command to use when deplibs_check_method == file_magic.
11597 file_magic_cmd=$lt_file_magic_cmd
11598
11599 # Flag that allows shared libraries with undefined symbols to be built.
11600 allow_undefined_flag=$lt_allow_undefined_flag
11601
11602 # Flag that forces no undefined symbols.
11603 no_undefined_flag=$lt_no_undefined_flag
11604
11605 # Commands used to finish a libtool library installation in a directory.
11606 finish_cmds=$lt_finish_cmds
11607
11608 # Same as above, but a single script fragment to be evaled but not shown.
11609 finish_eval=$lt_finish_eval
11610
11611 # Take the output of nm and produce a listing of raw symbols and C names.
11612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11613
11614 # Transform the output of nm in a proper C declaration
11615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11616
11617 # Transform the output of nm in a C name address pair
11618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11619
11620 # This is the shared library runtime path variable.
11621 runpath_var=$runpath_var
11622
11623 # This is the shared library path variable.
11624 shlibpath_var=$shlibpath_var
11625
11626 # Is shlibpath searched before the hard-coded library search path?
11627 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11628
11629 # How to hardcode a shared library path into an executable.
11630 hardcode_action=$hardcode_action
11631
11632 # Whether we should hardcode library paths into libraries.
11633 hardcode_into_libs=$hardcode_into_libs
11634
11635 # Flag to hardcode \$libdir into a binary during linking.
11636 # This must work even if \$libdir does not exist.
11637 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11638
11639 # If ld is used when linking, flag to hardcode \$libdir into
11640 # a binary during linking. This must work even if \$libdir does
11641 # not exist.
11642 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11643
11644 # Whether we need a single -rpath flag with a separated argument.
11645 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11646
11647 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11648 # resulting binary.
11649 hardcode_direct=$hardcode_direct
11650
11651 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11652 # resulting binary.
11653 hardcode_minus_L=$hardcode_minus_L
11654
11655 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11656 # the resulting binary.
11657 hardcode_shlibpath_var=$hardcode_shlibpath_var
11658
11659 # Set to yes if building a shared library automatically hardcodes DIR into the l ibrary
11660 # and all subsequent libraries and executables linked against it.
11661 hardcode_automatic=$hardcode_automatic
11662
11663 # Variables whose values should be saved in libtool wrapper scripts and
11664 # restored at relink time.
11665 variables_saved_for_relink="$variables_saved_for_relink"
11666
11667 # Whether libtool must link a program against all its dependency libraries.
11668 link_all_deplibs=$link_all_deplibs
11669
11670 # Compile-time system search path for libraries
11671 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11672
11673 # Run-time system search path for libraries
11674 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11675
11676 # Fix the shell variable \$srcfile for the compiler.
11677 fix_srcfile_path=$lt_fix_srcfile_path
11678
11679 # Set to yes if exported symbols are required.
11680 always_export_symbols=$always_export_symbols
11681
11682 # The commands to list exported symbols.
11683 export_symbols_cmds=$lt_export_symbols_cmds
11684
11685 # The commands to extract the exported symbol list from a shared archive.
11686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11687
11688 # Symbols that should not be listed in the preloaded symbols.
11689 exclude_expsyms=$lt_exclude_expsyms
11690
11691 # Symbols that must always be exported.
11692 include_expsyms=$lt_include_expsyms
11693
11694 # ### END LIBTOOL CONFIG
11695
11696 __EOF__
11697
11698
11699 case $host_os in
11700 aix3*)
11701 cat <<\EOF >> "$cfgfile"
11702
11703 # AIX sometimes has problems with the GCC collect2 program. For some
11704 # reason, if we set the COLLECT_NAMES environment variable, the problems
11705 # vanish in a puff of smoke.
11706 if test "X${COLLECT_NAMES+set}" != Xset; then
11707 COLLECT_NAMES=
11708 export COLLECT_NAMES
11709 fi
11710 EOF
11711 ;;
11712 esac
11713
11714 # We use sed instead of cat because bash on DJGPP gets confused if
11715 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11716 # text mode, it properly converts lines to CR/LF. This bash problem
11717 # is reportedly fixed, but why not run on old versions too?
11718 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11719
11720 mv -f "$cfgfile" "$ofile" || \
11721 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11722 chmod +x "$ofile"
11723
11724 else
11725 # If there is no Makefile yet, we rely on a make rule to execute
11726 # `config.status --recheck' to rerun these tests and create the
11727 # libtool script then.
11728 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11729 if test -f "$ltmain_in"; then
11730 test -f Makefile && make "$ltmain"
11731 fi
11732 fi
11733
11734
11735 ac_ext=c
11736 ac_cpp='$CPP $CPPFLAGS'
11737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
11739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11740
11741 CC="$lt_save_CC"
11742
11743
11744 # Check whether --with-tags was given.
11745 if test "${with_tags+set}" = set; then
11746 withval=$with_tags; tagnames="$withval"
11747 fi
11748
11749
11750 if test -f "$ltmain" && test -n "$tagnames"; then
11751 if test ! -f "${ofile}"; then
11752 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11753 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11754 fi
11755
11756 if test -z "$LTCC"; then
11757 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11758 if test -z "$LTCC"; then
11759 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11760 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script " >&2;}
11761 else
11762 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$of ile'" >&5
11763 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11764 fi
11765 fi
11766 if test -z "$LTCFLAGS"; then
11767 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11768 fi
11769
11770 # Extract list of available tagged configurations in $ofile.
11771 # Note that this assumes the entire list is on one line.
11772 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags =\(.*$\)/\1/' -e 's/\"//g'`
11773
11774 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11775 for tagname in $tagnames; do
11776 IFS="$lt_save_ifs"
11777 # Check whether tagname contains only valid characters
11778 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghi jklmnopqrstuvwxyz1234567890,/]::g'` in
11779 "") ;;
11780 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11781 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11782 { (exit 1); exit 1; }; }
11783 ;;
11784 esac
11785
11786 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/nul l
11787 then
11788 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11789 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11790 { (exit 1); exit 1; }; }
11791 fi
11792
11793 # Update the list of available tags.
11794 if test -n "$tagname"; then
11795 echo appending configuration tag \"$tagname\" to $ofile
11796
11797 case $tagname in
11798 CXX)
11799 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11800 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11801 (test "X$CXX" != "Xg++"))) ; then
11802 ac_ext=cpp
11803 ac_cpp='$CXXCPP $CPPFLAGS'
11804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
11806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11807
11808
11809
11810
11811 archive_cmds_need_lc_CXX=no
11812 allow_undefined_flag_CXX=
11813 always_export_symbols_CXX=no
11814 archive_expsym_cmds_CXX=
11815 export_dynamic_flag_spec_CXX=
11816 hardcode_direct_CXX=no
11817 hardcode_libdir_flag_spec_CXX=
11818 hardcode_libdir_flag_spec_ld_CXX=
11819 hardcode_libdir_separator_CXX=
11820 hardcode_minus_L_CXX=no
11821 hardcode_shlibpath_var_CXX=unsupported
11822 hardcode_automatic_CXX=no
11823 module_cmds_CXX=
11824 module_expsym_cmds_CXX=
11825 link_all_deplibs_CXX=unknown
11826 old_archive_cmds_CXX=$old_archive_cmds
11827 no_undefined_flag_CXX=
11828 whole_archive_flag_spec_CXX=
11829 enable_shared_with_static_runtimes_CXX=no
11830
11831 # Dependencies to place before and after the object being linked:
11832 predep_objects_CXX=
11833 postdep_objects_CXX=
11834 predeps_CXX=
11835 postdeps_CXX=
11836 compiler_lib_search_path_CXX=
11837
11838 # Source file extension for C++ test sources.
11839 ac_ext=cpp
11840
11841 # Object file extension for compiled C++ test sources.
11842 objext=o
11843 objext_CXX=$objext
11844
11845 # Code to be used in simple compile tests
11846 lt_simple_compile_test_code="int some_variable = 0;"
11847
11848 # Code to be used in simple link tests
11849 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11850
11851 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11852
11853 # If no C compiler was specified, use CC.
11854 LTCC=${LTCC-"$CC"}
11855
11856 # If no C compiler flags were specified, use CFLAGS.
11857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11858
11859 # Allow CC to be a program name with arguments.
11860 compiler=$CC
11861
11862
11863 # save warnings/boilerplate of simple test code
11864 ac_outfile=conftest.$ac_objext
11865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11867 _lt_compiler_boilerplate=`cat conftest.err`
11868 $rm conftest*
11869
11870 ac_outfile=conftest.$ac_objext
11871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11873 _lt_linker_boilerplate=`cat conftest.err`
11874 $rm conftest*
11875
11876
11877 # Allow CC to be a program name with arguments.
11878 lt_save_CC=$CC
11879 lt_save_LD=$LD
11880 lt_save_GCC=$GCC
11881 GCC=$GXX
11882 lt_save_with_gnu_ld=$with_gnu_ld
11883 lt_save_path_LD=$lt_cv_path_LD
11884 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11885 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11886 else
11887 $as_unset lt_cv_prog_gnu_ld
11888 fi
11889 if test -n "${lt_cv_path_LDCXX+set}"; then
11890 lt_cv_path_LD=$lt_cv_path_LDCXX
11891 else
11892 $as_unset lt_cv_path_LD
11893 fi
11894 test -z "${LDCXX+set}" || LD=$LDCXX
11895 CC=${CXX-"c++"}
11896 compiler=$CC
11897 compiler_CXX=$CC
11898 for cc_temp in $compiler""; do
11899 case $cc_temp in
11900 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11901 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11902 \-*) ;;
11903 *) break;;
11904 esac
11905 done
11906 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11907
11908
11909 # We don't want -fno-exception wen compiling C++ code, so set the
11910 # no_builtin_flag separately
11911 if test "$GXX" = yes; then
11912 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11913 else
11914 lt_prog_compiler_no_builtin_flag_CXX=
11915 fi
11916
11917 if test "$GXX" = yes; then
11918 # Set up default GNU C++ configuration
11919
11920
11921 # Check whether --with-gnu-ld was given.
11922 if test "${with_gnu_ld+set}" = set; then
11923 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11924 else
11925 with_gnu_ld=no
11926 fi
11927
11928 ac_prog=ld
11929 if test "$GCC" = yes; then
11930 # Check if gcc -print-prog-name=ld gives a path.
11931 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11932 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11933 case $host in
11934 *-*-mingw*)
11935 # gcc leaves a trailing carriage return which upsets mingw
11936 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11937 *)
11938 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11939 esac
11940 case $ac_prog in
11941 # Accept absolute paths.
11942 [\\/]* | ?:[\\/]*)
11943 re_direlt='/[^/][^/]*/\.\./'
11944 # Canonicalize the pathname of ld
11945 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11946 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11947 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11948 done
11949 test -z "$LD" && LD="$ac_prog"
11950 ;;
11951 "")
11952 # If it fails, then pretend we aren't using GCC.
11953 ac_prog=ld
11954 ;;
11955 *)
11956 # If it is relative, then search for the first ld in PATH.
11957 with_gnu_ld=unknown
11958 ;;
11959 esac
11960 elif test "$with_gnu_ld" = yes; then
11961 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11962 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11963 else
11964 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11965 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11966 fi
11967 if test "${lt_cv_path_LD+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970 if test -z "$LD"; then
11971 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11972 for ac_dir in $PATH; do
11973 IFS="$lt_save_ifs"
11974 test -z "$ac_dir" && ac_dir=.
11975 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11976 lt_cv_path_LD="$ac_dir/$ac_prog"
11977 # Check to see if the program is GNU ld. I'd rather use --version,
11978 # but apparently some variants of GNU ld only accept -v.
11979 # Break only if it was the GNU/non-GNU ld that we prefer.
11980 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11981 *GNU* | *'with BFD'*)
11982 test "$with_gnu_ld" != no && break
11983 ;;
11984 *)
11985 test "$with_gnu_ld" != yes && break
11986 ;;
11987 esac
11988 fi
11989 done
11990 IFS="$lt_save_ifs"
11991 else
11992 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11993 fi
11994 fi
11995
11996 LD="$lt_cv_path_LD"
11997 if test -n "$LD"; then
11998 { echo "$as_me:$LINENO: result: $LD" >&5
11999 echo "${ECHO_T}$LD" >&6; }
12000 else
12001 { echo "$as_me:$LINENO: result: no" >&5
12002 echo "${ECHO_T}no" >&6; }
12003 fi
12004 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PA TH" >&5
12005 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12006 { (exit 1); exit 1; }; }
12007 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12008 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12009 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12010 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12013 case `$LD -v 2>&1 </dev/null` in
12014 *GNU* | *'with BFD'*)
12015 lt_cv_prog_gnu_ld=yes
12016 ;;
12017 *)
12018 lt_cv_prog_gnu_ld=no
12019 ;;
12020 esac
12021 fi
12022 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12023 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12024 with_gnu_ld=$lt_cv_prog_gnu_ld
12025
12026
12027
12028 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12029 # archiving commands below assume that GNU ld is being used.
12030 if test "$with_gnu_ld" = yes; then
12031 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $p ostdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12032 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $dep libs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbo ls-file $wl$export_symbols -o $lib'
12033
12034 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12036
12037 # If archive_cmds runs LD, not CC, wlarc should be empty
12038 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12039 # investigate it a little bit more. (MM)
12040 wlarc='${wl}'
12041
12042 # ancient GNU ld didn't support --whole-archive et. al.
12043 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12044 grep 'no-whole-archive' > /dev/null; then
12045 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc" '--no-whole-archive'
12046 else
12047 whole_archive_flag_spec_CXX=
12048 fi
12049 else
12050 with_gnu_ld=no
12051 wlarc=
12052
12053 # A generic and very simple default shared library creation
12054 # command for GNU C++ for the case where it uses the native
12055 # linker, instead of GNU ld. If possible, this setting should
12056 # overridden to take advantage of the native linker features on
12057 # the platform it is being used on.
12058 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $p ostdep_objects $compiler_flags -o $lib'
12059 fi
12060
12061 # Commands to make compiler produce verbose output that lists
12062 # what "hidden" libraries, object files and flags are used when
12063 # linking a shared library.
12064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep " \-L"'
12065
12066 else
12067 GXX=no
12068 with_gnu_ld=no
12069 wlarc=
12070 fi
12071
12072 # PORTME: fill in a description of your system's C++ link characteristics
12073 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports sha red libraries" >&5
12074 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar ies... $ECHO_C" >&6; }
12075 ld_shlibs_CXX=yes
12076 case $host_os in
12077 aix3*)
12078 # FIXME: insert proper C++ library support
12079 ld_shlibs_CXX=no
12080 ;;
12081 aix4* | aix5*)
12082 if test "$host_cpu" = ia64; then
12083 # On IA64, the linker does run time linking by default, so we don't
12084 # have to do anything special.
12085 aix_use_runtimelinking=no
12086 exp_sym_flag='-Bexport'
12087 no_entry_flag=""
12088 else
12089 aix_use_runtimelinking=no
12090
12091 # Test if we are trying to use run time linking or normal
12092 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12093 # need to do runtime linking.
12094 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12095 for ld_flag in $LDFLAGS; do
12096 case $ld_flag in
12097 *-brtl*)
12098 aix_use_runtimelinking=yes
12099 break
12100 ;;
12101 esac
12102 done
12103 ;;
12104 esac
12105
12106 exp_sym_flag='-bexport'
12107 no_entry_flag='-bnoentry'
12108 fi
12109
12110 # When large executables or shared objects are built, AIX ld can
12111 # have problems creating the table of contents. If linking a library
12112 # or program results in "error TOC overflow" add -mminimal-toc to
12113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12115
12116 archive_cmds_CXX=''
12117 hardcode_direct_CXX=yes
12118 hardcode_libdir_separator_CXX=':'
12119 link_all_deplibs_CXX=yes
12120
12121 if test "$GXX" = yes; then
12122 case $host_os in aix4.[012]|aix4.[012].*)
12123 # We only want to do this on AIX 4.2 and lower, the check
12124 # below for broken collect2 doesn't work under 4.3+
12125 collect2name=`${CC} -print-prog-name=collect2`
12126 if test -f "$collect2name" && \
12127 strings "$collect2name" | grep resolve_lib_name >/dev/null
12128 then
12129 # We have reworked collect2
12130 :
12131 else
12132 # We have old collect2
12133 hardcode_direct_CXX=unsupported
12134 # It fails to find uninstalled libraries when the uninstalled
12135 # path is not listed in the libpath. Setting hardcode_minus_L
12136 # to unsupported forces relinking
12137 hardcode_minus_L_CXX=yes
12138 hardcode_libdir_flag_spec_CXX='-L$libdir'
12139 hardcode_libdir_separator_CXX=
12140 fi
12141 ;;
12142 esac
12143 shared_flag='-shared'
12144 if test "$aix_use_runtimelinking" = yes; then
12145 shared_flag="$shared_flag "'${wl}-G'
12146 fi
12147 else
12148 # not using gcc
12149 if test "$host_cpu" = ia64; then
12150 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12151 # chokes on -Wl,-G. The following line is correct:
12152 shared_flag='-G'
12153 else
12154 if test "$aix_use_runtimelinking" = yes; then
12155 shared_flag='${wl}-G'
12156 else
12157 shared_flag='${wl}-bM:SRE'
12158 fi
12159 fi
12160 fi
12161
12162 # It seems that -bexpall does not export symbols beginning with
12163 # underscore (_), so it is better to generate a list of symbols to export.
12164 always_export_symbols_CXX=yes
12165 if test "$aix_use_runtimelinking" = yes; then
12166 # Warning - without using the other runtime loading flags (-brtl),
12167 # -berok will link without error, but may produce a broken library.
12168 allow_undefined_flag_CXX='-berok'
12169 # Determine the default libpath from the value encoded in an empty executa ble.
12170 cat >conftest.$ac_ext <<_ACEOF
12171 /* confdefs.h. */
12172 _ACEOF
12173 cat confdefs.h >>conftest.$ac_ext
12174 cat >>conftest.$ac_ext <<_ACEOF
12175 /* end confdefs.h. */
12176
12177 int
12178 main ()
12179 {
12180
12181 ;
12182 return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189 *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_link") 2>conftest.er1
12193 ac_status=$?
12194 grep -v '^ *+' conftest.er1 >conftest.err
12195 rm -f conftest.er1
12196 cat conftest.err >&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } && {
12199 test -z "$ac_cxx_werror_flag" ||
12200 test ! -s conftest.err
12201 } && test -s conftest$ac_exeext &&
12202 $as_test_x conftest$ac_exeext; then
12203
12204 lt_aix_libpath_sed='
12205 /Import File Strings/,/^$/ {
12206 /^0/ {
12207 s/^0 *\(.*\)$/\1/
12208 p
12209 }
12210 }'
12211 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
12212 # Check for a 64-bit object if we didn't find anything.
12213 if test -z "$aix_libpath"; then
12214 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
12215 fi
12216 else
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12219
12220
12221 fi
12222
12223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12224 conftest$ac_exeext conftest.$ac_ext
12225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12226
12227 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12228
12229 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplib s '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" ! = "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_fl ag:\$export_symbols $shared_flag"
12230 else
12231 if test "$host_cpu" = ia64; then
12232 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12233 allow_undefined_flag_CXX="-z nodefs"
12234 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"
12235 else
12236 # Determine the default libpath from the value encoded in an empty execu table.
12237 cat >conftest.$ac_ext <<_ACEOF
12238 /* confdefs.h. */
12239 _ACEOF
12240 cat confdefs.h >>conftest.$ac_ext
12241 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */
12243
12244 int
12245 main ()
12246 {
12247
12248 ;
12249 return 0;
12250 }
12251 _ACEOF
12252 rm -f conftest.$ac_objext conftest$ac_exeext
12253 if { (ac_try="$ac_link"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_link") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_cxx_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest$ac_exeext &&
12269 $as_test_x conftest$ac_exeext; then
12270
12271 lt_aix_libpath_sed='
12272 /Import File Strings/,/^$/ {
12273 /^0/ {
12274 s/^0 *\(.*\)$/\1/
12275 p
12276 }
12277 }'
12278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
12279 # Check for a 64-bit object if we didn't find anything.
12280 if test -z "$aix_libpath"; then
12281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
12282 fi
12283 else
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287
12288 fi
12289
12290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12291 conftest$ac_exeext conftest.$ac_ext
12292 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12293
12294 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12295 # Warning - without using the other run time loading flags,
12296 # -berok will link without error, but may produce a broken library.
12297 no_undefined_flag_CXX=' ${wl}-bernotok'
12298 allow_undefined_flag_CXX=' ${wl}-berok'
12299 # Exported symbols can be pulled into shared objects from archives
12300 whole_archive_flag_spec_CXX='$convenience'
12301 archive_cmds_need_lc_CXX=yes
12302 # This is similar to how AIX traditionally builds its shared libraries.
12303 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'
12304 fi
12305 fi
12306 ;;
12307
12308 beos*)
12309 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12310 allow_undefined_flag_CXX=unsupported
12311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12312 # support --undefined. This deserves some investigation. FIXME
12313 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-son ame $wl$soname -o $lib'
12314 else
12315 ld_shlibs_CXX=no
12316 fi
12317 ;;
12318
12319 chorus*)
12320 case $cc_basename in
12321 *)
12322 # FIXME: insert proper C++ library support
12323 ld_shlibs_CXX=no
12324 ;;
12325 esac
12326 ;;
12327
12328 cygwin* | mingw* | pw32*)
12329 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12330 # as there is no search path for DLLs.
12331 hardcode_libdir_flag_spec_CXX='-L$libdir'
12332 allow_undefined_flag_CXX=unsupported
12333 always_export_symbols_CXX=no
12334 enable_shared_with_static_runtimes_CXX=yes
12335
12336 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-im age-base -Xlinker --out-implib -Xlinker $lib'
12338 # If the export-symbols file already is a .def file (1st line
12339 # is EXPORTS), use it as is; otherwise, prepend...
12340 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12341 cp $export_symbols $output_objdir/$soname.def;
12342 else
12343 echo EXPORTS > $output_objdir/$soname.def;
12344 cat $export_symbols >> $output_objdir/$soname.def;
12345 fi~
12346 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enabl e-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12347 else
12348 ld_shlibs_CXX=no
12349 fi
12350 ;;
12351 darwin* | rhapsody*)
12352 case $host_os in
12353 rhapsody* | darwin1.[012])
12354 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12355 ;;
12356 *) # Darwin 1.3 on
12357 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12358 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}s uppress'
12359 else
12360 case ${MACOSX_DEPLOYMENT_TARGET} in
12361 10.[012])
12362 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${ wl}suppress'
12363 ;;
12364 10.*)
12365 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12366 ;;
12367 esac
12368 fi
12369 ;;
12370 esac
12371 archive_cmds_need_lc_CXX=no
12372 hardcode_direct_CXX=no
12373 hardcode_automatic_CXX=yes
12374 hardcode_shlibpath_var_CXX=unsupported
12375 whole_archive_flag_spec_CXX=''
12376 link_all_deplibs_CXX=yes
12377
12378 if test "$GXX" = yes ; then
12379 lt_int_apple_cc_single_mod=no
12380 output_verbose_link_cmd='echo'
12381 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12382 lt_int_apple_cc_single_mod=yes
12383 fi
12384 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12385 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12386 else
12387 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-mas ter.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $de plibs $compiler_flags -install_name $rpath/$soname $verstring'
12388 fi
12389 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $dep libs$compiler_flags'
12390 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12391 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12392 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\ (..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dy namiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compile r_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libna me}-symbols.expsym ${lib}'
12393 else
12394 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\ (..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $all ow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${ lib}'
12395 fi
12396 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\( ..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $all ow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $o utput_objdir/${libname}-symbols.expsym ${lib}'
12397 else
12398 case $cc_basename in
12399 xlc*)
12400 output_verbose_link_cmd='echo'
12401 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_ flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rp ath/$soname` $xlcverstring'
12402 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $d eplibs$compiler_flags'
12403 # Don't fix this by using the ld -exported_symbols_list flag, it doesn 't exist in older darwin lds
12404 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(. .*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmks hrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compi ler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output _objdir/${libname}-symbols.expsym ${lib}'
12405 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 $out put_objdir/${libname}-symbols.expsym ${lib}'
12406 ;;
12407 *)
12408 ld_shlibs_CXX=no
12409 ;;
12410 esac
12411 fi
12412 ;;
12413
12414 dgux*)
12415 case $cc_basename in
12416 ec++*)
12417 # FIXME: insert proper C++ library support
12418 ld_shlibs_CXX=no
12419 ;;
12420 ghcx*)
12421 # Green Hills C++ Compiler
12422 # FIXME: insert proper C++ library support
12423 ld_shlibs_CXX=no
12424 ;;
12425 *)
12426 # FIXME: insert proper C++ library support
12427 ld_shlibs_CXX=no
12428 ;;
12429 esac
12430 ;;
12431 freebsd[12]*)
12432 # C++ shared libraries reported to be fairly broken before switch to ELF
12433 ld_shlibs_CXX=no
12434 ;;
12435 freebsd-elf*)
12436 archive_cmds_need_lc_CXX=no
12437 ;;
12438 freebsd* | dragonfly*)
12439 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12440 # conventions
12441 ld_shlibs_CXX=yes
12442 ;;
12443 gnu*)
12444 ;;
12445 hpux9*)
12446 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12447 hardcode_libdir_separator_CXX=:
12448 export_dynamic_flag_spec_CXX='${wl}-E'
12449 hardcode_direct_CXX=yes
12450 hardcode_minus_L_CXX=yes # Not in the search PATH,
12451 # but as the default
12452 # location of the library.
12453
12454 case $cc_basename in
12455 CC*)
12456 # FIXME: insert proper C++ library support
12457 ld_shlibs_CXX=no
12458 ;;
12459 aCC*)
12460 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_ libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_obje cts $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$son ame $lib'
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12464 #
12465 # There doesn't appear to be a way to prevent this compiler from
12466 # explicitly linking system object files so we need to strip them
12467 # from the output so that they don't get included in the library
12468 # dependencies.
12469 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'
12470 ;;
12471 *)
12472 if test "$GXX" = yes; then
12473 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'
12474 else
12475 # FIXME: insert proper C++ library support
12476 ld_shlibs_CXX=no
12477 fi
12478 ;;
12479 esac
12480 ;;
12481 hpux10*|hpux11*)
12482 if test $with_gnu_ld = no; then
12483 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12484 hardcode_libdir_separator_CXX=:
12485
12486 case $host_cpu in
12487 hppa*64*|ia64*) ;;
12488 *)
12489 export_dynamic_flag_spec_CXX='${wl}-E'
12490 ;;
12491 esac
12492 fi
12493 case $host_cpu in
12494 hppa*64*|ia64*)
12495 hardcode_direct_CXX=no
12496 hardcode_shlibpath_var_CXX=no
12497 ;;
12498 *)
12499 hardcode_direct_CXX=yes
12500 hardcode_minus_L_CXX=yes # Not in the search PATH,
12501 # but as the default
12502 # location of the library.
12503 ;;
12504 esac
12505
12506 case $cc_basename in
12507 CC*)
12508 # FIXME: insert proper C++ library support
12509 ld_shlibs_CXX=no
12510 ;;
12511 aCC*)
12512 case $host_cpu in
12513 hppa*64*)
12514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12515 ;;
12516 ia64*)
12517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12518 ;;
12519 *)
12520 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_li bdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12521 ;;
12522 esac
12523 # Commands to make compiler produce verbose output that lists
12524 # what "hidden" libraries, object files and flags are used when
12525 # linking a shared library.
12526 #
12527 # There doesn't appear to be a way to prevent this compiler from
12528 # explicitly linking system object files so we need to strip them
12529 # from the output so that they don't get included in the library
12530 # dependencies.
12531 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'
12532 ;;
12533 *)
12534 if test "$GXX" = yes; then
12535 if test $with_gnu_ld = no; then
12536 case $host_cpu in
12537 hppa*64*)
12538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12539 ;;
12540 ia64*)
12541 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542 ;;
12543 *)
12544 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'
12545 ;;
12546 esac
12547 fi
12548 else
12549 # FIXME: insert proper C++ library support
12550 ld_shlibs_CXX=no
12551 fi
12552 ;;
12553 esac
12554 ;;
12555 interix[3-9]*)
12556 hardcode_direct_CXX=no
12557 hardcode_shlibpath_var_CXX=no
12558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12559 export_dynamic_flag_spec_CXX='${wl}-E'
12560 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12561 # Instead, shared libraries are loaded at an image base (0x10000000 by
12562 # default) and relocated if they conflict, which is a slow very memory
12563 # consuming and fragmenting process. To avoid this, we pick a random,
12564 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12565 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12566 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${ wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 134217 7280` -o $lib'
12567 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$sonam e.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`exp r ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12568 ;;
12569 irix5* | irix6*)
12570 case $cc_basename in
12571 CC*)
12572 # SGI C++
12573 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $d eplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12574
12575 # Archives containing C++ object files must be created using
12576 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12577 # necessary to make sure instantiated templates are included
12578 # in the archive.
12579 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12580 ;;
12581 *)
12582 if test "$GXX" = yes; then
12583 if test "$with_gnu_ld" = no; then
12584 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $de plibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$vers tring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o utput_objdir}/so_locations -o $lib'
12585 else
12586 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $de plibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$vers tring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12587 fi
12588 fi
12589 link_all_deplibs_CXX=yes
12590 ;;
12591 esac
12592 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12593 hardcode_libdir_separator_CXX=:
12594 ;;
12595 linux* | k*bsd*-gnu)
12596 case $cc_basename in
12597 KCC*)
12598 # Kuck and Associates, Inc. (KAI) C++ Compiler
12599
12600 # KCC will only create a shared library if the output file
12601 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12602 # to its proper name (with version) after linking.
12603 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Z a-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'
12604 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 \$temp lib $lib'
12605 # Commands to make compiler produce verbose output that lists
12606 # what "hidden" libraries, object files and flags are used when
12607 # linking a shared library.
12608 #
12609 # There doesn't appear to be a way to prevent this compiler from
12610 # explicitly linking system object files so we need to strip them
12611 # from the output so that they don't get included in the library
12612 # dependencies.
12613 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o li bconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; f or z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext); ; *) list="$list $z";;esac; done; echo $list'
12614
12615 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12616 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12617
12618 # Archives containing C++ object files must be created using
12619 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12620 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12621 ;;
12622 icpc*)
12623 # Intel C++
12624 with_gnu_ld=yes
12625 # version 8.0 and above of icpc choke on multiply defined symbols
12626 # if we add $predep_objects and $postdep_objects, however 7.1 and
12627 # earlier do not add the objects themselves.
12628 case `$CC -V 2>&1` in
12629 *"Version 7."*)
12630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postd ep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12631 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-f ile $wl$export_symbols -o $lib'
12632 ;;
12633 *) # Version 8.0 or newer
12634 tmp_idyn=
12635 case $host_cpu in
12636 ia64*) tmp_idyn=' -i_dynamic';;
12637 esac
12638 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler _flags ${wl}-soname $wl$soname -o $lib'
12639 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbo ls -o $lib'
12640 ;;
12641 esac
12642 archive_cmds_need_lc_CXX=no
12643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12644 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12645 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no- whole-archive'
12646 ;;
12647 pgCC*)
12648 # Portland Group C++ compiler
12649 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplib s $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12650 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'
12651
12652 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12653 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12654 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenien ce\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; don e; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12655 ;;
12656 cxx*)
12657 # Compaq C++
12658 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep _objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12659 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $ postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-sy mbols-file $wl$export_symbols'
12660
12661 runpath_var=LD_RUN_PATH
12662 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12663 hardcode_libdir_separator_CXX=:
12664
12665 # Commands to make compiler produce verbose output that lists
12666 # what "hidden" libraries, object files and flags are used when
12667 # linking a shared library.
12668 #
12669 # There doesn't appear to be a way to prevent this compiler from
12670 # explicitly linking system object files so we need to strip them
12671 # from the output so that they don't get included in the library
12672 # dependencies.
12673 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje xt 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\ )/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$lis t $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12674 ;;
12675 *)
12676 case `$CC -V 2>&1 | sed 5q` in
12677 *Sun\ C*)
12678 # Sun C++ 5.9
12679 no_undefined_flag_CXX=' -zdefs'
12680 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $pre dep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12681 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $l ib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-reta in-symbols-file ${wl}$export_symbols'
12682 hardcode_libdir_flag_spec_CXX='-R$libdir'
12683 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; fo r conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_conve nience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12684
12685 # Not sure whether something based on
12686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12687 # would be better.
12688 output_verbose_link_cmd='echo'
12689
12690 # Archives containing C++ object files must be created using
12691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12692 # necessary to make sure instantiated templates are included
12693 # in the archive.
12694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12695 ;;
12696 esac
12697 ;;
12698 esac
12699 ;;
12700 lynxos*)
12701 # FIXME: insert proper C++ library support
12702 ld_shlibs_CXX=no
12703 ;;
12704 m88k*)
12705 # FIXME: insert proper C++ library support
12706 ld_shlibs_CXX=no
12707 ;;
12708 mvs*)
12709 case $cc_basename in
12710 cxx*)
12711 # FIXME: insert proper C++ library support
12712 ld_shlibs_CXX=no
12713 ;;
12714 *)
12715 # FIXME: insert proper C++ library support
12716 ld_shlibs_CXX=no
12717 ;;
12718 esac
12719 ;;
12720 netbsd*)
12721 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12722 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $depli bs $postdep_objects $linker_flags'
12723 wlarc=
12724 hardcode_libdir_flag_spec_CXX='-R$libdir'
12725 hardcode_direct_CXX=yes
12726 hardcode_shlibpath_var_CXX=no
12727 fi
12728 # Workaround some broken pre-1.5 toolchains
12729 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12730 ;;
12731 openbsd2*)
12732 # C++ shared libraries are fairly broken
12733 ld_shlibs_CXX=no
12734 ;;
12735 openbsd*)
12736 if test -f /usr/libexec/ld.so; then
12737 hardcode_direct_CXX=yes
12738 hardcode_shlibpath_var_CXX=no
12739 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12740 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12741 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$h ost_cpu" = "openbsd2.8-powerpc"; then
12742 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symb ols -o $lib'
12743 export_dynamic_flag_spec_CXX='${wl}-E'
12744 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlar c"'--no-whole-archive'
12745 fi
12746 output_verbose_link_cmd='echo'
12747 else
12748 ld_shlibs_CXX=no
12749 fi
12750 ;;
12751 osf3*)
12752 case $cc_basename in
12753 KCC*)
12754 # Kuck and Associates, Inc. (KAI) C++ Compiler
12755
12756 # KCC will only create a shared library if the output file
12757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12758 # to its proper name (with version) after linking.
12759 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Z a-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'
12760
12761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12762 hardcode_libdir_separator_CXX=:
12763
12764 # Archives containing C++ object files must be created using
12765 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12766 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12767
12768 ;;
12769 RCC*)
12770 # Rational C++ 2.4.1
12771 # FIXME: insert proper C++ library support
12772 ld_shlibs_CXX=no
12773 ;;
12774 cxx*)
12775 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12776 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$ verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdi r}/so_locations -o $lib'
12777
12778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12779 hardcode_libdir_separator_CXX=:
12780
12781 # Commands to make compiler produce verbose output that lists
12782 # what "hidden" libraries, object files and flags are used when
12783 # linking a shared library.
12784 #
12785 # There doesn't appear to be a way to prevent this compiler from
12786 # explicitly linking system object files so we need to strip them
12787 # from the output so that they don't get included in the library
12788 # dependencies.
12789 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje xt 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.$obj ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12790 ;;
12791 *)
12792 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12793 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12794 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $prede p_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$ soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-up date_registry ${wl}${output_objdir}/so_locations -o $lib'
12795
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12797 hardcode_libdir_separator_CXX=:
12798
12799 # Commands to make compiler produce verbose output that lists
12800 # what "hidden" libraries, object files and flags are used when
12801 # linking a shared library.
12802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12803
12804 else
12805 # FIXME: insert proper C++ library support
12806 ld_shlibs_CXX=no
12807 fi
12808 ;;
12809 esac
12810 ;;
12811 osf4* | osf5*)
12812 case $cc_basename in
12813 KCC*)
12814 # Kuck and Associates, Inc. (KAI) C++ Compiler
12815
12816 # KCC will only create a shared library if the output file
12817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12818 # to its proper name (with version) after linking.
12819 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Z a-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'
12820
12821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12822 hardcode_libdir_separator_CXX=:
12823
12824 # Archives containing C++ object files must be created using
12825 # the KAI C++ compiler.
12826 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12827 ;;
12828 RCC*)
12829 # Rational C++ 2.4.1
12830 # FIXME: insert proper C++ library support
12831 ld_shlibs_CXX=no
12832 ;;
12833 cxx*)
12834 allow_undefined_flag_CXX=' -expect_unresolved \*'
12835 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n " $verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/s o_locations -o $lib'
12836 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s % s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12837 echo "-hidden">> $lib.exp~
12838 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $po stdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `te st -n "$verstring" && echo -set_version $verstring` -update_registry ${output_ob jdir}/so_locations -o $lib~
12839 $rm $lib.exp'
12840
12841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12842 hardcode_libdir_separator_CXX=:
12843
12844 # Commands to make compiler produce verbose output that lists
12845 # what "hidden" libraries, object files and flags are used when
12846 # linking a shared library.
12847 #
12848 # There doesn't appear to be a way to prevent this compiler from
12849 # explicitly linking system object files so we need to strip them
12850 # from the output so that they don't get included in the library
12851 # dependencies.
12852 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$obje xt 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.$obj ext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12853 ;;
12854 *)
12855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12857 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep _objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-son ame ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring ` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12858
12859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12860 hardcode_libdir_separator_CXX=:
12861
12862 # Commands to make compiler produce verbose output that lists
12863 # what "hidden" libraries, object files and flags are used when
12864 # linking a shared library.
12865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12866
12867 else
12868 # FIXME: insert proper C++ library support
12869 ld_shlibs_CXX=no
12870 fi
12871 ;;
12872 esac
12873 ;;
12874 psos*)
12875 # FIXME: insert proper C++ library support
12876 ld_shlibs_CXX=no
12877 ;;
12878 sunos4*)
12879 case $cc_basename in
12880 CC*)
12881 # Sun C++ 4.x
12882 # FIXME: insert proper C++ library support
12883 ld_shlibs_CXX=no
12884 ;;
12885 lcc*)
12886 # Lucid
12887 # FIXME: insert proper C++ library support
12888 ld_shlibs_CXX=no
12889 ;;
12890 *)
12891 # FIXME: insert proper C++ library support
12892 ld_shlibs_CXX=no
12893 ;;
12894 esac
12895 ;;
12896 solaris*)
12897 case $cc_basename in
12898 CC*)
12899 # Sun C++ 4.2, 5.x and Centerline C++
12900 archive_cmds_need_lc_CXX=yes
12901 no_undefined_flag_CXX=' -zdefs'
12902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $pred ep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12903 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbol s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12904 $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'
12905
12906 hardcode_libdir_flag_spec_CXX='-R$libdir'
12907 hardcode_shlibpath_var_CXX=no
12908 case $host_os in
12909 solaris2.[0-5] | solaris2.[0-5].*) ;;
12910 *)
12911 # The compiler driver will combine and reorder linker options,
12912 # but understands `-z linker_flag'.
12913 # Supported since Solaris 2.6 (maybe 2.5.1?)
12914 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultext ract'
12915 ;;
12916 esac
12917 link_all_deplibs_CXX=yes
12918
12919 output_verbose_link_cmd='echo'
12920
12921 # Archives containing C++ object files must be created using
12922 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12923 # necessary to make sure instantiated templates are included
12924 # in the archive.
12925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12926 ;;
12927 gcx*)
12928 # Green Hills C++ Compiler
12929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep _objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12930
12931 # The C++ compiler must be used to create the archive.
12932 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12933 ;;
12934 *)
12935 # GNU C++ compiler with Solaris linker
12936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12937 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12938 if $CC --version | grep -v '^2\.7' > /dev/null; then
12939 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12940 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_sy mbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12941 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_object s $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12942
12943 # Commands to make compiler produce verbose output that lists
12944 # what "hidden" libraries, object files and flags are used when
12945 # linking a shared library.
12946 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>& 1 | grep \"\-L\""
12947 else
12948 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12949 # platform.
12950 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12951 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_sy mbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12952 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $li bobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12953
12954 # Commands to make compiler produce verbose output that lists
12955 # what "hidden" libraries, object files and flags are used when
12956 # linking a shared library.
12957 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | g rep \"\-L\""
12958 fi
12959
12960 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12961 case $host_os in
12962 solaris2.[0-5] | solaris2.[0-5].*) ;;
12963 *)
12964 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${w l}-z ${wl}defaultextract'
12965 ;;
12966 esac
12967 fi
12968 ;;
12969 esac
12970 ;;
12971 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v 5.0.[024]*)
12972 no_undefined_flag_CXX='${wl}-z,text'
12973 archive_cmds_need_lc_CXX=no
12974 hardcode_shlibpath_var_CXX=no
12975 runpath_var='LD_RUN_PATH'
12976
12977 case $cc_basename in
12978 CC*)
12979 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $comp iler_flags'
12980 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$s oname -o $lib $libobjs $deplibs $compiler_flags'
12981 ;;
12982 *)
12983 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12984 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl} -h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12985 ;;
12986 esac
12987 ;;
12988 sysv5* | sco3.2v5* | sco5v6*)
12989 # Note: We can NOT use -z defs as we might desire, because we do not
12990 # link with -lc, and that would cause any symbols used from libc to
12991 # always be unresolved, which means just about no library would
12992 # ever link correctly. If we're not using GNU ld we use -z text
12993 # though, which does catch some bad symbols but isn't as heavy-handed
12994 # as -z defs.
12995 # For security reasons, it is highly recommended that you always
12996 # use absolute paths for naming shared libraries, and exclude the
12997 # DT_RUNPATH tag from executables and libraries. But doing so
12998 # requires that you compile everything twice, which is a pain.
12999 # So that behaviour is only enabled if SCOABSPATH is set to a
13000 # non-empty value in the environment. Most likely only useful for
13001 # creating official distributions of packages.
13002 # This is a hack until libtool officially supports absolute path
13003 # names for shared libraries.
13004 no_undefined_flag_CXX='${wl}-z,text'
13005 allow_undefined_flag_CXX='${wl}-z,nodefs'
13006 archive_cmds_need_lc_CXX=no
13007 hardcode_shlibpath_var_CXX=no
13008 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdi r`'
13009 hardcode_libdir_separator_CXX=':'
13010 link_all_deplibs_CXX=yes
13011 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13012 runpath_var='LD_RUN_PATH'
13013
13014 case $cc_basename in
13015 CC*)
13016 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$sona me -o $lib $libobjs $deplibs $compiler_flags'
13017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\$ {SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flag s'
13018 ;;
13019 *)
13020 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/} $soname -o $lib $libobjs $deplibs $compiler_flags'
13021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl} -h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler _flags'
13022 ;;
13023 esac
13024 ;;
13025 tandem*)
13026 case $cc_basename in
13027 NCC*)
13028 # NonStop-UX NCC 3.20
13029 # FIXME: insert proper C++ library support
13030 ld_shlibs_CXX=no
13031 ;;
13032 *)
13033 # FIXME: insert proper C++ library support
13034 ld_shlibs_CXX=no
13035 ;;
13036 esac
13037 ;;
13038 vxworks*)
13039 # FIXME: insert proper C++ library support
13040 ld_shlibs_CXX=no
13041 ;;
13042 *)
13043 # FIXME: insert proper C++ library support
13044 ld_shlibs_CXX=no
13045 ;;
13046 esac
13047 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13048 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13049 test "$ld_shlibs_CXX" = no && can_build_shared=no
13050
13051 GCC_CXX="$GXX"
13052 LD_CXX="$LD"
13053
13054
13055 cat > conftest.$ac_ext <<EOF
13056 class Foo
13057 {
13058 public:
13059 Foo (void) { a = 0; }
13060 private:
13061 int a;
13062 };
13063 EOF
13064
13065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066 (eval $ac_compile) 2>&5
13067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; then
13070 # Parse the compiler output and extract the necessary
13071 # objects, libraries and library flags.
13072
13073 # Sentinel used to keep track of whether or not we are before
13074 # the conftest object file.
13075 pre_test_object_deps_done=no
13076
13077 # The `*' in the case matches for architectures that use `case' in
13078 # $output_verbose_cmd can trigger glob expansion during the loop
13079 # eval without this substitution.
13080 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glo b_subst"`
13081
13082 for p in `eval $output_verbose_link_cmd`; do
13083 case $p in
13084
13085 -L* | -R* | -l*)
13086 # Some compilers place space between "-{L,R}" and the path.
13087 # Remove the space.
13088 if test $p = "-L" \
13089 || test $p = "-R"; then
13090 prev=$p
13091 continue
13092 else
13093 prev=
13094 fi
13095
13096 if test "$pre_test_object_deps_done" = no; then
13097 case $p in
13098 -L* | -R*)
13099 # Internal compiler library paths should come after those
13100 # provided the user. The postdeps already come after the
13101 # user supplied libs so there is no need to process them.
13102 if test -z "$compiler_lib_search_path_CXX"; then
13103 compiler_lib_search_path_CXX="${prev}${p}"
13104 else
13105 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${pre v}${p}"
13106 fi
13107 ;;
13108 # The "-l" case would never come before the object being
13109 # linked, so don't bother handling this case.
13110 esac
13111 else
13112 if test -z "$postdeps_CXX"; then
13113 postdeps_CXX="${prev}${p}"
13114 else
13115 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13116 fi
13117 fi
13118 ;;
13119
13120 *.$objext)
13121 # This assumes that the test object file only shows up
13122 # once in the compiler output.
13123 if test "$p" = "conftest.$objext"; then
13124 pre_test_object_deps_done=yes
13125 continue
13126 fi
13127
13128 if test "$pre_test_object_deps_done" = no; then
13129 if test -z "$predep_objects_CXX"; then
13130 predep_objects_CXX="$p"
13131 else
13132 predep_objects_CXX="$predep_objects_CXX $p"
13133 fi
13134 else
13135 if test -z "$postdep_objects_CXX"; then
13136 postdep_objects_CXX="$p"
13137 else
13138 postdep_objects_CXX="$postdep_objects_CXX $p"
13139 fi
13140 fi
13141 ;;
13142
13143 *) ;; # Ignore the rest.
13144
13145 esac
13146 done
13147
13148 # Clean up.
13149 rm -f a.out a.exe
13150 else
13151 echo "libtool.m4: error: problem compiling CXX test program"
13152 fi
13153
13154 $rm -f confest.$objext
13155
13156 # PORTME: override above test on systems where it is broken
13157 case $host_os in
13158 interix[3-9]*)
13159 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13160 # hack all around it, let's just trust "g++" to DTRT.
13161 predep_objects_CXX=
13162 postdep_objects_CXX=
13163 postdeps_CXX=
13164 ;;
13165
13166 linux*)
13167 case `$CC -V 2>&1 | sed 5q` in
13168 *Sun\ C*)
13169 # Sun C++ 5.9
13170 #
13171 # The more standards-conforming stlport4 library is
13172 # incompatible with the Cstd library. Avoid specifying
13173 # it if it's in CXXFLAGS. Ignore libCrun as
13174 # -library=stlport4 depends on it.
13175 case " $CXX $CXXFLAGS " in
13176 *" -library=stlport4 "*)
13177 solaris_use_stlport4=yes
13178 ;;
13179 esac
13180 if test "$solaris_use_stlport4" != yes; then
13181 postdeps_CXX='-library=Cstd -library=Crun'
13182 fi
13183 ;;
13184 esac
13185 ;;
13186
13187 solaris*)
13188 case $cc_basename in
13189 CC*)
13190 # The more standards-conforming stlport4 library is
13191 # incompatible with the Cstd library. Avoid specifying
13192 # it if it's in CXXFLAGS. Ignore libCrun as
13193 # -library=stlport4 depends on it.
13194 case " $CXX $CXXFLAGS " in
13195 *" -library=stlport4 "*)
13196 solaris_use_stlport4=yes
13197 ;;
13198 esac
13199
13200 # Adding this requires a known-good setup of shared libraries for
13201 # Sun compiler versions before 5.6, else PIC objects from an old
13202 # archive will be linked into the output, leading to subtle bugs.
13203 if test "$solaris_use_stlport4" != yes; then
13204 postdeps_CXX='-library=Cstd -library=Crun'
13205 fi
13206 ;;
13207 esac
13208 ;;
13209 esac
13210
13211
13212 case " $postdeps_CXX " in
13213 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13214 esac
13215
13216 lt_prog_compiler_wl_CXX=
13217 lt_prog_compiler_pic_CXX=
13218 lt_prog_compiler_static_CXX=
13219
13220 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13222
13223 # C++ specific cases for pic, static, wl, etc.
13224 if test "$GXX" = yes; then
13225 lt_prog_compiler_wl_CXX='-Wl,'
13226 lt_prog_compiler_static_CXX='-static'
13227
13228 case $host_os in
13229 aix*)
13230 # All AIX code is PIC.
13231 if test "$host_cpu" = ia64; then
13232 # AIX 5 now supports IA64 processor
13233 lt_prog_compiler_static_CXX='-Bstatic'
13234 fi
13235 ;;
13236 amigaos*)
13237 # FIXME: we need at least 68020 code to build shared libraries, but
13238 # adding the `-m68020' flag to GCC prevents building anything better,
13239 # like `-m68040'.
13240 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13241 ;;
13242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13243 # PIC is the default for these OSes.
13244 ;;
13245 mingw* | cygwin* | os2* | pw32*)
13246 # This hack is so that the source file can tell whether it is being
13247 # built for inclusion in a dll (and should export symbols for example).
13248 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13249 # (--disable-auto-import) libraries
13250 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13251 ;;
13252 darwin* | rhapsody*)
13253 # PIC is the default on this platform
13254 # Common symbols not allowed in MH_DYLIB files
13255 lt_prog_compiler_pic_CXX='-fno-common'
13256 ;;
13257 *djgpp*)
13258 # DJGPP does not support shared libraries at all
13259 lt_prog_compiler_pic_CXX=
13260 ;;
13261 interix[3-9]*)
13262 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13263 # Instead, we relocate shared libraries at runtime.
13264 ;;
13265 sysv4*MP*)
13266 if test -d /usr/nec; then
13267 lt_prog_compiler_pic_CXX=-Kconform_pic
13268 fi
13269 ;;
13270 hpux*)
13271 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13272 # not for PA HP-UX.
13273 case $host_cpu in
13274 hppa*64*|ia64*)
13275 ;;
13276 *)
13277 lt_prog_compiler_pic_CXX='-fPIC'
13278 ;;
13279 esac
13280 ;;
13281 *)
13282 lt_prog_compiler_pic_CXX='-fPIC'
13283 ;;
13284 esac
13285 else
13286 case $host_os in
13287 aix4* | aix5*)
13288 # All AIX code is PIC.
13289 if test "$host_cpu" = ia64; then
13290 # AIX 5 now supports IA64 processor
13291 lt_prog_compiler_static_CXX='-Bstatic'
13292 else
13293 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13294 fi
13295 ;;
13296 chorus*)
13297 case $cc_basename in
13298 cxch68*)
13299 # Green Hills C++ Compiler
13300 # _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/lib C.a $MVME_DIR/lib/classix/libcx.s.a"
13301 ;;
13302 esac
13303 ;;
13304 darwin*)
13305 # PIC is the default on this platform
13306 # Common symbols not allowed in MH_DYLIB files
13307 case $cc_basename in
13308 xlc*)
13309 lt_prog_compiler_pic_CXX='-qnocommon'
13310 lt_prog_compiler_wl_CXX='-Wl,'
13311 ;;
13312 esac
13313 ;;
13314 dgux*)
13315 case $cc_basename in
13316 ec++*)
13317 lt_prog_compiler_pic_CXX='-KPIC'
13318 ;;
13319 ghcx*)
13320 # Green Hills C++ Compiler
13321 lt_prog_compiler_pic_CXX='-pic'
13322 ;;
13323 *)
13324 ;;
13325 esac
13326 ;;
13327 freebsd* | dragonfly*)
13328 # FreeBSD uses GNU C++
13329 ;;
13330 hpux9* | hpux10* | hpux11*)
13331 case $cc_basename in
13332 CC*)
13333 lt_prog_compiler_wl_CXX='-Wl,'
13334 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13335 if test "$host_cpu" != ia64; then
13336 lt_prog_compiler_pic_CXX='+Z'
13337 fi
13338 ;;
13339 aCC*)
13340 lt_prog_compiler_wl_CXX='-Wl,'
13341 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13342 case $host_cpu in
13343 hppa*64*|ia64*)
13344 # +Z the default
13345 ;;
13346 *)
13347 lt_prog_compiler_pic_CXX='+Z'
13348 ;;
13349 esac
13350 ;;
13351 *)
13352 ;;
13353 esac
13354 ;;
13355 interix*)
13356 # This is c89, which is MS Visual C++ (no shared libs)
13357 # Anyone wants to do a port?
13358 ;;
13359 irix5* | irix6* | nonstopux*)
13360 case $cc_basename in
13361 CC*)
13362 lt_prog_compiler_wl_CXX='-Wl,'
13363 lt_prog_compiler_static_CXX='-non_shared'
13364 # CC pic flag -KPIC is the default.
13365 ;;
13366 *)
13367 ;;
13368 esac
13369 ;;
13370 linux* | k*bsd*-gnu)
13371 case $cc_basename in
13372 KCC*)
13373 # KAI C++ Compiler
13374 lt_prog_compiler_wl_CXX='--backend -Wl,'
13375 lt_prog_compiler_pic_CXX='-fPIC'
13376 ;;
13377 icpc* | ecpc*)
13378 # Intel C++
13379 lt_prog_compiler_wl_CXX='-Wl,'
13380 lt_prog_compiler_pic_CXX='-KPIC'
13381 lt_prog_compiler_static_CXX='-static'
13382 ;;
13383 pgCC*)
13384 # Portland Group C++ compiler.
13385 lt_prog_compiler_wl_CXX='-Wl,'
13386 lt_prog_compiler_pic_CXX='-fpic'
13387 lt_prog_compiler_static_CXX='-Bstatic'
13388 ;;
13389 cxx*)
13390 # Compaq C++
13391 # Make sure the PIC flag is empty. It appears that all Alpha
13392 # Linux and Compaq Tru64 Unix objects are PIC.
13393 lt_prog_compiler_pic_CXX=
13394 lt_prog_compiler_static_CXX='-non_shared'
13395 ;;
13396 *)
13397 case `$CC -V 2>&1 | sed 5q` in
13398 *Sun\ C*)
13399 # Sun C++ 5.9
13400 lt_prog_compiler_pic_CXX='-KPIC'
13401 lt_prog_compiler_static_CXX='-Bstatic'
13402 lt_prog_compiler_wl_CXX='-Qoption ld '
13403 ;;
13404 esac
13405 ;;
13406 esac
13407 ;;
13408 lynxos*)
13409 ;;
13410 m88k*)
13411 ;;
13412 mvs*)
13413 case $cc_basename in
13414 cxx*)
13415 lt_prog_compiler_pic_CXX='-W c,exportall'
13416 ;;
13417 *)
13418 ;;
13419 esac
13420 ;;
13421 netbsd*)
13422 ;;
13423 osf3* | osf4* | osf5*)
13424 case $cc_basename in
13425 KCC*)
13426 lt_prog_compiler_wl_CXX='--backend -Wl,'
13427 ;;
13428 RCC*)
13429 # Rational C++ 2.4.1
13430 lt_prog_compiler_pic_CXX='-pic'
13431 ;;
13432 cxx*)
13433 # Digital/Compaq C++
13434 lt_prog_compiler_wl_CXX='-Wl,'
13435 # Make sure the PIC flag is empty. It appears that all Alpha
13436 # Linux and Compaq Tru64 Unix objects are PIC.
13437 lt_prog_compiler_pic_CXX=
13438 lt_prog_compiler_static_CXX='-non_shared'
13439 ;;
13440 *)
13441 ;;
13442 esac
13443 ;;
13444 psos*)
13445 ;;
13446 solaris*)
13447 case $cc_basename in
13448 CC*)
13449 # Sun C++ 4.2, 5.x and Centerline C++
13450 lt_prog_compiler_pic_CXX='-KPIC'
13451 lt_prog_compiler_static_CXX='-Bstatic'
13452 lt_prog_compiler_wl_CXX='-Qoption ld '
13453 ;;
13454 gcx*)
13455 # Green Hills C++ Compiler
13456 lt_prog_compiler_pic_CXX='-PIC'
13457 ;;
13458 *)
13459 ;;
13460 esac
13461 ;;
13462 sunos4*)
13463 case $cc_basename in
13464 CC*)
13465 # Sun C++ 4.x
13466 lt_prog_compiler_pic_CXX='-pic'
13467 lt_prog_compiler_static_CXX='-Bstatic'
13468 ;;
13469 lcc*)
13470 # Lucid
13471 lt_prog_compiler_pic_CXX='-pic'
13472 ;;
13473 *)
13474 ;;
13475 esac
13476 ;;
13477 tandem*)
13478 case $cc_basename in
13479 NCC*)
13480 # NonStop-UX NCC 3.20
13481 lt_prog_compiler_pic_CXX='-KPIC'
13482 ;;
13483 *)
13484 ;;
13485 esac
13486 ;;
13487 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13488 case $cc_basename in
13489 CC*)
13490 lt_prog_compiler_wl_CXX='-Wl,'
13491 lt_prog_compiler_pic_CXX='-KPIC'
13492 lt_prog_compiler_static_CXX='-Bstatic'
13493 ;;
13494 esac
13495 ;;
13496 vxworks*)
13497 ;;
13498 *)
13499 lt_prog_compiler_can_build_shared_CXX=no
13500 ;;
13501 esac
13502 fi
13503
13504 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13505 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13506
13507 #
13508 # Check to make sure the PIC flag actually works.
13509 #
13510 if test -n "$lt_prog_compiler_pic_CXX"; then
13511
13512 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13513 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13514 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 lt_prog_compiler_pic_works_CXX=no
13518 ac_outfile=conftest.$ac_objext
13519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13521 # Insert the option either (1) after the last *FLAGS variable, or
13522 # (2) before a word containing "conftest.", or (3) at the end.
13523 # Note that $ac_compile itself does not contain backslashes and begins
13524 # with a dollar sign (not a hyphen), so the echo should work correctly.
13525 # The option is referenced via a variable to avoid confusing sed.
13526 lt_compile=`echo "$ac_compile" | $SED \
13527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13529 -e 's:$: $lt_compiler_flag:'`
13530 (eval echo "\"\$as_me:13530: $lt_compile\"" >&5)
13531 (eval "$lt_compile" 2>conftest.err)
13532 ac_status=$?
13533 cat conftest.err >&5
13534 echo "$as_me:13534: \$? = $ac_status" >&5
13535 if (exit $ac_status) && test -s "$ac_outfile"; then
13536 # The compiler can only warn and ignore the option if not recognized
13537 # So say no if there are warnings other than the usual output.
13538 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
13541 lt_prog_compiler_pic_works_CXX=yes
13542 fi
13543 fi
13544 $rm conftest*
13545
13546 fi
13547 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13548 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13549
13550 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13551 case $lt_prog_compiler_pic_CXX in
13552 "" | " "*) ;;
13553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13554 esac
13555 else
13556 lt_prog_compiler_pic_CXX=
13557 lt_prog_compiler_can_build_shared_CXX=no
13558 fi
13559
13560 fi
13561 case $host_os in
13562 # For platforms which do not support PIC, -DPIC is meaningless:
13563 *djgpp*)
13564 lt_prog_compiler_pic_CXX=
13565 ;;
13566 *)
13567 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13568 ;;
13569 esac
13570
13571 #
13572 # Check to make sure the static flag actually works.
13573 #
13574 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_C XX\"
13575 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag wo rks" >&5
13576 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC HO_C" >&6; }
13577 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580 lt_prog_compiler_static_works_CXX=no
13581 save_LDFLAGS="$LDFLAGS"
13582 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13583 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13584 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13585 # The linker can only warn and ignore the option if not recognized
13586 # So say no if there are warnings
13587 if test -s conftest.err; then
13588 # Append any errors to the config.log.
13589 cat conftest.err 1>&5
13590 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13592 if diff conftest.exp conftest.er2 >/dev/null; then
13593 lt_prog_compiler_static_works_CXX=yes
13594 fi
13595 else
13596 lt_prog_compiler_static_works_CXX=yes
13597 fi
13598 fi
13599 $rm conftest*
13600 LDFLAGS="$save_LDFLAGS"
13601
13602 fi
13603 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13604 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13605
13606 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13607 :
13608 else
13609 lt_prog_compiler_static_CXX=
13610 fi
13611
13612
13613 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >& 5
13614 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" > &6; }
13615 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618 lt_cv_prog_compiler_c_o_CXX=no
13619 $rm -r conftest 2>/dev/null
13620 mkdir conftest
13621 cd conftest
13622 mkdir out
13623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13624
13625 lt_compiler_flag="-o out/conftest2.$ac_objext"
13626 # Insert the option either (1) after the last *FLAGS variable, or
13627 # (2) before a word containing "conftest.", or (3) at the end.
13628 # Note that $ac_compile itself does not contain backslashes and begins
13629 # with a dollar sign (not a hyphen), so the echo should work correctly.
13630 lt_compile=`echo "$ac_compile" | $SED \
13631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13633 -e 's:$: $lt_compiler_flag:'`
13634 (eval echo "\"\$as_me:13634: $lt_compile\"" >&5)
13635 (eval "$lt_compile" 2>out/conftest.err)
13636 ac_status=$?
13637 cat out/conftest.err >&5
13638 echo "$as_me:13638: \$? = $ac_status" >&5
13639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13640 then
13641 # The compiler can only warn and ignore the option if not recognized
13642 # So say no if there are warnings
13643 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
13646 lt_cv_prog_compiler_c_o_CXX=yes
13647 fi
13648 fi
13649 chmod u+w . 2>&5
13650 $rm conftest*
13651 # SGI C++ compiler will create directory out/ii_files/ for
13652 # template instantiation
13653 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13654 $rm out/* && rmdir out
13655 cd ..
13656 rmdir conftest
13657 $rm conftest*
13658
13659 fi
13660 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13661 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13662
13663
13664 hard_links="nottested"
13665 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13666 # do not overwrite the value of need_locks provided by the user
13667 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13668 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13669 hard_links=yes
13670 $rm conftest*
13671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13672 touch conftest.a
13673 ln conftest.a conftest.b 2>&5 || hard_links=no
13674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13675 { echo "$as_me:$LINENO: result: $hard_links" >&5
13676 echo "${ECHO_T}$hard_links" >&6; }
13677 if test "$hard_links" = no; then
13678 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13679 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un safe" >&2;}
13680 need_locks=warn
13681 fi
13682 else
13683 need_locks=no
13684 fi
13685
13686 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports sha red libraries" >&5
13687 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar ies... $ECHO_C" >&6; }
13688
13689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SE D '\''s/.* //'\'' | sort | uniq > $export_symbols'
13690 case $host_os in
13691 aix4* | aix5*)
13692 # If we're using GNU nm, then we don't want the "-C" option.
13693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13694 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13695 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if ((( \$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { prin t \$3 } }'\'' | sort -u > $export_symbols'
13696 else
13697 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (( (\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { pri nt \$3 } }'\'' | sort -u > $export_symbols'
13698 fi
13699 ;;
13700 pw32*)
13701 export_symbols_cmds_CXX="$ltdll_cmds"
13702 ;;
13703 cygwin* | mingw*)
13704 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 > $ex port_symbols'
13705 ;;
13706 *)
13707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $ SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13708 ;;
13709 esac
13710
13711 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13712 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13713 test "$ld_shlibs_CXX" = no && can_build_shared=no
13714
13715 #
13716 # Do we need to explicitly link libc?
13717 #
13718 case "x$archive_cmds_need_lc_CXX" in
13719 x|xyes)
13720 # Assume -lc should be added
13721 archive_cmds_need_lc_CXX=yes
13722
13723 if test "$enable_shared" = yes && test "$GCC" = yes; then
13724 case $archive_cmds_CXX in
13725 *'~'*)
13726 # FIXME: we may have to deal with multi-command sequences.
13727 ;;
13728 '$CC '*)
13729 # Test whether the compiler implicitly links with -lc since on some
13730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13731 # to ld, don't add -lc before -lgcc.
13732 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked i n" >&5
13733 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& 6; }
13734 $rm conftest*
13735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13736
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } 2>conftest.err; then
13742 soname=conftest
13743 lib=conftest
13744 libobjs=conftest.$ac_objext
13745 deplibs=
13746 wl=$lt_prog_compiler_wl_CXX
13747 pic_flag=$lt_prog_compiler_pic_CXX
13748 compiler_flags=-v
13749 linker_flags=-v
13750 verstring=
13751 output_objdir=.
13752 libname=conftest
13753 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13754 allow_undefined_flag_CXX=
13755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" - lc \" \>/dev/null 2\>\&1\"") >&5
13756 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }
13760 then
13761 archive_cmds_need_lc_CXX=no
13762 else
13763 archive_cmds_need_lc_CXX=yes
13764 fi
13765 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13766 else
13767 cat conftest.err 1>&5
13768 fi
13769 $rm conftest*
13770 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13771 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13772 ;;
13773 esac
13774 fi
13775 ;;
13776 esac
13777
13778 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13780 library_names_spec=
13781 libname_spec='lib$name'
13782 soname_spec=
13783 shrext_cmds=".so"
13784 postinstall_cmds=
13785 postuninstall_cmds=
13786 finish_cmds=
13787 finish_eval=
13788 shlibpath_var=
13789 shlibpath_overrides_runpath=unknown
13790 version_type=none
13791 dynamic_linker="$host_os ld.so"
13792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13793
13794 need_lib_prefix=unknown
13795 hardcode_into_libs=no
13796
13797 # when you set need_version to no, make sure it does not cause -set_version
13798 # flags to be left without arguments
13799 need_version=unknown
13800
13801 case $host_os in
13802 aix3*)
13803 version_type=linux
13804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13805 shlibpath_var=LIBPATH
13806
13807 # AIX 3 has no versioning support, so we append a major version to the name.
13808 soname_spec='${libname}${release}${shared_ext}$major'
13809 ;;
13810
13811 aix4* | aix5*)
13812 version_type=linux
13813 need_lib_prefix=no
13814 need_version=no
13815 hardcode_into_libs=yes
13816 if test "$host_cpu" = ia64; then
13817 # AIX 5 supports IA64
13818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
13819 shlibpath_var=LD_LIBRARY_PATH
13820 else
13821 # With GCC up to 2.95.x, collect2 would create an import file
13822 # for dependence libraries. The import file would start with
13823 # the line `#! .'. This would cause the generated library to
13824 # depend on `.', always an invalid library. This was fixed in
13825 # development snapshots of GCC prior to 3.0.
13826 case $host_os in
13827 aix4 | aix4.[01] | aix4.[01].*)
13828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13829 echo ' yes '
13830 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13831 :
13832 else
13833 can_build_shared=no
13834 fi
13835 ;;
13836 esac
13837 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
13838 # soname into executable. Probably we can add versioning support to
13839 # collect2, so additional links can be useful in future.
13840 if test "$aix_use_runtimelinking" = yes; then
13841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13842 # instead of lib<name>.a to let people know that these are not
13843 # typical AIX shared libraries.
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
13845 else
13846 # We preserve .a as extension for shared libraries through AIX4.2
13847 # and later when we are not doing run time linking.
13848 library_names_spec='${libname}${release}.a $libname.a'
13849 soname_spec='${libname}${release}${shared_ext}$major'
13850 fi
13851 shlibpath_var=LIBPATH
13852 fi
13853 ;;
13854
13855 amigaos*)
13856 library_names_spec='$libname.ixlibrary $libname.a'
13857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13858 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib s/${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'
13859 ;;
13860
13861 beos*)
13862 library_names_spec='${libname}${shared_ext}'
13863 dynamic_linker="$host_os ld.so"
13864 shlibpath_var=LIBRARY_PATH
13865 ;;
13866
13867 bsdi[45]*)
13868 version_type=linux
13869 need_version=no
13870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
13871 soname_spec='${libname}${release}${shared_ext}$major'
13872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13873 shlibpath_var=LD_LIBRARY_PATH
13874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
13875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13876 # the default ld.so.conf also contains /usr/contrib/lib and
13877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13878 # libtool to hard-code these into programs
13879 ;;
13880
13881 cygwin* | mingw* | pw32*)
13882 version_type=windows
13883 shrext_cmds=".dll"
13884 need_version=no
13885 need_lib_prefix=no
13886
13887 case $GCC,$host_os in
13888 yes,cygwin* | yes,mingw* | yes,pw32*)
13889 library_names_spec='$libname.dll.a'
13890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13891 postinstall_cmds='base_file=`basename \${file}`~
13892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\'' `~
13893 dldir=$destdir/`dirname \$dlpath`~
13894 test -d \$dldir || mkdir -p \$dldir~
13895 $install_prog $dir/$dlname \$dldir/$dlname~
13896 chmod a+x \$dldir/$dlname'
13897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13898 dlpath=$dir/\$dldll~
13899 $rm \$dlpath'
13900 shlibpath_overrides_runpath=yes
13901
13902 case $host_os in
13903 cygwin*)
13904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13907 ;;
13908 mingw*)
13909 # MinGW DLLs use traditional 'lib' prefix
13910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
13911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S ED -e "s/^libraries://" -e "s,=/,/,g"`
13912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13913 # It is most probably a Windows format PATH printed by
13914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13915 # path with ; separators, and with drive letters. We can handle the
13916 # drive letters (cygwin fileutils understands them), so leave them,
13917 # especially as we might pass files found there to a mingw objdump,
13918 # which wouldn't understand a cygwinified path. Ahh.
13919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/ ;/ /g'`
13920 else
13921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
13922 fi
13923 ;;
13924 pw32*)
13925 # pw32 DLLs use 'pw' prefix rather than 'lib'
13926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13927 ;;
13928 esac
13929 ;;
13930
13931 *)
13932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
13933 ;;
13934 esac
13935 dynamic_linker='Win32 ld.exe'
13936 # FIXME: first we should search . and the directory the executable is in
13937 shlibpath_var=PATH
13938 ;;
13939
13940 darwin* | rhapsody*)
13941 dynamic_linker="$host_os dyld"
13942 version_type=darwin
13943 need_lib_prefix=no
13944 need_version=no
13945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re lease}${major}$shared_ext ${libname}$shared_ext'
13946 soname_spec='${libname}${release}${major}$shared_ext'
13947 shlibpath_overrides_runpath=yes
13948 shlibpath_var=DYLD_LIBRARY_PATH
13949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13950
13951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13952 ;;
13953
13954 dgux*)
13955 version_type=linux
13956 need_lib_prefix=no
13957 need_version=no
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
13959 soname_spec='${libname}${release}${shared_ext}$major'
13960 shlibpath_var=LD_LIBRARY_PATH
13961 ;;
13962
13963 freebsd1*)
13964 dynamic_linker=no
13965 ;;
13966
13967 freebsd* | dragonfly*)
13968 # DragonFly does not have aout. When/if they implement a new
13969 # versioning mechanism, adjust this.
13970 if test -x /usr/bin/objformat; then
13971 objformat=`/usr/bin/objformat`
13972 else
13973 case $host_os in
13974 freebsd[123]*) objformat=aout ;;
13975 *) objformat=elf ;;
13976 esac
13977 fi
13978 version_type=freebsd-$objformat
13979 case $version_type in
13980 freebsd-elf*)
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
13982 need_version=no
13983 need_lib_prefix=no
13984 ;;
13985 freebsd-*)
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
13987 need_version=yes
13988 ;;
13989 esac
13990 shlibpath_var=LD_LIBRARY_PATH
13991 case $host_os in
13992 freebsd2*)
13993 shlibpath_overrides_runpath=yes
13994 ;;
13995 freebsd3.[01]* | freebsdelf3.[01]*)
13996 shlibpath_overrides_runpath=yes
13997 hardcode_into_libs=yes
13998 ;;
13999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14001 shlibpath_overrides_runpath=no
14002 hardcode_into_libs=yes
14003 ;;
14004 *) # from 4.6 on, and DragonFly
14005 shlibpath_overrides_runpath=yes
14006 hardcode_into_libs=yes
14007 ;;
14008 esac
14009 ;;
14010
14011 gnu*)
14012 version_type=linux
14013 need_lib_prefix=no
14014 need_version=no
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
14016 soname_spec='${libname}${release}${shared_ext}$major'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 hardcode_into_libs=yes
14019 ;;
14020
14021 hpux9* | hpux10* | hpux11*)
14022 # Give a soname corresponding to the major version so that dld.sl refuses to
14023 # link against other versions.
14024 version_type=sunos
14025 need_lib_prefix=no
14026 need_version=no
14027 case $host_cpu in
14028 ia64*)
14029 shrext_cmds='.so'
14030 hardcode_into_libs=yes
14031 dynamic_linker="$host_os dld.so"
14032 shlibpath_var=LD_LIBRARY_PATH
14033 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14036 if test "X$HPUX_IA64_MODE" = X32; then
14037 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
14038 else
14039 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14040 fi
14041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14042 ;;
14043 hppa*64*)
14044 shrext_cmds='.sl'
14045 hardcode_into_libs=yes
14046 dynamic_linker="$host_os dld.sl"
14047 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$ {release}${shared_ext}$major $libname${shared_ext}'
14050 soname_spec='${libname}${release}${shared_ext}$major'
14051 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14052 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14053 ;;
14054 *)
14055 shrext_cmds='.sl'
14056 dynamic_linker="$host_os dld.sl"
14057 shlibpath_var=SHLIB_PATH
14058 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
14060 soname_spec='${libname}${release}${shared_ext}$major'
14061 ;;
14062 esac
14063 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14064 postinstall_cmds='chmod 555 $lib'
14065 ;;
14066
14067 interix[3-9]*)
14068 version_type=linux
14069 need_lib_prefix=no
14070 need_version=no
14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
14072 soname_spec='${libname}${release}${shared_ext}$major'
14073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14074 shlibpath_var=LD_LIBRARY_PATH
14075 shlibpath_overrides_runpath=no
14076 hardcode_into_libs=yes
14077 ;;
14078
14079 irix5* | irix6* | nonstopux*)
14080 case $host_os in
14081 nonstopux*) version_type=nonstopux ;;
14082 *)
14083 if test "$lt_cv_prog_gnu_ld" = yes; then
14084 version_type=linux
14085 else
14086 version_type=irix
14087 fi ;;
14088 esac
14089 need_lib_prefix=no
14090 need_version=no
14091 soname_spec='${libname}${release}${shared_ext}$major'
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
14093 case $host_os in
14094 irix5* | nonstopux*)
14095 libsuff= shlibsuff=
14096 ;;
14097 *)
14098 case $LD in # libtool.m4 will add one of these switches to LD
14099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14100 libsuff= shlibsuff= libmagic=32-bit;;
14101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14102 libsuff=32 shlibsuff=N32 libmagic=N32;;
14103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14105 *) libsuff= shlibsuff= libmagic=never-match;;
14106 esac
14107 ;;
14108 esac
14109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14110 shlibpath_overrides_runpath=no
14111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
14112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14113 hardcode_into_libs=yes
14114 ;;
14115
14116 # No shared lib support for Linux oldld, aout, or coff.
14117 linux*oldld* | linux*aout* | linux*coff*)
14118 dynamic_linker=no
14119 ;;
14120
14121 # This must be Linux ELF.
14122 linux* | k*bsd*-gnu)
14123 version_type=linux
14124 need_lib_prefix=no
14125 need_version=no
14126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14127 soname_spec='${libname}${release}${shared_ext}$major'
14128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=no
14131 # This implies no fast_install, which is unacceptable.
14132 # Some rework will be needed to allow for fast_install
14133 # before this can be enabled.
14134 hardcode_into_libs=yes
14135 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
14136 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14137
14138 # Append ld.so.conf contents to the search path
14139 if test -f /etc/ld.so.conf; then
14140 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 | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14141 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14142 fi
14143
14144 # We used to test for /lib/ld.so.1 and disable shared libraries on
14145 # powerpc, because MkLinux only supported shared libraries with the
14146 # GNU dynamic linker. Since this was broken with cross compilers,
14147 # most powerpc-linux boxes support dynamic linking these days and
14148 # people can always --disable-shared, the test was removed, and we
14149 # assume the GNU/Linux dynamic linker is in use.
14150 dynamic_linker='GNU/Linux ld.so'
14151 ;;
14152
14153 netbsd*)
14154 version_type=sunos
14155 need_lib_prefix=no
14156 need_version=no
14157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
14159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14160 dynamic_linker='NetBSD (a.out) ld.so'
14161 else
14162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 dynamic_linker='NetBSD ld.elf_so'
14165 fi
14166 shlibpath_var=LD_LIBRARY_PATH
14167 shlibpath_overrides_runpath=yes
14168 hardcode_into_libs=yes
14169 ;;
14170
14171 newsos6)
14172 version_type=linux
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 shlibpath_overrides_runpath=yes
14176 ;;
14177
14178 nto-qnx*)
14179 version_type=linux
14180 need_lib_prefix=no
14181 need_version=no
14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14183 soname_spec='${libname}${release}${shared_ext}$major'
14184 shlibpath_var=LD_LIBRARY_PATH
14185 shlibpath_overrides_runpath=yes
14186 ;;
14187
14188 openbsd*)
14189 version_type=sunos
14190 sys_lib_dlsearch_path_spec="/usr/lib"
14191 need_lib_prefix=no
14192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14193 case $host_os in
14194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14195 *) need_version=no ;;
14196 esac
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
14198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_ cpu" = "openbsd2.8-powerpc"; then
14201 case $host_os in
14202 openbsd2.[89] | openbsd2.[89].*)
14203 shlibpath_overrides_runpath=no
14204 ;;
14205 *)
14206 shlibpath_overrides_runpath=yes
14207 ;;
14208 esac
14209 else
14210 shlibpath_overrides_runpath=yes
14211 fi
14212 ;;
14213
14214 os2*)
14215 libname_spec='$name'
14216 shrext_cmds=".dll"
14217 need_lib_prefix=no
14218 library_names_spec='$libname${shared_ext} $libname.a'
14219 dynamic_linker='OS/2 ld.exe'
14220 shlibpath_var=LIBPATH
14221 ;;
14222
14223 osf3* | osf4* | osf5*)
14224 version_type=osf
14225 need_lib_prefix=no
14226 need_version=no
14227 soname_spec='${libname}${release}${shared_ext}$major'
14228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14232 ;;
14233
14234 rdos*)
14235 dynamic_linker=no
14236 ;;
14237
14238 solaris*)
14239 version_type=linux
14240 need_lib_prefix=no
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 shlibpath_var=LD_LIBRARY_PATH
14245 shlibpath_overrides_runpath=yes
14246 hardcode_into_libs=yes
14247 # ldd complains unless libraries are executable
14248 postinstall_cmds='chmod +x $lib'
14249 ;;
14250
14251 sunos4*)
14252 version_type=sunos
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
14254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14255 shlibpath_var=LD_LIBRARY_PATH
14256 shlibpath_overrides_runpath=yes
14257 if test "$with_gnu_ld" = yes; then
14258 need_lib_prefix=no
14259 fi
14260 need_version=yes
14261 ;;
14262
14263 sysv4 | sysv4.3*)
14264 version_type=linux
14265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14266 soname_spec='${libname}${release}${shared_ext}$major'
14267 shlibpath_var=LD_LIBRARY_PATH
14268 case $host_vendor in
14269 sni)
14270 shlibpath_overrides_runpath=no
14271 need_lib_prefix=no
14272 export_dynamic_flag_spec='${wl}-Blargedynsym'
14273 runpath_var=LD_RUN_PATH
14274 ;;
14275 siemens)
14276 need_lib_prefix=no
14277 ;;
14278 motorola)
14279 need_lib_prefix=no
14280 need_version=no
14281 shlibpath_overrides_runpath=no
14282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14283 ;;
14284 esac
14285 ;;
14286
14287 sysv4*MP*)
14288 if test -d /usr/nec ;then
14289 version_type=linux
14290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
14291 soname_spec='$libname${shared_ext}.$major'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 fi
14294 ;;
14295
14296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14297 version_type=freebsd-elf
14298 need_lib_prefix=no
14299 need_version=no
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 hardcode_into_libs=yes
14304 if test "$with_gnu_ld" = yes; then
14305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14306 shlibpath_overrides_runpath=no
14307 else
14308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14309 shlibpath_overrides_runpath=yes
14310 case $host_os in
14311 sco3.2v5*)
14312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14313 ;;
14314 esac
14315 fi
14316 sys_lib_dlsearch_path_spec='/usr/lib'
14317 ;;
14318
14319 uts4*)
14320 version_type=linux
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 shlibpath_var=LD_LIBRARY_PATH
14324 ;;
14325
14326 *)
14327 dynamic_linker=no
14328 ;;
14329 esac
14330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14331 echo "${ECHO_T}$dynamic_linker" >&6; }
14332 test "$dynamic_linker" = no && can_build_shared=no
14333
14334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14335 if test "$GCC" = yes; then
14336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
14337 fi
14338
14339 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >& 5
14340 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" > &6; }
14341 hardcode_action_CXX=
14342 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14343 test -n "$runpath_var_CXX" || \
14344 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14345
14346 # We can hardcode non-existant directories.
14347 if test "$hardcode_direct_CXX" != no &&
14348 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14349 # have to relink, otherwise we might link with an installed library
14350 # when we should be linking with a yet-to-be-installed one
14351 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14352 test "$hardcode_minus_L_CXX" != no; then
14353 # Linking always hardcodes the temporary library directory.
14354 hardcode_action_CXX=relink
14355 else
14356 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14357 hardcode_action_CXX=immediate
14358 fi
14359 else
14360 # We cannot hardcode anything, or else we can only hardcode existing
14361 # directories.
14362 hardcode_action_CXX=unsupported
14363 fi
14364 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14365 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14366
14367 if test "$hardcode_action_CXX" = relink; then
14368 # Fast installation is not supported
14369 enable_fast_install=no
14370 elif test "$shlibpath_overrides_runpath" = yes ||
14371 test "$enable_shared" = no; then
14372 # Fast installation is not necessary
14373 enable_fast_install=needless
14374 fi
14375
14376
14377 # The else clause should only fire when bootstrapping the
14378 # libtool distribution, otherwise you forgot to ship ltmain.sh
14379 # with your package, and you will get complaints that there are
14380 # no rules to generate ltmain.sh.
14381 if test -f "$ltmain"; then
14382 # See if we are running on zsh, and set the options which allow our commands t hrough
14383 # without removal of \ escapes.
14384 if test -n "${ZSH_VERSION+set}" ; then
14385 setopt NO_GLOB_SUBST
14386 fi
14387 # Now quote all the things that may contain metacharacters while being
14388 # careful not to overquote the AC_SUBSTed values. We take copies of the
14389 # variables and quote the copies for generation of the libtool script.
14390 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14391 SED SHELL STRIP \
14392 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14393 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14394 deplibs_check_method reload_flag reload_cmds need_locks \
14395 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14396 lt_cv_sys_global_symbol_to_c_name_address \
14397 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14398 old_postinstall_cmds old_postuninstall_cmds \
14399 compiler_CXX \
14400 CC_CXX \
14401 LD_CXX \
14402 lt_prog_compiler_wl_CXX \
14403 lt_prog_compiler_pic_CXX \
14404 lt_prog_compiler_static_CXX \
14405 lt_prog_compiler_no_builtin_flag_CXX \
14406 export_dynamic_flag_spec_CXX \
14407 thread_safe_flag_spec_CXX \
14408 whole_archive_flag_spec_CXX \
14409 enable_shared_with_static_runtimes_CXX \
14410 old_archive_cmds_CXX \
14411 old_archive_from_new_cmds_CXX \
14412 predep_objects_CXX \
14413 postdep_objects_CXX \
14414 predeps_CXX \
14415 postdeps_CXX \
14416 compiler_lib_search_path_CXX \
14417 archive_cmds_CXX \
14418 archive_expsym_cmds_CXX \
14419 postinstall_cmds_CXX \
14420 postuninstall_cmds_CXX \
14421 old_archive_from_expsyms_cmds_CXX \
14422 allow_undefined_flag_CXX \
14423 no_undefined_flag_CXX \
14424 export_symbols_cmds_CXX \
14425 hardcode_libdir_flag_spec_CXX \
14426 hardcode_libdir_flag_spec_ld_CXX \
14427 hardcode_libdir_separator_CXX \
14428 hardcode_automatic_CXX \
14429 module_cmds_CXX \
14430 module_expsym_cmds_CXX \
14431 lt_cv_prog_compiler_c_o_CXX \
14432 fix_srcfile_path_CXX \
14433 exclude_expsyms_CXX \
14434 include_expsyms_CXX; do
14435
14436 case $var in
14437 old_archive_cmds_CXX | \
14438 old_archive_from_new_cmds_CXX | \
14439 archive_cmds_CXX | \
14440 archive_expsym_cmds_CXX | \
14441 module_cmds_CXX | \
14442 module_expsym_cmds_CXX | \
14443 old_archive_from_expsyms_cmds_CXX | \
14444 export_symbols_cmds_CXX | \
14445 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14446 postinstall_cmds | postuninstall_cmds | \
14447 old_postinstall_cmds | old_postuninstall_cmds | \
14448 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14449 # Double-quote double-evaled strings.
14450 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\ " -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14451 ;;
14452 *)
14453 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\` \\\""
14454 ;;
14455 esac
14456 done
14457
14458 case $lt_echo in
14459 *'\$0 --fallback-echo"')
14460 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa llback-echo"/'`
14461 ;;
14462 esac
14463
14464 cfgfile="$ofile"
14465
14466 cat <<__EOF__ >> "$cfgfile"
14467 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14468
14469 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14470
14471 # Shell to use when invoking shell scripts.
14472 SHELL=$lt_SHELL
14473
14474 # Whether or not to build shared libraries.
14475 build_libtool_libs=$enable_shared
14476
14477 # Whether or not to build static libraries.
14478 build_old_libs=$enable_static
14479
14480 # Whether or not to add -lc for building shared libraries.
14481 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14482
14483 # Whether or not to disallow shared libs when runtime libs are static
14484 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14485
14486 # Whether or not to optimize for fast installation.
14487 fast_install=$enable_fast_install
14488
14489 # The host system.
14490 host_alias=$host_alias
14491 host=$host
14492 host_os=$host_os
14493
14494 # The build system.
14495 build_alias=$build_alias
14496 build=$build
14497 build_os=$build_os
14498
14499 # An echo program that does not interpret backslashes.
14500 echo=$lt_echo
14501
14502 # The archiver.
14503 AR=$lt_AR
14504 AR_FLAGS=$lt_AR_FLAGS
14505
14506 # A C compiler.
14507 LTCC=$lt_LTCC
14508
14509 # LTCC compiler flags.
14510 LTCFLAGS=$lt_LTCFLAGS
14511
14512 # A language-specific compiler.
14513 CC=$lt_compiler_CXX
14514
14515 # Is the compiler the GNU C compiler?
14516 with_gcc=$GCC_CXX
14517
14518 # An ERE matcher.
14519 EGREP=$lt_EGREP
14520
14521 # The linker used to build libraries.
14522 LD=$lt_LD_CXX
14523
14524 # Whether we need hard or soft links.
14525 LN_S=$lt_LN_S
14526
14527 # A BSD-compatible nm program.
14528 NM=$lt_NM
14529
14530 # A symbol stripping program
14531 STRIP=$lt_STRIP
14532
14533 # Used to examine libraries when file_magic_cmd begins "file"
14534 MAGIC_CMD=$MAGIC_CMD
14535
14536 # Used on cygwin: DLL creation program.
14537 DLLTOOL="$DLLTOOL"
14538
14539 # Used on cygwin: object dumper.
14540 OBJDUMP="$OBJDUMP"
14541
14542 # Used on cygwin: assembler.
14543 AS="$AS"
14544
14545 # The name of the directory that contains temporary libtool files.
14546 objdir=$objdir
14547
14548 # How to create reloadable object files.
14549 reload_flag=$lt_reload_flag
14550 reload_cmds=$lt_reload_cmds
14551
14552 # How to pass a linker flag through the compiler.
14553 wl=$lt_lt_prog_compiler_wl_CXX
14554
14555 # Object file suffix (normally "o").
14556 objext="$ac_objext"
14557
14558 # Old archive suffix (normally "a").
14559 libext="$libext"
14560
14561 # Shared library suffix (normally ".so").
14562 shrext_cmds='$shrext_cmds'
14563
14564 # Executable file suffix (normally "").
14565 exeext="$exeext"
14566
14567 # Additional compiler flags for building library objects.
14568 pic_flag=$lt_lt_prog_compiler_pic_CXX
14569 pic_mode=$pic_mode
14570
14571 # What is the maximum length of a command?
14572 max_cmd_len=$lt_cv_sys_max_cmd_len
14573
14574 # Does compiler simultaneously support -c and -o options?
14575 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14576
14577 # Must we lock files when doing compilation?
14578 need_locks=$lt_need_locks
14579
14580 # Do we need the lib prefix for modules?
14581 need_lib_prefix=$need_lib_prefix
14582
14583 # Do we need a version for libraries?
14584 need_version=$need_version
14585
14586 # Whether dlopen is supported.
14587 dlopen_support=$enable_dlopen
14588
14589 # Whether dlopen of programs is supported.
14590 dlopen_self=$enable_dlopen_self
14591
14592 # Whether dlopen of statically linked programs is supported.
14593 dlopen_self_static=$enable_dlopen_self_static
14594
14595 # Compiler flag to prevent dynamic linking.
14596 link_static_flag=$lt_lt_prog_compiler_static_CXX
14597
14598 # Compiler flag to turn off builtin functions.
14599 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14600
14601 # Compiler flag to allow reflexive dlopens.
14602 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14603
14604 # Compiler flag to generate shared objects directly from archives.
14605 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14606
14607 # Compiler flag to generate thread-safe objects.
14608 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14609
14610 # Library versioning type.
14611 version_type=$version_type
14612
14613 # Format of library name prefix.
14614 libname_spec=$lt_libname_spec
14615
14616 # List of archive names. First name is the real one, the rest are links.
14617 # The last name is the one that the linker finds with -lNAME.
14618 library_names_spec=$lt_library_names_spec
14619
14620 # The coded name of the library, if different from the real name.
14621 soname_spec=$lt_soname_spec
14622
14623 # Commands used to build and install an old-style archive.
14624 RANLIB=$lt_RANLIB
14625 old_archive_cmds=$lt_old_archive_cmds_CXX
14626 old_postinstall_cmds=$lt_old_postinstall_cmds
14627 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14628
14629 # Create an old-style archive from a shared archive.
14630 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14631
14632 # Create a temporary old-style archive to link instead of a shared archive.
14633 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14634
14635 # Commands used to build and install a shared archive.
14636 archive_cmds=$lt_archive_cmds_CXX
14637 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14638 postinstall_cmds=$lt_postinstall_cmds
14639 postuninstall_cmds=$lt_postuninstall_cmds
14640
14641 # Commands used to build a loadable module (assumed same as above if empty)
14642 module_cmds=$lt_module_cmds_CXX
14643 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14644
14645 # Commands to strip libraries.
14646 old_striplib=$lt_old_striplib
14647 striplib=$lt_striplib
14648
14649 # Dependencies to place before the objects being linked to create a
14650 # shared library.
14651 predep_objects=$lt_predep_objects_CXX
14652
14653 # Dependencies to place after the objects being linked to create a
14654 # shared library.
14655 postdep_objects=$lt_postdep_objects_CXX
14656
14657 # Dependencies to place before the objects being linked to create a
14658 # shared library.
14659 predeps=$lt_predeps_CXX
14660
14661 # Dependencies to place after the objects being linked to create a
14662 # shared library.
14663 postdeps=$lt_postdeps_CXX
14664
14665 # The library search path used internally by the compiler when linking
14666 # a shared library.
14667 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14668
14669 # Method to check whether dependent libraries are shared objects.
14670 deplibs_check_method=$lt_deplibs_check_method
14671
14672 # Command to use when deplibs_check_method == file_magic.
14673 file_magic_cmd=$lt_file_magic_cmd
14674
14675 # Flag that allows shared libraries with undefined symbols to be built.
14676 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14677
14678 # Flag that forces no undefined symbols.
14679 no_undefined_flag=$lt_no_undefined_flag_CXX
14680
14681 # Commands used to finish a libtool library installation in a directory.
14682 finish_cmds=$lt_finish_cmds
14683
14684 # Same as above, but a single script fragment to be evaled but not shown.
14685 finish_eval=$lt_finish_eval
14686
14687 # Take the output of nm and produce a listing of raw symbols and C names.
14688 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14689
14690 # Transform the output of nm in a proper C declaration
14691 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14692
14693 # Transform the output of nm in a C name address pair
14694 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14695
14696 # This is the shared library runtime path variable.
14697 runpath_var=$runpath_var
14698
14699 # This is the shared library path variable.
14700 shlibpath_var=$shlibpath_var
14701
14702 # Is shlibpath searched before the hard-coded library search path?
14703 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14704
14705 # How to hardcode a shared library path into an executable.
14706 hardcode_action=$hardcode_action_CXX
14707
14708 # Whether we should hardcode library paths into libraries.
14709 hardcode_into_libs=$hardcode_into_libs
14710
14711 # Flag to hardcode \$libdir into a binary during linking.
14712 # This must work even if \$libdir does not exist.
14713 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14714
14715 # If ld is used when linking, flag to hardcode \$libdir into
14716 # a binary during linking. This must work even if \$libdir does
14717 # not exist.
14718 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14719
14720 # Whether we need a single -rpath flag with a separated argument.
14721 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14722
14723 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14724 # resulting binary.
14725 hardcode_direct=$hardcode_direct_CXX
14726
14727 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14728 # resulting binary.
14729 hardcode_minus_L=$hardcode_minus_L_CXX
14730
14731 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14732 # the resulting binary.
14733 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14734
14735 # Set to yes if building a shared library automatically hardcodes DIR into the l ibrary
14736 # and all subsequent libraries and executables linked against it.
14737 hardcode_automatic=$hardcode_automatic_CXX
14738
14739 # Variables whose values should be saved in libtool wrapper scripts and
14740 # restored at relink time.
14741 variables_saved_for_relink="$variables_saved_for_relink"
14742
14743 # Whether libtool must link a program against all its dependency libraries.
14744 link_all_deplibs=$link_all_deplibs_CXX
14745
14746 # Compile-time system search path for libraries
14747 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14748
14749 # Run-time system search path for libraries
14750 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14751
14752 # Fix the shell variable \$srcfile for the compiler.
14753 fix_srcfile_path=$lt_fix_srcfile_path
14754
14755 # Set to yes if exported symbols are required.
14756 always_export_symbols=$always_export_symbols_CXX
14757
14758 # The commands to list exported symbols.
14759 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14760
14761 # The commands to extract the exported symbol list from a shared archive.
14762 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14763
14764 # Symbols that should not be listed in the preloaded symbols.
14765 exclude_expsyms=$lt_exclude_expsyms_CXX
14766
14767 # Symbols that must always be exported.
14768 include_expsyms=$lt_include_expsyms_CXX
14769
14770 # ### END LIBTOOL TAG CONFIG: $tagname
14771
14772 __EOF__
14773
14774
14775 else
14776 # If there is no Makefile yet, we rely on a make rule to execute
14777 # `config.status --recheck' to rerun these tests and create the
14778 # libtool script then.
14779 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14780 if test -f "$ltmain_in"; then
14781 test -f Makefile && make "$ltmain"
14782 fi
14783 fi
14784
14785
14786 ac_ext=c
14787 ac_cpp='$CPP $CPPFLAGS'
14788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
14790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14791
14792 CC=$lt_save_CC
14793 LDCXX=$LD
14794 LD=$lt_save_LD
14795 GCC=$lt_save_GCC
14796 with_gnu_ldcxx=$with_gnu_ld
14797 with_gnu_ld=$lt_save_with_gnu_ld
14798 lt_cv_path_LDCXX=$lt_cv_path_LD
14799 lt_cv_path_LD=$lt_save_path_LD
14800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14802
14803 else
14804 tagname=""
14805 fi
14806 ;;
14807
14808 F77)
14809 if test -n "$F77" && test "X$F77" != "Xno"; then
14810
14811 ac_ext=f
14812 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14813 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14814 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14815
14816
14817 archive_cmds_need_lc_F77=no
14818 allow_undefined_flag_F77=
14819 always_export_symbols_F77=no
14820 archive_expsym_cmds_F77=
14821 export_dynamic_flag_spec_F77=
14822 hardcode_direct_F77=no
14823 hardcode_libdir_flag_spec_F77=
14824 hardcode_libdir_flag_spec_ld_F77=
14825 hardcode_libdir_separator_F77=
14826 hardcode_minus_L_F77=no
14827 hardcode_automatic_F77=no
14828 module_cmds_F77=
14829 module_expsym_cmds_F77=
14830 link_all_deplibs_F77=unknown
14831 old_archive_cmds_F77=$old_archive_cmds
14832 no_undefined_flag_F77=
14833 whole_archive_flag_spec_F77=
14834 enable_shared_with_static_runtimes_F77=no
14835
14836 # Source file extension for f77 test sources.
14837 ac_ext=f
14838
14839 # Object file extension for compiled f77 test sources.
14840 objext=o
14841 objext_F77=$objext
14842
14843 # Code to be used in simple compile tests
14844 lt_simple_compile_test_code="\
14845 subroutine t
14846 return
14847 end
14848 "
14849
14850 # Code to be used in simple link tests
14851 lt_simple_link_test_code="\
14852 program t
14853 end
14854 "
14855
14856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14857
14858 # If no C compiler was specified, use CC.
14859 LTCC=${LTCC-"$CC"}
14860
14861 # If no C compiler flags were specified, use CFLAGS.
14862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14863
14864 # Allow CC to be a program name with arguments.
14865 compiler=$CC
14866
14867
14868 # save warnings/boilerplate of simple test code
14869 ac_outfile=conftest.$ac_objext
14870 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14871 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14872 _lt_compiler_boilerplate=`cat conftest.err`
14873 $rm conftest*
14874
14875 ac_outfile=conftest.$ac_objext
14876 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14877 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14878 _lt_linker_boilerplate=`cat conftest.err`
14879 $rm conftest*
14880
14881
14882 # Allow CC to be a program name with arguments.
14883 lt_save_CC="$CC"
14884 CC=${F77-"f77"}
14885 compiler=$CC
14886 compiler_F77=$CC
14887 for cc_temp in $compiler""; do
14888 case $cc_temp in
14889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14891 \-*) ;;
14892 *) break;;
14893 esac
14894 done
14895 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14896
14897
14898 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14899 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14900 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14901 echo "${ECHO_T}$can_build_shared" >&6; }
14902
14903 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14904 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14905 test "$can_build_shared" = "no" && enable_shared=no
14906
14907 # On AIX, shared libraries and static libraries use the same namespace, and
14908 # are all built from PIC.
14909 case $host_os in
14910 aix3*)
14911 test "$enable_shared" = yes && enable_static=no
14912 if test -n "$RANLIB"; then
14913 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14914 postinstall_cmds='$RANLIB $lib'
14915 fi
14916 ;;
14917 aix4* | aix5*)
14918 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14919 test "$enable_shared" = yes && enable_static=no
14920 fi
14921 ;;
14922 esac
14923 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14924 echo "${ECHO_T}$enable_shared" >&6; }
14925
14926 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14927 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14928 # Make sure either enable_shared or enable_static is yes.
14929 test "$enable_shared" = yes || enable_static=yes
14930 { echo "$as_me:$LINENO: result: $enable_static" >&5
14931 echo "${ECHO_T}$enable_static" >&6; }
14932
14933 GCC_F77="$G77"
14934 LD_F77="$LD"
14935
14936 lt_prog_compiler_wl_F77=
14937 lt_prog_compiler_pic_F77=
14938 lt_prog_compiler_static_F77=
14939
14940 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14941 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14942
14943 if test "$GCC" = yes; then
14944 lt_prog_compiler_wl_F77='-Wl,'
14945 lt_prog_compiler_static_F77='-static'
14946
14947 case $host_os in
14948 aix*)
14949 # All AIX code is PIC.
14950 if test "$host_cpu" = ia64; then
14951 # AIX 5 now supports IA64 processor
14952 lt_prog_compiler_static_F77='-Bstatic'
14953 fi
14954 ;;
14955
14956 amigaos*)
14957 # FIXME: we need at least 68020 code to build shared libraries, but
14958 # adding the `-m68020' flag to GCC prevents building anything better,
14959 # like `-m68040'.
14960 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14961 ;;
14962
14963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14964 # PIC is the default for these OSes.
14965 ;;
14966
14967 mingw* | cygwin* | pw32* | os2*)
14968 # This hack is so that the source file can tell whether it is being
14969 # built for inclusion in a dll (and should export symbols for example).
14970 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14971 # (--disable-auto-import) libraries
14972 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14973 ;;
14974
14975 darwin* | rhapsody*)
14976 # PIC is the default on this platform
14977 # Common symbols not allowed in MH_DYLIB files
14978 lt_prog_compiler_pic_F77='-fno-common'
14979 ;;
14980
14981 interix[3-9]*)
14982 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14983 # Instead, we relocate shared libraries at runtime.
14984 ;;
14985
14986 msdosdjgpp*)
14987 # Just because we use GCC doesn't mean we suddenly get shared libraries
14988 # on systems that don't support them.
14989 lt_prog_compiler_can_build_shared_F77=no
14990 enable_shared=no
14991 ;;
14992
14993 sysv4*MP*)
14994 if test -d /usr/nec; then
14995 lt_prog_compiler_pic_F77=-Kconform_pic
14996 fi
14997 ;;
14998
14999 hpux*)
15000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15001 # not for PA HP-UX.
15002 case $host_cpu in
15003 hppa*64*|ia64*)
15004 # +Z the default
15005 ;;
15006 *)
15007 lt_prog_compiler_pic_F77='-fPIC'
15008 ;;
15009 esac
15010 ;;
15011
15012 *)
15013 lt_prog_compiler_pic_F77='-fPIC'
15014 ;;
15015 esac
15016 else
15017 # PORTME Check for flag to pass linker flags through the system compiler.
15018 case $host_os in
15019 aix*)
15020 lt_prog_compiler_wl_F77='-Wl,'
15021 if test "$host_cpu" = ia64; then
15022 # AIX 5 now supports IA64 processor
15023 lt_prog_compiler_static_F77='-Bstatic'
15024 else
15025 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15026 fi
15027 ;;
15028 darwin*)
15029 # PIC is the default on this platform
15030 # Common symbols not allowed in MH_DYLIB files
15031 case $cc_basename in
15032 xlc*)
15033 lt_prog_compiler_pic_F77='-qnocommon'
15034 lt_prog_compiler_wl_F77='-Wl,'
15035 ;;
15036 esac
15037 ;;
15038
15039 mingw* | cygwin* | pw32* | os2*)
15040 # This hack is so that the source file can tell whether it is being
15041 # built for inclusion in a dll (and should export symbols for example).
15042 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15043 ;;
15044
15045 hpux9* | hpux10* | hpux11*)
15046 lt_prog_compiler_wl_F77='-Wl,'
15047 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15048 # not for PA HP-UX.
15049 case $host_cpu in
15050 hppa*64*|ia64*)
15051 # +Z the default
15052 ;;
15053 *)
15054 lt_prog_compiler_pic_F77='+Z'
15055 ;;
15056 esac
15057 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
15058 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15059 ;;
15060
15061 irix5* | irix6* | nonstopux*)
15062 lt_prog_compiler_wl_F77='-Wl,'
15063 # PIC (with -KPIC) is the default.
15064 lt_prog_compiler_static_F77='-non_shared'
15065 ;;
15066
15067 newsos6)
15068 lt_prog_compiler_pic_F77='-KPIC'
15069 lt_prog_compiler_static_F77='-Bstatic'
15070 ;;
15071
15072 linux* | k*bsd*-gnu)
15073 case $cc_basename in
15074 icc* | ecc*)
15075 lt_prog_compiler_wl_F77='-Wl,'
15076 lt_prog_compiler_pic_F77='-KPIC'
15077 lt_prog_compiler_static_F77='-static'
15078 ;;
15079 pgcc* | pgf77* | pgf90* | pgf95*)
15080 # Portland Group compilers (*not* the Pentium gcc compiler,
15081 # which looks to be a dead project)
15082 lt_prog_compiler_wl_F77='-Wl,'
15083 lt_prog_compiler_pic_F77='-fpic'
15084 lt_prog_compiler_static_F77='-Bstatic'
15085 ;;
15086 ccc*)
15087 lt_prog_compiler_wl_F77='-Wl,'
15088 # All Alpha code is PIC.
15089 lt_prog_compiler_static_F77='-non_shared'
15090 ;;
15091 *)
15092 case `$CC -V 2>&1 | sed 5q` in
15093 *Sun\ C*)
15094 # Sun C 5.9
15095 lt_prog_compiler_pic_F77='-KPIC'
15096 lt_prog_compiler_static_F77='-Bstatic'
15097 lt_prog_compiler_wl_F77='-Wl,'
15098 ;;
15099 *Sun\ F*)
15100 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15101 lt_prog_compiler_pic_F77='-KPIC'
15102 lt_prog_compiler_static_F77='-Bstatic'
15103 lt_prog_compiler_wl_F77=''
15104 ;;
15105 esac
15106 ;;
15107 esac
15108 ;;
15109
15110 osf3* | osf4* | osf5*)
15111 lt_prog_compiler_wl_F77='-Wl,'
15112 # All OSF/1 code is PIC.
15113 lt_prog_compiler_static_F77='-non_shared'
15114 ;;
15115
15116 rdos*)
15117 lt_prog_compiler_static_F77='-non_shared'
15118 ;;
15119
15120 solaris*)
15121 lt_prog_compiler_pic_F77='-KPIC'
15122 lt_prog_compiler_static_F77='-Bstatic'
15123 case $cc_basename in
15124 f77* | f90* | f95*)
15125 lt_prog_compiler_wl_F77='-Qoption ld ';;
15126 *)
15127 lt_prog_compiler_wl_F77='-Wl,';;
15128 esac
15129 ;;
15130
15131 sunos4*)
15132 lt_prog_compiler_wl_F77='-Qoption ld '
15133 lt_prog_compiler_pic_F77='-PIC'
15134 lt_prog_compiler_static_F77='-Bstatic'
15135 ;;
15136
15137 sysv4 | sysv4.2uw2* | sysv4.3*)
15138 lt_prog_compiler_wl_F77='-Wl,'
15139 lt_prog_compiler_pic_F77='-KPIC'
15140 lt_prog_compiler_static_F77='-Bstatic'
15141 ;;
15142
15143 sysv4*MP*)
15144 if test -d /usr/nec ;then
15145 lt_prog_compiler_pic_F77='-Kconform_pic'
15146 lt_prog_compiler_static_F77='-Bstatic'
15147 fi
15148 ;;
15149
15150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15151 lt_prog_compiler_wl_F77='-Wl,'
15152 lt_prog_compiler_pic_F77='-KPIC'
15153 lt_prog_compiler_static_F77='-Bstatic'
15154 ;;
15155
15156 unicos*)
15157 lt_prog_compiler_wl_F77='-Wl,'
15158 lt_prog_compiler_can_build_shared_F77=no
15159 ;;
15160
15161 uts4*)
15162 lt_prog_compiler_pic_F77='-pic'
15163 lt_prog_compiler_static_F77='-Bstatic'
15164 ;;
15165
15166 *)
15167 lt_prog_compiler_can_build_shared_F77=no
15168 ;;
15169 esac
15170 fi
15171
15172 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15173 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15174
15175 #
15176 # Check to make sure the PIC flag actually works.
15177 #
15178 if test -n "$lt_prog_compiler_pic_F77"; then
15179
15180 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15181 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15182 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 lt_prog_compiler_pic_works_F77=no
15186 ac_outfile=conftest.$ac_objext
15187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15188 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15189 # Insert the option either (1) after the last *FLAGS variable, or
15190 # (2) before a word containing "conftest.", or (3) at the end.
15191 # Note that $ac_compile itself does not contain backslashes and begins
15192 # with a dollar sign (not a hyphen), so the echo should work correctly.
15193 # The option is referenced via a variable to avoid confusing sed.
15194 lt_compile=`echo "$ac_compile" | $SED \
15195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15197 -e 's:$: $lt_compiler_flag:'`
15198 (eval echo "\"\$as_me:15198: $lt_compile\"" >&5)
15199 (eval "$lt_compile" 2>conftest.err)
15200 ac_status=$?
15201 cat conftest.err >&5
15202 echo "$as_me:15202: \$? = $ac_status" >&5
15203 if (exit $ac_status) && test -s "$ac_outfile"; then
15204 # The compiler can only warn and ignore the option if not recognized
15205 # So say no if there are warnings other than the usual output.
15206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
15209 lt_prog_compiler_pic_works_F77=yes
15210 fi
15211 fi
15212 $rm conftest*
15213
15214 fi
15215 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15216 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15217
15218 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15219 case $lt_prog_compiler_pic_F77 in
15220 "" | " "*) ;;
15221 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15222 esac
15223 else
15224 lt_prog_compiler_pic_F77=
15225 lt_prog_compiler_can_build_shared_F77=no
15226 fi
15227
15228 fi
15229 case $host_os in
15230 # For platforms which do not support PIC, -DPIC is meaningless:
15231 *djgpp*)
15232 lt_prog_compiler_pic_F77=
15233 ;;
15234 *)
15235 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15236 ;;
15237 esac
15238
15239 #
15240 # Check to make sure the static flag actually works.
15241 #
15242 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F 77\"
15243 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag wo rks" >&5
15244 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC HO_C" >&6; }
15245 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 else
15248 lt_prog_compiler_static_works_F77=no
15249 save_LDFLAGS="$LDFLAGS"
15250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15253 # The linker can only warn and ignore the option if not recognized
15254 # So say no if there are warnings
15255 if test -s conftest.err; then
15256 # Append any errors to the config.log.
15257 cat conftest.err 1>&5
15258 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15260 if diff conftest.exp conftest.er2 >/dev/null; then
15261 lt_prog_compiler_static_works_F77=yes
15262 fi
15263 else
15264 lt_prog_compiler_static_works_F77=yes
15265 fi
15266 fi
15267 $rm conftest*
15268 LDFLAGS="$save_LDFLAGS"
15269
15270 fi
15271 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15272 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15273
15274 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15275 :
15276 else
15277 lt_prog_compiler_static_F77=
15278 fi
15279
15280
15281 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >& 5
15282 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" > &6; }
15283 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286 lt_cv_prog_compiler_c_o_F77=no
15287 $rm -r conftest 2>/dev/null
15288 mkdir conftest
15289 cd conftest
15290 mkdir out
15291 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15292
15293 lt_compiler_flag="-o out/conftest2.$ac_objext"
15294 # Insert the option either (1) after the last *FLAGS variable, or
15295 # (2) before a word containing "conftest.", or (3) at the end.
15296 # Note that $ac_compile itself does not contain backslashes and begins
15297 # with a dollar sign (not a hyphen), so the echo should work correctly.
15298 lt_compile=`echo "$ac_compile" | $SED \
15299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15301 -e 's:$: $lt_compiler_flag:'`
15302 (eval echo "\"\$as_me:15302: $lt_compile\"" >&5)
15303 (eval "$lt_compile" 2>out/conftest.err)
15304 ac_status=$?
15305 cat out/conftest.err >&5
15306 echo "$as_me:15306: \$? = $ac_status" >&5
15307 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15308 then
15309 # The compiler can only warn and ignore the option if not recognized
15310 # So say no if there are warnings
15311 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15312 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15313 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
15314 lt_cv_prog_compiler_c_o_F77=yes
15315 fi
15316 fi
15317 chmod u+w . 2>&5
15318 $rm conftest*
15319 # SGI C++ compiler will create directory out/ii_files/ for
15320 # template instantiation
15321 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15322 $rm out/* && rmdir out
15323 cd ..
15324 rmdir conftest
15325 $rm conftest*
15326
15327 fi
15328 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15329 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15330
15331
15332 hard_links="nottested"
15333 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15334 # do not overwrite the value of need_locks provided by the user
15335 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15336 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15337 hard_links=yes
15338 $rm conftest*
15339 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15340 touch conftest.a
15341 ln conftest.a conftest.b 2>&5 || hard_links=no
15342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15343 { echo "$as_me:$LINENO: result: $hard_links" >&5
15344 echo "${ECHO_T}$hard_links" >&6; }
15345 if test "$hard_links" = no; then
15346 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15347 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un safe" >&2;}
15348 need_locks=warn
15349 fi
15350 else
15351 need_locks=no
15352 fi
15353
15354 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports sha red libraries" >&5
15355 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar ies... $ECHO_C" >&6; }
15356
15357 runpath_var=
15358 allow_undefined_flag_F77=
15359 enable_shared_with_static_runtimes_F77=no
15360 archive_cmds_F77=
15361 archive_expsym_cmds_F77=
15362 old_archive_From_new_cmds_F77=
15363 old_archive_from_expsyms_cmds_F77=
15364 export_dynamic_flag_spec_F77=
15365 whole_archive_flag_spec_F77=
15366 thread_safe_flag_spec_F77=
15367 hardcode_libdir_flag_spec_F77=
15368 hardcode_libdir_flag_spec_ld_F77=
15369 hardcode_libdir_separator_F77=
15370 hardcode_direct_F77=no
15371 hardcode_minus_L_F77=no
15372 hardcode_shlibpath_var_F77=unsupported
15373 link_all_deplibs_F77=unknown
15374 hardcode_automatic_F77=no
15375 module_cmds_F77=
15376 module_expsym_cmds_F77=
15377 always_export_symbols_F77=no
15378 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SE D '\''s/.* //'\'' | sort | uniq > $export_symbols'
15379 # include_expsyms should be a list of space-separated symbols to be *always*
15380 # included in the symbol list
15381 include_expsyms_F77=
15382 # exclude_expsyms can be an extended regexp of symbols to exclude
15383 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15384 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15385 # as well as any symbol that contains `d'.
15386 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15387 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15388 # platforms (ab)use it in PIC code, but their linkers get confused if
15389 # the symbol is explicitly referenced. Since portable code cannot
15390 # rely on this symbol name, it's probably fine to never include it in
15391 # preloaded symbol tables.
15392 extract_expsyms_cmds=
15393 # Just being paranoid about ensuring that cc_basename is set.
15394 for cc_temp in $compiler""; do
15395 case $cc_temp in
15396 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15397 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15398 \-*) ;;
15399 *) break;;
15400 esac
15401 done
15402 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15403
15404 case $host_os in
15405 cygwin* | mingw* | pw32*)
15406 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15407 # When not using gcc, we currently assume that we are using
15408 # Microsoft Visual C++.
15409 if test "$GCC" != yes; then
15410 with_gnu_ld=no
15411 fi
15412 ;;
15413 interix*)
15414 # we just hope/assume this is gcc and not c89 (= MSVC++)
15415 with_gnu_ld=yes
15416 ;;
15417 openbsd*)
15418 with_gnu_ld=no
15419 ;;
15420 esac
15421
15422 ld_shlibs_F77=yes
15423 if test "$with_gnu_ld" = yes; then
15424 # If archive_cmds runs LD, not CC, wlarc should be empty
15425 wlarc='${wl}'
15426
15427 # Set some defaults for GNU ld with shared library support. These
15428 # are reset later if shared libraries are not supported. Putting them
15429 # here allows them to be overridden if necessary.
15430 runpath_var=LD_RUN_PATH
15431 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15432 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15433 # ancient GNU ld didn't support --whole-archive et. al.
15434 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15435 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlar c"'--no-whole-archive'
15436 else
15437 whole_archive_flag_spec_F77=
15438 fi
15439 supports_anon_versioning=no
15440 case `$LD -v 2>/dev/null` in
15441 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15442 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15443 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15444 *\ 2.11.*) ;; # other 2.11 versions
15445 *) supports_anon_versioning=yes ;;
15446 esac
15447
15448 # See if GNU ld supports shared libraries.
15449 case $host_os in
15450 aix3* | aix4* | aix5*)
15451 # On AIX/PPC, the GNU linker is very broken
15452 if test "$host_cpu" != ia64; then
15453 ld_shlibs_F77=no
15454 cat <<EOF 1>&2
15455
15456 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15457 *** to be unable to reliably create shared libraries on AIX.
15458 *** Therefore, libtool is disabling shared libraries support. If you
15459 *** really care for shared libraries, you may want to modify your PATH
15460 *** so that a non-GNU linker is found, and then restart.
15461
15462 EOF
15463 fi
15464 ;;
15465
15466 amigaos*)
15467 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary - 32)'
15468 hardcode_libdir_flag_spec_F77='-L$libdir'
15469 hardcode_minus_L_F77=yes
15470
15471 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15472 # that the semantics of dynamic libraries on AmigaOS, at least up
15473 # to version 4, is to share data among multiple programs linked
15474 # with the same dynamic library. Since this doesn't match the
15475 # behavior of shared libraries on other platforms, we can't use
15476 # them.
15477 ld_shlibs_F77=no
15478 ;;
15479
15480 beos*)
15481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15482 allow_undefined_flag_F77=unsupported
15483 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15484 # support --undefined. This deserves some investigation. FIXME
15485 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-s oname $wl$soname -o $lib'
15486 else
15487 ld_shlibs_F77=no
15488 fi
15489 ;;
15490
15491 cygwin* | mingw* | pw32*)
15492 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15493 # as there is no search path for DLLs.
15494 hardcode_libdir_flag_spec_F77='-L$libdir'
15495 allow_undefined_flag_F77=unsupported
15496 always_export_symbols_F77=no
15497 enable_shared_with_static_runtimes_F77=yes
15498 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.* [ ]//'\'' | sort | uniq > $export_symbols'
15499
15500 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15501 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $outp ut_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $ lib'
15502 # If the export-symbols file already is a .def file (1st line
15503 # is EXPORTS), use it as is; otherwise, prepend...
15504 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS ; then
15505 cp $export_symbols $output_objdir/$soname.def;
15506 else
15507 echo EXPORTS > $output_objdir/$soname.def;
15508 cat $export_symbols >> $output_objdir/$soname.def;
15509 fi~
15510 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
15511 else
15512 ld_shlibs_F77=no
15513 fi
15514 ;;
15515
15516 interix[3-9]*)
15517 hardcode_direct_F77=no
15518 hardcode_shlibpath_var_F77=no
15519 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15520 export_dynamic_flag_spec_F77='${wl}-E'
15521 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15522 # Instead, shared libraries are loaded at an image base (0x10000000 by
15523 # default) and relocated if they conflict, which is a slow very memory
15524 # consuming and fragmenting process. To avoid this, we pick a random,
15525 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15526 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15527 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342 177280` -o $lib'
15528 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$son ame.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$sona me ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`e xpr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15529 ;;
15530
15531 gnu* | linux* | k*bsd*-gnu)
15532 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15533 tmp_addflag=
15534 case $cc_basename,$host_cpu in
15535 pgcc*) # Portland Group C compiler
15536 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $conveni ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d one; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15537 tmp_addflag=' $pic_flag'
15538 ;;
15539 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15540 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $conveni ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d one; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15541 tmp_addflag=' $pic_flag -Mnomain' ;;
15542 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15543 tmp_addflag=' -i_dynamic' ;;
15544 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15545 tmp_addflag=' -i_dynamic -nofor_main' ;;
15546 ifc* | ifort*) # Intel Fortran compiler
15547 tmp_addflag=' -nofor_main' ;;
15548 esac
15549 case `$CC -V 2>&1 | sed 5q` in
15550 *Sun\ C*) # Sun C 5.9
15551 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; fo r conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_conve nience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15552 tmp_sharedflag='-G' ;;
15553 *Sun\ F*) # Sun Fortran 8.3
15554 tmp_sharedflag='-G' ;;
15555 *)
15556 tmp_sharedflag='-shared' ;;
15557 esac
15558 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplib s $compiler_flags ${wl}-soname $wl$soname -o $lib'
15559
15560 if test $supports_anon_versioning = yes; then
15561 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.v er~
15562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15563 $echo "local: *; };" >> $output_objdir/$libname.ver~
15564 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flag s ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15565 fi
15566 else
15567 ld_shlibs_F77=no
15568 fi
15569 ;;
15570
15571 netbsd*)
15572 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15573 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $li b'
15574 wlarc=
15575 else
15576 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
15577 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15578 fi
15579 ;;
15580
15581 solaris*)
15582 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15583 ld_shlibs_F77=no
15584 cat <<EOF 1>&2
15585
15586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15587 *** create shared libraries on Solaris systems. Therefore, libtool
15588 *** is disabling shared libraries support. We urge you to upgrade GNU
15589 *** binutils to release 2.9.1 or newer. Another option is to modify
15590 *** your PATH or compiler configuration so that the native linker is
15591 *** used, and then restart.
15592
15593 EOF
15594 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15595 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
15596 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15597 else
15598 ld_shlibs_F77=no
15599 fi
15600 ;;
15601
15602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15603 case `$LD -v 2>&1` in
15604 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15605 ld_shlibs_F77=no
15606 cat <<_LT_EOF 1>&2
15607
15608 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15609 *** reliably create shared libraries on SCO systems. Therefore, libtool
15610 *** is disabling shared libraries support. We urge you to upgrade GNU
15611 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15612 *** your PATH or compiler configuration so that the native linker is
15613 *** used, and then restart.
15614
15615 _LT_EOF
15616 ;;
15617 *)
15618 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th en
15619 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}- rpath,$libdir`'
15620 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl }-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15621 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_fla gs ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$ export_symbols -o $lib'
15622 else
15623 ld_shlibs_F77=no
15624 fi
15625 ;;
15626 esac
15627 ;;
15628
15629 sunos4*)
15630 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $depl ibs $linker_flags'
15631 wlarc=
15632 hardcode_direct_F77=yes
15633 hardcode_shlibpath_var_F77=no
15634 ;;
15635
15636 *)
15637 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15638 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
15639 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15640 else
15641 ld_shlibs_F77=no
15642 fi
15643 ;;
15644 esac
15645
15646 if test "$ld_shlibs_F77" = no; then
15647 runpath_var=
15648 hardcode_libdir_flag_spec_F77=
15649 export_dynamic_flag_spec_F77=
15650 whole_archive_flag_spec_F77=
15651 fi
15652 else
15653 # PORTME fill in a description of your system's linker (not GNU ld)
15654 case $host_os in
15655 aix3*)
15656 allow_undefined_flag_F77=unsupported
15657 always_export_symbols_F77=yes
15658 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'
15659 # Note: this linker hardcodes the directories in LIBPATH if there
15660 # are no directories specified by -L.
15661 hardcode_minus_L_F77=yes
15662 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15663 # Neither direct hardcoding nor static linking is supported with a
15664 # broken collect2.
15665 hardcode_direct_F77=unsupported
15666 fi
15667 ;;
15668
15669 aix4* | aix5*)
15670 if test "$host_cpu" = ia64; then
15671 # On IA64, the linker does run time linking by default, so we don't
15672 # have to do anything special.
15673 aix_use_runtimelinking=no
15674 exp_sym_flag='-Bexport'
15675 no_entry_flag=""
15676 else
15677 # If we're using GNU nm, then we don't want the "-C" option.
15678 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15679 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15680 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'
15681 else
15682 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ i f (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15683 fi
15684 aix_use_runtimelinking=no
15685
15686 # Test if we are trying to use run time linking or normal
15687 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15688 # need to do runtime linking.
15689 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15690 for ld_flag in $LDFLAGS; do
15691 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15692 aix_use_runtimelinking=yes
15693 break
15694 fi
15695 done
15696 ;;
15697 esac
15698
15699 exp_sym_flag='-bexport'
15700 no_entry_flag='-bnoentry'
15701 fi
15702
15703 # When large executables or shared objects are built, AIX ld can
15704 # have problems creating the table of contents. If linking a library
15705 # or program results in "error TOC overflow" add -mminimal-toc to
15706 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15707 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15708
15709 archive_cmds_F77=''
15710 hardcode_direct_F77=yes
15711 hardcode_libdir_separator_F77=':'
15712 link_all_deplibs_F77=yes
15713
15714 if test "$GCC" = yes; then
15715 case $host_os in aix4.[012]|aix4.[012].*)
15716 # We only want to do this on AIX 4.2 and lower, the check
15717 # below for broken collect2 doesn't work under 4.3+
15718 collect2name=`${CC} -print-prog-name=collect2`
15719 if test -f "$collect2name" && \
15720 strings "$collect2name" | grep resolve_lib_name >/dev/null
15721 then
15722 # We have reworked collect2
15723 :
15724 else
15725 # We have old collect2
15726 hardcode_direct_F77=unsupported
15727 # It fails to find uninstalled libraries when the uninstalled
15728 # path is not listed in the libpath. Setting hardcode_minus_L
15729 # to unsupported forces relinking
15730 hardcode_minus_L_F77=yes
15731 hardcode_libdir_flag_spec_F77='-L$libdir'
15732 hardcode_libdir_separator_F77=
15733 fi
15734 ;;
15735 esac
15736 shared_flag='-shared'
15737 if test "$aix_use_runtimelinking" = yes; then
15738 shared_flag="$shared_flag "'${wl}-G'
15739 fi
15740 else
15741 # not using gcc
15742 if test "$host_cpu" = ia64; then
15743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15744 # chokes on -Wl,-G. The following line is correct:
15745 shared_flag='-G'
15746 else
15747 if test "$aix_use_runtimelinking" = yes; then
15748 shared_flag='${wl}-G'
15749 else
15750 shared_flag='${wl}-bM:SRE'
15751 fi
15752 fi
15753 fi
15754
15755 # It seems that -bexpall does not export symbols beginning with
15756 # underscore (_), so it is better to generate a list of symbols to export.
15757 always_export_symbols_F77=yes
15758 if test "$aix_use_runtimelinking" = yes; then
15759 # Warning - without using the other runtime loading flags (-brtl),
15760 # -berok will link without error, but may produce a broken library.
15761 allow_undefined_flag_F77='-berok'
15762 # Determine the default libpath from the value encoded in an empty execut able.
15763 cat >conftest.$ac_ext <<_ACEOF
15764 program main
15765
15766 end
15767 _ACEOF
15768 rm -f conftest.$ac_objext conftest$ac_exeext
15769 if { (ac_try="$ac_link"
15770 case "(($ac_try" in
15771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15772 *) ac_try_echo=$ac_try;;
15773 esac
15774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15775 (eval "$ac_link") 2>conftest.er1
15776 ac_status=$?
15777 grep -v '^ *+' conftest.er1 >conftest.err
15778 rm -f conftest.er1
15779 cat conftest.err >&5
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && {
15782 test -z "$ac_f77_werror_flag" ||
15783 test ! -s conftest.err
15784 } && test -s conftest$ac_exeext &&
15785 $as_test_x conftest$ac_exeext; then
15786
15787 lt_aix_libpath_sed='
15788 /Import File Strings/,/^$/ {
15789 /^0/ {
15790 s/^0 *\(.*\)$/\1/
15791 p
15792 }
15793 }'
15794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
15795 # Check for a 64-bit object if we didn't find anything.
15796 if test -z "$aix_libpath"; then
15797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
15798 fi
15799 else
15800 echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803
15804 fi
15805
15806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15807 conftest$ac_exeext conftest.$ac_ext
15808 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15809
15810 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15811 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $depl ibs '"\${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"
15812 else
15813 if test "$host_cpu" = ia64; then
15814 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15815 allow_undefined_flag_F77="-z nodefs"
15816 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefin ed_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15817 else
15818 # Determine the default libpath from the value encoded in an empty exec utable.
15819 cat >conftest.$ac_ext <<_ACEOF
15820 program main
15821
15822 end
15823 _ACEOF
15824 rm -f conftest.$ac_objext conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_link") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } && {
15838 test -z "$ac_f77_werror_flag" ||
15839 test ! -s conftest.err
15840 } && test -s conftest$ac_exeext &&
15841 $as_test_x conftest$ac_exeext; then
15842
15843 lt_aix_libpath_sed='
15844 /Import File Strings/,/^$/ {
15845 /^0/ {
15846 s/^0 *\(.*\)$/\1/
15847 p
15848 }
15849 }'
15850 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
15851 # Check for a 64-bit object if we didn't find anything.
15852 if test -z "$aix_libpath"; then
15853 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
15854 fi
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859
15860 fi
15861
15862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15863 conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 # Warning - without using the other run time loading flags,
15868 # -berok will link without error, but may produce a broken library.
15869 no_undefined_flag_F77=' ${wl}-bernotok'
15870 allow_undefined_flag_F77=' ${wl}-berok'
15871 # Exported symbols can be pulled into shared objects from archives
15872 whole_archive_flag_spec_F77='$convenience'
15873 archive_cmds_need_lc_F77=yes
15874 # This is similar to how AIX traditionally builds its shared libraries .
15875 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allo w_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir /$soname'
15876 fi
15877 fi
15878 ;;
15879
15880 amigaos*)
15881 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary - 32)'
15882 hardcode_libdir_flag_spec_F77='-L$libdir'
15883 hardcode_minus_L_F77=yes
15884 # see comment about different semantics on the GNU ld section
15885 ld_shlibs_F77=no
15886 ;;
15887
15888 bsdi[45]*)
15889 export_dynamic_flag_spec_F77=-rdynamic
15890 ;;
15891
15892 cygwin* | mingw* | pw32*)
15893 # When not using gcc, we currently assume that we are using
15894 # Microsoft Visual C++.
15895 # hardcode_libdir_flag_spec is actually meaningless, as there is
15896 # no search path for DLLs.
15897 hardcode_libdir_flag_spec_F77=' '
15898 allow_undefined_flag_F77=unsupported
15899 # Tell ltmain to make .lib files, not .a files.
15900 libext=lib
15901 # Tell ltmain to make .dll files, not .so files.
15902 shrext_cmds=".dll"
15903 # FIXME: Setting linknames here is a bad hack.
15904 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15905 # The linker will automatically build a .lib file if we build a DLL.
15906 old_archive_From_new_cmds_F77='true'
15907 # FIXME: Should let the user specify the lib program.
15908 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15909 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15910 enable_shared_with_static_runtimes_F77=yes
15911 ;;
15912
15913 darwin* | rhapsody*)
15914 case $host_os in
15915 rhapsody* | darwin1.[012])
15916 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15917 ;;
15918 *) # Darwin 1.3 on
15919 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15920 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}s uppress'
15921 else
15922 case ${MACOSX_DEPLOYMENT_TARGET} in
15923 10.[012])
15924 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${ wl}suppress'
15925 ;;
15926 10.*)
15927 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15928 ;;
15929 esac
15930 fi
15931 ;;
15932 esac
15933 archive_cmds_need_lc_F77=no
15934 hardcode_direct_F77=no
15935 hardcode_automatic_F77=yes
15936 hardcode_shlibpath_var_F77=unsupported
15937 whole_archive_flag_spec_F77=''
15938 link_all_deplibs_F77=yes
15939 if test "$GCC" = yes ; then
15940 output_verbose_link_cmd='echo'
15941 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15942 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $depli bs$compiler_flags'
15943 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e xist in older darwin lds
15944 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\) ,_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamicl ib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${ lib}'
15945 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\), _&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_und efined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_ objdir/${libname}-symbols.expsym ${lib}'
15946 else
15947 case $cc_basename in
15948 xlc*)
15949 output_verbose_link_cmd='echo'
15950 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcvers tring'
15951 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $de plibs$compiler_flags'
15952 # Don't fix this by using the ld -exported_symbols_list flag, it doesn 't exist in older darwin lds
15953 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(.. *\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmksh robj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-insta ll_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-sy mbols.expsym ${lib}'
15954 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 $out put_objdir/${libname}-symbols.expsym ${lib}'
15955 ;;
15956 *)
15957 ld_shlibs_F77=no
15958 ;;
15959 esac
15960 fi
15961 ;;
15962
15963 dgux*)
15964 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
15965 hardcode_libdir_flag_spec_F77='-L$libdir'
15966 hardcode_shlibpath_var_F77=no
15967 ;;
15968
15969 freebsd1*)
15970 ld_shlibs_F77=no
15971 ;;
15972
15973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15974 # support. Future versions do this automatically, but an explicit c++rt0.o
15975 # does not break anything, and helps significantly (at the cost of a little
15976 # extra space).
15977 freebsd2.2*)
15978 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15979 hardcode_libdir_flag_spec_F77='-R$libdir'
15980 hardcode_direct_F77=yes
15981 hardcode_shlibpath_var_F77=no
15982 ;;
15983
15984 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15985 freebsd2*)
15986 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15987 hardcode_direct_F77=yes
15988 hardcode_minus_L_F77=yes
15989 hardcode_shlibpath_var_F77=no
15990 ;;
15991
15992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15993 freebsd* | dragonfly*)
15994 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15995 hardcode_libdir_flag_spec_F77='-R$libdir'
15996 hardcode_direct_F77=yes
15997 hardcode_shlibpath_var_F77=no
15998 ;;
15999
16000 hpux9*)
16001 if test "$GCC" = yes; then
16002 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'
16003 else
16004 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir - o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$so name = $lib || mv $output_objdir/$soname $lib'
16005 fi
16006 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16007 hardcode_libdir_separator_F77=:
16008 hardcode_direct_F77=yes
16009
16010 # hardcode_minus_L: Not really in the search PATH,
16011 # but as the default location of the library.
16012 hardcode_minus_L_F77=yes
16013 export_dynamic_flag_spec_F77='${wl}-E'
16014 ;;
16015
16016 hpux10*)
16017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16018 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$i nstall_libdir -o $lib $libobjs $deplibs $compiler_flags'
16019 else
16020 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16021 fi
16022 if test "$with_gnu_ld" = no; then
16023 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16024 hardcode_libdir_separator_F77=:
16025
16026 hardcode_direct_F77=yes
16027 export_dynamic_flag_spec_F77='${wl}-E'
16028
16029 # hardcode_minus_L: Not really in the search PATH,
16030 # but as the default location of the library.
16031 hardcode_minus_L_F77=yes
16032 fi
16033 ;;
16034
16035 hpux11*)
16036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16037 case $host_cpu in
16038 hppa*64*)
16039 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $d eplibs $compiler_flags'
16040 ;;
16041 ia64*)
16042 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpat h -o $lib $libobjs $deplibs $compiler_flags'
16043 ;;
16044 *)
16045 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl} $install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16046 ;;
16047 esac
16048 else
16049 case $host_cpu in
16050 hppa*64*)
16051 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplib s $compiler_flags'
16052 ;;
16053 ia64*)
16054 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16055 ;;
16056 *)
16057 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_li bdir -o $lib $libobjs $deplibs $compiler_flags'
16058 ;;
16059 esac
16060 fi
16061 if test "$with_gnu_ld" = no; then
16062 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16063 hardcode_libdir_separator_F77=:
16064
16065 case $host_cpu in
16066 hppa*64*|ia64*)
16067 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16068 hardcode_direct_F77=no
16069 hardcode_shlibpath_var_F77=no
16070 ;;
16071 *)
16072 hardcode_direct_F77=yes
16073 export_dynamic_flag_spec_F77='${wl}-E'
16074
16075 # hardcode_minus_L: Not really in the search PATH,
16076 # but as the default location of the library.
16077 hardcode_minus_L_F77=yes
16078 ;;
16079 esac
16080 fi
16081 ;;
16082
16083 irix5* | irix6* | nonstopux*)
16084 if test "$GCC" = yes; then
16085 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstrin g` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16086 else
16087 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $s oname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${ output_objdir}/so_locations -o $lib'
16088 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16089 fi
16090 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16091 hardcode_libdir_separator_F77=:
16092 link_all_deplibs_F77=yes
16093 ;;
16094
16095 netbsd*)
16096 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16097 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flag s' # a.out
16098 else
16099 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16100 fi
16101 hardcode_libdir_flag_spec_F77='-R$libdir'
16102 hardcode_direct_F77=yes
16103 hardcode_shlibpath_var_F77=no
16104 ;;
16105
16106 newsos6)
16107 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
16108 hardcode_direct_F77=yes
16109 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16110 hardcode_libdir_separator_F77=:
16111 hardcode_shlibpath_var_F77=no
16112 ;;
16113
16114 openbsd*)
16115 if test -f /usr/libexec/ld.so; then
16116 hardcode_direct_F77=yes
16117 hardcode_shlibpath_var_F77=no
16118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os- $host_cpu" = "openbsd2.8-powerpc"; then
16119 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $com piler_flags'
16120 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $depli bs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16121 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16122 export_dynamic_flag_spec_F77='${wl}-E'
16123 else
16124 case $host_os in
16125 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16126 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker _flags'
16127 hardcode_libdir_flag_spec_F77='-R$libdir'
16128 ;;
16129 *)
16130 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags'
16131 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16132 ;;
16133 esac
16134 fi
16135 else
16136 ld_shlibs_F77=no
16137 fi
16138 ;;
16139
16140 os2*)
16141 hardcode_libdir_flag_spec_F77='-L$libdir'
16142 hardcode_minus_L_F77=yes
16143 allow_undefined_flag_F77=unsupported
16144 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$ libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ech o DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdi r/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $ output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compile r_flags $output_objdir/$libname.def'
16145 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output _objdir/$libname.def'
16146 ;;
16147
16148 osf3*)
16149 if test "$GCC" = yes; then
16150 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16151 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_locatio ns -o $lib'
16152 else
16153 allow_undefined_flag_F77=' -expect_unresolved \*'
16154 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $ linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstri ng` -update_registry ${output_objdir}/so_locations -o $lib'
16155 fi
16156 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16157 hardcode_libdir_separator_F77=:
16158 ;;
16159
16160 osf4* | osf5*) # as osf3* with the addition of -msym flag
16161 if test "$GCC" = yes; then
16162 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16163 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $ compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && ech o ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir} /so_locations -o $lib'
16164 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16165 else
16166 allow_undefined_flag_F77=' -expect_unresolved \*'
16167 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $ linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $v erstring` -update_registry ${output_objdir}/so_locations -o $lib'
16168 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~
16169 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring ` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16170
16171 # Both c and cxx compiler support -rpath directly
16172 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16173 fi
16174 hardcode_libdir_separator_F77=:
16175 ;;
16176
16177 solaris*)
16178 no_undefined_flag_F77=' -z text'
16179 if test "$GCC" = yes; then
16180 wlarc='${wl}'
16181 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $dep libs $compiler_flags'
16182 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbol s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16183 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj s $deplibs $compiler_flags~$rm $lib.exp'
16184 else
16185 wlarc=''
16186 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libo bjs $deplibs $linker_flags'
16187 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbol s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16188 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d eplibs $linker_flags~$rm $lib.exp'
16189 fi
16190 hardcode_libdir_flag_spec_F77='-R$libdir'
16191 hardcode_shlibpath_var_F77=no
16192 case $host_os in
16193 solaris2.[0-5] | solaris2.[0-5].*) ;;
16194 *)
16195 # The compiler driver will combine and reorder linker options,
16196 # but understands `-z linker_flag'. GCC discards it without `$wl',
16197 # but is careful enough not to reorder.
16198 # Supported since Solaris 2.6 (maybe 2.5.1?)
16199 if test "$GCC" = yes; then
16200 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl} -z ${wl}defaultextract'
16201 else
16202 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextra ct'
16203 fi
16204 ;;
16205 esac
16206 link_all_deplibs_F77=yes
16207 ;;
16208
16209 sunos4*)
16210 if test "x$host_vendor" = xsequent; then
16211 # Use $CC to link under sequent, because it throws in some extra .o
16212 # files that make .init and .fini sections work.
16213 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $comp iler_flags'
16214 else
16215 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $depli bs $linker_flags'
16216 fi
16217 hardcode_libdir_flag_spec_F77='-L$libdir'
16218 hardcode_direct_F77=yes
16219 hardcode_minus_L_F77=yes
16220 hardcode_shlibpath_var_F77=no
16221 ;;
16222
16223 sysv4)
16224 case $host_vendor in
16225 sni)
16226 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_ flags'
16227 hardcode_direct_F77=yes # is this really true???
16228 ;;
16229 siemens)
16230 ## LD is ld it makes a PLAMLIB
16231 ## CC just makes a GrossModule.
16232 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16233 reload_cmds_F77='$CC -r -o $output$reload_objs'
16234 hardcode_direct_F77=no
16235 ;;
16236 motorola)
16237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_ flags'
16238 hardcode_direct_F77=no #Motorola manual says yes, but my tests say the y lie
16239 ;;
16240 esac
16241 runpath_var='LD_RUN_PATH'
16242 hardcode_shlibpath_var_F77=no
16243 ;;
16244
16245 sysv4.3*)
16246 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
16247 hardcode_shlibpath_var_F77=no
16248 export_dynamic_flag_spec_F77='-Bexport'
16249 ;;
16250
16251 sysv4*MP*)
16252 if test -d /usr/nec; then
16253 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_fl ags'
16254 hardcode_shlibpath_var_F77=no
16255 runpath_var=LD_RUN_PATH
16256 hardcode_runpath_var=yes
16257 ld_shlibs_F77=yes
16258 fi
16259 ;;
16260
16261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
16262 no_undefined_flag_F77='${wl}-z,text'
16263 archive_cmds_need_lc_F77=no
16264 hardcode_shlibpath_var_F77=no
16265 runpath_var='LD_RUN_PATH'
16266
16267 if test "$GCC" = yes; then
16268 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16269 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl} -h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16270 else
16271 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $comp iler_flags'
16272 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$s oname -o $lib $libobjs $deplibs $compiler_flags'
16273 fi
16274 ;;
16275
16276 sysv5* | sco3.2v5* | sco5v6*)
16277 # Note: We can NOT use -z defs as we might desire, because we do not
16278 # link with -lc, and that would cause any symbols used from libc to
16279 # always be unresolved, which means just about no library would
16280 # ever link correctly. If we're not using GNU ld we use -z text
16281 # though, which does catch some bad symbols but isn't as heavy-handed
16282 # as -z defs.
16283 no_undefined_flag_F77='${wl}-z,text'
16284 allow_undefined_flag_F77='${wl}-z,nodefs'
16285 archive_cmds_need_lc_F77=no
16286 hardcode_shlibpath_var_F77=no
16287 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$lib dir`'
16288 hardcode_libdir_separator_F77=':'
16289 link_all_deplibs_F77=yes
16290 export_dynamic_flag_spec_F77='${wl}-Bexport'
16291 runpath_var='LD_RUN_PATH'
16292
16293 if test "$GCC" = yes; then
16294 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/} $soname -o $lib $libobjs $deplibs $compiler_flags'
16295 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl} -h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler _flags'
16296 else
16297 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$sona me -o $lib $libobjs $deplibs $compiler_flags'
16298 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\$ {SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flag s'
16299 fi
16300 ;;
16301
16302 uts4*)
16303 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
16304 hardcode_libdir_flag_spec_F77='-L$libdir'
16305 hardcode_shlibpath_var_F77=no
16306 ;;
16307
16308 *)
16309 ld_shlibs_F77=no
16310 ;;
16311 esac
16312 fi
16313
16314 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16315 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16316 test "$ld_shlibs_F77" = no && can_build_shared=no
16317
16318 #
16319 # Do we need to explicitly link libc?
16320 #
16321 case "x$archive_cmds_need_lc_F77" in
16322 x|xyes)
16323 # Assume -lc should be added
16324 archive_cmds_need_lc_F77=yes
16325
16326 if test "$enable_shared" = yes && test "$GCC" = yes; then
16327 case $archive_cmds_F77 in
16328 *'~'*)
16329 # FIXME: we may have to deal with multi-command sequences.
16330 ;;
16331 '$CC '*)
16332 # Test whether the compiler implicitly links with -lc since on some
16333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16334 # to ld, don't add -lc before -lgcc.
16335 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked i n" >&5
16336 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& 6; }
16337 $rm conftest*
16338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16339
16340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16341 (eval $ac_compile) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } 2>conftest.err; then
16345 soname=conftest
16346 lib=conftest
16347 libobjs=conftest.$ac_objext
16348 deplibs=
16349 wl=$lt_prog_compiler_wl_F77
16350 pic_flag=$lt_prog_compiler_pic_F77
16351 compiler_flags=-v
16352 linker_flags=-v
16353 verstring=
16354 output_objdir=.
16355 libname=conftest
16356 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16357 allow_undefined_flag_F77=
16358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" - lc \" \>/dev/null 2\>\&1\"") >&5
16359 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }
16363 then
16364 archive_cmds_need_lc_F77=no
16365 else
16366 archive_cmds_need_lc_F77=yes
16367 fi
16368 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16369 else
16370 cat conftest.err 1>&5
16371 fi
16372 $rm conftest*
16373 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16374 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16375 ;;
16376 esac
16377 fi
16378 ;;
16379 esac
16380
16381 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16382 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16383 library_names_spec=
16384 libname_spec='lib$name'
16385 soname_spec=
16386 shrext_cmds=".so"
16387 postinstall_cmds=
16388 postuninstall_cmds=
16389 finish_cmds=
16390 finish_eval=
16391 shlibpath_var=
16392 shlibpath_overrides_runpath=unknown
16393 version_type=none
16394 dynamic_linker="$host_os ld.so"
16395 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16396
16397 need_lib_prefix=unknown
16398 hardcode_into_libs=no
16399
16400 # when you set need_version to no, make sure it does not cause -set_version
16401 # flags to be left without arguments
16402 need_version=unknown
16403
16404 case $host_os in
16405 aix3*)
16406 version_type=linux
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16408 shlibpath_var=LIBPATH
16409
16410 # AIX 3 has no versioning support, so we append a major version to the name.
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 ;;
16413
16414 aix4* | aix5*)
16415 version_type=linux
16416 need_lib_prefix=no
16417 need_version=no
16418 hardcode_into_libs=yes
16419 if test "$host_cpu" = ia64; then
16420 # AIX 5 supports IA64
16421 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 else
16424 # With GCC up to 2.95.x, collect2 would create an import file
16425 # for dependence libraries. The import file would start with
16426 # the line `#! .'. This would cause the generated library to
16427 # depend on `.', always an invalid library. This was fixed in
16428 # development snapshots of GCC prior to 3.0.
16429 case $host_os in
16430 aix4 | aix4.[01] | aix4.[01].*)
16431 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16432 echo ' yes '
16433 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16434 :
16435 else
16436 can_build_shared=no
16437 fi
16438 ;;
16439 esac
16440 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
16441 # soname into executable. Probably we can add versioning support to
16442 # collect2, so additional links can be useful in future.
16443 if test "$aix_use_runtimelinking" = yes; then
16444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16445 # instead of lib<name>.a to let people know that these are not
16446 # typical AIX shared libraries.
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
16448 else
16449 # We preserve .a as extension for shared libraries through AIX4.2
16450 # and later when we are not doing run time linking.
16451 library_names_spec='${libname}${release}.a $libname.a'
16452 soname_spec='${libname}${release}${shared_ext}$major'
16453 fi
16454 shlibpath_var=LIBPATH
16455 fi
16456 ;;
16457
16458 amigaos*)
16459 library_names_spec='$libname.ixlibrary $libname.a'
16460 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16461 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib s/${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'
16462 ;;
16463
16464 beos*)
16465 library_names_spec='${libname}${shared_ext}'
16466 dynamic_linker="$host_os ld.so"
16467 shlibpath_var=LIBRARY_PATH
16468 ;;
16469
16470 bsdi[45]*)
16471 version_type=linux
16472 need_version=no
16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16474 soname_spec='${libname}${release}${shared_ext}$major'
16475 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
16478 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16479 # the default ld.so.conf also contains /usr/contrib/lib and
16480 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16481 # libtool to hard-code these into programs
16482 ;;
16483
16484 cygwin* | mingw* | pw32*)
16485 version_type=windows
16486 shrext_cmds=".dll"
16487 need_version=no
16488 need_lib_prefix=no
16489
16490 case $GCC,$host_os in
16491 yes,cygwin* | yes,mingw* | yes,pw32*)
16492 library_names_spec='$libname.dll.a'
16493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16494 postinstall_cmds='base_file=`basename \${file}`~
16495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\'' `~
16496 dldir=$destdir/`dirname \$dlpath`~
16497 test -d \$dldir || mkdir -p \$dldir~
16498 $install_prog $dir/$dlname \$dldir/$dlname~
16499 chmod a+x \$dldir/$dlname'
16500 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16501 dlpath=$dir/\$dldll~
16502 $rm \$dlpath'
16503 shlibpath_overrides_runpath=yes
16504
16505 case $host_os in
16506 cygwin*)
16507 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16508 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16509 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16510 ;;
16511 mingw*)
16512 # MinGW DLLs use traditional 'lib' prefix
16513 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
16514 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S ED -e "s/^libraries://" -e "s,=/,/,g"`
16515 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16516 # It is most probably a Windows format PATH printed by
16517 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16518 # path with ; separators, and with drive letters. We can handle the
16519 # drive letters (cygwin fileutils understands them), so leave them,
16520 # especially as we might pass files found there to a mingw objdump,
16521 # which wouldn't understand a cygwinified path. Ahh.
16522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/ ;/ /g'`
16523 else
16524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
16525 fi
16526 ;;
16527 pw32*)
16528 # pw32 DLLs use 'pw' prefix rather than 'lib'
16529 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16530 ;;
16531 esac
16532 ;;
16533
16534 *)
16535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
16536 ;;
16537 esac
16538 dynamic_linker='Win32 ld.exe'
16539 # FIXME: first we should search . and the directory the executable is in
16540 shlibpath_var=PATH
16541 ;;
16542
16543 darwin* | rhapsody*)
16544 dynamic_linker="$host_os dyld"
16545 version_type=darwin
16546 need_lib_prefix=no
16547 need_version=no
16548 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re lease}${major}$shared_ext ${libname}$shared_ext'
16549 soname_spec='${libname}${release}${major}$shared_ext'
16550 shlibpath_overrides_runpath=yes
16551 shlibpath_var=DYLD_LIBRARY_PATH
16552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16553
16554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16555 ;;
16556
16557 dgux*)
16558 version_type=linux
16559 need_lib_prefix=no
16560 need_version=no
16561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
16562 soname_spec='${libname}${release}${shared_ext}$major'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 ;;
16565
16566 freebsd1*)
16567 dynamic_linker=no
16568 ;;
16569
16570 freebsd* | dragonfly*)
16571 # DragonFly does not have aout. When/if they implement a new
16572 # versioning mechanism, adjust this.
16573 if test -x /usr/bin/objformat; then
16574 objformat=`/usr/bin/objformat`
16575 else
16576 case $host_os in
16577 freebsd[123]*) objformat=aout ;;
16578 *) objformat=elf ;;
16579 esac
16580 fi
16581 version_type=freebsd-$objformat
16582 case $version_type in
16583 freebsd-elf*)
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
16585 need_version=no
16586 need_lib_prefix=no
16587 ;;
16588 freebsd-*)
16589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
16590 need_version=yes
16591 ;;
16592 esac
16593 shlibpath_var=LD_LIBRARY_PATH
16594 case $host_os in
16595 freebsd2*)
16596 shlibpath_overrides_runpath=yes
16597 ;;
16598 freebsd3.[01]* | freebsdelf3.[01]*)
16599 shlibpath_overrides_runpath=yes
16600 hardcode_into_libs=yes
16601 ;;
16602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16604 shlibpath_overrides_runpath=no
16605 hardcode_into_libs=yes
16606 ;;
16607 *) # from 4.6 on, and DragonFly
16608 shlibpath_overrides_runpath=yes
16609 hardcode_into_libs=yes
16610 ;;
16611 esac
16612 ;;
16613
16614 gnu*)
16615 version_type=linux
16616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 hardcode_into_libs=yes
16622 ;;
16623
16624 hpux9* | hpux10* | hpux11*)
16625 # Give a soname corresponding to the major version so that dld.sl refuses to
16626 # link against other versions.
16627 version_type=sunos
16628 need_lib_prefix=no
16629 need_version=no
16630 case $host_cpu in
16631 ia64*)
16632 shrext_cmds='.so'
16633 hardcode_into_libs=yes
16634 dynamic_linker="$host_os dld.so"
16635 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 if test "X$HPUX_IA64_MODE" = X32; then
16640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
16641 else
16642 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16643 fi
16644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16645 ;;
16646 hppa*64*)
16647 shrext_cmds='.sl'
16648 hardcode_into_libs=yes
16649 dynamic_linker="$host_os dld.sl"
16650 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$ {release}${shared_ext}$major $libname${shared_ext}'
16653 soname_spec='${libname}${release}${shared_ext}$major'
16654 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16656 ;;
16657 *)
16658 shrext_cmds='.sl'
16659 dynamic_linker="$host_os dld.sl"
16660 shlibpath_var=SHLIB_PATH
16661 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 ;;
16665 esac
16666 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16667 postinstall_cmds='chmod 555 $lib'
16668 ;;
16669
16670 interix[3-9]*)
16671 version_type=linux
16672 need_lib_prefix=no
16673 need_version=no
16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
16675 soname_spec='${libname}${release}${shared_ext}$major'
16676 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16680 ;;
16681
16682 irix5* | irix6* | nonstopux*)
16683 case $host_os in
16684 nonstopux*) version_type=nonstopux ;;
16685 *)
16686 if test "$lt_cv_prog_gnu_ld" = yes; then
16687 version_type=linux
16688 else
16689 version_type=irix
16690 fi ;;
16691 esac
16692 need_lib_prefix=no
16693 need_version=no
16694 soname_spec='${libname}${release}${shared_ext}$major'
16695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
16696 case $host_os in
16697 irix5* | nonstopux*)
16698 libsuff= shlibsuff=
16699 ;;
16700 *)
16701 case $LD in # libtool.m4 will add one of these switches to LD
16702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16703 libsuff= shlibsuff= libmagic=32-bit;;
16704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16705 libsuff=32 shlibsuff=N32 libmagic=N32;;
16706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16708 *) libsuff= shlibsuff= libmagic=never-match;;
16709 esac
16710 ;;
16711 esac
16712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16713 shlibpath_overrides_runpath=no
16714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
16715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16716 hardcode_into_libs=yes
16717 ;;
16718
16719 # No shared lib support for Linux oldld, aout, or coff.
16720 linux*oldld* | linux*aout* | linux*coff*)
16721 dynamic_linker=no
16722 ;;
16723
16724 # This must be Linux ELF.
16725 linux* | k*bsd*-gnu)
16726 version_type=linux
16727 need_lib_prefix=no
16728 need_version=no
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 shlibpath_overrides_runpath=no
16734 # This implies no fast_install, which is unacceptable.
16735 # Some rework will be needed to allow for fast_install
16736 # before this can be enabled.
16737 hardcode_into_libs=yes
16738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
16739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16740
16741 # Append ld.so.conf contents to the search path
16742 if test -f /etc/ld.so.conf; then
16743 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 | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16744 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16745 fi
16746
16747 # We used to test for /lib/ld.so.1 and disable shared libraries on
16748 # powerpc, because MkLinux only supported shared libraries with the
16749 # GNU dynamic linker. Since this was broken with cross compilers,
16750 # most powerpc-linux boxes support dynamic linking these days and
16751 # people can always --disable-shared, the test was removed, and we
16752 # assume the GNU/Linux dynamic linker is in use.
16753 dynamic_linker='GNU/Linux ld.so'
16754 ;;
16755
16756 netbsd*)
16757 version_type=sunos
16758 need_lib_prefix=no
16759 need_version=no
16760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
16762 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16763 dynamic_linker='NetBSD (a.out) ld.so'
16764 else
16765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
16766 soname_spec='${libname}${release}${shared_ext}$major'
16767 dynamic_linker='NetBSD ld.elf_so'
16768 fi
16769 shlibpath_var=LD_LIBRARY_PATH
16770 shlibpath_overrides_runpath=yes
16771 hardcode_into_libs=yes
16772 ;;
16773
16774 newsos6)
16775 version_type=linux
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16777 shlibpath_var=LD_LIBRARY_PATH
16778 shlibpath_overrides_runpath=yes
16779 ;;
16780
16781 nto-qnx*)
16782 version_type=linux
16783 need_lib_prefix=no
16784 need_version=no
16785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 shlibpath_var=LD_LIBRARY_PATH
16788 shlibpath_overrides_runpath=yes
16789 ;;
16790
16791 openbsd*)
16792 version_type=sunos
16793 sys_lib_dlsearch_path_spec="/usr/lib"
16794 need_lib_prefix=no
16795 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16796 case $host_os in
16797 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16798 *) need_version=no ;;
16799 esac
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
16801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_ cpu" = "openbsd2.8-powerpc"; then
16804 case $host_os in
16805 openbsd2.[89] | openbsd2.[89].*)
16806 shlibpath_overrides_runpath=no
16807 ;;
16808 *)
16809 shlibpath_overrides_runpath=yes
16810 ;;
16811 esac
16812 else
16813 shlibpath_overrides_runpath=yes
16814 fi
16815 ;;
16816
16817 os2*)
16818 libname_spec='$name'
16819 shrext_cmds=".dll"
16820 need_lib_prefix=no
16821 library_names_spec='$libname${shared_ext} $libname.a'
16822 dynamic_linker='OS/2 ld.exe'
16823 shlibpath_var=LIBPATH
16824 ;;
16825
16826 osf3* | osf4* | osf5*)
16827 version_type=osf
16828 need_lib_prefix=no
16829 need_version=no
16830 soname_spec='${libname}${release}${shared_ext}$major'
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16832 shlibpath_var=LD_LIBRARY_PATH
16833 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16834 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16835 ;;
16836
16837 rdos*)
16838 dynamic_linker=no
16839 ;;
16840
16841 solaris*)
16842 version_type=linux
16843 need_lib_prefix=no
16844 need_version=no
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 shlibpath_overrides_runpath=yes
16849 hardcode_into_libs=yes
16850 # ldd complains unless libraries are executable
16851 postinstall_cmds='chmod +x $lib'
16852 ;;
16853
16854 sunos4*)
16855 version_type=sunos
16856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
16857 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16858 shlibpath_var=LD_LIBRARY_PATH
16859 shlibpath_overrides_runpath=yes
16860 if test "$with_gnu_ld" = yes; then
16861 need_lib_prefix=no
16862 fi
16863 need_version=yes
16864 ;;
16865
16866 sysv4 | sysv4.3*)
16867 version_type=linux
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16869 soname_spec='${libname}${release}${shared_ext}$major'
16870 shlibpath_var=LD_LIBRARY_PATH
16871 case $host_vendor in
16872 sni)
16873 shlibpath_overrides_runpath=no
16874 need_lib_prefix=no
16875 export_dynamic_flag_spec='${wl}-Blargedynsym'
16876 runpath_var=LD_RUN_PATH
16877 ;;
16878 siemens)
16879 need_lib_prefix=no
16880 ;;
16881 motorola)
16882 need_lib_prefix=no
16883 need_version=no
16884 shlibpath_overrides_runpath=no
16885 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16886 ;;
16887 esac
16888 ;;
16889
16890 sysv4*MP*)
16891 if test -d /usr/nec ;then
16892 version_type=linux
16893 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
16894 soname_spec='$libname${shared_ext}.$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 fi
16897 ;;
16898
16899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16900 version_type=freebsd-elf
16901 need_lib_prefix=no
16902 need_version=no
16903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
16904 soname_spec='${libname}${release}${shared_ext}$major'
16905 shlibpath_var=LD_LIBRARY_PATH
16906 hardcode_into_libs=yes
16907 if test "$with_gnu_ld" = yes; then
16908 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16909 shlibpath_overrides_runpath=no
16910 else
16911 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16912 shlibpath_overrides_runpath=yes
16913 case $host_os in
16914 sco3.2v5*)
16915 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16916 ;;
16917 esac
16918 fi
16919 sys_lib_dlsearch_path_spec='/usr/lib'
16920 ;;
16921
16922 uts4*)
16923 version_type=linux
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
16925 soname_spec='${libname}${release}${shared_ext}$major'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 ;;
16928
16929 *)
16930 dynamic_linker=no
16931 ;;
16932 esac
16933 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16934 echo "${ECHO_T}$dynamic_linker" >&6; }
16935 test "$dynamic_linker" = no && can_build_shared=no
16936
16937 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16938 if test "$GCC" = yes; then
16939 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
16940 fi
16941
16942 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >& 5
16943 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" > &6; }
16944 hardcode_action_F77=
16945 if test -n "$hardcode_libdir_flag_spec_F77" || \
16946 test -n "$runpath_var_F77" || \
16947 test "X$hardcode_automatic_F77" = "Xyes" ; then
16948
16949 # We can hardcode non-existant directories.
16950 if test "$hardcode_direct_F77" != no &&
16951 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16952 # have to relink, otherwise we might link with an installed library
16953 # when we should be linking with a yet-to-be-installed one
16954 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16955 test "$hardcode_minus_L_F77" != no; then
16956 # Linking always hardcodes the temporary library directory.
16957 hardcode_action_F77=relink
16958 else
16959 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16960 hardcode_action_F77=immediate
16961 fi
16962 else
16963 # We cannot hardcode anything, or else we can only hardcode existing
16964 # directories.
16965 hardcode_action_F77=unsupported
16966 fi
16967 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16968 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16969
16970 if test "$hardcode_action_F77" = relink; then
16971 # Fast installation is not supported
16972 enable_fast_install=no
16973 elif test "$shlibpath_overrides_runpath" = yes ||
16974 test "$enable_shared" = no; then
16975 # Fast installation is not necessary
16976 enable_fast_install=needless
16977 fi
16978
16979
16980 # The else clause should only fire when bootstrapping the
16981 # libtool distribution, otherwise you forgot to ship ltmain.sh
16982 # with your package, and you will get complaints that there are
16983 # no rules to generate ltmain.sh.
16984 if test -f "$ltmain"; then
16985 # See if we are running on zsh, and set the options which allow our commands t hrough
16986 # without removal of \ escapes.
16987 if test -n "${ZSH_VERSION+set}" ; then
16988 setopt NO_GLOB_SUBST
16989 fi
16990 # Now quote all the things that may contain metacharacters while being
16991 # careful not to overquote the AC_SUBSTed values. We take copies of the
16992 # variables and quote the copies for generation of the libtool script.
16993 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16994 SED SHELL STRIP \
16995 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16996 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16997 deplibs_check_method reload_flag reload_cmds need_locks \
16998 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16999 lt_cv_sys_global_symbol_to_c_name_address \
17000 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17001 old_postinstall_cmds old_postuninstall_cmds \
17002 compiler_F77 \
17003 CC_F77 \
17004 LD_F77 \
17005 lt_prog_compiler_wl_F77 \
17006 lt_prog_compiler_pic_F77 \
17007 lt_prog_compiler_static_F77 \
17008 lt_prog_compiler_no_builtin_flag_F77 \
17009 export_dynamic_flag_spec_F77 \
17010 thread_safe_flag_spec_F77 \
17011 whole_archive_flag_spec_F77 \
17012 enable_shared_with_static_runtimes_F77 \
17013 old_archive_cmds_F77 \
17014 old_archive_from_new_cmds_F77 \
17015 predep_objects_F77 \
17016 postdep_objects_F77 \
17017 predeps_F77 \
17018 postdeps_F77 \
17019 compiler_lib_search_path_F77 \
17020 archive_cmds_F77 \
17021 archive_expsym_cmds_F77 \
17022 postinstall_cmds_F77 \
17023 postuninstall_cmds_F77 \
17024 old_archive_from_expsyms_cmds_F77 \
17025 allow_undefined_flag_F77 \
17026 no_undefined_flag_F77 \
17027 export_symbols_cmds_F77 \
17028 hardcode_libdir_flag_spec_F77 \
17029 hardcode_libdir_flag_spec_ld_F77 \
17030 hardcode_libdir_separator_F77 \
17031 hardcode_automatic_F77 \
17032 module_cmds_F77 \
17033 module_expsym_cmds_F77 \
17034 lt_cv_prog_compiler_c_o_F77 \
17035 fix_srcfile_path_F77 \
17036 exclude_expsyms_F77 \
17037 include_expsyms_F77; do
17038
17039 case $var in
17040 old_archive_cmds_F77 | \
17041 old_archive_from_new_cmds_F77 | \
17042 archive_cmds_F77 | \
17043 archive_expsym_cmds_F77 | \
17044 module_cmds_F77 | \
17045 module_expsym_cmds_F77 | \
17046 old_archive_from_expsyms_cmds_F77 | \
17047 export_symbols_cmds_F77 | \
17048 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17049 postinstall_cmds | postuninstall_cmds | \
17050 old_postinstall_cmds | old_postuninstall_cmds | \
17051 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17052 # Double-quote double-evaled strings.
17053 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\ " -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17054 ;;
17055 *)
17056 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\` \\\""
17057 ;;
17058 esac
17059 done
17060
17061 case $lt_echo in
17062 *'\$0 --fallback-echo"')
17063 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa llback-echo"/'`
17064 ;;
17065 esac
17066
17067 cfgfile="$ofile"
17068
17069 cat <<__EOF__ >> "$cfgfile"
17070 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17071
17072 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17073
17074 # Shell to use when invoking shell scripts.
17075 SHELL=$lt_SHELL
17076
17077 # Whether or not to build shared libraries.
17078 build_libtool_libs=$enable_shared
17079
17080 # Whether or not to build static libraries.
17081 build_old_libs=$enable_static
17082
17083 # Whether or not to add -lc for building shared libraries.
17084 build_libtool_need_lc=$archive_cmds_need_lc_F77
17085
17086 # Whether or not to disallow shared libs when runtime libs are static
17087 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17088
17089 # Whether or not to optimize for fast installation.
17090 fast_install=$enable_fast_install
17091
17092 # The host system.
17093 host_alias=$host_alias
17094 host=$host
17095 host_os=$host_os
17096
17097 # The build system.
17098 build_alias=$build_alias
17099 build=$build
17100 build_os=$build_os
17101
17102 # An echo program that does not interpret backslashes.
17103 echo=$lt_echo
17104
17105 # The archiver.
17106 AR=$lt_AR
17107 AR_FLAGS=$lt_AR_FLAGS
17108
17109 # A C compiler.
17110 LTCC=$lt_LTCC
17111
17112 # LTCC compiler flags.
17113 LTCFLAGS=$lt_LTCFLAGS
17114
17115 # A language-specific compiler.
17116 CC=$lt_compiler_F77
17117
17118 # Is the compiler the GNU C compiler?
17119 with_gcc=$GCC_F77
17120
17121 # An ERE matcher.
17122 EGREP=$lt_EGREP
17123
17124 # The linker used to build libraries.
17125 LD=$lt_LD_F77
17126
17127 # Whether we need hard or soft links.
17128 LN_S=$lt_LN_S
17129
17130 # A BSD-compatible nm program.
17131 NM=$lt_NM
17132
17133 # A symbol stripping program
17134 STRIP=$lt_STRIP
17135
17136 # Used to examine libraries when file_magic_cmd begins "file"
17137 MAGIC_CMD=$MAGIC_CMD
17138
17139 # Used on cygwin: DLL creation program.
17140 DLLTOOL="$DLLTOOL"
17141
17142 # Used on cygwin: object dumper.
17143 OBJDUMP="$OBJDUMP"
17144
17145 # Used on cygwin: assembler.
17146 AS="$AS"
17147
17148 # The name of the directory that contains temporary libtool files.
17149 objdir=$objdir
17150
17151 # How to create reloadable object files.
17152 reload_flag=$lt_reload_flag
17153 reload_cmds=$lt_reload_cmds
17154
17155 # How to pass a linker flag through the compiler.
17156 wl=$lt_lt_prog_compiler_wl_F77
17157
17158 # Object file suffix (normally "o").
17159 objext="$ac_objext"
17160
17161 # Old archive suffix (normally "a").
17162 libext="$libext"
17163
17164 # Shared library suffix (normally ".so").
17165 shrext_cmds='$shrext_cmds'
17166
17167 # Executable file suffix (normally "").
17168 exeext="$exeext"
17169
17170 # Additional compiler flags for building library objects.
17171 pic_flag=$lt_lt_prog_compiler_pic_F77
17172 pic_mode=$pic_mode
17173
17174 # What is the maximum length of a command?
17175 max_cmd_len=$lt_cv_sys_max_cmd_len
17176
17177 # Does compiler simultaneously support -c and -o options?
17178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17179
17180 # Must we lock files when doing compilation?
17181 need_locks=$lt_need_locks
17182
17183 # Do we need the lib prefix for modules?
17184 need_lib_prefix=$need_lib_prefix
17185
17186 # Do we need a version for libraries?
17187 need_version=$need_version
17188
17189 # Whether dlopen is supported.
17190 dlopen_support=$enable_dlopen
17191
17192 # Whether dlopen of programs is supported.
17193 dlopen_self=$enable_dlopen_self
17194
17195 # Whether dlopen of statically linked programs is supported.
17196 dlopen_self_static=$enable_dlopen_self_static
17197
17198 # Compiler flag to prevent dynamic linking.
17199 link_static_flag=$lt_lt_prog_compiler_static_F77
17200
17201 # Compiler flag to turn off builtin functions.
17202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17203
17204 # Compiler flag to allow reflexive dlopens.
17205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17206
17207 # Compiler flag to generate shared objects directly from archives.
17208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17209
17210 # Compiler flag to generate thread-safe objects.
17211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17212
17213 # Library versioning type.
17214 version_type=$version_type
17215
17216 # Format of library name prefix.
17217 libname_spec=$lt_libname_spec
17218
17219 # List of archive names. First name is the real one, the rest are links.
17220 # The last name is the one that the linker finds with -lNAME.
17221 library_names_spec=$lt_library_names_spec
17222
17223 # The coded name of the library, if different from the real name.
17224 soname_spec=$lt_soname_spec
17225
17226 # Commands used to build and install an old-style archive.
17227 RANLIB=$lt_RANLIB
17228 old_archive_cmds=$lt_old_archive_cmds_F77
17229 old_postinstall_cmds=$lt_old_postinstall_cmds
17230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17231
17232 # Create an old-style archive from a shared archive.
17233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17234
17235 # Create a temporary old-style archive to link instead of a shared archive.
17236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17237
17238 # Commands used to build and install a shared archive.
17239 archive_cmds=$lt_archive_cmds_F77
17240 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17241 postinstall_cmds=$lt_postinstall_cmds
17242 postuninstall_cmds=$lt_postuninstall_cmds
17243
17244 # Commands used to build a loadable module (assumed same as above if empty)
17245 module_cmds=$lt_module_cmds_F77
17246 module_expsym_cmds=$lt_module_expsym_cmds_F77
17247
17248 # Commands to strip libraries.
17249 old_striplib=$lt_old_striplib
17250 striplib=$lt_striplib
17251
17252 # Dependencies to place before the objects being linked to create a
17253 # shared library.
17254 predep_objects=$lt_predep_objects_F77
17255
17256 # Dependencies to place after the objects being linked to create a
17257 # shared library.
17258 postdep_objects=$lt_postdep_objects_F77
17259
17260 # Dependencies to place before the objects being linked to create a
17261 # shared library.
17262 predeps=$lt_predeps_F77
17263
17264 # Dependencies to place after the objects being linked to create a
17265 # shared library.
17266 postdeps=$lt_postdeps_F77
17267
17268 # The library search path used internally by the compiler when linking
17269 # a shared library.
17270 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17271
17272 # Method to check whether dependent libraries are shared objects.
17273 deplibs_check_method=$lt_deplibs_check_method
17274
17275 # Command to use when deplibs_check_method == file_magic.
17276 file_magic_cmd=$lt_file_magic_cmd
17277
17278 # Flag that allows shared libraries with undefined symbols to be built.
17279 allow_undefined_flag=$lt_allow_undefined_flag_F77
17280
17281 # Flag that forces no undefined symbols.
17282 no_undefined_flag=$lt_no_undefined_flag_F77
17283
17284 # Commands used to finish a libtool library installation in a directory.
17285 finish_cmds=$lt_finish_cmds
17286
17287 # Same as above, but a single script fragment to be evaled but not shown.
17288 finish_eval=$lt_finish_eval
17289
17290 # Take the output of nm and produce a listing of raw symbols and C names.
17291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17292
17293 # Transform the output of nm in a proper C declaration
17294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17295
17296 # Transform the output of nm in a C name address pair
17297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17298
17299 # This is the shared library runtime path variable.
17300 runpath_var=$runpath_var
17301
17302 # This is the shared library path variable.
17303 shlibpath_var=$shlibpath_var
17304
17305 # Is shlibpath searched before the hard-coded library search path?
17306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17307
17308 # How to hardcode a shared library path into an executable.
17309 hardcode_action=$hardcode_action_F77
17310
17311 # Whether we should hardcode library paths into libraries.
17312 hardcode_into_libs=$hardcode_into_libs
17313
17314 # Flag to hardcode \$libdir into a binary during linking.
17315 # This must work even if \$libdir does not exist.
17316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17317
17318 # If ld is used when linking, flag to hardcode \$libdir into
17319 # a binary during linking. This must work even if \$libdir does
17320 # not exist.
17321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17322
17323 # Whether we need a single -rpath flag with a separated argument.
17324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17325
17326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17327 # resulting binary.
17328 hardcode_direct=$hardcode_direct_F77
17329
17330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17331 # resulting binary.
17332 hardcode_minus_L=$hardcode_minus_L_F77
17333
17334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17335 # the resulting binary.
17336 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17337
17338 # Set to yes if building a shared library automatically hardcodes DIR into the l ibrary
17339 # and all subsequent libraries and executables linked against it.
17340 hardcode_automatic=$hardcode_automatic_F77
17341
17342 # Variables whose values should be saved in libtool wrapper scripts and
17343 # restored at relink time.
17344 variables_saved_for_relink="$variables_saved_for_relink"
17345
17346 # Whether libtool must link a program against all its dependency libraries.
17347 link_all_deplibs=$link_all_deplibs_F77
17348
17349 # Compile-time system search path for libraries
17350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17351
17352 # Run-time system search path for libraries
17353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17354
17355 # Fix the shell variable \$srcfile for the compiler.
17356 fix_srcfile_path=$lt_fix_srcfile_path
17357
17358 # Set to yes if exported symbols are required.
17359 always_export_symbols=$always_export_symbols_F77
17360
17361 # The commands to list exported symbols.
17362 export_symbols_cmds=$lt_export_symbols_cmds_F77
17363
17364 # The commands to extract the exported symbol list from a shared archive.
17365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17366
17367 # Symbols that should not be listed in the preloaded symbols.
17368 exclude_expsyms=$lt_exclude_expsyms_F77
17369
17370 # Symbols that must always be exported.
17371 include_expsyms=$lt_include_expsyms_F77
17372
17373 # ### END LIBTOOL TAG CONFIG: $tagname
17374
17375 __EOF__
17376
17377
17378 else
17379 # If there is no Makefile yet, we rely on a make rule to execute
17380 # `config.status --recheck' to rerun these tests and create the
17381 # libtool script then.
17382 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17383 if test -f "$ltmain_in"; then
17384 test -f Makefile && make "$ltmain"
17385 fi
17386 fi
17387
17388
17389 ac_ext=c
17390 ac_cpp='$CPP $CPPFLAGS'
17391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
17393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394
17395 CC="$lt_save_CC"
17396
17397 else
17398 tagname=""
17399 fi
17400 ;;
17401
17402 GCJ)
17403 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17404
17405
17406 # Source file extension for Java test sources.
17407 ac_ext=java
17408
17409 # Object file extension for compiled Java test sources.
17410 objext=o
17411 objext_GCJ=$objext
17412
17413 # Code to be used in simple compile tests
17414 lt_simple_compile_test_code="class foo {}"
17415
17416 # Code to be used in simple link tests
17417 lt_simple_link_test_code='public class conftest { public static void main(String [] argv) {}; }'
17418
17419 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17420
17421 # If no C compiler was specified, use CC.
17422 LTCC=${LTCC-"$CC"}
17423
17424 # If no C compiler flags were specified, use CFLAGS.
17425 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17426
17427 # Allow CC to be a program name with arguments.
17428 compiler=$CC
17429
17430
17431 # save warnings/boilerplate of simple test code
17432 ac_outfile=conftest.$ac_objext
17433 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17434 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17435 _lt_compiler_boilerplate=`cat conftest.err`
17436 $rm conftest*
17437
17438 ac_outfile=conftest.$ac_objext
17439 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17440 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17441 _lt_linker_boilerplate=`cat conftest.err`
17442 $rm conftest*
17443
17444
17445 # Allow CC to be a program name with arguments.
17446 lt_save_CC="$CC"
17447 CC=${GCJ-"gcj"}
17448 compiler=$CC
17449 compiler_GCJ=$CC
17450 for cc_temp in $compiler""; do
17451 case $cc_temp in
17452 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17453 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17454 \-*) ;;
17455 *) break;;
17456 esac
17457 done
17458 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17459
17460
17461 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17462 archive_cmds_need_lc_GCJ=no
17463
17464 old_archive_cmds_GCJ=$old_archive_cmds
17465
17466
17467 lt_prog_compiler_no_builtin_flag_GCJ=
17468
17469 if test "$GCC" = yes; then
17470 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17471
17472
17473 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions " >&5
17474 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_ C" >&6; }
17475 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 else
17478 lt_cv_prog_compiler_rtti_exceptions=no
17479 ac_outfile=conftest.$ac_objext
17480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17481 lt_compiler_flag="-fno-rtti -fno-exceptions"
17482 # Insert the option either (1) after the last *FLAGS variable, or
17483 # (2) before a word containing "conftest.", or (3) at the end.
17484 # Note that $ac_compile itself does not contain backslashes and begins
17485 # with a dollar sign (not a hyphen), so the echo should work correctly.
17486 # The option is referenced via a variable to avoid confusing sed.
17487 lt_compile=`echo "$ac_compile" | $SED \
17488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17490 -e 's:$: $lt_compiler_flag:'`
17491 (eval echo "\"\$as_me:17491: $lt_compile\"" >&5)
17492 (eval "$lt_compile" 2>conftest.err)
17493 ac_status=$?
17494 cat conftest.err >&5
17495 echo "$as_me:17495: \$? = $ac_status" >&5
17496 if (exit $ac_status) && test -s "$ac_outfile"; then
17497 # The compiler can only warn and ignore the option if not recognized
17498 # So say no if there are warnings other than the usual output.
17499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
17502 lt_cv_prog_compiler_rtti_exceptions=yes
17503 fi
17504 fi
17505 $rm conftest*
17506
17507 fi
17508 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17509 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17510
17511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17512 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17513 else
17514 :
17515 fi
17516
17517 fi
17518
17519 lt_prog_compiler_wl_GCJ=
17520 lt_prog_compiler_pic_GCJ=
17521 lt_prog_compiler_static_GCJ=
17522
17523 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17524 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17525
17526 if test "$GCC" = yes; then
17527 lt_prog_compiler_wl_GCJ='-Wl,'
17528 lt_prog_compiler_static_GCJ='-static'
17529
17530 case $host_os in
17531 aix*)
17532 # All AIX code is PIC.
17533 if test "$host_cpu" = ia64; then
17534 # AIX 5 now supports IA64 processor
17535 lt_prog_compiler_static_GCJ='-Bstatic'
17536 fi
17537 ;;
17538
17539 amigaos*)
17540 # FIXME: we need at least 68020 code to build shared libraries, but
17541 # adding the `-m68020' flag to GCC prevents building anything better,
17542 # like `-m68040'.
17543 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17544 ;;
17545
17546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17547 # PIC is the default for these OSes.
17548 ;;
17549
17550 mingw* | cygwin* | pw32* | os2*)
17551 # This hack is so that the source file can tell whether it is being
17552 # built for inclusion in a dll (and should export symbols for example).
17553 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17554 # (--disable-auto-import) libraries
17555 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17556 ;;
17557
17558 darwin* | rhapsody*)
17559 # PIC is the default on this platform
17560 # Common symbols not allowed in MH_DYLIB files
17561 lt_prog_compiler_pic_GCJ='-fno-common'
17562 ;;
17563
17564 interix[3-9]*)
17565 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17566 # Instead, we relocate shared libraries at runtime.
17567 ;;
17568
17569 msdosdjgpp*)
17570 # Just because we use GCC doesn't mean we suddenly get shared libraries
17571 # on systems that don't support them.
17572 lt_prog_compiler_can_build_shared_GCJ=no
17573 enable_shared=no
17574 ;;
17575
17576 sysv4*MP*)
17577 if test -d /usr/nec; then
17578 lt_prog_compiler_pic_GCJ=-Kconform_pic
17579 fi
17580 ;;
17581
17582 hpux*)
17583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17584 # not for PA HP-UX.
17585 case $host_cpu in
17586 hppa*64*|ia64*)
17587 # +Z the default
17588 ;;
17589 *)
17590 lt_prog_compiler_pic_GCJ='-fPIC'
17591 ;;
17592 esac
17593 ;;
17594
17595 *)
17596 lt_prog_compiler_pic_GCJ='-fPIC'
17597 ;;
17598 esac
17599 else
17600 # PORTME Check for flag to pass linker flags through the system compiler.
17601 case $host_os in
17602 aix*)
17603 lt_prog_compiler_wl_GCJ='-Wl,'
17604 if test "$host_cpu" = ia64; then
17605 # AIX 5 now supports IA64 processor
17606 lt_prog_compiler_static_GCJ='-Bstatic'
17607 else
17608 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17609 fi
17610 ;;
17611 darwin*)
17612 # PIC is the default on this platform
17613 # Common symbols not allowed in MH_DYLIB files
17614 case $cc_basename in
17615 xlc*)
17616 lt_prog_compiler_pic_GCJ='-qnocommon'
17617 lt_prog_compiler_wl_GCJ='-Wl,'
17618 ;;
17619 esac
17620 ;;
17621
17622 mingw* | cygwin* | pw32* | os2*)
17623 # This hack is so that the source file can tell whether it is being
17624 # built for inclusion in a dll (and should export symbols for example).
17625 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17626 ;;
17627
17628 hpux9* | hpux10* | hpux11*)
17629 lt_prog_compiler_wl_GCJ='-Wl,'
17630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17631 # not for PA HP-UX.
17632 case $host_cpu in
17633 hppa*64*|ia64*)
17634 # +Z the default
17635 ;;
17636 *)
17637 lt_prog_compiler_pic_GCJ='+Z'
17638 ;;
17639 esac
17640 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
17641 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17642 ;;
17643
17644 irix5* | irix6* | nonstopux*)
17645 lt_prog_compiler_wl_GCJ='-Wl,'
17646 # PIC (with -KPIC) is the default.
17647 lt_prog_compiler_static_GCJ='-non_shared'
17648 ;;
17649
17650 newsos6)
17651 lt_prog_compiler_pic_GCJ='-KPIC'
17652 lt_prog_compiler_static_GCJ='-Bstatic'
17653 ;;
17654
17655 linux* | k*bsd*-gnu)
17656 case $cc_basename in
17657 icc* | ecc*)
17658 lt_prog_compiler_wl_GCJ='-Wl,'
17659 lt_prog_compiler_pic_GCJ='-KPIC'
17660 lt_prog_compiler_static_GCJ='-static'
17661 ;;
17662 pgcc* | pgf77* | pgf90* | pgf95*)
17663 # Portland Group compilers (*not* the Pentium gcc compiler,
17664 # which looks to be a dead project)
17665 lt_prog_compiler_wl_GCJ='-Wl,'
17666 lt_prog_compiler_pic_GCJ='-fpic'
17667 lt_prog_compiler_static_GCJ='-Bstatic'
17668 ;;
17669 ccc*)
17670 lt_prog_compiler_wl_GCJ='-Wl,'
17671 # All Alpha code is PIC.
17672 lt_prog_compiler_static_GCJ='-non_shared'
17673 ;;
17674 *)
17675 case `$CC -V 2>&1 | sed 5q` in
17676 *Sun\ C*)
17677 # Sun C 5.9
17678 lt_prog_compiler_pic_GCJ='-KPIC'
17679 lt_prog_compiler_static_GCJ='-Bstatic'
17680 lt_prog_compiler_wl_GCJ='-Wl,'
17681 ;;
17682 *Sun\ F*)
17683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17684 lt_prog_compiler_pic_GCJ='-KPIC'
17685 lt_prog_compiler_static_GCJ='-Bstatic'
17686 lt_prog_compiler_wl_GCJ=''
17687 ;;
17688 esac
17689 ;;
17690 esac
17691 ;;
17692
17693 osf3* | osf4* | osf5*)
17694 lt_prog_compiler_wl_GCJ='-Wl,'
17695 # All OSF/1 code is PIC.
17696 lt_prog_compiler_static_GCJ='-non_shared'
17697 ;;
17698
17699 rdos*)
17700 lt_prog_compiler_static_GCJ='-non_shared'
17701 ;;
17702
17703 solaris*)
17704 lt_prog_compiler_pic_GCJ='-KPIC'
17705 lt_prog_compiler_static_GCJ='-Bstatic'
17706 case $cc_basename in
17707 f77* | f90* | f95*)
17708 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17709 *)
17710 lt_prog_compiler_wl_GCJ='-Wl,';;
17711 esac
17712 ;;
17713
17714 sunos4*)
17715 lt_prog_compiler_wl_GCJ='-Qoption ld '
17716 lt_prog_compiler_pic_GCJ='-PIC'
17717 lt_prog_compiler_static_GCJ='-Bstatic'
17718 ;;
17719
17720 sysv4 | sysv4.2uw2* | sysv4.3*)
17721 lt_prog_compiler_wl_GCJ='-Wl,'
17722 lt_prog_compiler_pic_GCJ='-KPIC'
17723 lt_prog_compiler_static_GCJ='-Bstatic'
17724 ;;
17725
17726 sysv4*MP*)
17727 if test -d /usr/nec ;then
17728 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17729 lt_prog_compiler_static_GCJ='-Bstatic'
17730 fi
17731 ;;
17732
17733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17734 lt_prog_compiler_wl_GCJ='-Wl,'
17735 lt_prog_compiler_pic_GCJ='-KPIC'
17736 lt_prog_compiler_static_GCJ='-Bstatic'
17737 ;;
17738
17739 unicos*)
17740 lt_prog_compiler_wl_GCJ='-Wl,'
17741 lt_prog_compiler_can_build_shared_GCJ=no
17742 ;;
17743
17744 uts4*)
17745 lt_prog_compiler_pic_GCJ='-pic'
17746 lt_prog_compiler_static_GCJ='-Bstatic'
17747 ;;
17748
17749 *)
17750 lt_prog_compiler_can_build_shared_GCJ=no
17751 ;;
17752 esac
17753 fi
17754
17755 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17756 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17757
17758 #
17759 # Check to make sure the PIC flag actually works.
17760 #
17761 if test -n "$lt_prog_compiler_pic_GCJ"; then
17762
17763 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17764 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17765 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17766 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768 lt_prog_compiler_pic_works_GCJ=no
17769 ac_outfile=conftest.$ac_objext
17770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17771 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17772 # Insert the option either (1) after the last *FLAGS variable, or
17773 # (2) before a word containing "conftest.", or (3) at the end.
17774 # Note that $ac_compile itself does not contain backslashes and begins
17775 # with a dollar sign (not a hyphen), so the echo should work correctly.
17776 # The option is referenced via a variable to avoid confusing sed.
17777 lt_compile=`echo "$ac_compile" | $SED \
17778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17780 -e 's:$: $lt_compiler_flag:'`
17781 (eval echo "\"\$as_me:17781: $lt_compile\"" >&5)
17782 (eval "$lt_compile" 2>conftest.err)
17783 ac_status=$?
17784 cat conftest.err >&5
17785 echo "$as_me:17785: \$? = $ac_status" >&5
17786 if (exit $ac_status) && test -s "$ac_outfile"; then
17787 # The compiler can only warn and ignore the option if not recognized
17788 # So say no if there are warnings other than the usual output.
17789 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
17792 lt_prog_compiler_pic_works_GCJ=yes
17793 fi
17794 fi
17795 $rm conftest*
17796
17797 fi
17798 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17799 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17800
17801 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17802 case $lt_prog_compiler_pic_GCJ in
17803 "" | " "*) ;;
17804 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17805 esac
17806 else
17807 lt_prog_compiler_pic_GCJ=
17808 lt_prog_compiler_can_build_shared_GCJ=no
17809 fi
17810
17811 fi
17812 case $host_os in
17813 # For platforms which do not support PIC, -DPIC is meaningless:
17814 *djgpp*)
17815 lt_prog_compiler_pic_GCJ=
17816 ;;
17817 *)
17818 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17819 ;;
17820 esac
17821
17822 #
17823 # Check to make sure the static flag actually works.
17824 #
17825 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_G CJ\"
17826 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag wo rks" >&5
17827 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $EC HO_C" >&6; }
17828 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17829 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 else
17831 lt_prog_compiler_static_works_GCJ=no
17832 save_LDFLAGS="$LDFLAGS"
17833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17836 # The linker can only warn and ignore the option if not recognized
17837 # So say no if there are warnings
17838 if test -s conftest.err; then
17839 # Append any errors to the config.log.
17840 cat conftest.err 1>&5
17841 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17843 if diff conftest.exp conftest.er2 >/dev/null; then
17844 lt_prog_compiler_static_works_GCJ=yes
17845 fi
17846 else
17847 lt_prog_compiler_static_works_GCJ=yes
17848 fi
17849 fi
17850 $rm conftest*
17851 LDFLAGS="$save_LDFLAGS"
17852
17853 fi
17854 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17855 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17856
17857 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17858 :
17859 else
17860 lt_prog_compiler_static_GCJ=
17861 fi
17862
17863
17864 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >& 5
17865 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" > &6; }
17866 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 else
17869 lt_cv_prog_compiler_c_o_GCJ=no
17870 $rm -r conftest 2>/dev/null
17871 mkdir conftest
17872 cd conftest
17873 mkdir out
17874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17875
17876 lt_compiler_flag="-o out/conftest2.$ac_objext"
17877 # Insert the option either (1) after the last *FLAGS variable, or
17878 # (2) before a word containing "conftest.", or (3) at the end.
17879 # Note that $ac_compile itself does not contain backslashes and begins
17880 # with a dollar sign (not a hyphen), so the echo should work correctly.
17881 lt_compile=`echo "$ac_compile" | $SED \
17882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17884 -e 's:$: $lt_compiler_flag:'`
17885 (eval echo "\"\$as_me:17885: $lt_compile\"" >&5)
17886 (eval "$lt_compile" 2>out/conftest.err)
17887 ac_status=$?
17888 cat out/conftest.err >&5
17889 echo "$as_me:17889: \$? = $ac_status" >&5
17890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17891 then
17892 # The compiler can only warn and ignore the option if not recognized
17893 # So say no if there are warnings
17894 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
17897 lt_cv_prog_compiler_c_o_GCJ=yes
17898 fi
17899 fi
17900 chmod u+w . 2>&5
17901 $rm conftest*
17902 # SGI C++ compiler will create directory out/ii_files/ for
17903 # template instantiation
17904 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17905 $rm out/* && rmdir out
17906 cd ..
17907 rmdir conftest
17908 $rm conftest*
17909
17910 fi
17911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17913
17914
17915 hard_links="nottested"
17916 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17917 # do not overwrite the value of need_locks provided by the user
17918 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17920 hard_links=yes
17921 $rm conftest*
17922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17923 touch conftest.a
17924 ln conftest.a conftest.b 2>&5 || hard_links=no
17925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17926 { echo "$as_me:$LINENO: result: $hard_links" >&5
17927 echo "${ECHO_T}$hard_links" >&6; }
17928 if test "$hard_links" = no; then
17929 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be un safe" >&2;}
17931 need_locks=warn
17932 fi
17933 else
17934 need_locks=no
17935 fi
17936
17937 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports sha red libraries" >&5
17938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar ies... $ECHO_C" >&6; }
17939
17940 runpath_var=
17941 allow_undefined_flag_GCJ=
17942 enable_shared_with_static_runtimes_GCJ=no
17943 archive_cmds_GCJ=
17944 archive_expsym_cmds_GCJ=
17945 old_archive_From_new_cmds_GCJ=
17946 old_archive_from_expsyms_cmds_GCJ=
17947 export_dynamic_flag_spec_GCJ=
17948 whole_archive_flag_spec_GCJ=
17949 thread_safe_flag_spec_GCJ=
17950 hardcode_libdir_flag_spec_GCJ=
17951 hardcode_libdir_flag_spec_ld_GCJ=
17952 hardcode_libdir_separator_GCJ=
17953 hardcode_direct_GCJ=no
17954 hardcode_minus_L_GCJ=no
17955 hardcode_shlibpath_var_GCJ=unsupported
17956 link_all_deplibs_GCJ=unknown
17957 hardcode_automatic_GCJ=no
17958 module_cmds_GCJ=
17959 module_expsym_cmds_GCJ=
17960 always_export_symbols_GCJ=no
17961 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SE D '\''s/.* //'\'' | sort | uniq > $export_symbols'
17962 # include_expsyms should be a list of space-separated symbols to be *always*
17963 # included in the symbol list
17964 include_expsyms_GCJ=
17965 # exclude_expsyms can be an extended regexp of symbols to exclude
17966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17968 # as well as any symbol that contains `d'.
17969 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17971 # platforms (ab)use it in PIC code, but their linkers get confused if
17972 # the symbol is explicitly referenced. Since portable code cannot
17973 # rely on this symbol name, it's probably fine to never include it in
17974 # preloaded symbol tables.
17975 extract_expsyms_cmds=
17976 # Just being paranoid about ensuring that cc_basename is set.
17977 for cc_temp in $compiler""; do
17978 case $cc_temp in
17979 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17980 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17981 \-*) ;;
17982 *) break;;
17983 esac
17984 done
17985 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17986
17987 case $host_os in
17988 cygwin* | mingw* | pw32*)
17989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17990 # When not using gcc, we currently assume that we are using
17991 # Microsoft Visual C++.
17992 if test "$GCC" != yes; then
17993 with_gnu_ld=no
17994 fi
17995 ;;
17996 interix*)
17997 # we just hope/assume this is gcc and not c89 (= MSVC++)
17998 with_gnu_ld=yes
17999 ;;
18000 openbsd*)
18001 with_gnu_ld=no
18002 ;;
18003 esac
18004
18005 ld_shlibs_GCJ=yes
18006 if test "$with_gnu_ld" = yes; then
18007 # If archive_cmds runs LD, not CC, wlarc should be empty
18008 wlarc='${wl}'
18009
18010 # Set some defaults for GNU ld with shared library support. These
18011 # are reset later if shared libraries are not supported. Putting them
18012 # here allows them to be overridden if necessary.
18013 runpath_var=LD_RUN_PATH
18014 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18015 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18016 # ancient GNU ld didn't support --whole-archive et. al.
18017 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18018 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlar c"'--no-whole-archive'
18019 else
18020 whole_archive_flag_spec_GCJ=
18021 fi
18022 supports_anon_versioning=no
18023 case `$LD -v 2>/dev/null` in
18024 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18025 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18026 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18027 *\ 2.11.*) ;; # other 2.11 versions
18028 *) supports_anon_versioning=yes ;;
18029 esac
18030
18031 # See if GNU ld supports shared libraries.
18032 case $host_os in
18033 aix3* | aix4* | aix5*)
18034 # On AIX/PPC, the GNU linker is very broken
18035 if test "$host_cpu" != ia64; then
18036 ld_shlibs_GCJ=no
18037 cat <<EOF 1>&2
18038
18039 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18040 *** to be unable to reliably create shared libraries on AIX.
18041 *** Therefore, libtool is disabling shared libraries support. If you
18042 *** really care for shared libraries, you may want to modify your PATH
18043 *** so that a non-GNU linker is found, and then restart.
18044
18045 EOF
18046 fi
18047 ;;
18048
18049 amigaos*)
18050 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary - 32)'
18051 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18052 hardcode_minus_L_GCJ=yes
18053
18054 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18055 # that the semantics of dynamic libraries on AmigaOS, at least up
18056 # to version 4, is to share data among multiple programs linked
18057 # with the same dynamic library. Since this doesn't match the
18058 # behavior of shared libraries on other platforms, we can't use
18059 # them.
18060 ld_shlibs_GCJ=no
18061 ;;
18062
18063 beos*)
18064 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18065 allow_undefined_flag_GCJ=unsupported
18066 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18067 # support --undefined. This deserves some investigation. FIXME
18068 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-s oname $wl$soname -o $lib'
18069 else
18070 ld_shlibs_GCJ=no
18071 fi
18072 ;;
18073
18074 cygwin* | mingw* | pw32*)
18075 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18076 # as there is no search path for DLLs.
18077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078 allow_undefined_flag_GCJ=unsupported
18079 always_export_symbols_GCJ=no
18080 enable_shared_with_static_runtimes_GCJ=yes
18081 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.* [ ]//'\'' | sort | uniq > $export_symbols'
18082
18083 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18084 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $outp ut_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $ lib'
18085 # If the export-symbols file already is a .def file (1st line
18086 # is EXPORTS), use it as is; otherwise, prepend...
18087 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS ; then
18088 cp $export_symbols $output_objdir/$soname.def;
18089 else
18090 echo EXPORTS > $output_objdir/$soname.def;
18091 cat $export_symbols >> $output_objdir/$soname.def;
18092 fi~
18093 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
18094 else
18095 ld_shlibs_GCJ=no
18096 fi
18097 ;;
18098
18099 interix[3-9]*)
18100 hardcode_direct_GCJ=no
18101 hardcode_shlibpath_var_GCJ=no
18102 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18103 export_dynamic_flag_spec_GCJ='${wl}-E'
18104 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18105 # Instead, shared libraries are loaded at an image base (0x10000000 by
18106 # default) and relocated if they conflict, which is a slow very memory
18107 # consuming and fragmenting process. To avoid this, we pick a random,
18108 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18109 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18110 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342 177280` -o $lib'
18111 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$son ame.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$sona me ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`e xpr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18112 ;;
18113
18114 gnu* | linux* | k*bsd*-gnu)
18115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18116 tmp_addflag=
18117 case $cc_basename,$host_cpu in
18118 pgcc*) # Portland Group C compiler
18119 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $conveni ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d one; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18120 tmp_addflag=' $pic_flag'
18121 ;;
18122 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18123 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $conveni ence\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; d one; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18124 tmp_addflag=' $pic_flag -Mnomain' ;;
18125 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18126 tmp_addflag=' -i_dynamic' ;;
18127 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18128 tmp_addflag=' -i_dynamic -nofor_main' ;;
18129 ifc* | ifort*) # Intel Fortran compiler
18130 tmp_addflag=' -nofor_main' ;;
18131 esac
18132 case `$CC -V 2>&1 | sed 5q` in
18133 *Sun\ C*) # Sun C 5.9
18134 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; fo r conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_conve nience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18135 tmp_sharedflag='-G' ;;
18136 *Sun\ F*) # Sun Fortran 8.3
18137 tmp_sharedflag='-G' ;;
18138 *)
18139 tmp_sharedflag='-shared' ;;
18140 esac
18141 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplib s $compiler_flags ${wl}-soname $wl$soname -o $lib'
18142
18143 if test $supports_anon_versioning = yes; then
18144 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.v er~
18145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18146 $echo "local: *; };" >> $output_objdir/$libname.ver~
18147 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flag s ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18148 fi
18149 else
18150 ld_shlibs_GCJ=no
18151 fi
18152 ;;
18153
18154 netbsd*)
18155 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18156 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $li b'
18157 wlarc=
18158 else
18159 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
18160 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18161 fi
18162 ;;
18163
18164 solaris*)
18165 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18166 ld_shlibs_GCJ=no
18167 cat <<EOF 1>&2
18168
18169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18170 *** create shared libraries on Solaris systems. Therefore, libtool
18171 *** is disabling shared libraries support. We urge you to upgrade GNU
18172 *** binutils to release 2.9.1 or newer. Another option is to modify
18173 *** your PATH or compiler configuration so that the native linker is
18174 *** used, and then restart.
18175
18176 EOF
18177 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18178 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
18179 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18180 else
18181 ld_shlibs_GCJ=no
18182 fi
18183 ;;
18184
18185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18186 case `$LD -v 2>&1` in
18187 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18188 ld_shlibs_GCJ=no
18189 cat <<_LT_EOF 1>&2
18190
18191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18192 *** reliably create shared libraries on SCO systems. Therefore, libtool
18193 *** is disabling shared libraries support. We urge you to upgrade GNU
18194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18195 *** your PATH or compiler configuration so that the native linker is
18196 *** used, and then restart.
18197
18198 _LT_EOF
18199 ;;
18200 *)
18201 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; th en
18202 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}- rpath,$libdir`'
18203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl }-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18204 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_fla gs ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$ export_symbols -o $lib'
18205 else
18206 ld_shlibs_GCJ=no
18207 fi
18208 ;;
18209 esac
18210 ;;
18211
18212 sunos4*)
18213 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $depl ibs $linker_flags'
18214 wlarc=
18215 hardcode_direct_GCJ=yes
18216 hardcode_shlibpath_var_GCJ=no
18217 ;;
18218
18219 *)
18220 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18221 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
18222 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18223 else
18224 ld_shlibs_GCJ=no
18225 fi
18226 ;;
18227 esac
18228
18229 if test "$ld_shlibs_GCJ" = no; then
18230 runpath_var=
18231 hardcode_libdir_flag_spec_GCJ=
18232 export_dynamic_flag_spec_GCJ=
18233 whole_archive_flag_spec_GCJ=
18234 fi
18235 else
18236 # PORTME fill in a description of your system's linker (not GNU ld)
18237 case $host_os in
18238 aix3*)
18239 allow_undefined_flag_GCJ=unsupported
18240 always_export_symbols_GCJ=yes
18241 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'
18242 # Note: this linker hardcodes the directories in LIBPATH if there
18243 # are no directories specified by -L.
18244 hardcode_minus_L_GCJ=yes
18245 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18246 # Neither direct hardcoding nor static linking is supported with a
18247 # broken collect2.
18248 hardcode_direct_GCJ=unsupported
18249 fi
18250 ;;
18251
18252 aix4* | aix5*)
18253 if test "$host_cpu" = ia64; then
18254 # On IA64, the linker does run time linking by default, so we don't
18255 # have to do anything special.
18256 aix_use_runtimelinking=no
18257 exp_sym_flag='-Bexport'
18258 no_entry_flag=""
18259 else
18260 # If we're using GNU nm, then we don't want the "-C" option.
18261 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18262 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18263 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'
18264 else
18265 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ i f (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18266 fi
18267 aix_use_runtimelinking=no
18268
18269 # Test if we are trying to use run time linking or normal
18270 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18271 # need to do runtime linking.
18272 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18273 for ld_flag in $LDFLAGS; do
18274 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18275 aix_use_runtimelinking=yes
18276 break
18277 fi
18278 done
18279 ;;
18280 esac
18281
18282 exp_sym_flag='-bexport'
18283 no_entry_flag='-bnoentry'
18284 fi
18285
18286 # When large executables or shared objects are built, AIX ld can
18287 # have problems creating the table of contents. If linking a library
18288 # or program results in "error TOC overflow" add -mminimal-toc to
18289 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18290 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18291
18292 archive_cmds_GCJ=''
18293 hardcode_direct_GCJ=yes
18294 hardcode_libdir_separator_GCJ=':'
18295 link_all_deplibs_GCJ=yes
18296
18297 if test "$GCC" = yes; then
18298 case $host_os in aix4.[012]|aix4.[012].*)
18299 # We only want to do this on AIX 4.2 and lower, the check
18300 # below for broken collect2 doesn't work under 4.3+
18301 collect2name=`${CC} -print-prog-name=collect2`
18302 if test -f "$collect2name" && \
18303 strings "$collect2name" | grep resolve_lib_name >/dev/null
18304 then
18305 # We have reworked collect2
18306 :
18307 else
18308 # We have old collect2
18309 hardcode_direct_GCJ=unsupported
18310 # It fails to find uninstalled libraries when the uninstalled
18311 # path is not listed in the libpath. Setting hardcode_minus_L
18312 # to unsupported forces relinking
18313 hardcode_minus_L_GCJ=yes
18314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18315 hardcode_libdir_separator_GCJ=
18316 fi
18317 ;;
18318 esac
18319 shared_flag='-shared'
18320 if test "$aix_use_runtimelinking" = yes; then
18321 shared_flag="$shared_flag "'${wl}-G'
18322 fi
18323 else
18324 # not using gcc
18325 if test "$host_cpu" = ia64; then
18326 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18327 # chokes on -Wl,-G. The following line is correct:
18328 shared_flag='-G'
18329 else
18330 if test "$aix_use_runtimelinking" = yes; then
18331 shared_flag='${wl}-G'
18332 else
18333 shared_flag='${wl}-bM:SRE'
18334 fi
18335 fi
18336 fi
18337
18338 # It seems that -bexpall does not export symbols beginning with
18339 # underscore (_), so it is better to generate a list of symbols to export.
18340 always_export_symbols_GCJ=yes
18341 if test "$aix_use_runtimelinking" = yes; then
18342 # Warning - without using the other runtime loading flags (-brtl),
18343 # -berok will link without error, but may produce a broken library.
18344 allow_undefined_flag_GCJ='-berok'
18345 # Determine the default libpath from the value encoded in an empty execut able.
18346 cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h. */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18352
18353 int
18354 main ()
18355 {
18356
18357 ;
18358 return 0;
18359 }
18360 _ACEOF
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366 esac
18367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18368 (eval "$ac_link") 2>conftest.er1
18369 ac_status=$?
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && {
18375 test -z "$ac_c_werror_flag" ||
18376 test ! -s conftest.err
18377 } && test -s conftest$ac_exeext &&
18378 $as_test_x conftest$ac_exeext; then
18379
18380 lt_aix_libpath_sed='
18381 /Import File Strings/,/^$/ {
18382 /^0/ {
18383 s/^0 *\(.*\)$/\1/
18384 p
18385 }
18386 }'
18387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
18388 # Check for a 64-bit object if we didn't find anything.
18389 if test -z "$aix_libpath"; then
18390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
18391 fi
18392 else
18393 echo "$as_me: failed program was:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18395
18396
18397 fi
18398
18399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18400 conftest$ac_exeext conftest.$ac_ext
18401 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18402
18403 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18404 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $depl ibs '"\${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"
18405 else
18406 if test "$host_cpu" = ia64; then
18407 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18408 allow_undefined_flag_GCJ="-z nodefs"
18409 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefin ed_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18410 else
18411 # Determine the default libpath from the value encoded in an empty exec utable.
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418
18419 int
18420 main ()
18421 {
18422
18423 ;
18424 return 0;
18425 }
18426 _ACEOF
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18432 esac
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18435 ac_status=$?
18436 grep -v '^ *+' conftest.er1 >conftest.err
18437 rm -f conftest.er1
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } && {
18441 test -z "$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 } && test -s conftest$ac_exeext &&
18444 $as_test_x conftest$ac_exeext; then
18445
18446 lt_aix_libpath_sed='
18447 /Import File Strings/,/^$/ {
18448 /^0/ {
18449 s/^0 *\(.*\)$/\1/
18450 p
18451 }
18452 }'
18453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
18454 # Check for a 64-bit object if we didn't find anything.
18455 if test -z "$aix_libpath"; then
18456 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
18457 fi
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462
18463 fi
18464
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18468
18469 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18470 # Warning - without using the other run time loading flags,
18471 # -berok will link without error, but may produce a broken library.
18472 no_undefined_flag_GCJ=' ${wl}-bernotok'
18473 allow_undefined_flag_GCJ=' ${wl}-berok'
18474 # Exported symbols can be pulled into shared objects from archives
18475 whole_archive_flag_spec_GCJ='$convenience'
18476 archive_cmds_need_lc_GCJ=yes
18477 # This is similar to how AIX traditionally builds its shared libraries .
18478 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allo w_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir /$soname'
18479 fi
18480 fi
18481 ;;
18482
18483 amigaos*)
18484 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $out put_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2i xlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.d ata~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary - 32)'
18485 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18486 hardcode_minus_L_GCJ=yes
18487 # see comment about different semantics on the GNU ld section
18488 ld_shlibs_GCJ=no
18489 ;;
18490
18491 bsdi[45]*)
18492 export_dynamic_flag_spec_GCJ=-rdynamic
18493 ;;
18494
18495 cygwin* | mingw* | pw32*)
18496 # When not using gcc, we currently assume that we are using
18497 # Microsoft Visual C++.
18498 # hardcode_libdir_flag_spec is actually meaningless, as there is
18499 # no search path for DLLs.
18500 hardcode_libdir_flag_spec_GCJ=' '
18501 allow_undefined_flag_GCJ=unsupported
18502 # Tell ltmain to make .lib files, not .a files.
18503 libext=lib
18504 # Tell ltmain to make .dll files, not .so files.
18505 shrext_cmds=".dll"
18506 # FIXME: Setting linknames here is a bad hack.
18507 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18508 # The linker will automatically build a .lib file if we build a DLL.
18509 old_archive_From_new_cmds_GCJ='true'
18510 # FIXME: Should let the user specify the lib program.
18511 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18512 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18513 enable_shared_with_static_runtimes_GCJ=yes
18514 ;;
18515
18516 darwin* | rhapsody*)
18517 case $host_os in
18518 rhapsody* | darwin1.[012])
18519 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18520 ;;
18521 *) # Darwin 1.3 on
18522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18523 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}s uppress'
18524 else
18525 case ${MACOSX_DEPLOYMENT_TARGET} in
18526 10.[012])
18527 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${ wl}suppress'
18528 ;;
18529 10.*)
18530 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18531 ;;
18532 esac
18533 fi
18534 ;;
18535 esac
18536 archive_cmds_need_lc_GCJ=no
18537 hardcode_direct_GCJ=no
18538 hardcode_automatic_GCJ=yes
18539 hardcode_shlibpath_var_GCJ=unsupported
18540 whole_archive_flag_spec_GCJ=''
18541 link_all_deplibs_GCJ=yes
18542 if test "$GCC" = yes ; then
18543 output_verbose_link_cmd='echo'
18544 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18545 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $depli bs$compiler_flags'
18546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't e xist in older darwin lds
18547 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\) ,_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamicl ib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${ lib}'
18548 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\), _&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_und efined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_ objdir/${libname}-symbols.expsym ${lib}'
18549 else
18550 case $cc_basename in
18551 xlc*)
18552 output_verbose_link_cmd='echo'
18553 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcvers tring'
18554 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $de plibs$compiler_flags'
18555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn 't exist in older darwin lds
18556 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(.. *\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmksh robj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-insta ll_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-sy mbols.expsym ${lib}'
18557 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 $out put_objdir/${libname}-symbols.expsym ${lib}'
18558 ;;
18559 *)
18560 ld_shlibs_GCJ=no
18561 ;;
18562 esac
18563 fi
18564 ;;
18565
18566 dgux*)
18567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
18568 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18569 hardcode_shlibpath_var_GCJ=no
18570 ;;
18571
18572 freebsd1*)
18573 ld_shlibs_GCJ=no
18574 ;;
18575
18576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18577 # support. Future versions do this automatically, but an explicit c++rt0.o
18578 # does not break anything, and helps significantly (at the cost of a little
18579 # extra space).
18580 freebsd2.2*)
18581 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18582 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18583 hardcode_direct_GCJ=yes
18584 hardcode_shlibpath_var_GCJ=no
18585 ;;
18586
18587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18588 freebsd2*)
18589 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18590 hardcode_direct_GCJ=yes
18591 hardcode_minus_L_GCJ=yes
18592 hardcode_shlibpath_var_GCJ=no
18593 ;;
18594
18595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18596 freebsd* | dragonfly*)
18597 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18598 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18599 hardcode_direct_GCJ=yes
18600 hardcode_shlibpath_var_GCJ=no
18601 ;;
18602
18603 hpux9*)
18604 if test "$GCC" = yes; then
18605 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'
18606 else
18607 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir - o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$so name = $lib || mv $output_objdir/$soname $lib'
18608 fi
18609 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18610 hardcode_libdir_separator_GCJ=:
18611 hardcode_direct_GCJ=yes
18612
18613 # hardcode_minus_L: Not really in the search PATH,
18614 # but as the default location of the library.
18615 hardcode_minus_L_GCJ=yes
18616 export_dynamic_flag_spec_GCJ='${wl}-E'
18617 ;;
18618
18619 hpux10*)
18620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$i nstall_libdir -o $lib $libobjs $deplibs $compiler_flags'
18622 else
18623 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18624 fi
18625 if test "$with_gnu_ld" = no; then
18626 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18627 hardcode_libdir_separator_GCJ=:
18628
18629 hardcode_direct_GCJ=yes
18630 export_dynamic_flag_spec_GCJ='${wl}-E'
18631
18632 # hardcode_minus_L: Not really in the search PATH,
18633 # but as the default location of the library.
18634 hardcode_minus_L_GCJ=yes
18635 fi
18636 ;;
18637
18638 hpux11*)
18639 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18640 case $host_cpu in
18641 hppa*64*)
18642 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $d eplibs $compiler_flags'
18643 ;;
18644 ia64*)
18645 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpat h -o $lib $libobjs $deplibs $compiler_flags'
18646 ;;
18647 *)
18648 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl} $install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18649 ;;
18650 esac
18651 else
18652 case $host_cpu in
18653 hppa*64*)
18654 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplib s $compiler_flags'
18655 ;;
18656 ia64*)
18657 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18658 ;;
18659 *)
18660 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_li bdir -o $lib $libobjs $deplibs $compiler_flags'
18661 ;;
18662 esac
18663 fi
18664 if test "$with_gnu_ld" = no; then
18665 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18666 hardcode_libdir_separator_GCJ=:
18667
18668 case $host_cpu in
18669 hppa*64*|ia64*)
18670 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18671 hardcode_direct_GCJ=no
18672 hardcode_shlibpath_var_GCJ=no
18673 ;;
18674 *)
18675 hardcode_direct_GCJ=yes
18676 export_dynamic_flag_spec_GCJ='${wl}-E'
18677
18678 # hardcode_minus_L: Not really in the search PATH,
18679 # but as the default location of the library.
18680 hardcode_minus_L_GCJ=yes
18681 ;;
18682 esac
18683 fi
18684 ;;
18685
18686 irix5* | irix6* | nonstopux*)
18687 if test "$GCC" = yes; then
18688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstrin g` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18689 else
18690 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $s oname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${ output_objdir}/so_locations -o $lib'
18691 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18692 fi
18693 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18694 hardcode_libdir_separator_GCJ=:
18695 link_all_deplibs_GCJ=yes
18696 ;;
18697
18698 netbsd*)
18699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18700 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flag s' # a.out
18701 else
18702 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18703 fi
18704 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18705 hardcode_direct_GCJ=yes
18706 hardcode_shlibpath_var_GCJ=no
18707 ;;
18708
18709 newsos6)
18710 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
18711 hardcode_direct_GCJ=yes
18712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18713 hardcode_libdir_separator_GCJ=:
18714 hardcode_shlibpath_var_GCJ=no
18715 ;;
18716
18717 openbsd*)
18718 if test -f /usr/libexec/ld.so; then
18719 hardcode_direct_GCJ=yes
18720 hardcode_shlibpath_var_GCJ=no
18721 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os- $host_cpu" = "openbsd2.8-powerpc"; then
18722 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $com piler_flags'
18723 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $depli bs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18725 export_dynamic_flag_spec_GCJ='${wl}-E'
18726 else
18727 case $host_os in
18728 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18729 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker _flags'
18730 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18731 ;;
18732 *)
18733 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags'
18734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18735 ;;
18736 esac
18737 fi
18738 else
18739 ld_shlibs_GCJ=no
18740 fi
18741 ;;
18742
18743 os2*)
18744 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18745 hardcode_minus_L_GCJ=yes
18746 allow_undefined_flag_GCJ=unsupported
18747 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$ libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ech o DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdi r/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $ output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compile r_flags $output_objdir/$libname.def'
18748 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output _objdir/$libname.def'
18749 ;;
18750
18751 osf3*)
18752 if test "$GCC" = yes; then
18753 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18754 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_locatio ns -o $lib'
18755 else
18756 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18757 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $ linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstri ng` -update_registry ${output_objdir}/so_locations -o $lib'
18758 fi
18759 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18760 hardcode_libdir_separator_GCJ=:
18761 ;;
18762
18763 osf4* | osf5*) # as osf3* with the addition of -msym flag
18764 if test "$GCC" = yes; then
18765 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18766 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $ compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && ech o ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir} /so_locations -o $lib'
18767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18768 else
18769 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18770 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $ linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $v erstring` -update_registry ${output_objdir}/so_locations -o $lib'
18771 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~
18772 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobj s $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring ` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18773
18774 # Both c and cxx compiler support -rpath directly
18775 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18776 fi
18777 hardcode_libdir_separator_GCJ=:
18778 ;;
18779
18780 solaris*)
18781 no_undefined_flag_GCJ=' -z text'
18782 if test "$GCC" = yes; then
18783 wlarc='${wl}'
18784 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $dep libs $compiler_flags'
18785 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbol s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18786 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobj s $deplibs $compiler_flags~$rm $lib.exp'
18787 else
18788 wlarc=''
18789 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libo bjs $deplibs $linker_flags'
18790 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbol s | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18791 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $d eplibs $linker_flags~$rm $lib.exp'
18792 fi
18793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18794 hardcode_shlibpath_var_GCJ=no
18795 case $host_os in
18796 solaris2.[0-5] | solaris2.[0-5].*) ;;
18797 *)
18798 # The compiler driver will combine and reorder linker options,
18799 # but understands `-z linker_flag'. GCC discards it without `$wl',
18800 # but is careful enough not to reorder.
18801 # Supported since Solaris 2.6 (maybe 2.5.1?)
18802 if test "$GCC" = yes; then
18803 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl} -z ${wl}defaultextract'
18804 else
18805 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextra ct'
18806 fi
18807 ;;
18808 esac
18809 link_all_deplibs_GCJ=yes
18810 ;;
18811
18812 sunos4*)
18813 if test "x$host_vendor" = xsequent; then
18814 # Use $CC to link under sequent, because it throws in some extra .o
18815 # files that make .init and .fini sections work.
18816 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $comp iler_flags'
18817 else
18818 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $depli bs $linker_flags'
18819 fi
18820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18821 hardcode_direct_GCJ=yes
18822 hardcode_minus_L_GCJ=yes
18823 hardcode_shlibpath_var_GCJ=no
18824 ;;
18825
18826 sysv4)
18827 case $host_vendor in
18828 sni)
18829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_ flags'
18830 hardcode_direct_GCJ=yes # is this really true???
18831 ;;
18832 siemens)
18833 ## LD is ld it makes a PLAMLIB
18834 ## CC just makes a GrossModule.
18835 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18836 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18837 hardcode_direct_GCJ=no
18838 ;;
18839 motorola)
18840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_ flags'
18841 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say the y lie
18842 ;;
18843 esac
18844 runpath_var='LD_RUN_PATH'
18845 hardcode_shlibpath_var_GCJ=no
18846 ;;
18847
18848 sysv4.3*)
18849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
18850 hardcode_shlibpath_var_GCJ=no
18851 export_dynamic_flag_spec_GCJ='-Bexport'
18852 ;;
18853
18854 sysv4*MP*)
18855 if test -d /usr/nec; then
18856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_fl ags'
18857 hardcode_shlibpath_var_GCJ=no
18858 runpath_var=LD_RUN_PATH
18859 hardcode_runpath_var=yes
18860 ld_shlibs_GCJ=yes
18861 fi
18862 ;;
18863
18864 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
18865 no_undefined_flag_GCJ='${wl}-z,text'
18866 archive_cmds_need_lc_GCJ=no
18867 hardcode_shlibpath_var_GCJ=no
18868 runpath_var='LD_RUN_PATH'
18869
18870 if test "$GCC" = yes; then
18871 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18872 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl} -h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873 else
18874 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $comp iler_flags'
18875 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$s oname -o $lib $libobjs $deplibs $compiler_flags'
18876 fi
18877 ;;
18878
18879 sysv5* | sco3.2v5* | sco5v6*)
18880 # Note: We can NOT use -z defs as we might desire, because we do not
18881 # link with -lc, and that would cause any symbols used from libc to
18882 # always be unresolved, which means just about no library would
18883 # ever link correctly. If we're not using GNU ld we use -z text
18884 # though, which does catch some bad symbols but isn't as heavy-handed
18885 # as -z defs.
18886 no_undefined_flag_GCJ='${wl}-z,text'
18887 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18888 archive_cmds_need_lc_GCJ=no
18889 hardcode_shlibpath_var_GCJ=no
18890 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$lib dir`'
18891 hardcode_libdir_separator_GCJ=':'
18892 link_all_deplibs_GCJ=yes
18893 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18894 runpath_var='LD_RUN_PATH'
18895
18896 if test "$GCC" = yes; then
18897 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/} $soname -o $lib $libobjs $deplibs $compiler_flags'
18898 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl} -h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler _flags'
18899 else
18900 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$sona me -o $lib $libobjs $deplibs $compiler_flags'
18901 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\$ {SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flag s'
18902 fi
18903 ;;
18904
18905 uts4*)
18906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
18907 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18908 hardcode_shlibpath_var_GCJ=no
18909 ;;
18910
18911 *)
18912 ld_shlibs_GCJ=no
18913 ;;
18914 esac
18915 fi
18916
18917 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18918 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18919 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18920
18921 #
18922 # Do we need to explicitly link libc?
18923 #
18924 case "x$archive_cmds_need_lc_GCJ" in
18925 x|xyes)
18926 # Assume -lc should be added
18927 archive_cmds_need_lc_GCJ=yes
18928
18929 if test "$enable_shared" = yes && test "$GCC" = yes; then
18930 case $archive_cmds_GCJ in
18931 *'~'*)
18932 # FIXME: we may have to deal with multi-command sequences.
18933 ;;
18934 '$CC '*)
18935 # Test whether the compiler implicitly links with -lc since on some
18936 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18937 # to ld, don't add -lc before -lgcc.
18938 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked i n" >&5
18939 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& 6; }
18940 $rm conftest*
18941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18942
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944 (eval $ac_compile) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); } 2>conftest.err; then
18948 soname=conftest
18949 lib=conftest
18950 libobjs=conftest.$ac_objext
18951 deplibs=
18952 wl=$lt_prog_compiler_wl_GCJ
18953 pic_flag=$lt_prog_compiler_pic_GCJ
18954 compiler_flags=-v
18955 linker_flags=-v
18956 verstring=
18957 output_objdir=.
18958 libname=conftest
18959 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18960 allow_undefined_flag_GCJ=
18961 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" - lc \" \>/dev/null 2\>\&1\"") >&5
18962 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }
18966 then
18967 archive_cmds_need_lc_GCJ=no
18968 else
18969 archive_cmds_need_lc_GCJ=yes
18970 fi
18971 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18972 else
18973 cat conftest.err 1>&5
18974 fi
18975 $rm conftest*
18976 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18977 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18978 ;;
18979 esac
18980 fi
18981 ;;
18982 esac
18983
18984 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18985 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18986 library_names_spec=
18987 libname_spec='lib$name'
18988 soname_spec=
18989 shrext_cmds=".so"
18990 postinstall_cmds=
18991 postuninstall_cmds=
18992 finish_cmds=
18993 finish_eval=
18994 shlibpath_var=
18995 shlibpath_overrides_runpath=unknown
18996 version_type=none
18997 dynamic_linker="$host_os ld.so"
18998 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18999
19000 need_lib_prefix=unknown
19001 hardcode_into_libs=no
19002
19003 # when you set need_version to no, make sure it does not cause -set_version
19004 # flags to be left without arguments
19005 need_version=unknown
19006
19007 case $host_os in
19008 aix3*)
19009 version_type=linux
19010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19011 shlibpath_var=LIBPATH
19012
19013 # AIX 3 has no versioning support, so we append a major version to the name.
19014 soname_spec='${libname}${release}${shared_ext}$major'
19015 ;;
19016
19017 aix4* | aix5*)
19018 version_type=linux
19019 need_lib_prefix=no
19020 need_version=no
19021 hardcode_into_libs=yes
19022 if test "$host_cpu" = ia64; then
19023 # AIX 5 supports IA64
19024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
19025 shlibpath_var=LD_LIBRARY_PATH
19026 else
19027 # With GCC up to 2.95.x, collect2 would create an import file
19028 # for dependence libraries. The import file would start with
19029 # the line `#! .'. This would cause the generated library to
19030 # depend on `.', always an invalid library. This was fixed in
19031 # development snapshots of GCC prior to 3.0.
19032 case $host_os in
19033 aix4 | aix4.[01] | aix4.[01].*)
19034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19035 echo ' yes '
19036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19037 :
19038 else
19039 can_build_shared=no
19040 fi
19041 ;;
19042 esac
19043 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
19044 # soname into executable. Probably we can add versioning support to
19045 # collect2, so additional links can be useful in future.
19046 if test "$aix_use_runtimelinking" = yes; then
19047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19048 # instead of lib<name>.a to let people know that these are not
19049 # typical AIX shared libraries.
19050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
19051 else
19052 # We preserve .a as extension for shared libraries through AIX4.2
19053 # and later when we are not doing run time linking.
19054 library_names_spec='${libname}${release}.a $libname.a'
19055 soname_spec='${libname}${release}${shared_ext}$major'
19056 fi
19057 shlibpath_var=LIBPATH
19058 fi
19059 ;;
19060
19061 amigaos*)
19062 library_names_spec='$libname.ixlibrary $libname.a'
19063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19064 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ech o "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/lib s/${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'
19065 ;;
19066
19067 beos*)
19068 library_names_spec='${libname}${shared_ext}'
19069 dynamic_linker="$host_os ld.so"
19070 shlibpath_var=LIBRARY_PATH
19071 ;;
19072
19073 bsdi[45]*)
19074 version_type=linux
19075 need_version=no
19076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19077 soname_spec='${libname}${release}${shared_ext}$major'
19078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19079 shlibpath_var=LD_LIBRARY_PATH
19080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
19081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19082 # the default ld.so.conf also contains /usr/contrib/lib and
19083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19084 # libtool to hard-code these into programs
19085 ;;
19086
19087 cygwin* | mingw* | pw32*)
19088 version_type=windows
19089 shrext_cmds=".dll"
19090 need_version=no
19091 need_lib_prefix=no
19092
19093 case $GCC,$host_os in
19094 yes,cygwin* | yes,mingw* | yes,pw32*)
19095 library_names_spec='$libname.dll.a'
19096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19097 postinstall_cmds='base_file=`basename \${file}`~
19098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\'' `~
19099 dldir=$destdir/`dirname \$dlpath`~
19100 test -d \$dldir || mkdir -p \$dldir~
19101 $install_prog $dir/$dlname \$dldir/$dlname~
19102 chmod a+x \$dldir/$dlname'
19103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19104 dlpath=$dir/\$dldll~
19105 $rm \$dlpath'
19106 shlibpath_overrides_runpath=yes
19107
19108 case $host_os in
19109 cygwin*)
19110 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19111 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19112 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19113 ;;
19114 mingw*)
19115 # MinGW DLLs use traditional 'lib' prefix
19116 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
19117 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $S ED -e "s/^libraries://" -e "s,=/,/,g"`
19118 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19119 # It is most probably a Windows format PATH printed by
19120 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19121 # path with ; separators, and with drive letters. We can handle the
19122 # drive letters (cygwin fileutils understands them), so leave them,
19123 # especially as we might pass files found there to a mingw objdump,
19124 # which wouldn't understand a cygwinified path. Ahh.
19125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/ ;/ /g'`
19126 else
19127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s /$PATH_SEPARATOR/ /g"`
19128 fi
19129 ;;
19130 pw32*)
19131 # pw32 DLLs use 'pw' prefix rather than 'lib'
19132 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19133 ;;
19134 esac
19135 ;;
19136
19137 *)
19138 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
19139 ;;
19140 esac
19141 dynamic_linker='Win32 ld.exe'
19142 # FIXME: first we should search . and the directory the executable is in
19143 shlibpath_var=PATH
19144 ;;
19145
19146 darwin* | rhapsody*)
19147 dynamic_linker="$host_os dyld"
19148 version_type=darwin
19149 need_lib_prefix=no
19150 need_version=no
19151 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${re lease}${major}$shared_ext ${libname}$shared_ext'
19152 soname_spec='${libname}${release}${major}$shared_ext'
19153 shlibpath_overrides_runpath=yes
19154 shlibpath_var=DYLD_LIBRARY_PATH
19155 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19156
19157 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19158 ;;
19159
19160 dgux*)
19161 version_type=linux
19162 need_lib_prefix=no
19163 need_version=no
19164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
19165 soname_spec='${libname}${release}${shared_ext}$major'
19166 shlibpath_var=LD_LIBRARY_PATH
19167 ;;
19168
19169 freebsd1*)
19170 dynamic_linker=no
19171 ;;
19172
19173 freebsd* | dragonfly*)
19174 # DragonFly does not have aout. When/if they implement a new
19175 # versioning mechanism, adjust this.
19176 if test -x /usr/bin/objformat; then
19177 objformat=`/usr/bin/objformat`
19178 else
19179 case $host_os in
19180 freebsd[123]*) objformat=aout ;;
19181 *) objformat=elf ;;
19182 esac
19183 fi
19184 version_type=freebsd-$objformat
19185 case $version_type in
19186 freebsd-elf*)
19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
19188 need_version=no
19189 need_lib_prefix=no
19190 ;;
19191 freebsd-*)
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
19193 need_version=yes
19194 ;;
19195 esac
19196 shlibpath_var=LD_LIBRARY_PATH
19197 case $host_os in
19198 freebsd2*)
19199 shlibpath_overrides_runpath=yes
19200 ;;
19201 freebsd3.[01]* | freebsdelf3.[01]*)
19202 shlibpath_overrides_runpath=yes
19203 hardcode_into_libs=yes
19204 ;;
19205 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19206 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19207 shlibpath_overrides_runpath=no
19208 hardcode_into_libs=yes
19209 ;;
19210 *) # from 4.6 on, and DragonFly
19211 shlibpath_overrides_runpath=yes
19212 hardcode_into_libs=yes
19213 ;;
19214 esac
19215 ;;
19216
19217 gnu*)
19218 version_type=linux
19219 need_lib_prefix=no
19220 need_version=no
19221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
19222 soname_spec='${libname}${release}${shared_ext}$major'
19223 shlibpath_var=LD_LIBRARY_PATH
19224 hardcode_into_libs=yes
19225 ;;
19226
19227 hpux9* | hpux10* | hpux11*)
19228 # Give a soname corresponding to the major version so that dld.sl refuses to
19229 # link against other versions.
19230 version_type=sunos
19231 need_lib_prefix=no
19232 need_version=no
19233 case $host_cpu in
19234 ia64*)
19235 shrext_cmds='.so'
19236 hardcode_into_libs=yes
19237 dynamic_linker="$host_os dld.so"
19238 shlibpath_var=LD_LIBRARY_PATH
19239 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
19241 soname_spec='${libname}${release}${shared_ext}$major'
19242 if test "X$HPUX_IA64_MODE" = X32; then
19243 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
19244 else
19245 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19246 fi
19247 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19248 ;;
19249 hppa*64*)
19250 shrext_cmds='.sl'
19251 hardcode_into_libs=yes
19252 dynamic_linker="$host_os dld.sl"
19253 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19254 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}$ {release}${shared_ext}$major $libname${shared_ext}'
19256 soname_spec='${libname}${release}${shared_ext}$major'
19257 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19259 ;;
19260 *)
19261 shrext_cmds='.sl'
19262 dynamic_linker="$host_os dld.sl"
19263 shlibpath_var=SHLIB_PATH
19264 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 ;;
19268 esac
19269 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19270 postinstall_cmds='chmod 555 $lib'
19271 ;;
19272
19273 interix[3-9]*)
19274 version_type=linux
19275 need_lib_prefix=no
19276 need_version=no
19277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
19278 soname_spec='${libname}${release}${shared_ext}$major'
19279 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19280 shlibpath_var=LD_LIBRARY_PATH
19281 shlibpath_overrides_runpath=no
19282 hardcode_into_libs=yes
19283 ;;
19284
19285 irix5* | irix6* | nonstopux*)
19286 case $host_os in
19287 nonstopux*) version_type=nonstopux ;;
19288 *)
19289 if test "$lt_cv_prog_gnu_ld" = yes; then
19290 version_type=linux
19291 else
19292 version_type=irix
19293 fi ;;
19294 esac
19295 need_lib_prefix=no
19296 need_version=no
19297 soname_spec='${libname}${release}${shared_ext}$major'
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
19299 case $host_os in
19300 irix5* | nonstopux*)
19301 libsuff= shlibsuff=
19302 ;;
19303 *)
19304 case $LD in # libtool.m4 will add one of these switches to LD
19305 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19306 libsuff= shlibsuff= libmagic=32-bit;;
19307 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19308 libsuff=32 shlibsuff=N32 libmagic=N32;;
19309 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19310 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19311 *) libsuff= shlibsuff= libmagic=never-match;;
19312 esac
19313 ;;
19314 esac
19315 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19316 shlibpath_overrides_runpath=no
19317 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
19318 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19319 hardcode_into_libs=yes
19320 ;;
19321
19322 # No shared lib support for Linux oldld, aout, or coff.
19323 linux*oldld* | linux*aout* | linux*coff*)
19324 dynamic_linker=no
19325 ;;
19326
19327 # This must be Linux ELF.
19328 linux* | k*bsd*-gnu)
19329 version_type=linux
19330 need_lib_prefix=no
19331 need_version=no
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19335 shlibpath_var=LD_LIBRARY_PATH
19336 shlibpath_overrides_runpath=no
19337 # This implies no fast_install, which is unacceptable.
19338 # Some rework will be needed to allow for fast_install
19339 # before this can be enabled.
19340 hardcode_into_libs=yes
19341 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
19342 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19343
19344 # Append ld.so.conf contents to the search path
19345 if test -f /etc/ld.so.conf; then
19346 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 | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19347 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19348 fi
19349
19350 # We used to test for /lib/ld.so.1 and disable shared libraries on
19351 # powerpc, because MkLinux only supported shared libraries with the
19352 # GNU dynamic linker. Since this was broken with cross compilers,
19353 # most powerpc-linux boxes support dynamic linking these days and
19354 # people can always --disable-shared, the test was removed, and we
19355 # assume the GNU/Linux dynamic linker is in use.
19356 dynamic_linker='GNU/Linux ld.so'
19357 ;;
19358
19359 netbsd*)
19360 version_type=sunos
19361 need_lib_prefix=no
19362 need_version=no
19363 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
19365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19366 dynamic_linker='NetBSD (a.out) ld.so'
19367 else
19368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
19369 soname_spec='${libname}${release}${shared_ext}$major'
19370 dynamic_linker='NetBSD ld.elf_so'
19371 fi
19372 shlibpath_var=LD_LIBRARY_PATH
19373 shlibpath_overrides_runpath=yes
19374 hardcode_into_libs=yes
19375 ;;
19376
19377 newsos6)
19378 version_type=linux
19379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19380 shlibpath_var=LD_LIBRARY_PATH
19381 shlibpath_overrides_runpath=yes
19382 ;;
19383
19384 nto-qnx*)
19385 version_type=linux
19386 need_lib_prefix=no
19387 need_version=no
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19389 soname_spec='${libname}${release}${shared_ext}$major'
19390 shlibpath_var=LD_LIBRARY_PATH
19391 shlibpath_overrides_runpath=yes
19392 ;;
19393
19394 openbsd*)
19395 version_type=sunos
19396 sys_lib_dlsearch_path_spec="/usr/lib"
19397 need_lib_prefix=no
19398 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19399 case $host_os in
19400 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19401 *) need_version=no ;;
19402 esac
19403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
19404 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19405 shlibpath_var=LD_LIBRARY_PATH
19406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_ cpu" = "openbsd2.8-powerpc"; then
19407 case $host_os in
19408 openbsd2.[89] | openbsd2.[89].*)
19409 shlibpath_overrides_runpath=no
19410 ;;
19411 *)
19412 shlibpath_overrides_runpath=yes
19413 ;;
19414 esac
19415 else
19416 shlibpath_overrides_runpath=yes
19417 fi
19418 ;;
19419
19420 os2*)
19421 libname_spec='$name'
19422 shrext_cmds=".dll"
19423 need_lib_prefix=no
19424 library_names_spec='$libname${shared_ext} $libname.a'
19425 dynamic_linker='OS/2 ld.exe'
19426 shlibpath_var=LIBPATH
19427 ;;
19428
19429 osf3* | osf4* | osf5*)
19430 version_type=osf
19431 need_lib_prefix=no
19432 need_version=no
19433 soname_spec='${libname}${release}${shared_ext}$major'
19434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19435 shlibpath_var=LD_LIBRARY_PATH
19436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19437 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19438 ;;
19439
19440 rdos*)
19441 dynamic_linker=no
19442 ;;
19443
19444 solaris*)
19445 version_type=linux
19446 need_lib_prefix=no
19447 need_version=no
19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19449 soname_spec='${libname}${release}${shared_ext}$major'
19450 shlibpath_var=LD_LIBRARY_PATH
19451 shlibpath_overrides_runpath=yes
19452 hardcode_into_libs=yes
19453 # ldd complains unless libraries are executable
19454 postinstall_cmds='chmod +x $lib'
19455 ;;
19456
19457 sunos4*)
19458 version_type=sunos
19459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
19460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19461 shlibpath_var=LD_LIBRARY_PATH
19462 shlibpath_overrides_runpath=yes
19463 if test "$with_gnu_ld" = yes; then
19464 need_lib_prefix=no
19465 fi
19466 need_version=yes
19467 ;;
19468
19469 sysv4 | sysv4.3*)
19470 version_type=linux
19471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19472 soname_spec='${libname}${release}${shared_ext}$major'
19473 shlibpath_var=LD_LIBRARY_PATH
19474 case $host_vendor in
19475 sni)
19476 shlibpath_overrides_runpath=no
19477 need_lib_prefix=no
19478 export_dynamic_flag_spec='${wl}-Blargedynsym'
19479 runpath_var=LD_RUN_PATH
19480 ;;
19481 siemens)
19482 need_lib_prefix=no
19483 ;;
19484 motorola)
19485 need_lib_prefix=no
19486 need_version=no
19487 shlibpath_overrides_runpath=no
19488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19489 ;;
19490 esac
19491 ;;
19492
19493 sysv4*MP*)
19494 if test -d /usr/nec ;then
19495 version_type=linux
19496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
19497 soname_spec='$libname${shared_ext}.$major'
19498 shlibpath_var=LD_LIBRARY_PATH
19499 fi
19500 ;;
19501
19502 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19503 version_type=freebsd-elf
19504 need_lib_prefix=no
19505 need_version=no
19506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
19507 soname_spec='${libname}${release}${shared_ext}$major'
19508 shlibpath_var=LD_LIBRARY_PATH
19509 hardcode_into_libs=yes
19510 if test "$with_gnu_ld" = yes; then
19511 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19512 shlibpath_overrides_runpath=no
19513 else
19514 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19515 shlibpath_overrides_runpath=yes
19516 case $host_os in
19517 sco3.2v5*)
19518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19519 ;;
19520 esac
19521 fi
19522 sys_lib_dlsearch_path_spec='/usr/lib'
19523 ;;
19524
19525 uts4*)
19526 version_type=linux
19527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
19528 soname_spec='${libname}${release}${shared_ext}$major'
19529 shlibpath_var=LD_LIBRARY_PATH
19530 ;;
19531
19532 *)
19533 dynamic_linker=no
19534 ;;
19535 esac
19536 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19537 echo "${ECHO_T}$dynamic_linker" >&6; }
19538 test "$dynamic_linker" = no && can_build_shared=no
19539
19540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19541 if test "$GCC" = yes; then
19542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
19543 fi
19544
19545 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >& 5
19546 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" > &6; }
19547 hardcode_action_GCJ=
19548 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19549 test -n "$runpath_var_GCJ" || \
19550 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19551
19552 # We can hardcode non-existant directories.
19553 if test "$hardcode_direct_GCJ" != no &&
19554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19555 # have to relink, otherwise we might link with an installed library
19556 # when we should be linking with a yet-to-be-installed one
19557 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19558 test "$hardcode_minus_L_GCJ" != no; then
19559 # Linking always hardcodes the temporary library directory.
19560 hardcode_action_GCJ=relink
19561 else
19562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19563 hardcode_action_GCJ=immediate
19564 fi
19565 else
19566 # We cannot hardcode anything, or else we can only hardcode existing
19567 # directories.
19568 hardcode_action_GCJ=unsupported
19569 fi
19570 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19571 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19572
19573 if test "$hardcode_action_GCJ" = relink; then
19574 # Fast installation is not supported
19575 enable_fast_install=no
19576 elif test "$shlibpath_overrides_runpath" = yes ||
19577 test "$enable_shared" = no; then
19578 # Fast installation is not necessary
19579 enable_fast_install=needless
19580 fi
19581
19582
19583 # The else clause should only fire when bootstrapping the
19584 # libtool distribution, otherwise you forgot to ship ltmain.sh
19585 # with your package, and you will get complaints that there are
19586 # no rules to generate ltmain.sh.
19587 if test -f "$ltmain"; then
19588 # See if we are running on zsh, and set the options which allow our commands t hrough
19589 # without removal of \ escapes.
19590 if test -n "${ZSH_VERSION+set}" ; then
19591 setopt NO_GLOB_SUBST
19592 fi
19593 # Now quote all the things that may contain metacharacters while being
19594 # careful not to overquote the AC_SUBSTed values. We take copies of the
19595 # variables and quote the copies for generation of the libtool script.
19596 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19597 SED SHELL STRIP \
19598 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19599 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19600 deplibs_check_method reload_flag reload_cmds need_locks \
19601 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19602 lt_cv_sys_global_symbol_to_c_name_address \
19603 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19604 old_postinstall_cmds old_postuninstall_cmds \
19605 compiler_GCJ \
19606 CC_GCJ \
19607 LD_GCJ \
19608 lt_prog_compiler_wl_GCJ \
19609 lt_prog_compiler_pic_GCJ \
19610 lt_prog_compiler_static_GCJ \
19611 lt_prog_compiler_no_builtin_flag_GCJ \
19612 export_dynamic_flag_spec_GCJ \
19613 thread_safe_flag_spec_GCJ \
19614 whole_archive_flag_spec_GCJ \
19615 enable_shared_with_static_runtimes_GCJ \
19616 old_archive_cmds_GCJ \
19617 old_archive_from_new_cmds_GCJ \
19618 predep_objects_GCJ \
19619 postdep_objects_GCJ \
19620 predeps_GCJ \
19621 postdeps_GCJ \
19622 compiler_lib_search_path_GCJ \
19623 archive_cmds_GCJ \
19624 archive_expsym_cmds_GCJ \
19625 postinstall_cmds_GCJ \
19626 postuninstall_cmds_GCJ \
19627 old_archive_from_expsyms_cmds_GCJ \
19628 allow_undefined_flag_GCJ \
19629 no_undefined_flag_GCJ \
19630 export_symbols_cmds_GCJ \
19631 hardcode_libdir_flag_spec_GCJ \
19632 hardcode_libdir_flag_spec_ld_GCJ \
19633 hardcode_libdir_separator_GCJ \
19634 hardcode_automatic_GCJ \
19635 module_cmds_GCJ \
19636 module_expsym_cmds_GCJ \
19637 lt_cv_prog_compiler_c_o_GCJ \
19638 fix_srcfile_path_GCJ \
19639 exclude_expsyms_GCJ \
19640 include_expsyms_GCJ; do
19641
19642 case $var in
19643 old_archive_cmds_GCJ | \
19644 old_archive_from_new_cmds_GCJ | \
19645 archive_cmds_GCJ | \
19646 archive_expsym_cmds_GCJ | \
19647 module_cmds_GCJ | \
19648 module_expsym_cmds_GCJ | \
19649 old_archive_from_expsyms_cmds_GCJ | \
19650 export_symbols_cmds_GCJ | \
19651 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19652 postinstall_cmds | postuninstall_cmds | \
19653 old_postinstall_cmds | old_postuninstall_cmds | \
19654 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19655 # Double-quote double-evaled strings.
19656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\ " -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19657 ;;
19658 *)
19659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\` \\\""
19660 ;;
19661 esac
19662 done
19663
19664 case $lt_echo in
19665 *'\$0 --fallback-echo"')
19666 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa llback-echo"/'`
19667 ;;
19668 esac
19669
19670 cfgfile="$ofile"
19671
19672 cat <<__EOF__ >> "$cfgfile"
19673 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19674
19675 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19676
19677 # Shell to use when invoking shell scripts.
19678 SHELL=$lt_SHELL
19679
19680 # Whether or not to build shared libraries.
19681 build_libtool_libs=$enable_shared
19682
19683 # Whether or not to build static libraries.
19684 build_old_libs=$enable_static
19685
19686 # Whether or not to add -lc for building shared libraries.
19687 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19688
19689 # Whether or not to disallow shared libs when runtime libs are static
19690 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19691
19692 # Whether or not to optimize for fast installation.
19693 fast_install=$enable_fast_install
19694
19695 # The host system.
19696 host_alias=$host_alias
19697 host=$host
19698 host_os=$host_os
19699
19700 # The build system.
19701 build_alias=$build_alias
19702 build=$build
19703 build_os=$build_os
19704
19705 # An echo program that does not interpret backslashes.
19706 echo=$lt_echo
19707
19708 # The archiver.
19709 AR=$lt_AR
19710 AR_FLAGS=$lt_AR_FLAGS
19711
19712 # A C compiler.
19713 LTCC=$lt_LTCC
19714
19715 # LTCC compiler flags.
19716 LTCFLAGS=$lt_LTCFLAGS
19717
19718 # A language-specific compiler.
19719 CC=$lt_compiler_GCJ
19720
19721 # Is the compiler the GNU C compiler?
19722 with_gcc=$GCC_GCJ
19723
19724 # An ERE matcher.
19725 EGREP=$lt_EGREP
19726
19727 # The linker used to build libraries.
19728 LD=$lt_LD_GCJ
19729
19730 # Whether we need hard or soft links.
19731 LN_S=$lt_LN_S
19732
19733 # A BSD-compatible nm program.
19734 NM=$lt_NM
19735
19736 # A symbol stripping program
19737 STRIP=$lt_STRIP
19738
19739 # Used to examine libraries when file_magic_cmd begins "file"
19740 MAGIC_CMD=$MAGIC_CMD
19741
19742 # Used on cygwin: DLL creation program.
19743 DLLTOOL="$DLLTOOL"
19744
19745 # Used on cygwin: object dumper.
19746 OBJDUMP="$OBJDUMP"
19747
19748 # Used on cygwin: assembler.
19749 AS="$AS"
19750
19751 # The name of the directory that contains temporary libtool files.
19752 objdir=$objdir
19753
19754 # How to create reloadable object files.
19755 reload_flag=$lt_reload_flag
19756 reload_cmds=$lt_reload_cmds
19757
19758 # How to pass a linker flag through the compiler.
19759 wl=$lt_lt_prog_compiler_wl_GCJ
19760
19761 # Object file suffix (normally "o").
19762 objext="$ac_objext"
19763
19764 # Old archive suffix (normally "a").
19765 libext="$libext"
19766
19767 # Shared library suffix (normally ".so").
19768 shrext_cmds='$shrext_cmds'
19769
19770 # Executable file suffix (normally "").
19771 exeext="$exeext"
19772
19773 # Additional compiler flags for building library objects.
19774 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19775 pic_mode=$pic_mode
19776
19777 # What is the maximum length of a command?
19778 max_cmd_len=$lt_cv_sys_max_cmd_len
19779
19780 # Does compiler simultaneously support -c and -o options?
19781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19782
19783 # Must we lock files when doing compilation?
19784 need_locks=$lt_need_locks
19785
19786 # Do we need the lib prefix for modules?
19787 need_lib_prefix=$need_lib_prefix
19788
19789 # Do we need a version for libraries?
19790 need_version=$need_version
19791
19792 # Whether dlopen is supported.
19793 dlopen_support=$enable_dlopen
19794
19795 # Whether dlopen of programs is supported.
19796 dlopen_self=$enable_dlopen_self
19797
19798 # Whether dlopen of statically linked programs is supported.
19799 dlopen_self_static=$enable_dlopen_self_static
19800
19801 # Compiler flag to prevent dynamic linking.
19802 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19803
19804 # Compiler flag to turn off builtin functions.
19805 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19806
19807 # Compiler flag to allow reflexive dlopens.
19808 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19809
19810 # Compiler flag to generate shared objects directly from archives.
19811 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19812
19813 # Compiler flag to generate thread-safe objects.
19814 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19815
19816 # Library versioning type.
19817 version_type=$version_type
19818
19819 # Format of library name prefix.
19820 libname_spec=$lt_libname_spec
19821
19822 # List of archive names. First name is the real one, the rest are links.
19823 # The last name is the one that the linker finds with -lNAME.
19824 library_names_spec=$lt_library_names_spec
19825
19826 # The coded name of the library, if different from the real name.
19827 soname_spec=$lt_soname_spec
19828
19829 # Commands used to build and install an old-style archive.
19830 RANLIB=$lt_RANLIB
19831 old_archive_cmds=$lt_old_archive_cmds_GCJ
19832 old_postinstall_cmds=$lt_old_postinstall_cmds
19833 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19834
19835 # Create an old-style archive from a shared archive.
19836 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19837
19838 # Create a temporary old-style archive to link instead of a shared archive.
19839 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19840
19841 # Commands used to build and install a shared archive.
19842 archive_cmds=$lt_archive_cmds_GCJ
19843 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19844 postinstall_cmds=$lt_postinstall_cmds
19845 postuninstall_cmds=$lt_postuninstall_cmds
19846
19847 # Commands used to build a loadable module (assumed same as above if empty)
19848 module_cmds=$lt_module_cmds_GCJ
19849 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19850
19851 # Commands to strip libraries.
19852 old_striplib=$lt_old_striplib
19853 striplib=$lt_striplib
19854
19855 # Dependencies to place before the objects being linked to create a
19856 # shared library.
19857 predep_objects=$lt_predep_objects_GCJ
19858
19859 # Dependencies to place after the objects being linked to create a
19860 # shared library.
19861 postdep_objects=$lt_postdep_objects_GCJ
19862
19863 # Dependencies to place before the objects being linked to create a
19864 # shared library.
19865 predeps=$lt_predeps_GCJ
19866
19867 # Dependencies to place after the objects being linked to create a
19868 # shared library.
19869 postdeps=$lt_postdeps_GCJ
19870
19871 # The library search path used internally by the compiler when linking
19872 # a shared library.
19873 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19874
19875 # Method to check whether dependent libraries are shared objects.
19876 deplibs_check_method=$lt_deplibs_check_method
19877
19878 # Command to use when deplibs_check_method == file_magic.
19879 file_magic_cmd=$lt_file_magic_cmd
19880
19881 # Flag that allows shared libraries with undefined symbols to be built.
19882 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19883
19884 # Flag that forces no undefined symbols.
19885 no_undefined_flag=$lt_no_undefined_flag_GCJ
19886
19887 # Commands used to finish a libtool library installation in a directory.
19888 finish_cmds=$lt_finish_cmds
19889
19890 # Same as above, but a single script fragment to be evaled but not shown.
19891 finish_eval=$lt_finish_eval
19892
19893 # Take the output of nm and produce a listing of raw symbols and C names.
19894 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19895
19896 # Transform the output of nm in a proper C declaration
19897 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19898
19899 # Transform the output of nm in a C name address pair
19900 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19901
19902 # This is the shared library runtime path variable.
19903 runpath_var=$runpath_var
19904
19905 # This is the shared library path variable.
19906 shlibpath_var=$shlibpath_var
19907
19908 # Is shlibpath searched before the hard-coded library search path?
19909 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19910
19911 # How to hardcode a shared library path into an executable.
19912 hardcode_action=$hardcode_action_GCJ
19913
19914 # Whether we should hardcode library paths into libraries.
19915 hardcode_into_libs=$hardcode_into_libs
19916
19917 # Flag to hardcode \$libdir into a binary during linking.
19918 # This must work even if \$libdir does not exist.
19919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19920
19921 # If ld is used when linking, flag to hardcode \$libdir into
19922 # a binary during linking. This must work even if \$libdir does
19923 # not exist.
19924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19925
19926 # Whether we need a single -rpath flag with a separated argument.
19927 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19928
19929 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19930 # resulting binary.
19931 hardcode_direct=$hardcode_direct_GCJ
19932
19933 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19934 # resulting binary.
19935 hardcode_minus_L=$hardcode_minus_L_GCJ
19936
19937 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19938 # the resulting binary.
19939 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19940
19941 # Set to yes if building a shared library automatically hardcodes DIR into the l ibrary
19942 # and all subsequent libraries and executables linked against it.
19943 hardcode_automatic=$hardcode_automatic_GCJ
19944
19945 # Variables whose values should be saved in libtool wrapper scripts and
19946 # restored at relink time.
19947 variables_saved_for_relink="$variables_saved_for_relink"
19948
19949 # Whether libtool must link a program against all its dependency libraries.
19950 link_all_deplibs=$link_all_deplibs_GCJ
19951
19952 # Compile-time system search path for libraries
19953 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19954
19955 # Run-time system search path for libraries
19956 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19957
19958 # Fix the shell variable \$srcfile for the compiler.
19959 fix_srcfile_path=$lt_fix_srcfile_path
19960
19961 # Set to yes if exported symbols are required.
19962 always_export_symbols=$always_export_symbols_GCJ
19963
19964 # The commands to list exported symbols.
19965 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19966
19967 # The commands to extract the exported symbol list from a shared archive.
19968 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19969
19970 # Symbols that should not be listed in the preloaded symbols.
19971 exclude_expsyms=$lt_exclude_expsyms_GCJ
19972
19973 # Symbols that must always be exported.
19974 include_expsyms=$lt_include_expsyms_GCJ
19975
19976 # ### END LIBTOOL TAG CONFIG: $tagname
19977
19978 __EOF__
19979
19980
19981 else
19982 # If there is no Makefile yet, we rely on a make rule to execute
19983 # `config.status --recheck' to rerun these tests and create the
19984 # libtool script then.
19985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19986 if test -f "$ltmain_in"; then
19987 test -f Makefile && make "$ltmain"
19988 fi
19989 fi
19990
19991
19992 ac_ext=c
19993 ac_cpp='$CPP $CPPFLAGS'
19994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
19996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19997
19998 CC="$lt_save_CC"
19999
20000 else
20001 tagname=""
20002 fi
20003 ;;
20004
20005 RC)
20006
20007
20008 # Source file extension for RC test sources.
20009 ac_ext=rc
20010
20011 # Object file extension for compiled RC test sources.
20012 objext=o
20013 objext_RC=$objext
20014
20015 # Code to be used in simple compile tests
20016 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20017
20018 # Code to be used in simple link tests
20019 lt_simple_link_test_code="$lt_simple_compile_test_code"
20020
20021 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20022
20023 # If no C compiler was specified, use CC.
20024 LTCC=${LTCC-"$CC"}
20025
20026 # If no C compiler flags were specified, use CFLAGS.
20027 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20028
20029 # Allow CC to be a program name with arguments.
20030 compiler=$CC
20031
20032
20033 # save warnings/boilerplate of simple test code
20034 ac_outfile=conftest.$ac_objext
20035 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20036 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20037 _lt_compiler_boilerplate=`cat conftest.err`
20038 $rm conftest*
20039
20040 ac_outfile=conftest.$ac_objext
20041 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20042 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20043 _lt_linker_boilerplate=`cat conftest.err`
20044 $rm conftest*
20045
20046
20047 # Allow CC to be a program name with arguments.
20048 lt_save_CC="$CC"
20049 CC=${RC-"windres"}
20050 compiler=$CC
20051 compiler_RC=$CC
20052 for cc_temp in $compiler""; do
20053 case $cc_temp in
20054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20056 \-*) ;;
20057 *) break;;
20058 esac
20059 done
20060 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20061
20062 lt_cv_prog_compiler_c_o_RC=yes
20063
20064 # The else clause should only fire when bootstrapping the
20065 # libtool distribution, otherwise you forgot to ship ltmain.sh
20066 # with your package, and you will get complaints that there are
20067 # no rules to generate ltmain.sh.
20068 if test -f "$ltmain"; then
20069 # See if we are running on zsh, and set the options which allow our commands t hrough
20070 # without removal of \ escapes.
20071 if test -n "${ZSH_VERSION+set}" ; then
20072 setopt NO_GLOB_SUBST
20073 fi
20074 # Now quote all the things that may contain metacharacters while being
20075 # careful not to overquote the AC_SUBSTed values. We take copies of the
20076 # variables and quote the copies for generation of the libtool script.
20077 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20078 SED SHELL STRIP \
20079 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20080 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20081 deplibs_check_method reload_flag reload_cmds need_locks \
20082 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20083 lt_cv_sys_global_symbol_to_c_name_address \
20084 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20085 old_postinstall_cmds old_postuninstall_cmds \
20086 compiler_RC \
20087 CC_RC \
20088 LD_RC \
20089 lt_prog_compiler_wl_RC \
20090 lt_prog_compiler_pic_RC \
20091 lt_prog_compiler_static_RC \
20092 lt_prog_compiler_no_builtin_flag_RC \
20093 export_dynamic_flag_spec_RC \
20094 thread_safe_flag_spec_RC \
20095 whole_archive_flag_spec_RC \
20096 enable_shared_with_static_runtimes_RC \
20097 old_archive_cmds_RC \
20098 old_archive_from_new_cmds_RC \
20099 predep_objects_RC \
20100 postdep_objects_RC \
20101 predeps_RC \
20102 postdeps_RC \
20103 compiler_lib_search_path_RC \
20104 archive_cmds_RC \
20105 archive_expsym_cmds_RC \
20106 postinstall_cmds_RC \
20107 postuninstall_cmds_RC \
20108 old_archive_from_expsyms_cmds_RC \
20109 allow_undefined_flag_RC \
20110 no_undefined_flag_RC \
20111 export_symbols_cmds_RC \
20112 hardcode_libdir_flag_spec_RC \
20113 hardcode_libdir_flag_spec_ld_RC \
20114 hardcode_libdir_separator_RC \
20115 hardcode_automatic_RC \
20116 module_cmds_RC \
20117 module_expsym_cmds_RC \
20118 lt_cv_prog_compiler_c_o_RC \
20119 fix_srcfile_path_RC \
20120 exclude_expsyms_RC \
20121 include_expsyms_RC; do
20122
20123 case $var in
20124 old_archive_cmds_RC | \
20125 old_archive_from_new_cmds_RC | \
20126 archive_cmds_RC | \
20127 archive_expsym_cmds_RC | \
20128 module_cmds_RC | \
20129 module_expsym_cmds_RC | \
20130 old_archive_from_expsyms_cmds_RC | \
20131 export_symbols_cmds_RC | \
20132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20133 postinstall_cmds | postuninstall_cmds | \
20134 old_postinstall_cmds | old_postuninstall_cmds | \
20135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20136 # Double-quote double-evaled strings.
20137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\ " -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20138 ;;
20139 *)
20140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\` \\\""
20141 ;;
20142 esac
20143 done
20144
20145 case $lt_echo in
20146 *'\$0 --fallback-echo"')
20147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fa llback-echo"/'`
20148 ;;
20149 esac
20150
20151 cfgfile="$ofile"
20152
20153 cat <<__EOF__ >> "$cfgfile"
20154 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20155
20156 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20157
20158 # Shell to use when invoking shell scripts.
20159 SHELL=$lt_SHELL
20160
20161 # Whether or not to build shared libraries.
20162 build_libtool_libs=$enable_shared
20163
20164 # Whether or not to build static libraries.
20165 build_old_libs=$enable_static
20166
20167 # Whether or not to add -lc for building shared libraries.
20168 build_libtool_need_lc=$archive_cmds_need_lc_RC
20169
20170 # Whether or not to disallow shared libs when runtime libs are static
20171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20172
20173 # Whether or not to optimize for fast installation.
20174 fast_install=$enable_fast_install
20175
20176 # The host system.
20177 host_alias=$host_alias
20178 host=$host
20179 host_os=$host_os
20180
20181 # The build system.
20182 build_alias=$build_alias
20183 build=$build
20184 build_os=$build_os
20185
20186 # An echo program that does not interpret backslashes.
20187 echo=$lt_echo
20188
20189 # The archiver.
20190 AR=$lt_AR
20191 AR_FLAGS=$lt_AR_FLAGS
20192
20193 # A C compiler.
20194 LTCC=$lt_LTCC
20195
20196 # LTCC compiler flags.
20197 LTCFLAGS=$lt_LTCFLAGS
20198
20199 # A language-specific compiler.
20200 CC=$lt_compiler_RC
20201
20202 # Is the compiler the GNU C compiler?
20203 with_gcc=$GCC_RC
20204
20205 # An ERE matcher.
20206 EGREP=$lt_EGREP
20207
20208 # The linker used to build libraries.
20209 LD=$lt_LD_RC
20210
20211 # Whether we need hard or soft links.
20212 LN_S=$lt_LN_S
20213
20214 # A BSD-compatible nm program.
20215 NM=$lt_NM
20216
20217 # A symbol stripping program
20218 STRIP=$lt_STRIP
20219
20220 # Used to examine libraries when file_magic_cmd begins "file"
20221 MAGIC_CMD=$MAGIC_CMD
20222
20223 # Used on cygwin: DLL creation program.
20224 DLLTOOL="$DLLTOOL"
20225
20226 # Used on cygwin: object dumper.
20227 OBJDUMP="$OBJDUMP"
20228
20229 # Used on cygwin: assembler.
20230 AS="$AS"
20231
20232 # The name of the directory that contains temporary libtool files.
20233 objdir=$objdir
20234
20235 # How to create reloadable object files.
20236 reload_flag=$lt_reload_flag
20237 reload_cmds=$lt_reload_cmds
20238
20239 # How to pass a linker flag through the compiler.
20240 wl=$lt_lt_prog_compiler_wl_RC
20241
20242 # Object file suffix (normally "o").
20243 objext="$ac_objext"
20244
20245 # Old archive suffix (normally "a").
20246 libext="$libext"
20247
20248 # Shared library suffix (normally ".so").
20249 shrext_cmds='$shrext_cmds'
20250
20251 # Executable file suffix (normally "").
20252 exeext="$exeext"
20253
20254 # Additional compiler flags for building library objects.
20255 pic_flag=$lt_lt_prog_compiler_pic_RC
20256 pic_mode=$pic_mode
20257
20258 # What is the maximum length of a command?
20259 max_cmd_len=$lt_cv_sys_max_cmd_len
20260
20261 # Does compiler simultaneously support -c and -o options?
20262 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20263
20264 # Must we lock files when doing compilation?
20265 need_locks=$lt_need_locks
20266
20267 # Do we need the lib prefix for modules?
20268 need_lib_prefix=$need_lib_prefix
20269
20270 # Do we need a version for libraries?
20271 need_version=$need_version
20272
20273 # Whether dlopen is supported.
20274 dlopen_support=$enable_dlopen
20275
20276 # Whether dlopen of programs is supported.
20277 dlopen_self=$enable_dlopen_self
20278
20279 # Whether dlopen of statically linked programs is supported.
20280 dlopen_self_static=$enable_dlopen_self_static
20281
20282 # Compiler flag to prevent dynamic linking.
20283 link_static_flag=$lt_lt_prog_compiler_static_RC
20284
20285 # Compiler flag to turn off builtin functions.
20286 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20287
20288 # Compiler flag to allow reflexive dlopens.
20289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20290
20291 # Compiler flag to generate shared objects directly from archives.
20292 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20293
20294 # Compiler flag to generate thread-safe objects.
20295 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20296
20297 # Library versioning type.
20298 version_type=$version_type
20299
20300 # Format of library name prefix.
20301 libname_spec=$lt_libname_spec
20302
20303 # List of archive names. First name is the real one, the rest are links.
20304 # The last name is the one that the linker finds with -lNAME.
20305 library_names_spec=$lt_library_names_spec
20306
20307 # The coded name of the library, if different from the real name.
20308 soname_spec=$lt_soname_spec
20309
20310 # Commands used to build and install an old-style archive.
20311 RANLIB=$lt_RANLIB
20312 old_archive_cmds=$lt_old_archive_cmds_RC
20313 old_postinstall_cmds=$lt_old_postinstall_cmds
20314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20315
20316 # Create an old-style archive from a shared archive.
20317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20318
20319 # Create a temporary old-style archive to link instead of a shared archive.
20320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20321
20322 # Commands used to build and install a shared archive.
20323 archive_cmds=$lt_archive_cmds_RC
20324 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20325 postinstall_cmds=$lt_postinstall_cmds
20326 postuninstall_cmds=$lt_postuninstall_cmds
20327
20328 # Commands used to build a loadable module (assumed same as above if empty)
20329 module_cmds=$lt_module_cmds_RC
20330 module_expsym_cmds=$lt_module_expsym_cmds_RC
20331
20332 # Commands to strip libraries.
20333 old_striplib=$lt_old_striplib
20334 striplib=$lt_striplib
20335
20336 # Dependencies to place before the objects being linked to create a
20337 # shared library.
20338 predep_objects=$lt_predep_objects_RC
20339
20340 # Dependencies to place after the objects being linked to create a
20341 # shared library.
20342 postdep_objects=$lt_postdep_objects_RC
20343
20344 # Dependencies to place before the objects being linked to create a
20345 # shared library.
20346 predeps=$lt_predeps_RC
20347
20348 # Dependencies to place after the objects being linked to create a
20349 # shared library.
20350 postdeps=$lt_postdeps_RC
20351
20352 # The library search path used internally by the compiler when linking
20353 # a shared library.
20354 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20355
20356 # Method to check whether dependent libraries are shared objects.
20357 deplibs_check_method=$lt_deplibs_check_method
20358
20359 # Command to use when deplibs_check_method == file_magic.
20360 file_magic_cmd=$lt_file_magic_cmd
20361
20362 # Flag that allows shared libraries with undefined symbols to be built.
20363 allow_undefined_flag=$lt_allow_undefined_flag_RC
20364
20365 # Flag that forces no undefined symbols.
20366 no_undefined_flag=$lt_no_undefined_flag_RC
20367
20368 # Commands used to finish a libtool library installation in a directory.
20369 finish_cmds=$lt_finish_cmds
20370
20371 # Same as above, but a single script fragment to be evaled but not shown.
20372 finish_eval=$lt_finish_eval
20373
20374 # Take the output of nm and produce a listing of raw symbols and C names.
20375 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20376
20377 # Transform the output of nm in a proper C declaration
20378 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20379
20380 # Transform the output of nm in a C name address pair
20381 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20382
20383 # This is the shared library runtime path variable.
20384 runpath_var=$runpath_var
20385
20386 # This is the shared library path variable.
20387 shlibpath_var=$shlibpath_var
20388
20389 # Is shlibpath searched before the hard-coded library search path?
20390 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20391
20392 # How to hardcode a shared library path into an executable.
20393 hardcode_action=$hardcode_action_RC
20394
20395 # Whether we should hardcode library paths into libraries.
20396 hardcode_into_libs=$hardcode_into_libs
20397
20398 # Flag to hardcode \$libdir into a binary during linking.
20399 # This must work even if \$libdir does not exist.
20400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20401
20402 # If ld is used when linking, flag to hardcode \$libdir into
20403 # a binary during linking. This must work even if \$libdir does
20404 # not exist.
20405 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20406
20407 # Whether we need a single -rpath flag with a separated argument.
20408 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20409
20410 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20411 # resulting binary.
20412 hardcode_direct=$hardcode_direct_RC
20413
20414 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20415 # resulting binary.
20416 hardcode_minus_L=$hardcode_minus_L_RC
20417
20418 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20419 # the resulting binary.
20420 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20421
20422 # Set to yes if building a shared library automatically hardcodes DIR into the l ibrary
20423 # and all subsequent libraries and executables linked against it.
20424 hardcode_automatic=$hardcode_automatic_RC
20425
20426 # Variables whose values should be saved in libtool wrapper scripts and
20427 # restored at relink time.
20428 variables_saved_for_relink="$variables_saved_for_relink"
20429
20430 # Whether libtool must link a program against all its dependency libraries.
20431 link_all_deplibs=$link_all_deplibs_RC
20432
20433 # Compile-time system search path for libraries
20434 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20435
20436 # Run-time system search path for libraries
20437 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20438
20439 # Fix the shell variable \$srcfile for the compiler.
20440 fix_srcfile_path=$lt_fix_srcfile_path
20441
20442 # Set to yes if exported symbols are required.
20443 always_export_symbols=$always_export_symbols_RC
20444
20445 # The commands to list exported symbols.
20446 export_symbols_cmds=$lt_export_symbols_cmds_RC
20447
20448 # The commands to extract the exported symbol list from a shared archive.
20449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20450
20451 # Symbols that should not be listed in the preloaded symbols.
20452 exclude_expsyms=$lt_exclude_expsyms_RC
20453
20454 # Symbols that must always be exported.
20455 include_expsyms=$lt_include_expsyms_RC
20456
20457 # ### END LIBTOOL TAG CONFIG: $tagname
20458
20459 __EOF__
20460
20461
20462 else
20463 # If there is no Makefile yet, we rely on a make rule to execute
20464 # `config.status --recheck' to rerun these tests and create the
20465 # libtool script then.
20466 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20467 if test -f "$ltmain_in"; then
20468 test -f Makefile && make "$ltmain"
20469 fi
20470 fi
20471
20472
20473 ac_ext=c
20474 ac_cpp='$CPP $CPPFLAGS'
20475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
20477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20478
20479 CC="$lt_save_CC"
20480
20481 ;;
20482
20483 *)
20484 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20485 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20486 { (exit 1); exit 1; }; }
20487 ;;
20488 esac
20489
20490 # Append the new tag name to the list of available tags.
20491 if test -n "$tagname" ; then
20492 available_tags="$available_tags $tagname"
20493 fi
20494 fi
20495 done
20496 IFS="$lt_save_ifs"
20497
20498 # Now substitute the updated list of available tags.
20499 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \ "$ofile\" > \"${ofile}T\""; then
20500 mv "${ofile}T" "$ofile"
20501 chmod +x "$ofile"
20502 else
20503 rm -f "${ofile}T"
20504 { { echo "$as_me:$LINENO: error: unable to update list of available tagged c onfigurations." >&5
20505 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20506 { (exit 1); exit 1; }; }
20507 fi
20508 fi
20509
20510
20511
20512 # This can be used to rebuild libtool when needed
20513 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20514
20515 # Always use our own libtool.
20516 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20517
20518 # Prevent multiple expansion
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546 for ac_header in sys/types.h sys/time.h stdlib.h unistd.h string.h
20547 do
20548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20554 fi
20555 ac_res=`eval echo '${'$as_ac_Header'}'`
20556 { echo "$as_me:$LINENO: result: $ac_res" >&5
20557 echo "${ECHO_T}$ac_res" >&6; }
20558 else
20559 # Is the header compilable?
20560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h. */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h. */
20568 $ac_includes_default
20569 #include <$ac_header>
20570 _ACEOF
20571 rm -f conftest.$ac_objext
20572 if { (ac_try="$ac_compile"
20573 case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20576 esac
20577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_compile") 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest.$ac_objext; then
20588 ac_header_compiler=yes
20589 else
20590 echo "$as_me: failed program was:" >&5
20591 sed 's/^/| /' conftest.$ac_ext >&5
20592
20593 ac_header_compiler=no
20594 fi
20595
20596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20598 echo "${ECHO_T}$ac_header_compiler" >&6; }
20599
20600 # Is the header present?
20601 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20603 cat >conftest.$ac_ext <<_ACEOF
20604 /* confdefs.h. */
20605 _ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20609 #include <$ac_header>
20610 _ACEOF
20611 if { (ac_try="$ac_cpp conftest.$ac_ext"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20615 esac
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } >/dev/null && {
20624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20625 test ! -s conftest.err
20626 }; then
20627 ac_header_preproc=yes
20628 else
20629 echo "$as_me: failed program was:" >&5
20630 sed 's/^/| /' conftest.$ac_ext >&5
20631
20632 ac_header_preproc=no
20633 fi
20634
20635 rm -f conftest.err conftest.$ac_ext
20636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20637 echo "${ECHO_T}$ac_header_preproc" >&6; }
20638
20639 # So? What about this header?
20640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20641 yes:no: )
20642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec ted by the preprocessor!" >&5
20643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre processor!" >&2;}
20644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20646 ac_header_preproc=yes
20647 ;;
20648 no:yes:* )
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis ite headers?" >&5
20652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno t Be Compiled\"" >&5
20656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\ "" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso r's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 2;}
20659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil l take precedence" >&5
20660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede nce" >&2;}
20661
20662 ;;
20663 esac
20664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20669 eval "$as_ac_Header=\$ac_header_preproc"
20670 fi
20671 ac_res=`eval echo '${'$as_ac_Header'}'`
20672 { echo "$as_me:$LINENO: result: $ac_res" >&5
20673 echo "${ECHO_T}$ac_res" >&6; }
20674
20675 fi
20676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20677 cat >>confdefs.h <<_ACEOF
20678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20679 _ACEOF
20680
20681 fi
20682
20683 done
20684
20685
20686
20687
20688
20689
20690
20691 for ac_header in ieeefp.h nan.h math.h fp_class.h float.h ansidecl.h
20692 do
20693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20698 echo $ECHO_N "(cached) $ECHO_C" >&6
20699 fi
20700 ac_res=`eval echo '${'$as_ac_Header'}'`
20701 { echo "$as_me:$LINENO: result: $ac_res" >&5
20702 echo "${ECHO_T}$ac_res" >&6; }
20703 else
20704 # Is the header compilable?
20705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20713 $ac_includes_default
20714 #include <$ac_header>
20715 _ACEOF
20716 rm -f conftest.$ac_objext
20717 if { (ac_try="$ac_compile"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_compile") 2>conftest.er1
20724 ac_status=$?
20725 grep -v '^ *+' conftest.er1 >conftest.err
20726 rm -f conftest.er1
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest.$ac_objext; then
20733 ac_header_compiler=yes
20734 else
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ac_header_compiler=no
20739 fi
20740
20741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20743 echo "${ECHO_T}$ac_header_compiler" >&6; }
20744
20745 # Is the header present?
20746 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 #include <$ac_header>
20755 _ACEOF
20756 if { (ac_try="$ac_cpp conftest.$ac_ext"
20757 case "(($ac_try" in
20758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20759 *) ac_try_echo=$ac_try;;
20760 esac
20761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20763 ac_status=$?
20764 grep -v '^ *+' conftest.er1 >conftest.err
20765 rm -f conftest.er1
20766 cat conftest.err >&5
20767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20768 (exit $ac_status); } >/dev/null && {
20769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20770 test ! -s conftest.err
20771 }; then
20772 ac_header_preproc=yes
20773 else
20774 echo "$as_me: failed program was:" >&5
20775 sed 's/^/| /' conftest.$ac_ext >&5
20776
20777 ac_header_preproc=no
20778 fi
20779
20780 rm -f conftest.err conftest.$ac_ext
20781 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20782 echo "${ECHO_T}$ac_header_preproc" >&6; }
20783
20784 # So? What about this header?
20785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20786 yes:no: )
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec ted by the preprocessor!" >&5
20788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre processor!" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20791 ac_header_preproc=yes
20792 ;;
20793 no:yes:* )
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis ite headers?" >&5
20797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno t Be Compiled\"" >&5
20801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\ "" >&2;}
20802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso r's result" >&5
20803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 2;}
20804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil l take precedence" >&5
20805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede nce" >&2;}
20806
20807 ;;
20808 esac
20809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20812 echo $ECHO_N "(cached) $ECHO_C" >&6
20813 else
20814 eval "$as_ac_Header=\$ac_header_preproc"
20815 fi
20816 ac_res=`eval echo '${'$as_ac_Header'}'`
20817 { echo "$as_me:$LINENO: result: $ac_res" >&5
20818 echo "${ECHO_T}$ac_res" >&6; }
20819
20820 fi
20821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20824 _ACEOF
20825
20826 fi
20827
20828 done
20829
20830
20831
20832
20833
20834
20835 for ac_header in sys/timeb.h time.h sys/stat.h sys/select.h stdarg.h
20836 do
20837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 fi
20844 ac_res=`eval echo '${'$as_ac_Header'}'`
20845 { echo "$as_me:$LINENO: result: $ac_res" >&5
20846 echo "${ECHO_T}$ac_res" >&6; }
20847 else
20848 # Is the header compilable?
20849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857 $ac_includes_default
20858 #include <$ac_header>
20859 _ACEOF
20860 rm -f conftest.$ac_objext
20861 if { (ac_try="$ac_compile"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865 esac
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_compile") 2>conftest.er1
20868 ac_status=$?
20869 grep -v '^ *+' conftest.er1 >conftest.err
20870 rm -f conftest.er1
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest.$ac_objext; then
20877 ac_header_compiler=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882 ac_header_compiler=no
20883 fi
20884
20885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6; }
20888
20889 # Is the header present?
20890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20892 cat >conftest.$ac_ext <<_ACEOF
20893 /* confdefs.h. */
20894 _ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20898 #include <$ac_header>
20899 _ACEOF
20900 if { (ac_try="$ac_cpp conftest.$ac_ext"
20901 case "(($ac_try" in
20902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903 *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20907 ac_status=$?
20908 grep -v '^ *+' conftest.er1 >conftest.err
20909 rm -f conftest.er1
20910 cat conftest.err >&5
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } >/dev/null && {
20913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20914 test ! -s conftest.err
20915 }; then
20916 ac_header_preproc=yes
20917 else
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20920
20921 ac_header_preproc=no
20922 fi
20923
20924 rm -f conftest.err conftest.$ac_ext
20925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20926 echo "${ECHO_T}$ac_header_preproc" >&6; }
20927
20928 # So? What about this header?
20929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20930 yes:no: )
20931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejec ted by the preprocessor!" >&5
20932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the pre processor!" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20935 ac_header_preproc=yes
20936 ;;
20937 no:yes:* )
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequis ite headers?" >&5
20941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Canno t Be Compiled\"" >&5
20945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\ "" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocesso r's result" >&5
20947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >& 2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler wil l take precedence" >&5
20949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precede nce" >&2;}
20950
20951 ;;
20952 esac
20953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 else
20958 eval "$as_ac_Header=\$ac_header_preproc"
20959 fi
20960 ac_res=`eval echo '${'$as_ac_Header'}'`
20961 { echo "$as_me:$LINENO: result: $ac_res" >&5
20962 echo "${ECHO_T}$ac_res" >&6; }
20963
20964 fi
20965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20966 cat >>confdefs.h <<_ACEOF
20967 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20968 _ACEOF
20969
20970 fi
20971
20972 done
20973
20974
20975
20976 for ac_func in stat _stat
20977 do
20978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984 cat >conftest.$ac_ext <<_ACEOF
20985 /* confdefs.h. */
20986 _ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
20991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20992 #define $ac_func innocuous_$ac_func
20993
20994 /* System header to define __stub macros and hopefully few prototypes,
20995 which can conflict with char $ac_func (); below.
20996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20997 <limits.h> exists even on freestanding compilers. */
20998
20999 #ifdef __STDC__
21000 # include <limits.h>
21001 #else
21002 # include <assert.h>
21003 #endif
21004
21005 #undef $ac_func
21006
21007 /* Override any GCC internal prototype to avoid an error.
21008 Use char because int might match the return type of a GCC
21009 builtin and then its argument prototype would still apply. */
21010 #ifdef __cplusplus
21011 extern "C"
21012 #endif
21013 char $ac_func ();
21014 /* The GNU C library defines this for functions which it implements
21015 to always fail with ENOSYS. Some functions are actually named
21016 something starting with __ and the normal name is an alias. */
21017 #if defined __stub_$ac_func || defined __stub___$ac_func
21018 choke me
21019 #endif
21020
21021 int
21022 main ()
21023 {
21024 return $ac_func ();
21025 ;
21026 return 0;
21027 }
21028 _ACEOF
21029 rm -f conftest.$ac_objext conftest$ac_exeext
21030 if { (ac_try="$ac_link"
21031 case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21034 esac
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_link") 2>conftest.er1
21037 ac_status=$?
21038 grep -v '^ *+' conftest.er1 >conftest.err
21039 rm -f conftest.er1
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && {
21043 test -z "$ac_c_werror_flag" ||
21044 test ! -s conftest.err
21045 } && test -s conftest$ac_exeext &&
21046 $as_test_x conftest$ac_exeext; then
21047 eval "$as_ac_var=yes"
21048 else
21049 echo "$as_me: failed program was:" >&5
21050 sed 's/^/| /' conftest.$ac_ext >&5
21051
21052 eval "$as_ac_var=no"
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21056 conftest$ac_exeext conftest.$ac_ext
21057 fi
21058 ac_res=`eval echo '${'$as_ac_var'}'`
21059 { echo "$as_me:$LINENO: result: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21061 if test `eval echo '${'$as_ac_var'}'` = yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21064 _ACEOF
21065
21066 fi
21067 done
21068
21069 { echo "$as_me:$LINENO: checking for isnan" >&5
21070 echo $ECHO_N "checking for isnan... $ECHO_C" >&6; }
21071 if test "${ac_cv_func_isnan+set}" = set; then
21072 echo $ECHO_N "(cached) $ECHO_C" >&6
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define isnan to an innocuous variant, in case <limits.h> declares isnan.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define isnan innocuous_isnan
21083
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char isnan (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21088
21089 #ifdef __STDC__
21090 # include <limits.h>
21091 #else
21092 # include <assert.h>
21093 #endif
21094
21095 #undef isnan
21096
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21100 #ifdef __cplusplus
21101 extern "C"
21102 #endif
21103 char isnan ();
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_isnan || defined __stub___isnan
21108 choke me
21109 #endif
21110
21111 int
21112 main ()
21113 {
21114 return isnan ();
21115 ;
21116 return 0;
21117 }
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_link") 2>conftest.er1
21127 ac_status=$?
21128 grep -v '^ *+' conftest.er1 >conftest.err
21129 rm -f conftest.er1
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } && {
21133 test -z "$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21135 } && test -s conftest$ac_exeext &&
21136 $as_test_x conftest$ac_exeext; then
21137 ac_cv_func_isnan=yes
21138 else
21139 echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142 ac_cv_func_isnan=no
21143 fi
21144
21145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21146 conftest$ac_exeext conftest.$ac_ext
21147 fi
21148 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan" >&5
21149 echo "${ECHO_T}$ac_cv_func_isnan" >&6; }
21150 if test $ac_cv_func_isnan = yes; then
21151 :
21152 else
21153 { echo "$as_me:$LINENO: checking for isnan in -lm" >&5
21154 echo $ECHO_N "checking for isnan in -lm... $ECHO_C" >&6; }
21155 if test "${ac_cv_lib_m_isnan+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157 else
21158 ac_check_lib_save_LIBS=$LIBS
21159 LIBS="-lm $LIBS"
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166
21167 /* Override any GCC internal prototype to avoid an error.
21168 Use char because int might match the return type of a GCC
21169 builtin and then its argument prototype would still apply. */
21170 #ifdef __cplusplus
21171 extern "C"
21172 #endif
21173 char isnan ();
21174 int
21175 main ()
21176 {
21177 return isnan ();
21178 ;
21179 return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext conftest$ac_exeext
21183 if { (ac_try="$ac_link"
21184 case "(($ac_try" in
21185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186 *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189 (eval "$ac_link") 2>conftest.er1
21190 ac_status=$?
21191 grep -v '^ *+' conftest.er1 >conftest.err
21192 rm -f conftest.er1
21193 cat conftest.err >&5
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); } && {
21196 test -z "$ac_c_werror_flag" ||
21197 test ! -s conftest.err
21198 } && test -s conftest$ac_exeext &&
21199 $as_test_x conftest$ac_exeext; then
21200 ac_cv_lib_m_isnan=yes
21201 else
21202 echo "$as_me: failed program was:" >&5
21203 sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_cv_lib_m_isnan=no
21206 fi
21207
21208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21209 conftest$ac_exeext conftest.$ac_ext
21210 LIBS=$ac_check_lib_save_LIBS
21211 fi
21212 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_isnan" >&5
21213 echo "${ECHO_T}$ac_cv_lib_m_isnan" >&6; }
21214 if test $ac_cv_lib_m_isnan = yes; then
21215 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21216 #define HAVE_ISNAN 1
21217 _ACEOF
21218
21219 fi
21220
21221 fi
21222
21223
21224 { echo "$as_me:$LINENO: checking for isinf" >&5
21225 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
21226 if test "${ac_cv_func_isinf+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229 cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h. */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h. */
21235 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
21236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21237 #define isinf innocuous_isinf
21238
21239 /* System header to define __stub macros and hopefully few prototypes,
21240 which can conflict with char isinf (); below.
21241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21242 <limits.h> exists even on freestanding compilers. */
21243
21244 #ifdef __STDC__
21245 # include <limits.h>
21246 #else
21247 # include <assert.h>
21248 #endif
21249
21250 #undef isinf
21251
21252 /* Override any GCC internal prototype to avoid an error.
21253 Use char because int might match the return type of a GCC
21254 builtin and then its argument prototype would still apply. */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 char isinf ();
21259 /* The GNU C library defines this for functions which it implements
21260 to always fail with ENOSYS. Some functions are actually named
21261 something starting with __ and the normal name is an alias. */
21262 #if defined __stub_isinf || defined __stub___isinf
21263 choke me
21264 #endif
21265
21266 int
21267 main ()
21268 {
21269 return isinf ();
21270 ;
21271 return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_link") 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } && {
21288 test -z "$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 } && test -s conftest$ac_exeext &&
21291 $as_test_x conftest$ac_exeext; then
21292 ac_cv_func_isinf=yes
21293 else
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21296
21297 ac_cv_func_isinf=no
21298 fi
21299
21300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21301 conftest$ac_exeext conftest.$ac_ext
21302 fi
21303 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21304 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
21305 if test $ac_cv_func_isinf = yes; then
21306 :
21307 else
21308 { echo "$as_me:$LINENO: checking for isinf in -lm" >&5
21309 echo $ECHO_N "checking for isinf in -lm... $ECHO_C" >&6; }
21310 if test "${ac_cv_lib_m_isinf+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313 ac_check_lib_save_LIBS=$LIBS
21314 LIBS="-lm $LIBS"
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h. */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h. */
21321
21322 /* Override any GCC internal prototype to avoid an error.
21323 Use char because int might match the return type of a GCC
21324 builtin and then its argument prototype would still apply. */
21325 #ifdef __cplusplus
21326 extern "C"
21327 #endif
21328 char isinf ();
21329 int
21330 main ()
21331 {
21332 return isinf ();
21333 ;
21334 return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (ac_try="$ac_link"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_link") 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest$ac_exeext &&
21354 $as_test_x conftest$ac_exeext; then
21355 ac_cv_lib_m_isinf=yes
21356 else
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21359
21360 ac_cv_lib_m_isinf=no
21361 fi
21362
21363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21364 conftest$ac_exeext conftest.$ac_ext
21365 LIBS=$ac_check_lib_save_LIBS
21366 fi
21367 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_isinf" >&5
21368 echo "${ECHO_T}$ac_cv_lib_m_isinf" >&6; }
21369 if test $ac_cv_lib_m_isinf = yes; then
21370 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21371 #define HAVE_ISINF 1
21372 _ACEOF
21373
21374 fi
21375
21376 fi
21377
21378
21379 { echo "$as_me:$LINENO: checking for pow" >&5
21380 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
21381 if test "${ac_cv_func_pow+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384 cat >conftest.$ac_ext <<_ACEOF
21385 /* confdefs.h. */
21386 _ACEOF
21387 cat confdefs.h >>conftest.$ac_ext
21388 cat >>conftest.$ac_ext <<_ACEOF
21389 /* end confdefs.h. */
21390 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
21391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21392 #define pow innocuous_pow
21393
21394 /* System header to define __stub macros and hopefully few prototypes,
21395 which can conflict with char pow (); below.
21396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21397 <limits.h> exists even on freestanding compilers. */
21398
21399 #ifdef __STDC__
21400 # include <limits.h>
21401 #else
21402 # include <assert.h>
21403 #endif
21404
21405 #undef pow
21406
21407 /* Override any GCC internal prototype to avoid an error.
21408 Use char because int might match the return type of a GCC
21409 builtin and then its argument prototype would still apply. */
21410 #ifdef __cplusplus
21411 extern "C"
21412 #endif
21413 char pow ();
21414 /* The GNU C library defines this for functions which it implements
21415 to always fail with ENOSYS. Some functions are actually named
21416 something starting with __ and the normal name is an alias. */
21417 #if defined __stub_pow || defined __stub___pow
21418 choke me
21419 #endif
21420
21421 int
21422 main ()
21423 {
21424 return pow ();
21425 ;
21426 return 0;
21427 }
21428 _ACEOF
21429 rm -f conftest.$ac_objext conftest$ac_exeext
21430 if { (ac_try="$ac_link"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_link") 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest$ac_exeext &&
21446 $as_test_x conftest$ac_exeext; then
21447 ac_cv_func_pow=yes
21448 else
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21451
21452 ac_cv_func_pow=no
21453 fi
21454
21455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21456 conftest$ac_exeext conftest.$ac_ext
21457 fi
21458 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
21459 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
21460 if test $ac_cv_func_pow = yes; then
21461 :
21462 else
21463 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
21464 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
21465 if test "${ac_cv_lib_m_pow+set}" = set; then
21466 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 else
21468 ac_check_lib_save_LIBS=$LIBS
21469 LIBS="-lm $LIBS"
21470 cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h. */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h. */
21476
21477 /* Override any GCC internal prototype to avoid an error.
21478 Use char because int might match the return type of a GCC
21479 builtin and then its argument prototype would still apply. */
21480 #ifdef __cplusplus
21481 extern "C"
21482 #endif
21483 char pow ();
21484 int
21485 main ()
21486 {
21487 return pow ();
21488 ;
21489 return 0;
21490 }
21491 _ACEOF
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_link") 2>conftest.er1
21500 ac_status=$?
21501 grep -v '^ *+' conftest.er1 >conftest.err
21502 rm -f conftest.er1
21503 cat conftest.err >&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); } && {
21506 test -z "$ac_c_werror_flag" ||
21507 test ! -s conftest.err
21508 } && test -s conftest$ac_exeext &&
21509 $as_test_x conftest$ac_exeext; then
21510 ac_cv_lib_m_pow=yes
21511 else
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 ac_cv_lib_m_pow=no
21516 fi
21517
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LIBS=$ac_check_lib_save_LIBS
21521 fi
21522 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
21523 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
21524 if test $ac_cv_lib_m_pow = yes; then
21525 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21526 #define HAVE_POW 1
21527 _ACEOF
21528
21529 fi
21530
21531 fi
21532
21533
21534 { echo "$as_me:$LINENO: checking for floor" >&5
21535 echo $ECHO_N "checking for floor... $ECHO_C" >&6; }
21536 if test "${ac_cv_func_floor+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 else
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */
21545 /* Define floor to an innocuous variant, in case <limits.h> declares floor.
21546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21547 #define floor innocuous_floor
21548
21549 /* System header to define __stub macros and hopefully few prototypes,
21550 which can conflict with char floor (); below.
21551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21552 <limits.h> exists even on freestanding compilers. */
21553
21554 #ifdef __STDC__
21555 # include <limits.h>
21556 #else
21557 # include <assert.h>
21558 #endif
21559
21560 #undef floor
21561
21562 /* Override any GCC internal prototype to avoid an error.
21563 Use char because int might match the return type of a GCC
21564 builtin and then its argument prototype would still apply. */
21565 #ifdef __cplusplus
21566 extern "C"
21567 #endif
21568 char floor ();
21569 /* The GNU C library defines this for functions which it implements
21570 to always fail with ENOSYS. Some functions are actually named
21571 something starting with __ and the normal name is an alias. */
21572 #if defined __stub_floor || defined __stub___floor
21573 choke me
21574 #endif
21575
21576 int
21577 main ()
21578 {
21579 return floor ();
21580 ;
21581 return 0;
21582 }
21583 _ACEOF
21584 rm -f conftest.$ac_objext conftest$ac_exeext
21585 if { (ac_try="$ac_link"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_link") 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } && {
21598 test -z "$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21600 } && test -s conftest$ac_exeext &&
21601 $as_test_x conftest$ac_exeext; then
21602 ac_cv_func_floor=yes
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 ac_cv_func_floor=no
21608 fi
21609
21610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21611 conftest$ac_exeext conftest.$ac_ext
21612 fi
21613 { echo "$as_me:$LINENO: result: $ac_cv_func_floor" >&5
21614 echo "${ECHO_T}$ac_cv_func_floor" >&6; }
21615 if test $ac_cv_func_floor = yes; then
21616 :
21617 else
21618 { echo "$as_me:$LINENO: checking for floor in -lm" >&5
21619 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6; }
21620 if test "${ac_cv_lib_m_floor+set}" = set; then
21621 echo $ECHO_N "(cached) $ECHO_C" >&6
21622 else
21623 ac_check_lib_save_LIBS=$LIBS
21624 LIBS="-lm $LIBS"
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h. */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631
21632 /* Override any GCC internal prototype to avoid an error.
21633 Use char because int might match the return type of a GCC
21634 builtin and then its argument prototype would still apply. */
21635 #ifdef __cplusplus
21636 extern "C"
21637 #endif
21638 char floor ();
21639 int
21640 main ()
21641 {
21642 return floor ();
21643 ;
21644 return 0;
21645 }
21646 _ACEOF
21647 rm -f conftest.$ac_objext conftest$ac_exeext
21648 if { (ac_try="$ac_link"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_link") 2>conftest.er1
21655 ac_status=$?
21656 grep -v '^ *+' conftest.er1 >conftest.err
21657 rm -f conftest.er1
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest$ac_exeext &&
21664 $as_test_x conftest$ac_exeext; then
21665 ac_cv_lib_m_floor=yes
21666 else
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21669
21670 ac_cv_lib_m_floor=no
21671 fi
21672
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674 conftest$ac_exeext conftest.$ac_ext
21675 LIBS=$ac_check_lib_save_LIBS
21676 fi
21677 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
21678 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6; }
21679 if test $ac_cv_lib_m_floor = yes; then
21680 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21681 #define HAVE_FLOOR 1
21682 _ACEOF
21683
21684 fi
21685
21686 fi
21687
21688
21689 { echo "$as_me:$LINENO: checking for fabs" >&5
21690 echo $ECHO_N "checking for fabs... $ECHO_C" >&6; }
21691 if test "${ac_cv_func_fabs+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693 else
21694 cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h. */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 /* Define fabs to an innocuous variant, in case <limits.h> declares fabs.
21701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21702 #define fabs innocuous_fabs
21703
21704 /* System header to define __stub macros and hopefully few prototypes,
21705 which can conflict with char fabs (); below.
21706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21707 <limits.h> exists even on freestanding compilers. */
21708
21709 #ifdef __STDC__
21710 # include <limits.h>
21711 #else
21712 # include <assert.h>
21713 #endif
21714
21715 #undef fabs
21716
21717 /* Override any GCC internal prototype to avoid an error.
21718 Use char because int might match the return type of a GCC
21719 builtin and then its argument prototype would still apply. */
21720 #ifdef __cplusplus
21721 extern "C"
21722 #endif
21723 char fabs ();
21724 /* The GNU C library defines this for functions which it implements
21725 to always fail with ENOSYS. Some functions are actually named
21726 something starting with __ and the normal name is an alias. */
21727 #if defined __stub_fabs || defined __stub___fabs
21728 choke me
21729 #endif
21730
21731 int
21732 main ()
21733 {
21734 return fabs ();
21735 ;
21736 return 0;
21737 }
21738 _ACEOF
21739 rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743 *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746 (eval "$ac_link") 2>conftest.er1
21747 ac_status=$?
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } && {
21753 test -z "$ac_c_werror_flag" ||
21754 test ! -s conftest.err
21755 } && test -s conftest$ac_exeext &&
21756 $as_test_x conftest$ac_exeext; then
21757 ac_cv_func_fabs=yes
21758 else
21759 echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 ac_cv_func_fabs=no
21763 fi
21764
21765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21766 conftest$ac_exeext conftest.$ac_ext
21767 fi
21768 { echo "$as_me:$LINENO: result: $ac_cv_func_fabs" >&5
21769 echo "${ECHO_T}$ac_cv_func_fabs" >&6; }
21770 if test $ac_cv_func_fabs = yes; then
21771 :
21772 else
21773 { echo "$as_me:$LINENO: checking for fabs in -lm" >&5
21774 echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6; }
21775 if test "${ac_cv_lib_m_fabs+set}" = set; then
21776 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 else
21778 ac_check_lib_save_LIBS=$LIBS
21779 LIBS="-lm $LIBS"
21780 cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h. */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786
21787 /* Override any GCC internal prototype to avoid an error.
21788 Use char because int might match the return type of a GCC
21789 builtin and then its argument prototype would still apply. */
21790 #ifdef __cplusplus
21791 extern "C"
21792 #endif
21793 char fabs ();
21794 int
21795 main ()
21796 {
21797 return fabs ();
21798 ;
21799 return 0;
21800 }
21801 _ACEOF
21802 rm -f conftest.$ac_objext conftest$ac_exeext
21803 if { (ac_try="$ac_link"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21807 esac
21808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21809 (eval "$ac_link") 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && {
21816 test -z "$ac_c_werror_flag" ||
21817 test ! -s conftest.err
21818 } && test -s conftest$ac_exeext &&
21819 $as_test_x conftest$ac_exeext; then
21820 ac_cv_lib_m_fabs=yes
21821 else
21822 echo "$as_me: failed program was:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21824
21825 ac_cv_lib_m_fabs=no
21826 fi
21827
21828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21829 conftest$ac_exeext conftest.$ac_ext
21830 LIBS=$ac_check_lib_save_LIBS
21831 fi
21832 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
21833 echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6; }
21834 if test $ac_cv_lib_m_fabs = yes; then
21835 M_LIBS="-lm"; cat >>confdefs.h <<\_ACEOF
21836 #define HAVE_FABS 1
21837 _ACEOF
21838
21839 fi
21840
21841 fi
21842
21843
21844 for ac_func in gettimeofday
21845 do
21846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21850 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 else
21852 cat >conftest.$ac_ext <<_ACEOF
21853 /* confdefs.h. */
21854 _ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
21859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21860 #define $ac_func innocuous_$ac_func
21861
21862 /* System header to define __stub macros and hopefully few prototypes,
21863 which can conflict with char $ac_func (); below.
21864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21865 <limits.h> exists even on freestanding compilers. */
21866
21867 #ifdef __STDC__
21868 # include <limits.h>
21869 #else
21870 # include <assert.h>
21871 #endif
21872
21873 #undef $ac_func
21874
21875 /* Override any GCC internal prototype to avoid an error.
21876 Use char because int might match the return type of a GCC
21877 builtin and then its argument prototype would still apply. */
21878 #ifdef __cplusplus
21879 extern "C"
21880 #endif
21881 char $ac_func ();
21882 /* The GNU C library defines this for functions which it implements
21883 to always fail with ENOSYS. Some functions are actually named
21884 something starting with __ and the normal name is an alias. */
21885 #if defined __stub_$ac_func || defined __stub___$ac_func
21886 choke me
21887 #endif
21888
21889 int
21890 main ()
21891 {
21892 return $ac_func ();
21893 ;
21894 return 0;
21895 }
21896 _ACEOF
21897 rm -f conftest.$ac_objext conftest$ac_exeext
21898 if { (ac_try="$ac_link"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21902 esac
21903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_link") 2>conftest.er1
21905 ac_status=$?
21906 grep -v '^ *+' conftest.er1 >conftest.err
21907 rm -f conftest.er1
21908 cat conftest.err >&5
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest$ac_exeext &&
21914 $as_test_x conftest$ac_exeext; then
21915 eval "$as_ac_var=yes"
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21919
21920 eval "$as_ac_var=no"
21921 fi
21922
21923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21924 conftest$ac_exeext conftest.$ac_ext
21925 fi
21926 ac_res=`eval echo '${'$as_ac_var'}'`
21927 { echo "$as_me:$LINENO: result: $ac_res" >&5
21928 echo "${ECHO_T}$ac_res" >&6; }
21929 if test `eval echo '${'$as_ac_var'}'` = yes; then
21930 cat >>confdefs.h <<_ACEOF
21931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21932 _ACEOF
21933
21934 fi
21935 done
21936
21937
21938
21939
21940
21941
21942
21943
21944 for ac_func in mktime localtime localtime_r asctime time gmtime_r ftime
21945 do
21946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21951 else
21952 cat >conftest.$ac_ext <<_ACEOF
21953 /* confdefs.h. */
21954 _ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
21959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21960 #define $ac_func innocuous_$ac_func
21961
21962 /* System header to define __stub macros and hopefully few prototypes,
21963 which can conflict with char $ac_func (); below.
21964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21965 <limits.h> exists even on freestanding compilers. */
21966
21967 #ifdef __STDC__
21968 # include <limits.h>
21969 #else
21970 # include <assert.h>
21971 #endif
21972
21973 #undef $ac_func
21974
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 char $ac_func ();
21982 /* The GNU C library defines this for functions which it implements
21983 to always fail with ENOSYS. Some functions are actually named
21984 something starting with __ and the normal name is an alias. */
21985 #if defined __stub_$ac_func || defined __stub___$ac_func
21986 choke me
21987 #endif
21988
21989 int
21990 main ()
21991 {
21992 return $ac_func ();
21993 ;
21994 return 0;
21995 }
21996 _ACEOF
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001 *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004 (eval "$ac_link") 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && {
22011 test -z "$ac_c_werror_flag" ||
22012 test ! -s conftest.err
22013 } && test -s conftest$ac_exeext &&
22014 $as_test_x conftest$ac_exeext; then
22015 eval "$as_ac_var=yes"
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020 eval "$as_ac_var=no"
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22024 conftest$ac_exeext conftest.$ac_ext
22025 fi
22026 ac_res=`eval echo '${'$as_ac_var'}'`
22027 { echo "$as_me:$LINENO: result: $ac_res" >&5
22028 echo "${ECHO_T}$ac_res" >&6; }
22029 if test `eval echo '${'$as_ac_var'}'` = yes; then
22030 cat >>confdefs.h <<_ACEOF
22031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22032 _ACEOF
22033
22034 fi
22035 done
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046 for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscan f
22047 do
22048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054 cat >conftest.$ac_ext <<_ACEOF
22055 /* confdefs.h. */
22056 _ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
22061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22062 #define $ac_func innocuous_$ac_func
22063
22064 /* System header to define __stub macros and hopefully few prototypes,
22065 which can conflict with char $ac_func (); below.
22066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22067 <limits.h> exists even on freestanding compilers. */
22068
22069 #ifdef __STDC__
22070 # include <limits.h>
22071 #else
22072 # include <assert.h>
22073 #endif
22074
22075 #undef $ac_func
22076
22077 /* Override any GCC internal prototype to avoid an error.
22078 Use char because int might match the return type of a GCC
22079 builtin and then its argument prototype would still apply. */
22080 #ifdef __cplusplus
22081 extern "C"
22082 #endif
22083 char $ac_func ();
22084 /* The GNU C library defines this for functions which it implements
22085 to always fail with ENOSYS. Some functions are actually named
22086 something starting with __ and the normal name is an alias. */
22087 #if defined __stub_$ac_func || defined __stub___$ac_func
22088 choke me
22089 #endif
22090
22091 int
22092 main ()
22093 {
22094 return $ac_func ();
22095 ;
22096 return 0;
22097 }
22098 _ACEOF
22099 rm -f conftest.$ac_objext conftest$ac_exeext
22100 if { (ac_try="$ac_link"
22101 case "(($ac_try" in
22102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22103 *) ac_try_echo=$ac_try;;
22104 esac
22105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22106 (eval "$ac_link") 2>conftest.er1
22107 ac_status=$?
22108 grep -v '^ *+' conftest.er1 >conftest.err
22109 rm -f conftest.er1
22110 cat conftest.err >&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } && {
22113 test -z "$ac_c_werror_flag" ||
22114 test ! -s conftest.err
22115 } && test -s conftest$ac_exeext &&
22116 $as_test_x conftest$ac_exeext; then
22117 eval "$as_ac_var=yes"
22118 else
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22121
22122 eval "$as_ac_var=no"
22123 fi
22124
22125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22126 conftest$ac_exeext conftest.$ac_ext
22127 fi
22128 ac_res=`eval echo '${'$as_ac_var'}'`
22129 { echo "$as_me:$LINENO: result: $ac_res" >&5
22130 echo "${ECHO_T}$ac_res" >&6; }
22131 if test `eval echo '${'$as_ac_var'}'` = yes; then
22132 cat >>confdefs.h <<_ACEOF
22133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22134 _ACEOF
22135
22136 else
22137 NEED_TRIO=1
22138 fi
22139 done
22140
22141
22142
22143 if test "${NEED_TRIO}" = "1" ; then
22144 echo Reusing trio library for string functions
22145 WITH_TRIO=1
22146 else
22147 WITH_TRIO=0
22148 fi
22149
22150
22151
22152
22153
22154 # Extract the first word of "perl", so it can be a program name with args.
22155 set dummy perl; ac_word=$2
22156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22158 if test "${ac_cv_prog_PERL+set}" = set; then
22159 echo $ECHO_N "(cached) $ECHO_C" >&6
22160 else
22161 if test -n "$PERL"; then
22162 ac_cv_prog_PERL="$PERL" # Let the user override the test.
22163 else
22164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22165 for as_dir in $PATH
22166 do
22167 IFS=$as_save_IFS
22168 test -z "$as_dir" && as_dir=.
22169 for ac_exec_ext in '' $ac_executable_extensions; do
22170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
22171 ac_cv_prog_PERL="perl"
22172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22173 break 2
22174 fi
22175 done
22176 done
22177 IFS=$as_save_IFS
22178
22179 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="false"
22180 fi
22181 fi
22182 PERL=$ac_cv_prog_PERL
22183 if test -n "$PERL"; then
22184 { echo "$as_me:$LINENO: result: $PERL" >&5
22185 echo "${ECHO_T}$PERL" >&6; }
22186 else
22187 { echo "$as_me:$LINENO: result: no" >&5
22188 echo "${ECHO_T}no" >&6; }
22189 fi
22190
22191
22192 if test "$PERL" != "false"; then
22193 WITH_PERL_TRUE=
22194 WITH_PERL_FALSE='#'
22195 else
22196 WITH_PERL_TRUE='#'
22197 WITH_PERL_FALSE=
22198 fi
22199
22200
22201
22202 PYTHON_VERSION=
22203 PYTHON_INCLUDES=
22204 PYTHON_SITE_PACKAGES=
22205 pythondir=
22206
22207 # Check whether --with-python was given.
22208 if test "${with_python+set}" = set; then
22209 withval=$with_python;
22210 fi
22211
22212 if test "$with_python" != "no" ; then
22213 if test -x "$with_python/bin/python"
22214 then
22215 echo Found python in $with_python/bin/python
22216 PYTHON="$with_python/bin/python"
22217 else
22218 if test -x "$with_python"
22219 then
22220 echo Found python in $with_python
22221 PYTHON="$with_python"
22222 else
22223 if test -x "$PYTHON"
22224 then
22225 echo Found python in environment PYTHON=$PYTHON
22226 with_python=`$PYTHON -c "import sys; print sys.exec_prefix"`
22227 else
22228 # Extract the first word of "python python2.4 python2.3 python2. 2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with arg s.
22229 set dummy python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 pyt hon1.5; ac_word=$2
22230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22232 if test "${ac_cv_path_PYTHON+set}" = set; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234 else
22235 case $PYTHON in
22236 [\\/]* | ?:[\\/]*)
22237 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22238 ;;
22239 *)
22240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22241 for as_dir in $PATH
22242 do
22243 IFS=$as_save_IFS
22244 test -z "$as_dir" && as_dir=.
22245 for ac_exec_ext in '' $ac_executable_extensions; do
22246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
22247 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22249 break 2
22250 fi
22251 done
22252 done
22253 IFS=$as_save_IFS
22254
22255 ;;
22256 esac
22257 fi
22258 PYTHON=$ac_cv_path_PYTHON
22259 if test -n "$PYTHON"; then
22260 { echo "$as_me:$LINENO: result: $PYTHON" >&5
22261 echo "${ECHO_T}$PYTHON" >&6; }
22262 else
22263 { echo "$as_me:$LINENO: result: no" >&5
22264 echo "${ECHO_T}no" >&6; }
22265 fi
22266
22267
22268 fi
22269 fi
22270 fi
22271 if test "$PYTHON" != ""
22272 then
22273 echo "PYTHON is pointing at $PYTHON"
22274 PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
22275 echo Found Python version $PYTHON_VERSION
22276 LIBXML2_PYTHON=`$PYTHON -c "try : import libxml2 ; print 1
22277 except: print 0"`
22278 if test "$LIBXML2_PYTHON" = "1"
22279 then
22280 echo Found libxml2-python module
22281 else
22282 echo Warning: Missing libxml2-python
22283 fi
22284 fi
22285 if test "$PYTHON_VERSION" != ""
22286 then
22287 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
22288 -d $with_python/lib/python$PYTHON_VERSION/site-packages
22289 then
22290 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
22291 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-package s'
22292 else
22293 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
22294 then
22295 PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION
22296 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-pac kages'
22297 else
22298 if test -r /usr/include/python$PYTHON_VERSION/Python.h
22299 then
22300 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
22301 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site -packages'
22302 else
22303 echo could not find python$PYTHON_VERSION/Python.h
22304 fi
22305 fi
22306 if test ! -d "$PYTHON_SITE_PACKAGES"
22307 then
22308 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysc onfig; print sysconfig.get_python_lib()"`
22309 fi
22310 fi
22311 fi
22312 if test "$with_python" != ""
22313 then
22314 pythondir='$(PYTHON_SITE_PACKAGES)'
22315 else
22316 pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages'
22317 fi
22318 fi
22319 if test "$PYTHON_INCLUDES" != ""; then
22320 WITH_PYTHON_TRUE=
22321 WITH_PYTHON_FALSE='#'
22322 else
22323 WITH_PYTHON_TRUE='#'
22324 WITH_PYTHON_FALSE=
22325 fi
22326
22327 if test "$PYTHON_INCLUDES" != ""
22328 then
22329 PYTHON_SUBDIR=python
22330 else
22331 PYTHON_SUBDIR=
22332 fi
22333
22334
22335
22336
22337 # Check whether --with-crypto was given.
22338 if test "${with_crypto+set}" = set; then
22339 withval=$with_crypto;
22340 fi
22341
22342 WITH_CRYPTO=0
22343 if test "$with_crypto" = "no" ; then
22344 echo Disabling crypto support
22345 LIBGCRYPT_CFLAGS=""
22346 LIBGCRYPT_LIBS=""
22347 else
22348 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
22349 set dummy libgcrypt-config; ac_word=$2
22350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22352 if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354 else
22355 case $LIBGCRYPT_CONFIG in
22356 [\\/]* | ?:[\\/]*)
22357 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the te st with a path.
22358 ;;
22359 *)
22360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22361 for as_dir in $PATH
22362 do
22363 IFS=$as_save_IFS
22364 test -z "$as_dir" && as_dir=.
22365 for ac_exec_ext in '' $ac_executable_extensions; do
22366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
22367 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22369 break 2
22370 fi
22371 done
22372 done
22373 IFS=$as_save_IFS
22374
22375 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
22376 ;;
22377 esac
22378 fi
22379 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
22380 if test -n "$LIBGCRYPT_CONFIG"; then
22381 { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
22382 echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
22383 else
22384 { echo "$as_me:$LINENO: result: no" >&5
22385 echo "${ECHO_T}no" >&6; }
22386 fi
22387
22388
22389 if test "$LIBGCRYPT_CONFIG" != "no" ; then
22390 LIBGCRYPT_VERSION=`$LIBGCRYPT_CONFIG --version`
22391 if test `echo $LIBGCRYPT_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -lt `echo "1.1.42" | se d -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
22392 then
22393 LIBGCRYPT_CFLAGS=""
22394 LIBGCRYPT_LIBS=""
22395 echo 'gcrypt library version < 1.1.42 - Crypto extensions will not be av ailable.'
22396 else
22397 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --cflags`
22398 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG $libgcrypt_config_args --libs`
22399
22400 cat >>confdefs.h <<\_ACEOF
22401 #define HAVE_GCRYPT 1
22402 _ACEOF
22403
22404 echo 'Crypto extensions will be available.'
22405 WITH_CRYPTO=1
22406 fi
22407 else
22408 LIBGCRYPT_CFLAGS=""
22409 LIBGCRYPT_LIBS=""
22410 echo 'Crypto extensions will not be available. Install libgcrypt and recon figure to make available.'
22411 fi
22412 fi
22413
22414
22415
22416
22417 if [ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ] || \
22418 [ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxslt" ]
22419 then
22420 if test "${with_mem_debug}" = "" ;
22421 then
22422 with_mem_debug="yes"
22423 fi
22424 CFLAGS="-Wall -g -O -ansi -pedantic -W -Wunused -Wimplicit -Wreturn-type -Ws witch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparenth eses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -W strict-prototypes -Wmissing-prototypes -Wnested-externs -Winline "
22425 if test "`uname -m`" != "x86_64" ;
22426 then
22427 STATIC_BINARIES="-static"
22428 else
22429 STATIC_BINARIES=
22430 fi
22431 if test "$LOGNAME" = "veillard"
22432 then
22433 LIBXML_SRC="/u/veillard/XML"
22434 EXTRA_LIBS="$EXTRA_LIBS -ldl"
22435 fi
22436 else
22437 STATIC_BINARIES=
22438 fi
22439
22440
22441
22442 # Check whether --with-debug was given.
22443 if test "${with_debug+set}" = set; then
22444 withval=$with_debug;
22445 fi
22446
22447 if test "$with_debug" = "no" ; then
22448 echo Disabling debug support
22449 WITH_XSLT_DEBUG=0
22450 else
22451 WITH_XSLT_DEBUG=1
22452 fi
22453
22454
22455
22456 # Check whether --with-mem_debug was given.
22457 if test "${with_mem_debug+set}" = set; then
22458 withval=$with_mem_debug;
22459 fi
22460
22461 if test "$with_mem_debug" = "yes" ; then
22462 echo Enabling memory debug support
22463 WITH_MEM_DEBUG=1
22464 else
22465 WITH_MEM_DEBUG=0
22466 fi
22467
22468
22469
22470 # Check whether --with-with_debugger was given.
22471 if test "${with_with_debugger+set}" = set; then
22472 withval=$with_with_debugger;
22473 fi
22474
22475 if test "$with_debugger" = "no" ; then
22476 echo Disabling debugger
22477 WITH_DEBUGGER=0
22478 else
22479 echo Enabling debugger
22480 WITH_DEBUGGER=1
22481 cat >>confdefs.h <<\_ACEOF
22482 #define WITH_DEBUGGER 1
22483 _ACEOF
22484
22485 fi
22486
22487
22488
22489 LIBXML_CONFIG_PREFIX=""
22490 LIBXML_SRC=""
22491
22492
22493 # Check whether --with-libxml-prefix was given.
22494 if test "${with_libxml_prefix+set}" = set; then
22495 withval=$with_libxml_prefix; LIBXML_CONFIG_PREFIX=$withval
22496
22497 fi
22498
22499
22500
22501 # Check whether --with-libxml-include-prefix was given.
22502 if test "${with_libxml_include_prefix+set}" = set; then
22503 withval=$with_libxml_include_prefix; LIBXML_CFLAGS="-I$withval"
22504
22505 fi
22506
22507
22508
22509 # Check whether --with-libxml-libs-prefix was given.
22510 if test "${with_libxml_libs_prefix+set}" = set; then
22511 withval=$with_libxml_libs_prefix; LIBXML_LIBS="-L$withval"
22512
22513 fi
22514
22515
22516
22517 # Check whether --with-libxml-src was given.
22518 if test "${with_libxml_src+set}" = set; then
22519 withval=$with_libxml_src; LIBXML_SRC="$withval"
22520
22521 fi
22522
22523
22524
22525
22526
22527 { echo "$as_me:$LINENO: checking for libxml libraries >= $LIBXML_REQUIRED_VERSIO N" >&5
22528 echo $ECHO_N "checking for libxml libraries >= $LIBXML_REQUIRED_VERSION... $ECHO _C" >&6; }
22529 if test "x$LIBXML_CONFIG_PREFIX" != "x"
22530 then
22531 XML_CONFIG=${LIBXML_CONFIG_PREFIX}/bin/xml2-config
22532 else
22533 XML_CONFIG=xml2-config
22534 fi
22535
22536 if test "${GCC}" != "yes" ; then
22537 case "${host}" in
22538 *-*-hpux* )
22539 CFLAGS="${CFLAGS} -Wp,-H30000"
22540 ;;
22541 *-dec-osf* )
22542 CFLAGS="${CFLAGS} -ieee"
22543 ;;
22544 esac
22545 else
22546 CFLAGS="${CFLAGS} -Wall"
22547 case "${host}" in
22548 alpha*-*-linux* )
22549 CFLAGS="${CFLAGS} -mieee"
22550 ;;
22551 alpha*-*-osf* )
22552 CFLAGS="${CFLAGS} -mieee"
22553 ;;
22554 esac
22555 fi
22556
22557
22558 if test "x$LIBXML_SRC" != "x"
22559 then
22560 CWD=`pwd`
22561 if cd $LIBXML_SRC
22562 then
22563 SRC_DIR=`pwd`
22564 XML_CONFIG=${SRC_DIR}/xml2-config
22565 LIBXML_CFLAGS="-I${SRC_DIR}/include"
22566 LIBXML_LIBS="-L${SRC_DIR}"
22567 cd $CWD
22568 else
22569 { { echo "$as_me:$LINENO: error: libxml source dir not found (${ LIBXML_SRC}), typo?" >&5
22570 echo "$as_me: error: libxml source dir not found (${LIBXML_SRC}), typo?" >&2;}
22571 { (exit 1); exit 1; }; }
22572 fi
22573 fi
22574
22575
22576 if ${XML_CONFIG} --libs print > /dev/null 2>&1
22577 then
22578 XMLVERS=`$XML_CONFIG --version`
22579 if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERS ION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
22580 then
22581 LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`"
22582 LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`"
22583 { echo "$as_me:$LINENO: result: $XMLVERS found" >&5
22584 echo "${ECHO_T}$XMLVERS found" >&6; }
22585 else
22586 { { echo "$as_me:$LINENO: error: Version $XMLVERS found. You nee d at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&5
22587 echo "$as_me: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_R EQUIRED_VERSION for this version of libxslt" >&2;}
22588 { (exit 1); exit 1; }; }
22589 fi
22590 else
22591 { { echo "$as_me:$LINENO: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&5
22592 echo "$as_me: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&2;}
22593 { (exit 1); exit 1; }; }
22594 fi
22595
22596
22597
22598
22599
22600
22601
22602 # Check whether --with-plugins was given.
22603 if test "${with_plugins+set}" = set; then
22604 withval=$with_plugins;
22605 fi
22606
22607 if test "$with_plugins" = ""
22608 then
22609 with_plugins=yes
22610 fi
22611
22612 { echo "$as_me:$LINENO: checking whether shared libraries will be built (require d for plugins)" >&5
22613 echo $ECHO_N "checking whether shared libraries will be built (required for plug ins)... $ECHO_C" >&6; }
22614 if test "$enable_shared" = "no" -a "$with_plugins" = "yes"; then
22615 { echo "$as_me:$LINENO: result: no" >&5
22616 echo "${ECHO_T}no" >&6; }
22617 { echo "$as_me:$LINENO: WARNING: Disabling plugin support." >&5
22618 echo "$as_me: WARNING: Disabling plugin support." >&2;}
22619 { echo "$as_me:$LINENO: WARNING: Plugins require that shared libraries be built." >&5
22620 echo "$as_me: WARNING: Plugins require that shared libraries be built." >&2;}
22621 with_plugins=no
22622 else
22623 { echo "$as_me:$LINENO: result: yes" >&5
22624 echo "${ECHO_T}yes" >&6; }
22625 fi
22626
22627 if test "$with_plugins" = "yes" ; then
22628 { echo "$as_me:$LINENO: checking libxml2 module support" >&5
22629 echo $ECHO_N "checking libxml2 module support... $ECHO_C" >&6; }
22630 WITH_MODULES="`$XML_CONFIG --modules`"
22631 if test "${WITH_MODULES}" = "1"; then
22632 { echo "$as_me:$LINENO: result: yes" >&5
22633 echo "${ECHO_T}yes" >&6; }
22634 else
22635 { echo "$as_me:$LINENO: result: no" >&5
22636 echo "${ECHO_T}no" >&6; }
22637 WITH_MODULES="0"
22638 fi
22639 else
22640 WITH_MODULES="0"
22641 fi
22642
22643
22644 if test "$WITH_MODULES" = "1"; then
22645 WITH_MODULES_TRUE=
22646 WITH_MODULES_FALSE='#'
22647 else
22648 WITH_MODULES_TRUE='#'
22649 WITH_MODULES_FALSE=
22650 fi
22651
22652
22653 module_prefix=$prefix
22654 test "x$module_prefix" = xNONE && module_prefix=$ac_default_prefix
22655 LIBXSLT_DEFAULT_PLUGINS_PATH="$module_prefix/lib/libxslt-plugins"
22656
22657
22658 if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XSLT" ; then
22659 if test "`uname -i`" != "x86_64" -a -e $HOME/XML/.libs/libxml2.a ;
22660 then
22661 LIBXML_LIBS="$HOME/XML/.libs/libxml2.a -lpthread -lz"
22662 fi
22663 DV_LINK="1"
22664 XSLTPROCDV="xsltproc.dv"
22665 INSTALLED_XSLT_LIB=""
22666 LIBXML_SRC="$HOME/XML/"
22667 fi
22668
22669 WIN32_EXTRA_LIBADD=
22670 WIN32_EXTRA_LDFLAGS=
22671 case "$host" in
22672 *-*-mingw*)
22673 WIN32_EXTRA_LIBADD="-lwsock32"
22674 WIN32_EXTRA_LDFLAGS="-no-undefined"
22675
22676 cat >>confdefs.h <<\_ACEOF
22677 #define _WINSOCKAPI_ 1
22678 _ACEOF
22679
22680
22681 cat >>confdefs.h <<\_ACEOF
22682 #define snprintf _snprintf
22683 _ACEOF
22684
22685
22686 cat >>confdefs.h <<\_ACEOF
22687 #define vsnprintf _vsnprintf
22688 _ACEOF
22689
22690 ;;
22691 esac
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706 XSLT_LIBDIR='-L${libdir}'
22707 XSLT_INCLUDEDIR='-I${includedir}'
22708 XSLT_LIBS="-lxslt $LIBXML_LIBS $M_LIBS"
22709
22710
22711
22712
22713 EXSLT_LIBDIR='-L${libdir}'
22714 EXSLT_INCLUDEDIR='-I${includedir}'
22715 EXSLT_LIBS="-lexslt $XSLT_LIBS $LIBGCRYPT_LIBS"
22716
22717
22718
22719
22720 EXTRA_LIBS="$EXTRA_LIBS $LIBXML_LIBS $M_LIBS"
22721
22722
22723
22724
22725 RELDATE=`date +'%a %b %e %Y'`
22726
22727
22728 ( cd $srcdir
22729 rm -f COPYING.LIB COPYING
22730 $LN_S Copyright COPYING
22731 )
22732
22733
22734 ac_config_files="$ac_config_files libxslt/xsltconfig.h libxslt/xsltwin32config.h libexslt/exsltconfig.h xslt-config"
22735
22736 cat >confcache <<\_ACEOF
22737 # This file is a shell script that caches the results of configure
22738 # tests run on this system so they can be shared between configure
22739 # scripts and configure runs, see configure's option --config-cache.
22740 # It is not useful on other systems. If it contains results you don't
22741 # want to keep, you may remove or edit it.
22742 #
22743 # config.status only pays attention to the cache file if you give it
22744 # the --recheck option to rerun configure.
22745 #
22746 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22747 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22748 # following values.
22749
22750 _ACEOF
22751
22752 # The following way of writing the cache mishandles newlines in values,
22753 # but we know of no workaround that is simple, portable, and efficient.
22754 # So, we kill variables containing newlines.
22755 # Ultrix sh set writes to stderr and can't be redirected directly,
22756 # and sets the high bit in the cache file unless we assign to the vars.
22757 (
22758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d o
22759 eval ac_val=\$$ac_var
22760 case $ac_val in #(
22761 *${as_nl}*)
22762 case $ac_var in #(
22763 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22764 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22765 esac
22766 case $ac_var in #(
22767 _ | IFS | as_nl) ;; #(
22768 *) $as_unset $ac_var ;;
22769 esac ;;
22770 esac
22771 done
22772
22773 (set) 2>&1 |
22774 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22775 *${as_nl}ac_space=\ *)
22776 # `set' does not quote correctly, so add quotes (double-quote
22777 # substitution turns \\\\ into \\, and sed turns \\ into \).
22778 sed -n \
22779 "s/'/'\\\\''/g;
22780 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22781 ;; #(
22782 *)
22783 # `set' quotes correctly as required by POSIX, so do not add quotes.
22784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22785 ;;
22786 esac |
22787 sort
22788 ) |
22789 sed '
22790 /^ac_cv_env_/b end
22791 t clear
22792 :clear
22793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22794 t end
22795 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22796 :end' >>confcache
22797 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22798 if test -w "$cache_file"; then
22799 test "x$cache_file" != "x/dev/null" &&
22800 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22801 echo "$as_me: updating cache $cache_file" >&6;}
22802 cat confcache >$cache_file
22803 else
22804 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22805 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22806 fi
22807 fi
22808 rm -f confcache
22809
22810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22811 # Let make expand exec_prefix.
22812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22813
22814 DEFS=-DHAVE_CONFIG_H
22815
22816 ac_libobjs=
22817 ac_ltlibobjs=
22818 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22819 # 1. Remove the extension, and $U if already installed.
22820 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22821 ac_i=`echo "$ac_i" | sed "$ac_script"`
22822 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22823 # will be set to the directory where LIBOBJS objects are built.
22824 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22825 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22826 done
22827 LIBOBJS=$ac_libobjs
22828
22829 LTLIBOBJS=$ac_ltlibobjs
22830
22831
22832 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22833 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22834 Usually this means the macro was only invoked conditionally." >&5
22835 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22836 Usually this means the macro was only invoked conditionally." >&2;}
22837 { (exit 1); exit 1; }; }
22838 fi
22839 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22840 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defin ed.
22841 Usually this means the macro was only invoked conditionally." >&5
22842 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22843 Usually this means the macro was only invoked conditionally." >&2;}
22844 { (exit 1); exit 1; }; }
22845 fi
22846 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22847 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defin ed.
22848 Usually this means the macro was only invoked conditionally." >&5
22849 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22850 Usually this means the macro was only invoked conditionally." >&2;}
22851 { (exit 1); exit 1; }; }
22852 fi
22853 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22854 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defi ned.
22855 Usually this means the macro was only invoked conditionally." >&5
22856 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22857 Usually this means the macro was only invoked conditionally." >&2;}
22858 { (exit 1); exit 1; }; }
22859 fi
22860 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
22861 { { echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
22862 Usually this means the macro was only invoked conditionally." >&5
22863 echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
22864 Usually this means the macro was only invoked conditionally." >&2;}
22865 { (exit 1); exit 1; }; }
22866 fi
22867 if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
22868 { { echo "$as_me:$LINENO: error: conditional \"WITH_PYTHON\" was never defined .
22869 Usually this means the macro was only invoked conditionally." >&5
22870 echo "$as_me: error: conditional \"WITH_PYTHON\" was never defined.
22871 Usually this means the macro was only invoked conditionally." >&2;}
22872 { (exit 1); exit 1; }; }
22873 fi
22874 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
22875 { { echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never define d.
22876 Usually this means the macro was only invoked conditionally." >&5
22877 echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
22878 Usually this means the macro was only invoked conditionally." >&2;}
22879 { (exit 1); exit 1; }; }
22880 fi
22881
22882 : ${CONFIG_STATUS=./config.status}
22883 ac_clean_files_save=$ac_clean_files
22884 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22885 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22886 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22887 cat >$CONFIG_STATUS <<_ACEOF
22888 #! $SHELL
22889 # Generated by $as_me.
22890 # Run this file to recreate the current configuration.
22891 # Compiler output produced by configure, useful for debugging
22892 # configure, is in config.log if it exists.
22893
22894 debug=false
22895 ac_cs_recheck=false
22896 ac_cs_silent=false
22897 SHELL=\${CONFIG_SHELL-$SHELL}
22898 _ACEOF
22899
22900 cat >>$CONFIG_STATUS <<\_ACEOF
22901 ## --------------------- ##
22902 ## M4sh Initialization. ##
22903 ## --------------------- ##
22904
22905 # Be more Bourne compatible
22906 DUALCASE=1; export DUALCASE # for MKS sh
22907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22908 emulate sh
22909 NULLCMD=:
22910 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22911 # is contrary to our usage. Disable this feature.
22912 alias -g '${1+"$@"}'='"$@"'
22913 setopt NO_GLOB_SUBST
22914 else
22915 case `(set -o) 2>/dev/null` in
22916 *posix*) set -o posix ;;
22917 esac
22918
22919 fi
22920
22921
22922
22923
22924 # PATH needs CR
22925 # Avoid depending upon Character Ranges.
22926 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22927 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22928 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22929 as_cr_digits='0123456789'
22930 as_cr_alnum=$as_cr_Letters$as_cr_digits
22931
22932 # The user is always right.
22933 if test "${PATH_SEPARATOR+set}" != set; then
22934 echo "#! /bin/sh" >conf$$.sh
22935 echo "exit 0" >>conf$$.sh
22936 chmod +x conf$$.sh
22937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22938 PATH_SEPARATOR=';'
22939 else
22940 PATH_SEPARATOR=:
22941 fi
22942 rm -f conf$$.sh
22943 fi
22944
22945 # Support unset when possible.
22946 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22947 as_unset=unset
22948 else
22949 as_unset=false
22950 fi
22951
22952
22953 # IFS
22954 # We need space, tab and new line, in precisely that order. Quoting is
22955 # there to prevent editors from complaining about space-tab.
22956 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22957 # splitting by setting IFS to empty value.)
22958 as_nl='
22959 '
22960 IFS=" "" $as_nl"
22961
22962 # Find who we are. Look in the path if we contain no directory separator.
22963 case $0 in
22964 *[\\/]* ) as_myself=$0 ;;
22965 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22966 for as_dir in $PATH
22967 do
22968 IFS=$as_save_IFS
22969 test -z "$as_dir" && as_dir=.
22970 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22971 done
22972 IFS=$as_save_IFS
22973
22974 ;;
22975 esac
22976 # We did not find ourselves, most probably we were run as `sh COMMAND'
22977 # in which case we are not to be found in the path.
22978 if test "x$as_myself" = x; then
22979 as_myself=$0
22980 fi
22981 if test ! -f "$as_myself"; then
22982 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22983 { (exit 1); exit 1; }
22984 fi
22985
22986 # Work around bugs in pre-3.0 UWIN ksh.
22987 for as_var in ENV MAIL MAILPATH
22988 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22989 done
22990 PS1='$ '
22991 PS2='> '
22992 PS4='+ '
22993
22994 # NLS nuisances.
22995 for as_var in \
22996 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22997 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22998 LC_TELEPHONE LC_TIME
22999 do
23000 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23001 eval $as_var=C; export $as_var
23002 else
23003 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23004 fi
23005 done
23006
23007 # Required to use basename.
23008 if expr a : '\(a\)' >/dev/null 2>&1 &&
23009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23010 as_expr=expr
23011 else
23012 as_expr=false
23013 fi
23014
23015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23016 as_basename=basename
23017 else
23018 as_basename=false
23019 fi
23020
23021
23022 # Name of the executable.
23023 as_me=`$as_basename -- "$0" ||
23024 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23025 X"$0" : 'X\(//\)$' \| \
23026 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23027 echo X/"$0" |
23028 sed '/^.*\/\([^/][^/]*\)\/*$/{
23029 s//\1/
23030 q
23031 }
23032 /^X\/\(\/\/\)$/{
23033 s//\1/
23034 q
23035 }
23036 /^X\/\(\/\).*/{
23037 s//\1/
23038 q
23039 }
23040 s/.*/./; q'`
23041
23042 # CDPATH.
23043 $as_unset CDPATH
23044
23045
23046
23047 as_lineno_1=$LINENO
23048 as_lineno_2=$LINENO
23049 test "x$as_lineno_1" != "x$as_lineno_2" &&
23050 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23051
23052 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23053 # uniformly replaced by the line number. The first 'sed' inserts a
23054 # line-number line after each line using $LINENO; the second 'sed'
23055 # does the real work. The second script uses 'N' to pair each
23056 # line-number line with the line containing $LINENO, and appends
23057 # trailing '-' during substitution so that $LINENO is not a special
23058 # case at line end.
23059 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23060 # scripts with optimization help from Paolo Bonzini. Blame Lee
23061 # E. McMahon (1931-1989) for sed's syntax. :-)
23062 sed -n '
23063 p
23064 /[$]LINENO/=
23065 ' <$as_myself |
23066 sed '
23067 s/[$]LINENO.*/&-/
23068 t lineno
23069 b
23070 :lineno
23071 N
23072 :loop
23073 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23074 t loop
23075 s/-\n.*//
23076 ' >$as_me.lineno &&
23077 chmod +x "$as_me.lineno" ||
23078 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell " >&2
23079 { (exit 1); exit 1; }; }
23080
23081 # Don't try to exec as it changes $[0], causing all sort of problems
23082 # (the dirname of $[0] is not the place where we might find the
23083 # original and so on. Autoconf is especially sensitive to this).
23084 . "./$as_me.lineno"
23085 # Exit status is that of the last command.
23086 exit
23087 }
23088
23089
23090 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23091 as_dirname=dirname
23092 else
23093 as_dirname=false
23094 fi
23095
23096 ECHO_C= ECHO_N= ECHO_T=
23097 case `echo -n x` in
23098 -n*)
23099 case `echo 'x\c'` in
23100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23101 *) ECHO_C='\c';;
23102 esac;;
23103 *)
23104 ECHO_N='-n';;
23105 esac
23106
23107 if expr a : '\(a\)' >/dev/null 2>&1 &&
23108 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23109 as_expr=expr
23110 else
23111 as_expr=false
23112 fi
23113
23114 rm -f conf$$ conf$$.exe conf$$.file
23115 if test -d conf$$.dir; then
23116 rm -f conf$$.dir/conf$$.file
23117 else
23118 rm -f conf$$.dir
23119 mkdir conf$$.dir
23120 fi
23121 echo >conf$$.file
23122 if ln -s conf$$.file conf$$ 2>/dev/null; then
23123 as_ln_s='ln -s'
23124 # ... but there are two gotchas:
23125 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23126 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23127 # In both cases, we have to default to `cp -p'.
23128 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23129 as_ln_s='cp -p'
23130 elif ln conf$$.file conf$$ 2>/dev/null; then
23131 as_ln_s=ln
23132 else
23133 as_ln_s='cp -p'
23134 fi
23135 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23136 rmdir conf$$.dir 2>/dev/null
23137
23138 if mkdir -p . 2>/dev/null; then
23139 as_mkdir_p=:
23140 else
23141 test -d ./-p && rmdir ./-p
23142 as_mkdir_p=false
23143 fi
23144
23145 if test -x / >/dev/null 2>&1; then
23146 as_test_x='test -x'
23147 else
23148 if ls -dL / >/dev/null 2>&1; then
23149 as_ls_L_option=L
23150 else
23151 as_ls_L_option=
23152 fi
23153 as_test_x='
23154 eval sh -c '\''
23155 if test -d "$1"; then
23156 test -d "$1/.";
23157 else
23158 case $1 in
23159 -*)set "./$1";;
23160 esac;
23161 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23162 ???[sx]*):;;*)false;;esac;fi
23163 '\'' sh
23164 '
23165 fi
23166 as_executable_p=$as_test_x
23167
23168 # Sed expression to map a string onto a valid CPP name.
23169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23170
23171 # Sed expression to map a string onto a valid variable name.
23172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23173
23174
23175 exec 6>&1
23176
23177 # Save the log message, to keep $[0] and so on meaningful, and to
23178 # report actual input values of CONFIG_FILES etc. instead of their
23179 # values after options handling.
23180 ac_log="
23181 This file was extended by $as_me, which was
23182 generated by GNU Autoconf 2.61. Invocation command line was
23183
23184 CONFIG_FILES = $CONFIG_FILES
23185 CONFIG_HEADERS = $CONFIG_HEADERS
23186 CONFIG_LINKS = $CONFIG_LINKS
23187 CONFIG_COMMANDS = $CONFIG_COMMANDS
23188 $ $0 $@
23189
23190 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23191 "
23192
23193 _ACEOF
23194
23195 cat >>$CONFIG_STATUS <<_ACEOF
23196 # Files that config.status was made for.
23197 config_files="$ac_config_files"
23198 config_headers="$ac_config_headers"
23199 config_commands="$ac_config_commands"
23200
23201 _ACEOF
23202
23203 cat >>$CONFIG_STATUS <<\_ACEOF
23204 ac_cs_usage="\
23205 \`$as_me' instantiates files from templates according to the
23206 current configuration.
23207
23208 Usage: $0 [OPTIONS] [FILE]...
23209
23210 -h, --help print this help, then exit
23211 -V, --version print version number and configuration settings, then exit
23212 -q, --quiet do not print progress messages
23213 -d, --debug don't remove temporary files
23214 --recheck update $as_me by reconfiguring in the same conditions
23215 --file=FILE[:TEMPLATE]
23216 instantiate the configuration file FILE
23217 --header=FILE[:TEMPLATE]
23218 instantiate the configuration header FILE
23219
23220 Configuration files:
23221 $config_files
23222
23223 Configuration headers:
23224 $config_headers
23225
23226 Configuration commands:
23227 $config_commands
23228
23229 Report bugs to <bug-autoconf@gnu.org>."
23230
23231 _ACEOF
23232 cat >>$CONFIG_STATUS <<_ACEOF
23233 ac_cs_version="\\
23234 config.status
23235 configured by $0, generated by GNU Autoconf 2.61,
23236 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g '`\\"
23237
23238 Copyright (C) 2006 Free Software Foundation, Inc.
23239 This config.status script is free software; the Free Software Foundation
23240 gives unlimited permission to copy, distribute and modify it."
23241
23242 ac_pwd='$ac_pwd'
23243 srcdir='$srcdir'
23244 INSTALL='$INSTALL'
23245 MKDIR_P='$MKDIR_P'
23246 _ACEOF
23247
23248 cat >>$CONFIG_STATUS <<\_ACEOF
23249 # If no file are specified by the user, then we need to provide default
23250 # value. By we need to know if files were specified by the user.
23251 ac_need_defaults=:
23252 while test $# != 0
23253 do
23254 case $1 in
23255 --*=*)
23256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23258 ac_shift=:
23259 ;;
23260 *)
23261 ac_option=$1
23262 ac_optarg=$2
23263 ac_shift=shift
23264 ;;
23265 esac
23266
23267 case $ac_option in
23268 # Handling of the options.
23269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23270 ac_cs_recheck=: ;;
23271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23272 echo "$ac_cs_version"; exit ;;
23273 --debug | --debu | --deb | --de | --d | -d )
23274 debug=: ;;
23275 --file | --fil | --fi | --f )
23276 $ac_shift
23277 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23278 ac_need_defaults=false;;
23279 --header | --heade | --head | --hea )
23280 $ac_shift
23281 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23282 ac_need_defaults=false;;
23283 --he | --h)
23284 # Conflict between --help and --header
23285 { echo "$as_me: error: ambiguous option: $1
23286 Try \`$0 --help' for more information." >&2
23287 { (exit 1); exit 1; }; };;
23288 --help | --hel | -h )
23289 echo "$ac_cs_usage"; exit ;;
23290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23292 ac_cs_silent=: ;;
23293
23294 # This is an error.
23295 -*) { echo "$as_me: error: unrecognized option: $1
23296 Try \`$0 --help' for more information." >&2
23297 { (exit 1); exit 1; }; } ;;
23298
23299 *) ac_config_targets="$ac_config_targets $1"
23300 ac_need_defaults=false ;;
23301
23302 esac
23303 shift
23304 done
23305
23306 ac_configure_extra_args=
23307
23308 if $ac_cs_silent; then
23309 exec 6>/dev/null
23310 ac_configure_extra_args="$ac_configure_extra_args --silent"
23311 fi
23312
23313 _ACEOF
23314 cat >>$CONFIG_STATUS <<_ACEOF
23315 if \$ac_cs_recheck; then
23316 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure _extra_args " --no-create --no-recursion" >&6
23317 CONFIG_SHELL=$SHELL
23318 export CONFIG_SHELL
23319 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no- recursion
23320 fi
23321
23322 _ACEOF
23323 cat >>$CONFIG_STATUS <<\_ACEOF
23324 exec 5>>config.log
23325 {
23326 echo
23327 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23328 ## Running $as_me. ##
23329 _ASBOX
23330 echo "$ac_log"
23331 } >&5
23332
23333 _ACEOF
23334 cat >>$CONFIG_STATUS <<_ACEOF
23335 #
23336 # INIT-COMMANDS
23337 #
23338 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23339
23340 _ACEOF
23341
23342 cat >>$CONFIG_STATUS <<\_ACEOF
23343
23344 # Handling of arguments.
23345 for ac_config_target in $ac_config_targets
23346 do
23347 case $ac_config_target in
23348 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23349 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23351 "libxslt.pc") CONFIG_FILES="$CONFIG_FILES libxslt.pc" ;;
23352 "libexslt.pc") CONFIG_FILES="$CONFIG_FILES libexslt.pc" ;;
23353 "libxslt/Makefile") CONFIG_FILES="$CONFIG_FILES libxslt/Makefile" ;;
23354 "libxslt/xsltconfig.h") CONFIG_FILES="$CONFIG_FILES libxslt/xsltconfig.h" ;;
23355 "libxslt/xsltwin32config.h") CONFIG_FILES="$CONFIG_FILES libxslt/xsltwin32co nfig.h" ;;
23356 "libexslt/Makefile") CONFIG_FILES="$CONFIG_FILES libexslt/Makefile" ;;
23357 "libexslt/exsltconfig.h") CONFIG_FILES="$CONFIG_FILES libexslt/exsltconfig.h " ;;
23358 "xsltproc/Makefile") CONFIG_FILES="$CONFIG_FILES xsltproc/Makefile" ;;
23359 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
23360 "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
23361 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23362 "tests/docs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docs/Makefile" ;;
23363 "tests/REC1/Makefile") CONFIG_FILES="$CONFIG_FILES tests/REC1/Makefile" ;;
23364 "tests/REC2/Makefile") CONFIG_FILES="$CONFIG_FILES tests/REC2/Makefile" ;;
23365 "tests/REC/Makefile") CONFIG_FILES="$CONFIG_FILES tests/REC/Makefile" ;;
23366 "tests/general/Makefile") CONFIG_FILES="$CONFIG_FILES tests/general/Makefile " ;;
23367 "tests/reports/Makefile") CONFIG_FILES="$CONFIG_FILES tests/reports/Makefile " ;;
23368 "tests/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES tests/extensions/Ma kefile" ;;
23369 "tests/namespaces/Makefile") CONFIG_FILES="$CONFIG_FILES tests/namespaces/Ma kefile" ;;
23370 "tests/keys/Makefile") CONFIG_FILES="$CONFIG_FILES tests/keys/Makefile" ;;
23371 "tests/numbers/Makefile") CONFIG_FILES="$CONFIG_FILES tests/numbers/Makefile " ;;
23372 "tests/documents/Makefile") CONFIG_FILES="$CONFIG_FILES tests/documents/Make file" ;;
23373 "tests/xmlspec/Makefile") CONFIG_FILES="$CONFIG_FILES tests/xmlspec/Makefile " ;;
23374 "tests/multiple/Makefile") CONFIG_FILES="$CONFIG_FILES tests/multiple/Makefi le" ;;
23375 "tests/xinclude/Makefile") CONFIG_FILES="$CONFIG_FILES tests/xinclude/Makefi le" ;;
23376 "tests/XSLTMark/Makefile") CONFIG_FILES="$CONFIG_FILES tests/XSLTMark/Makefi le" ;;
23377 "tests/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES tests/docbook/Makefile " ;;
23378 "tests/exslt/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/Makefile" ;;
23379 "tests/exslt/common/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/commo n/Makefile" ;;
23380 "tests/exslt/functions/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/fu nctions/Makefile" ;;
23381 "tests/exslt/math/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/math/Ma kefile" ;;
23382 "tests/exslt/sets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/sets/Ma kefile" ;;
23383 "tests/exslt/strings/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/stri ngs/Makefile" ;;
23384 "tests/exslt/date/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/date/Ma kefile" ;;
23385 "tests/exslt/dynamic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/exslt/dyna mic/Makefile" ;;
23386 "tests/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES tests/plugins/Makefile " ;;
23387 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23388 "xslt-config") CONFIG_FILES="$CONFIG_FILES xslt-config" ;;
23389 "libxslt.spec") CONFIG_FILES="$CONFIG_FILES libxslt.spec" ;;
23390
23391 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23392 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23393 { (exit 1); exit 1; }; };;
23394 esac
23395 done
23396
23397
23398 # If the user did not use the arguments to specify the items to instantiate,
23399 # then the envvar interface is used. Set only those that are not.
23400 # We use the long form for the default assignment because of an extremely
23401 # bizarre bug on SunOS 4.1.3.
23402 if $ac_need_defaults; then
23403 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23404 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23405 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23406 fi
23407
23408 # Have a temporary directory for convenience. Make it in the build tree
23409 # simply because there is no reason against having it here, and in addition,
23410 # creating and moving files from /tmp can sometimes cause problems.
23411 # Hook for its removal unless debugging.
23412 # Note that there is a small window in which the directory will not be cleaned:
23413 # after its creation but before its name has been assigned to `$tmp'.
23414 $debug ||
23415 {
23416 tmp=
23417 trap 'exit_status=$?
23418 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23419 ' 0
23420 trap '{ (exit 1); exit 1; }' 1 2 13 15
23421 }
23422 # Create a (secure) tmp directory for tmp files.
23423
23424 {
23425 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23426 test -n "$tmp" && test -d "$tmp"
23427 } ||
23428 {
23429 tmp=./conf$$-$RANDOM
23430 (umask 077 && mkdir "$tmp")
23431 } ||
23432 {
23433 echo "$me: cannot create a temporary directory in ." >&2
23434 { (exit 1); exit 1; }
23435 }
23436
23437 #
23438 # Set up the sed scripts for CONFIG_FILES section.
23439 #
23440
23441 # No need to generate the scripts if there are no CONFIG_FILES.
23442 # This happens for instance when ./config.status config.h
23443 if test -n "$CONFIG_FILES"; then
23444
23445 _ACEOF
23446
23447
23448
23449 ac_delim='%!_!# '
23450 for ac_last_try in false false false false false :; do
23451 cat >conf$$subs.sed <<_ACEOF
23452 SHELL!$SHELL$ac_delim
23453 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23454 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23455 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23456 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23457 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23458 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23459 exec_prefix!$exec_prefix$ac_delim
23460 prefix!$prefix$ac_delim
23461 program_transform_name!$program_transform_name$ac_delim
23462 bindir!$bindir$ac_delim
23463 sbindir!$sbindir$ac_delim
23464 libexecdir!$libexecdir$ac_delim
23465 datarootdir!$datarootdir$ac_delim
23466 datadir!$datadir$ac_delim
23467 sysconfdir!$sysconfdir$ac_delim
23468 sharedstatedir!$sharedstatedir$ac_delim
23469 localstatedir!$localstatedir$ac_delim
23470 includedir!$includedir$ac_delim
23471 oldincludedir!$oldincludedir$ac_delim
23472 docdir!$docdir$ac_delim
23473 infodir!$infodir$ac_delim
23474 htmldir!$htmldir$ac_delim
23475 dvidir!$dvidir$ac_delim
23476 pdfdir!$pdfdir$ac_delim
23477 psdir!$psdir$ac_delim
23478 libdir!$libdir$ac_delim
23479 localedir!$localedir$ac_delim
23480 mandir!$mandir$ac_delim
23481 DEFS!$DEFS$ac_delim
23482 ECHO_C!$ECHO_C$ac_delim
23483 ECHO_N!$ECHO_N$ac_delim
23484 ECHO_T!$ECHO_T$ac_delim
23485 LIBS!$LIBS$ac_delim
23486 build_alias!$build_alias$ac_delim
23487 host_alias!$host_alias$ac_delim
23488 target_alias!$target_alias$ac_delim
23489 build!$build$ac_delim
23490 build_cpu!$build_cpu$ac_delim
23491 build_vendor!$build_vendor$ac_delim
23492 build_os!$build_os$ac_delim
23493 host!$host$ac_delim
23494 host_cpu!$host_cpu$ac_delim
23495 host_vendor!$host_vendor$ac_delim
23496 host_os!$host_os$ac_delim
23497 LIBXSLT_MAJOR_VERSION!$LIBXSLT_MAJOR_VERSION$ac_delim
23498 LIBXSLT_MINOR_VERSION!$LIBXSLT_MINOR_VERSION$ac_delim
23499 LIBXSLT_MICRO_VERSION!$LIBXSLT_MICRO_VERSION$ac_delim
23500 LIBXSLT_VERSION!$LIBXSLT_VERSION$ac_delim
23501 LIBXSLT_VERSION_INFO!$LIBXSLT_VERSION_INFO$ac_delim
23502 LIBXSLT_VERSION_NUMBER!$LIBXSLT_VERSION_NUMBER$ac_delim
23503 LIBXSLT_VERSION_EXTRA!$LIBXSLT_VERSION_EXTRA$ac_delim
23504 LIBXSLT_MAJOR_MINOR_VERSION!$LIBXSLT_MAJOR_MINOR_VERSION$ac_delim
23505 LIBEXSLT_MAJOR_VERSION!$LIBEXSLT_MAJOR_VERSION$ac_delim
23506 LIBEXSLT_MINOR_VERSION!$LIBEXSLT_MINOR_VERSION$ac_delim
23507 LIBEXSLT_MICRO_VERSION!$LIBEXSLT_MICRO_VERSION$ac_delim
23508 LIBEXSLT_VERSION!$LIBEXSLT_VERSION$ac_delim
23509 LIBEXSLT_VERSION_INFO!$LIBEXSLT_VERSION_INFO$ac_delim
23510 LIBEXSLT_VERSION_NUMBER!$LIBEXSLT_VERSION_NUMBER$ac_delim
23511 LIBEXSLT_VERSION_EXTRA!$LIBEXSLT_VERSION_EXTRA$ac_delim
23512 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23513 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23514 INSTALL_DATA!$INSTALL_DATA$ac_delim
23515 am__isrc!$am__isrc$ac_delim
23516 CYGPATH_W!$CYGPATH_W$ac_delim
23517 PACKAGE!$PACKAGE$ac_delim
23518 VERSION!$VERSION$ac_delim
23519 ACLOCAL!$ACLOCAL$ac_delim
23520 AUTOCONF!$AUTOCONF$ac_delim
23521 AUTOMAKE!$AUTOMAKE$ac_delim
23522 AUTOHEADER!$AUTOHEADER$ac_delim
23523 MAKEINFO!$MAKEINFO$ac_delim
23524 install_sh!$install_sh$ac_delim
23525 STRIP!$STRIP$ac_delim
23526 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23527 mkdir_p!$mkdir_p$ac_delim
23528 AWK!$AWK$ac_delim
23529 SET_MAKE!$SET_MAKE$ac_delim
23530 am__leading_dot!$am__leading_dot$ac_delim
23531 AMTAR!$AMTAR$ac_delim
23532 am__tar!$am__tar$ac_delim
23533 am__untar!$am__untar$ac_delim
23534 HTML_DIR!$HTML_DIR$ac_delim
23535 CC!$CC$ac_delim
23536 CFLAGS!$CFLAGS$ac_delim
23537 LDFLAGS!$LDFLAGS$ac_delim
23538 CPPFLAGS!$CPPFLAGS$ac_delim
23539 ac_ct_CC!$ac_ct_CC$ac_delim
23540 EXEEXT!$EXEEXT$ac_delim
23541 OBJEXT!$OBJEXT$ac_delim
23542 DEPDIR!$DEPDIR$ac_delim
23543 am__include!$am__include$ac_delim
23544 am__quote!$am__quote$ac_delim
23545 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23546 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23547 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23548 CCDEPMODE!$CCDEPMODE$ac_delim
23549 _ACEOF
23550
23551 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23552 break
23553 elif $ac_last_try; then
23554 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23555 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23556 { (exit 1); exit 1; }; }
23557 else
23558 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23559 fi
23560 done
23561
23562 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23563 if test -n "$ac_eof"; then
23564 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23565 ac_eof=`expr $ac_eof + 1`
23566 fi
23567
23568 cat >>$CONFIG_STATUS <<_ACEOF
23569 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23571 _ACEOF
23572 sed '
23573 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23574 s/^/s,@/; s/!/@,|#_!!_#|/
23575 :n
23576 t n
23577 s/'"$ac_delim"'$/,g/; t
23578 s/$/\\/; p
23579 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23580 ' >>$CONFIG_STATUS <conf$$subs.sed
23581 rm -f conf$$subs.sed
23582 cat >>$CONFIG_STATUS <<_ACEOF
23583 CEOF$ac_eof
23584 _ACEOF
23585
23586
23587 ac_delim='%!_!# '
23588 for ac_last_try in false false false false false :; do
23589 cat >conf$$subs.sed <<_ACEOF
23590 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23591 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23592 CPP!$CPP$ac_delim
23593 RM!$RM$ac_delim
23594 MV!$MV$ac_delim
23595 TAR!$TAR$ac_delim
23596 GREP!$GREP$ac_delim
23597 EGREP!$EGREP$ac_delim
23598 SED!$SED$ac_delim
23599 LN_S!$LN_S$ac_delim
23600 ECHO!$ECHO$ac_delim
23601 AR!$AR$ac_delim
23602 RANLIB!$RANLIB$ac_delim
23603 CXX!$CXX$ac_delim
23604 CXXFLAGS!$CXXFLAGS$ac_delim
23605 ac_ct_CXX!$ac_ct_CXX$ac_delim
23606 CXXDEPMODE!$CXXDEPMODE$ac_delim
23607 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23608 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23609 CXXCPP!$CXXCPP$ac_delim
23610 F77!$F77$ac_delim
23611 FFLAGS!$FFLAGS$ac_delim
23612 ac_ct_F77!$ac_ct_F77$ac_delim
23613 LIBTOOL!$LIBTOOL$ac_delim
23614 WITH_TRIO!$WITH_TRIO$ac_delim
23615 PERL!$PERL$ac_delim
23616 WITH_PERL_TRUE!$WITH_PERL_TRUE$ac_delim
23617 WITH_PERL_FALSE!$WITH_PERL_FALSE$ac_delim
23618 PYTHON!$PYTHON$ac_delim
23619 WITH_PYTHON_TRUE!$WITH_PYTHON_TRUE$ac_delim
23620 WITH_PYTHON_FALSE!$WITH_PYTHON_FALSE$ac_delim
23621 pythondir!$pythondir$ac_delim
23622 PYTHON_SUBDIR!$PYTHON_SUBDIR$ac_delim
23623 LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
23624 WITH_CRYPTO!$WITH_CRYPTO$ac_delim
23625 LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
23626 LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
23627 STATIC_BINARIES!$STATIC_BINARIES$ac_delim
23628 WITH_XSLT_DEBUG!$WITH_XSLT_DEBUG$ac_delim
23629 WITH_MEM_DEBUG!$WITH_MEM_DEBUG$ac_delim
23630 WITH_DEBUGGER!$WITH_DEBUGGER$ac_delim
23631 LIBXML_SRC!$LIBXML_SRC$ac_delim
23632 LIBXML_REQUIRED_VERSION!$LIBXML_REQUIRED_VERSION$ac_delim
23633 WITH_MODULES!$WITH_MODULES$ac_delim
23634 WITH_MODULES_TRUE!$WITH_MODULES_TRUE$ac_delim
23635 WITH_MODULES_FALSE!$WITH_MODULES_FALSE$ac_delim
23636 LIBXSLT_DEFAULT_PLUGINS_PATH!$LIBXSLT_DEFAULT_PLUGINS_PATH$ac_delim
23637 WIN32_EXTRA_LIBADD!$WIN32_EXTRA_LIBADD$ac_delim
23638 WIN32_EXTRA_LDFLAGS!$WIN32_EXTRA_LDFLAGS$ac_delim
23639 XSLTPROCDV!$XSLTPROCDV$ac_delim
23640 PYTHONSODV!$PYTHONSODV$ac_delim
23641 XML_CONFIG!$XML_CONFIG$ac_delim
23642 LIBXML_LIBS!$LIBXML_LIBS$ac_delim
23643 LIBXML_CFLAGS!$LIBXML_CFLAGS$ac_delim
23644 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
23645 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
23646 PYTHON_SITE_PACKAGES!$PYTHON_SITE_PACKAGES$ac_delim
23647 XSLT_LIBDIR!$XSLT_LIBDIR$ac_delim
23648 XSLT_INCLUDEDIR!$XSLT_INCLUDEDIR$ac_delim
23649 XSLT_LIBS!$XSLT_LIBS$ac_delim
23650 EXSLT_LIBDIR!$EXSLT_LIBDIR$ac_delim
23651 EXSLT_INCLUDEDIR!$EXSLT_INCLUDEDIR$ac_delim
23652 EXSLT_LIBS!$EXSLT_LIBS$ac_delim
23653 EXTRA_LIBS!$EXTRA_LIBS$ac_delim
23654 M_LIBS!$M_LIBS$ac_delim
23655 RELDATE!$RELDATE$ac_delim
23656 LIBOBJS!$LIBOBJS$ac_delim
23657 LTLIBOBJS!$LTLIBOBJS$ac_delim
23658 _ACEOF
23659
23660 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
23661 break
23662 elif $ac_last_try; then
23663 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23664 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23665 { (exit 1); exit 1; }; }
23666 else
23667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23668 fi
23669 done
23670
23671 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23672 if test -n "$ac_eof"; then
23673 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23674 ac_eof=`expr $ac_eof + 1`
23675 fi
23676
23677 cat >>$CONFIG_STATUS <<_ACEOF
23678 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23679 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23680 _ACEOF
23681 sed '
23682 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23683 s/^/s,@/; s/!/@,|#_!!_#|/
23684 :n
23685 t n
23686 s/'"$ac_delim"'$/,g/; t
23687 s/$/\\/; p
23688 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23689 ' >>$CONFIG_STATUS <conf$$subs.sed
23690 rm -f conf$$subs.sed
23691 cat >>$CONFIG_STATUS <<_ACEOF
23692 :end
23693 s/|#_!!_#|//g
23694 CEOF$ac_eof
23695 _ACEOF
23696
23697
23698 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23699 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23700 # trailing colons and then remove the whole line if VPATH becomes empty
23701 # (actually we leave an empty line to preserve line numbers).
23702 if test "x$srcdir" = x.; then
23703 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23704 s/:*\$(srcdir):*/:/
23705 s/:*\${srcdir}:*/:/
23706 s/:*@srcdir@:*/:/
23707 s/^\([^=]*=[ ]*\):*/\1/
23708 s/:*$//
23709 s/^[^=]*=[ ]*$//
23710 }'
23711 fi
23712
23713 cat >>$CONFIG_STATUS <<\_ACEOF
23714 fi # test -n "$CONFIG_FILES"
23715
23716
23717 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23718 do
23719 case $ac_tag in
23720 :[FHLC]) ac_mode=$ac_tag; continue;;
23721 esac
23722 case $ac_mode$ac_tag in
23723 :[FHL]*:*);;
23724 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23725 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23726 { (exit 1); exit 1; }; };;
23727 :[FH]-) ac_tag=-:-;;
23728 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23729 esac
23730 ac_save_IFS=$IFS
23731 IFS=:
23732 set x $ac_tag
23733 IFS=$ac_save_IFS
23734 shift
23735 ac_file=$1
23736 shift
23737
23738 case $ac_mode in
23739 :L) ac_source=$1;;
23740 :[FH])
23741 ac_file_inputs=
23742 for ac_f
23743 do
23744 case $ac_f in
23745 -) ac_f="$tmp/stdin";;
23746 *) # Look for the file first in the build tree, then in the source tree
23747 # (if the path is not absolute). The absolute path cannot be DOS-style ,
23748 # because $ac_f cannot contain `:'.
23749 test -f "$ac_f" ||
23750 case $ac_f in
23751 [\\/$]*) false;;
23752 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23753 esac ||
23754 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23755 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23756 { (exit 1); exit 1; }; };;
23757 esac
23758 ac_file_inputs="$ac_file_inputs $ac_f"
23759 done
23760
23761 # Let's still pretend it is `configure' which instantiates (i.e., don't
23762 # use $as_me), people would be surprised to read:
23763 # /* config.h. Generated by config.status. */
23764 configure_input="Generated from "`IFS=:
23765 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23766 if test x"$ac_file" != x-; then
23767 configure_input="$ac_file. $configure_input"
23768 { echo "$as_me:$LINENO: creating $ac_file" >&5
23769 echo "$as_me: creating $ac_file" >&6;}
23770 fi
23771
23772 case $ac_tag in
23773 *:-:* | *:-) cat >"$tmp/stdin";;
23774 esac
23775 ;;
23776 esac
23777
23778 ac_dir=`$as_dirname -- "$ac_file" ||
23779 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23780 X"$ac_file" : 'X\(//\)[^/]' \| \
23781 X"$ac_file" : 'X\(//\)$' \| \
23782 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23783 echo X"$ac_file" |
23784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23785 s//\1/
23786 q
23787 }
23788 /^X\(\/\/\)[^/].*/{
23789 s//\1/
23790 q
23791 }
23792 /^X\(\/\/\)$/{
23793 s//\1/
23794 q
23795 }
23796 /^X\(\/\).*/{
23797 s//\1/
23798 q
23799 }
23800 s/.*/./; q'`
23801 { as_dir="$ac_dir"
23802 case $as_dir in #(
23803 -*) as_dir=./$as_dir;;
23804 esac
23805 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23806 as_dirs=
23807 while :; do
23808 case $as_dir in #(
23809 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23810 *) as_qdir=$as_dir;;
23811 esac
23812 as_dirs="'$as_qdir' $as_dirs"
23813 as_dir=`$as_dirname -- "$as_dir" ||
23814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815 X"$as_dir" : 'X\(//\)[^/]' \| \
23816 X"$as_dir" : 'X\(//\)$' \| \
23817 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23818 echo X"$as_dir" |
23819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23820 s//\1/
23821 q
23822 }
23823 /^X\(\/\/\)[^/].*/{
23824 s//\1/
23825 q
23826 }
23827 /^X\(\/\/\)$/{
23828 s//\1/
23829 q
23830 }
23831 /^X\(\/\).*/{
23832 s//\1/
23833 q
23834 }
23835 s/.*/./; q'`
23836 test -d "$as_dir" && break
23837 done
23838 test -z "$as_dirs" || eval "mkdir $as_dirs"
23839 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create direc tory $as_dir" >&5
23840 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23841 { (exit 1); exit 1; }; }; }
23842 ac_builddir=.
23843
23844 case "$ac_dir" in
23845 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23846 *)
23847 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23848 # A ".." for each directory in $ac_dir_suffix.
23849 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23850 case $ac_top_builddir_sub in
23851 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23852 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23853 esac ;;
23854 esac
23855 ac_abs_top_builddir=$ac_pwd
23856 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23857 # for backward compatibility:
23858 ac_top_builddir=$ac_top_build_prefix
23859
23860 case $srcdir in
23861 .) # We are building in place.
23862 ac_srcdir=.
23863 ac_top_srcdir=$ac_top_builddir_sub
23864 ac_abs_top_srcdir=$ac_pwd ;;
23865 [\\/]* | ?:[\\/]* ) # Absolute name.
23866 ac_srcdir=$srcdir$ac_dir_suffix;
23867 ac_top_srcdir=$srcdir
23868 ac_abs_top_srcdir=$srcdir ;;
23869 *) # Relative name.
23870 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23871 ac_top_srcdir=$ac_top_build_prefix$srcdir
23872 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23873 esac
23874 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23875
23876
23877 case $ac_mode in
23878 :F)
23879 #
23880 # CONFIG_FILE
23881 #
23882
23883 case $INSTALL in
23884 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23885 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23886 esac
23887 ac_MKDIR_P=$MKDIR_P
23888 case $MKDIR_P in
23889 [\\/$]* | ?:[\\/]* ) ;;
23890 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23891 esac
23892 _ACEOF
23893
23894 cat >>$CONFIG_STATUS <<\_ACEOF
23895 # If the template does not know about datarootdir, expand it.
23896 # FIXME: This hack should be removed a few years after 2.60.
23897 ac_datarootdir_hack=; ac_datarootdir_seen=
23898
23899 case `sed -n '/datarootdir/ {
23900 p
23901 q
23902 }
23903 /@datadir@/p
23904 /@docdir@/p
23905 /@infodir@/p
23906 /@localedir@/p
23907 /@mandir@/p
23908 ' $ac_file_inputs` in
23909 *datarootdir*) ac_datarootdir_seen=yes;;
23910 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23911 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --dataroo tdir setting" >&5
23912 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting " >&2;}
23913 _ACEOF
23914 cat >>$CONFIG_STATUS <<_ACEOF
23915 ac_datarootdir_hack='
23916 s&@datadir@&$datadir&g
23917 s&@docdir@&$docdir&g
23918 s&@infodir@&$infodir&g
23919 s&@localedir@&$localedir&g
23920 s&@mandir@&$mandir&g
23921 s&\\\${datarootdir}&$datarootdir&g' ;;
23922 esac
23923 _ACEOF
23924
23925 # Neutralize VPATH when `$srcdir' = `.'.
23926 # Shell code in configure.ac might set extrasub.
23927 # FIXME: do we really want to maintain this feature?
23928 cat >>$CONFIG_STATUS <<_ACEOF
23929 sed "$ac_vpsub
23930 $extrasub
23931 _ACEOF
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 :t
23934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23935 s&@configure_input@&$configure_input&;t t
23936 s&@top_builddir@&$ac_top_builddir_sub&;t t
23937 s&@srcdir@&$ac_srcdir&;t t
23938 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23939 s&@top_srcdir@&$ac_top_srcdir&;t t
23940 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23941 s&@builddir@&$ac_builddir&;t t
23942 s&@abs_builddir@&$ac_abs_builddir&;t t
23943 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23944 s&@INSTALL@&$ac_INSTALL&;t t
23945 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23946 $ac_datarootdir_hack
23947 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/ou t
23948
23949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23950 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out" ; } &&
23952 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23953 which seems to be undefined. Please make sure it is defined." >&5
23954 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootd ir'
23955 which seems to be undefined. Please make sure it is defined." >&2;}
23956
23957 rm -f "$tmp/stdin"
23958 case $ac_file in
23959 -) cat "$tmp/out"; rm -f "$tmp/out";;
23960 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23961 esac
23962 ;;
23963 :H)
23964 #
23965 # CONFIG_HEADER
23966 #
23967 _ACEOF
23968
23969 # Transform confdefs.h into a sed script `conftest.defines', that
23970 # substitutes the proper values into config.h.in to produce config.h.
23971 rm -f conftest.defines conftest.tail
23972 # First, append a space to every undef/define line, to ease matching.
23973 echo 's/$/ /' >conftest.defines
23974 # Then, protect against being on the right side of a sed subst, or in
23975 # an unquoted here document, in config.status. If some macros were
23976 # called several times there might be several #defines for the same
23977 # symbol, which is useless. But do not sort them, since the last
23978 # AC_DEFINE must be honored.
23979 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23980 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23981 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23982 # PARAMS is the parameter list in the macro definition--in most cases, it's
23983 # just an empty string.
23984 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23985 ac_dB='\\)[ (].*,\\1define\\2'
23986 ac_dC=' '
23987 ac_dD=' ,'
23988
23989 uniq confdefs.h |
23990 sed -n '
23991 t rset
23992 :rset
23993 s/^[ ]*#[ ]*define[ ][ ]*//
23994 t ok
23995 d
23996 :ok
23997 s/[\\&,]/\\&/g
23998 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB" '\2'"${ac_dC}"'\3'"$ac_dD"'/p
23999 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD "'/p
24000 ' >>conftest.defines
24001
24002 # Remove the space that was appended to ease matching.
24003 # Then replace #undef with comments. This is necessary, for
24004 # example, in the case of _POSIX_SOURCE, which is predefined and required
24005 # on some systems where configure will not decide to define it.
24006 # (The regexp can be short, since the line contains either #define or #undef.)
24007 echo 's/ $//
24008 s,^[ #]*u.*,/* & */,' >>conftest.defines
24009
24010 # Break up conftest.defines:
24011 ac_max_sed_lines=50
24012
24013 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24014 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24015 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24016 # et cetera.
24017 ac_in='$ac_file_inputs'
24018 ac_out='"$tmp/out1"'
24019 ac_nxt='"$tmp/out2"'
24020
24021 while :
24022 do
24023 # Write a here document:
24024 cat >>$CONFIG_STATUS <<_ACEOF
24025 # First, check the format of the line:
24026 cat >"\$tmp/defines.sed" <<\\CEOF
24027 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24028 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24029 b
24030 :def
24031 _ACEOF
24032 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24033 echo 'CEOF
24034 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24035 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24036 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24037 grep . conftest.tail >/dev/null || break
24038 rm -f conftest.defines
24039 mv conftest.tail conftest.defines
24040 done
24041 rm -f conftest.defines conftest.tail
24042
24043 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24044 cat >>$CONFIG_STATUS <<\_ACEOF
24045 if test x"$ac_file" != x-; then
24046 echo "/* $configure_input */" >"$tmp/config.h"
24047 cat "$ac_result" >>"$tmp/config.h"
24048 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24049 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24050 echo "$as_me: $ac_file is unchanged" >&6;}
24051 else
24052 rm -f $ac_file
24053 mv "$tmp/config.h" $ac_file
24054 fi
24055 else
24056 echo "/* $configure_input */"
24057 cat "$ac_result"
24058 fi
24059 rm -f "$tmp/out12"
24060 # Compute $ac_file's index in $config_headers.
24061 _am_stamp_count=1
24062 for _am_header in $config_headers :; do
24063 case $_am_header in
24064 $ac_file | $ac_file:* )
24065 break ;;
24066 * )
24067 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24068 esac
24069 done
24070 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24071 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24072 X$ac_file : 'X\(//\)[^/]' \| \
24073 X$ac_file : 'X\(//\)$' \| \
24074 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24075 echo X$ac_file |
24076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24077 s//\1/
24078 q
24079 }
24080 /^X\(\/\/\)[^/].*/{
24081 s//\1/
24082 q
24083 }
24084 /^X\(\/\/\)$/{
24085 s//\1/
24086 q
24087 }
24088 /^X\(\/\).*/{
24089 s//\1/
24090 q
24091 }
24092 s/.*/./; q'`/stamp-h$_am_stamp_count
24093 ;;
24094
24095 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24096 echo "$as_me: executing $ac_file commands" >&6;}
24097 ;;
24098 esac
24099
24100
24101 case $ac_file$ac_mode in
24102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24103 # Strip MF so we end up with the name of the file.
24104 mf=`echo "$mf" | sed -e 's/:.*$//'`
24105 # Check whether this is an Automake generated Makefile or not.
24106 # We used to match only the files named `Makefile.in', but
24107 # some people rename them; so instead we look at the file content.
24108 # Grep'ing the first line is not enough: some people post-process
24109 # each Makefile.in and add a new line on top of each file to say so.
24110 # Grep'ing the whole file is not good either: AIX grep has a line
24111 # limit of 2048, but all sed's we know have understand at least 4000.
24112 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24113 dirpart=`$as_dirname -- "$mf" ||
24114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24115 X"$mf" : 'X\(//\)[^/]' \| \
24116 X"$mf" : 'X\(//\)$' \| \
24117 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24118 echo X"$mf" |
24119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24120 s//\1/
24121 q
24122 }
24123 /^X\(\/\/\)[^/].*/{
24124 s//\1/
24125 q
24126 }
24127 /^X\(\/\/\)$/{
24128 s//\1/
24129 q
24130 }
24131 /^X\(\/\).*/{
24132 s//\1/
24133 q
24134 }
24135 s/.*/./; q'`
24136 else
24137 continue
24138 fi
24139 # Extract the definition of DEPDIR, am__include, and am__quote
24140 # from the Makefile without running `make'.
24141 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24142 test -z "$DEPDIR" && continue
24143 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24144 test -z "am__include" && continue
24145 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24146 # When using ansi2knr, U may be empty or an underscore; expand it
24147 U=`sed -n 's/^U = //p' < "$mf"`
24148 # Find all dependency output files, they are included files with
24149 # $(DEPDIR) in their names. We invoke sed twice because it is the
24150 # simplest approach to changing $(DEPDIR) to its actual value in the
24151 # expansion.
24152 for file in `sed -n "
24153 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24154 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24155 # Make sure the directory exists.
24156 test -f "$dirpart/$file" && continue
24157 fdir=`$as_dirname -- "$file" ||
24158 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24159 X"$file" : 'X\(//\)[^/]' \| \
24160 X"$file" : 'X\(//\)$' \| \
24161 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24162 echo X"$file" |
24163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24164 s//\1/
24165 q
24166 }
24167 /^X\(\/\/\)[^/].*/{
24168 s//\1/
24169 q
24170 }
24171 /^X\(\/\/\)$/{
24172 s//\1/
24173 q
24174 }
24175 /^X\(\/\).*/{
24176 s//\1/
24177 q
24178 }
24179 s/.*/./; q'`
24180 { as_dir=$dirpart/$fdir
24181 case $as_dir in #(
24182 -*) as_dir=./$as_dir;;
24183 esac
24184 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24185 as_dirs=
24186 while :; do
24187 case $as_dir in #(
24188 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24189 *) as_qdir=$as_dir;;
24190 esac
24191 as_dirs="'$as_qdir' $as_dirs"
24192 as_dir=`$as_dirname -- "$as_dir" ||
24193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24194 X"$as_dir" : 'X\(//\)[^/]' \| \
24195 X"$as_dir" : 'X\(//\)$' \| \
24196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24197 echo X"$as_dir" |
24198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24199 s//\1/
24200 q
24201 }
24202 /^X\(\/\/\)[^/].*/{
24203 s//\1/
24204 q
24205 }
24206 /^X\(\/\/\)$/{
24207 s//\1/
24208 q
24209 }
24210 /^X\(\/\).*/{
24211 s//\1/
24212 q
24213 }
24214 s/.*/./; q'`
24215 test -d "$as_dir" && break
24216 done
24217 test -z "$as_dirs" || eval "mkdir $as_dirs"
24218 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create direc tory $as_dir" >&5
24219 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24220 { (exit 1); exit 1; }; }; }
24221 # echo "creating $dirpart/$file"
24222 echo '# dummy' > "$dirpart/$file"
24223 done
24224 done
24225 ;;
24226
24227 esac
24228 done # for ac_tag
24229
24230
24231 { (exit 0); exit 0; }
24232 _ACEOF
24233 chmod +x $CONFIG_STATUS
24234 ac_clean_files=$ac_clean_files_save
24235
24236
24237 # configure is writing to config.log, and then calls config.status.
24238 # config.status does its own redirection, appending to config.log.
24239 # Unfortunately, on DOS this fails, as config.log is still kept open
24240 # by configure, so config.status won't be able to write to it; its
24241 # output is simply discarded. So we exec the FD to /dev/null,
24242 # effectively closing config.log, so it can be properly (re)opened and
24243 # appended to by config.status. When coming back to configure, we
24244 # need to make the FD available again.
24245 if test "$no_create" != yes; then
24246 ac_cs_success=:
24247 ac_config_status_args=
24248 test "$silent" = yes &&
24249 ac_config_status_args="$ac_config_status_args --quiet"
24250 exec 5>/dev/null
24251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24252 exec 5>>config.log
24253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24254 # would make configure fail if this is the last instruction.
24255 $ac_cs_success || { (exit 1); exit 1; }
24256 fi
24257
OLDNEW
« no previous file with comments | « third_party/libxslt/config.h.in ('k') | third_party/libxslt/configure.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698