Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / libltdl / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for libltdl 1.2.
4 #
5 # Report bugs to <bug-libtool@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
557
558 case X$ECHO in
559 X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563 esac
564
565 echo=${ECHO-echo}
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575 else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 fi
579
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584 $*
585 EOF
586 exit 0
587 fi
588
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
590 # if CDPATH is set.
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605 fi
606
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611 else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691 fi
692 fi
693
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
696 ECHO=$echo
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699 fi
700
701
702
703
704 tagnames=${tagnames+${tagnames},}CXX
705
706 tagnames=${tagnames+${tagnames},}F77
707
708 exec 7<&0 </dev/null 6>&1
709
710 # Name of the host.
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715 #
716 # Initializations.
717 #
718 ac_default_prefix=/usr/local
719 ac_clean_files=
720 ac_config_libobj_dir=.
721 LIBOBJS=
722 cross_compiling=no
723 subdirs=
724 MFLAGS=
725 MAKEFLAGS=
726 SHELL=${CONFIG_SHELL-/bin/sh}
727
728 # Identity of this package.
729 PACKAGE_NAME='libltdl'
730 PACKAGE_TARNAME='libltdl'
731 PACKAGE_VERSION='1.2'
732 PACKAGE_STRING='libltdl 1.2'
733 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
734
735 ac_unique_file="ltdl.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 # include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 # include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 INSTALL_PROGRAM
810 INSTALL_SCRIPT
811 INSTALL_DATA
812 am__isrc
813 CYGPATH_W
814 PACKAGE
815 VERSION
816 ACLOCAL
817 AUTOCONF
818 AUTOMAKE
819 AUTOHEADER
820 MAKEINFO
821 install_sh
822 STRIP
823 INSTALL_STRIP_PROGRAM
824 mkdir_p
825 AWK
826 SET_MAKE
827 am__leading_dot
828 AMTAR
829 am__tar
830 am__untar
831 CC
832 CFLAGS
833 LDFLAGS
834 CPPFLAGS
835 ac_ct_CC
836 EXEEXT
837 OBJEXT
838 DEPDIR
839 am__include
840 am__quote
841 AMDEP_TRUE
842 AMDEP_FALSE
843 AMDEPBACKSLASH
844 CCDEPMODE
845 am__fastdepCC_TRUE
846 am__fastdepCC_FALSE
847 build
848 build_cpu
849 build_vendor
850 build_os
851 host
852 host_cpu
853 host_vendor
854 host_os
855 SED
856 GREP
857 EGREP
858 LN_S
859 ECHO
860 AR
861 RANLIB
862 DLLTOOL
863 AS
864 OBJDUMP
865 CPP
866 CXX
867 CXXFLAGS
868 ac_ct_CXX
869 CXXDEPMODE
870 am__fastdepCXX_TRUE
871 am__fastdepCXX_FALSE
872 CXXCPP
873 F77
874 FFLAGS
875 ac_ct_F77
876 LIBTOOL
877 LIBTOOL_DEPS
878 INSTALL_LTDL_TRUE
879 INSTALL_LTDL_FALSE
880 CONVENIENCE_LTDL_TRUE
881 CONVENIENCE_LTDL_FALSE
882 LIBADD_DL
883 LIBOBJS
884 LTLIBOBJS'
885 ac_subst_files=''
886 ac_precious_vars='build_alias
887 host_alias
888 target_alias
889 CC
890 CFLAGS
891 LDFLAGS
892 LIBS
893 CPPFLAGS
894 CPP
895 CXX
896 CXXFLAGS
897 CCC
898 CXXCPP
899 F77
900 FFLAGS'
901
902
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
956 ac_prev=
957 continue
958 fi
959
960 case $ac_option in
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *) ac_optarg=yes ;;
963 esac
964
965 # Accept the important Cygnus configure options, so we can diagnose typos.
966
967 case $ac_dashdash$ac_option in
968 --)
969 ac_dashdash=yes ;;
970
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
972 ac_prev=bindir ;;
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974 bindir=$ac_optarg ;;
975
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
980
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
987
988 --config-cache | -C)
989 cache_file=config.cache ;;
990
991 -datadir | --datadir | --datadi | --datad)
992 ac_prev=datadir ;;
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
995
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1002
1003 -disable-* | --disable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=no ;;
1011
1012 -docdir | --docdir | --docdi | --doc | --do)
1013 ac_prev=docdir ;;
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1016
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1018 ac_prev=dvidir ;;
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1021
1022 -enable-* | --enable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=\$ac_optarg ;;
1227
1228 -without-* | --without-*)
1229 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=no ;;
1236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1254
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1258 ;;
1259
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1268
1269 *)
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 ;;
1276
1277 esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1284 fi
1285
1286 # Be sure to have absolute directory names.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1291 do
1292 eval ac_val=\$$ac_var
1293 case $ac_val in
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1296 esac
1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
1299 done
1300
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1307
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1344 echo X"$0" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372 { (exit 1); exit 1; }; }
1373 fi
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377 { (exit 1); exit 1; }; }
1378 pwd)`
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 srcdir=.
1382 fi
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1386 case $srcdir in
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 esac
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394 done
1395
1396 #
1397 # Report the --help message.
1398 #
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1402 cat <<_ACEOF
1403 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1404
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1409
1410 Defaults for the options are specified in brackets.
1411
1412 Configuration:
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 [PREFIX]
1428
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1433
1434 For better control, use the options below.
1435
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of libltdl 1.2:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --disable-dependency-tracking speeds up one-time build
1481 --enable-dependency-tracking do not reject slow dependency extractors
1482 --enable-shared[=PKGS] build shared libraries [default=yes]
1483 --enable-static[=PKGS] build static libraries [default=yes]
1484 --enable-fast-install[=PKGS]
1485 optimize for fast installation [default=yes]
1486 --disable-libtool-lock avoid locking (might break parallel builds)
1487 --enable-ltdl-install install libltdl
1488
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-pic try to use only PIC/non-PIC objects [default=use
1494 both]
1495 --with-tags[=TAGS] include additional configurations [automatic]
1496
1497 Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
1502 LIBS libraries to pass to the linker, e.g. -l<library>
1503 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1504 you have headers in a nonstandard directory <include dir>
1505 CPP C preprocessor
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CXXCPP C++ preprocessor
1509 F77 Fortran 77 compiler command
1510 FFLAGS Fortran 77 compiler flags
1511
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1514
1515 Report bugs to <bug-libtool@gnu.org>.
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" || continue
1524 ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 libltdl configure 1.2
1577 generated by GNU Autoconf 2.61
1578
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1589
1590 It was created by libltdl $as_me 1.2, which was
1591 generated by GNU Autoconf 2.61. Invocation command line was
1592
1593 $ $0 $@
1594
1595 _ACEOF
1596 exec 5>>config.log
1597 {
1598 cat <<_ASUNAME
1599 ## --------- ##
1600 ## Platform. ##
1601 ## --------- ##
1602
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1611
1612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619
1620 _ASUNAME
1621
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625 IFS=$as_save_IFS
1626 test -z "$as_dir" && as_dir=.
1627 echo "PATH: $as_dir"
1628 done
1629 IFS=$as_save_IFS
1630
1631 } >&5
1632
1633 cat >&5 <<_ACEOF
1634
1635
1636 ## ----------- ##
1637 ## Core tests. ##
1638 ## ----------- ##
1639
1640 _ACEOF
1641
1642
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_configure_args=
1649 ac_configure_args0=
1650 ac_configure_args1=
1651 ac_must_keep_next=false
1652 for ac_pass in 1 2
1653 do
1654 for ac_arg
1655 do
1656 case $ac_arg in
1657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659 | -silent | --silent | --silen | --sile | --sil)
1660 continue ;;
1661 *\'*)
1662 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 esac
1664 case $ac_pass in
1665 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666 2)
1667 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668 if test $ac_must_keep_next = true; then
1669 ac_must_keep_next=false # Got value, back to normal.
1670 else
1671 case $ac_arg in
1672 *=* | --config-cache | -C | -disable-* | --disable-* \
1673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675 | -with-* | --with-* | -without-* | --without-* | --x)
1676 case "$ac_configure_args0 " in
1677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 esac
1679 ;;
1680 -* ) ac_must_keep_next=true ;;
1681 esac
1682 fi
1683 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 ;;
1685 esac
1686 done
1687 done
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log. We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697 # Save into config.log some information that might help in debugging.
1698 {
1699 echo
1700
1701 cat <<\_ASBOX
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1705 _ASBOX
1706 echo
1707 # The following way of writing the cache mishandles newlines in values,
1708 (
1709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710 eval ac_val=\$$ac_var
1711 case $ac_val in #(
1712 *${as_nl}*)
1713 case $ac_var in #(
1714 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 esac
1717 case $ac_var in #(
1718 _ | IFS | as_nl) ;; #(
1719 *) $as_unset $ac_var ;;
1720 esac ;;
1721 esac
1722 done
1723 (set) 2>&1 |
1724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725 *${as_nl}ac_space=\ *)
1726 sed -n \
1727 "s/'\''/'\''\\\\'\'''\''/g;
1728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 ;; #(
1730 *)
1731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732 ;;
1733 esac |
1734 sort
1735 )
1736 echo
1737
1738 cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743 echo
1744 for ac_var in $ac_subst_vars
1745 do
1746 eval ac_val=\$$ac_var
1747 case $ac_val in
1748 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 esac
1750 echo "$ac_var='\''$ac_val'\''"
1751 done | sort
1752 echo
1753
1754 if test -n "$ac_subst_files"; then
1755 cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760 echo
1761 for ac_var in $ac_subst_files
1762 do
1763 eval ac_val=\$$ac_var
1764 case $ac_val in
1765 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 esac
1767 echo "$ac_var='\''$ac_val'\''"
1768 done | sort
1769 echo
1770 fi
1771
1772 if test -s confdefs.h; then
1773 cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778 echo
1779 cat confdefs.h
1780 echo
1781 fi
1782 test "$ac_signal" != 0 &&
1783 echo "$as_me: caught signal $ac_signal"
1784 echo "$as_me: exit $exit_status"
1785 } >&5
1786 rm -f core *.core core.conftest.* &&
1787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 exit $exit_status
1789 ' 0
1790 for ac_signal in 1 2 13 15; do
1791 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1794
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1797
1798 # Predefined preprocessor variables.
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1823
1824
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828 set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 else
1832 set x "$ac_default_prefix/share/config.site" \
1833 "$ac_default_prefix/etc/config.site"
1834 fi
1835 shift
1836 for ac_site_file
1837 do
1838 if test -r "$ac_site_file"; then
1839 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841 sed 's/^/| /' "$ac_site_file" >&5
1842 . "$ac_site_file"
1843 fi
1844 done
1845
1846 if test -r "$cache_file"; then
1847 # Some versions of bash will fail to source /dev/null (special
1848 # files actually), so we avoid doing that.
1849 if test -f "$cache_file"; then
1850 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1852 case $cache_file in
1853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854 *) . "./$cache_file";;
1855 esac
1856 fi
1857 else
1858 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1860 >$cache_file
1861 fi
1862
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868 eval ac_new_set=\$ac_env_${ac_var}_set
1869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870 eval ac_new_val=\$ac_env_${ac_var}_value
1871 case $ac_old_set,$ac_new_set in
1872 set,)
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1876 ,set)
1877 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879 ac_cache_corrupted=: ;;
1880 ,);;
1881 *)
1882 if test "x$ac_old_val" != "x$ac_new_val"; then
1883 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1886 echo "$as_me: former value: $ac_old_val" >&2;}
1887 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1888 echo "$as_me: current value: $ac_new_val" >&2;}
1889 ac_cache_corrupted=:
1890 fi;;
1891 esac
1892 # Pass precious variables to config.status.
1893 if test "$ac_new_set" = set; then
1894 case $ac_new_val in
1895 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896 *) ac_arg=$ac_var=$ac_new_val ;;
1897 esac
1898 case " $ac_configure_args " in
1899 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1900 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901 esac
1902 fi
1903 done
1904 if $ac_cache_corrupted; then
1905 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909 { (exit 1); exit 1; }; }
1910 fi
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936 ac_ext=c
1937 ac_cpp='$CPP $CPPFLAGS'
1938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941
1942
1943
1944
1945
1946 ## ------------------------------- ##
1947 ## Libltdl specific configuration. ##
1948 ## ------------------------------- ##
1949
1950 ac_aux_dir=
1951 for ac_dir in . "$srcdir"/.; do
1952 if test -f "$ac_dir/install-sh"; then
1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
1956 elif test -f "$ac_dir/install.sh"; then
1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
1960 elif test -f "$ac_dir/shtool"; then
1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1964 fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1969 { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979
1980
1981
1982 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
1983 if test -f ${srcdir}/ltmain.sh; then
1984 # if libltdl is libtoolized, it is assumed to be stand-alone and
1985 # installed unless the command line overrides it (tested above)
1986 enable_ltdl_install=yes
1987 else
1988 { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5
1989 echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
1990 { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
1991 echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
1992 { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5
1993 echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996 fi
1997
1998
1999 ## ------------------------ ##
2000 ## Automake Initialisation. ##
2001 ## ------------------------ ##
2002 am__api_version='1.10'
2003
2004 # Find a good install program. We prefer a C program (faster),
2005 # so one script is as good as another. But avoid the broken or
2006 # incompatible versions:
2007 # SysV /etc/install, /usr/sbin/install
2008 # SunOS /usr/etc/install
2009 # IRIX /sbin/install
2010 # AIX /bin/install
2011 # AmigaOS /C/install, which installs bootblocks on floppy discs
2012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2015 # OS/2's system install, which has a completely different semantic
2016 # ./install, which can be erroneously created by make from ./install.sh.
2017 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2018 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2019 if test -z "$INSTALL"; then
2020 if test "${ac_cv_path_install+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024 for as_dir in $PATH
2025 do
2026 IFS=$as_save_IFS
2027 test -z "$as_dir" && as_dir=.
2028 # Account for people who put trailing slashes in PATH elements.
2029 case $as_dir/ in
2030 ./ | .// | /cC/* | \
2031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2032 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2033 /usr/ucb/* ) ;;
2034 *)
2035 # OSF1 and SCO ODT 3.0 have their own names for install.
2036 # Don't use installbsd from OSF since it installs stuff as root
2037 # by default.
2038 for ac_prog in ginstall scoinst install; do
2039 for ac_exec_ext in '' $ac_executable_extensions; do
2040 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2041 if test $ac_prog = install &&
2042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2043 # AIX install. It has an incompatible calling convention.
2044 :
2045 elif test $ac_prog = install &&
2046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047 # program-specific install script used by HP pwplus--don't use.
2048 :
2049 else
2050 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2051 break 3
2052 fi
2053 fi
2054 done
2055 done
2056 ;;
2057 esac
2058 done
2059 IFS=$as_save_IFS
2060
2061
2062 fi
2063 if test "${ac_cv_path_install+set}" = set; then
2064 INSTALL=$ac_cv_path_install
2065 else
2066 # As a last resort, use the slow shell script. Don't cache a
2067 # value for INSTALL within a source directory, because that will
2068 # break other packages using the cache if that directory is
2069 # removed, or if the value is a relative name.
2070 INSTALL=$ac_install_sh
2071 fi
2072 fi
2073 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2074 echo "${ECHO_T}$INSTALL" >&6; }
2075
2076 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2077 # It thinks the first close brace ends the variable substitution.
2078 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2079
2080 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2081
2082 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2083
2084 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2085 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2086 # Just in case
2087 sleep 1
2088 echo timestamp > conftest.file
2089 # Do `set' in a subshell so we don't clobber the current shell's
2090 # arguments. Must try -L first in case configure is actually a
2091 # symlink; some systems play weird games with the mod time of symlinks
2092 # (eg FreeBSD returns the mod time of the symlink's containing
2093 # directory).
2094 if (
2095 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2096 if test "$*" = "X"; then
2097 # -L didn't work.
2098 set X `ls -t $srcdir/configure conftest.file`
2099 fi
2100 rm -f conftest.file
2101 if test "$*" != "X $srcdir/configure conftest.file" \
2102 && test "$*" != "X conftest.file $srcdir/configure"; then
2103
2104 # If neither matched, then we have a broken ls. This can happen
2105 # if, for instance, CONFIG_SHELL is bash and it inherits a
2106 # broken ls alias from the environment. This has actually
2107 # happened. Such a system could not be considered "sane".
2108 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2109 alias in your environment" >&5
2110 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2111 alias in your environment" >&2;}
2112 { (exit 1); exit 1; }; }
2113 fi
2114
2115 test "$2" = conftest.file
2116 )
2117 then
2118 # Ok.
2119 :
2120 else
2121 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2122 Check your system clock" >&5
2123 echo "$as_me: error: newly created file is older than distributed files!
2124 Check your system clock" >&2;}
2125 { (exit 1); exit 1; }; }
2126 fi
2127 { echo "$as_me:$LINENO: result: yes" >&5
2128 echo "${ECHO_T}yes" >&6; }
2129 test "$program_prefix" != NONE &&
2130 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2131 # Use a double $ so make ignores it.
2132 test "$program_suffix" != NONE &&
2133 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2134 # Double any \ or $. echo might interpret backslashes.
2135 # By default was `s,x,x', remove it if useless.
2136 cat <<\_ACEOF >conftest.sed
2137 s/[\\$]/&&/g;s/;s,x,x,$//
2138 _ACEOF
2139 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2140 rm -f conftest.sed
2141
2142 # expand $ac_aux_dir to an absolute path
2143 am_aux_dir=`cd $ac_aux_dir && pwd`
2144
2145 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2146 # Use eval to expand $SHELL
2147 if eval "$MISSING --run true"; then
2148 am_missing_run="$MISSING --run "
2149 else
2150 am_missing_run=
2151 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2152 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2153 fi
2154
2155 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2156 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2157 if test -z "$MKDIR_P"; then
2158 if test "${ac_cv_path_mkdir+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2163 do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_prog in mkdir gmkdir; do
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2170 'mkdir (GNU coreutils) '* | \
2171 'mkdir (coreutils) '* | \
2172 'mkdir (fileutils) '4.1*)
2173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2174 break 3;;
2175 esac
2176 done
2177 done
2178 done
2179 IFS=$as_save_IFS
2180
2181 fi
2182
2183 if test "${ac_cv_path_mkdir+set}" = set; then
2184 MKDIR_P="$ac_cv_path_mkdir -p"
2185 else
2186 # As a last resort, use the slow shell script. Don't cache a
2187 # value for MKDIR_P within a source directory, because that will
2188 # break other packages using the cache if that directory is
2189 # removed, or if the value is a relative name.
2190 test -d ./--version && rmdir ./--version
2191 MKDIR_P="$ac_install_sh -d"
2192 fi
2193 fi
2194 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2195 echo "${ECHO_T}$MKDIR_P" >&6; }
2196
2197 mkdir_p="$MKDIR_P"
2198 case $mkdir_p in
2199 [\\/$]* | ?:[\\/]*) ;;
2200 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2201 esac
2202
2203 for ac_prog in gawk mawk nawk awk
2204 do
2205 # Extract the first word of "$ac_prog", so it can be a program name with args.
2206 set dummy $ac_prog; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_AWK+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$AWK"; then
2213 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_AWK="$ac_prog"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 AWK=$ac_cv_prog_AWK
2233 if test -n "$AWK"; then
2234 { echo "$as_me:$LINENO: result: $AWK" >&5
2235 echo "${ECHO_T}$AWK" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242 test -n "$AWK" && break
2243 done
2244
2245 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2246 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2247 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2248 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 cat >conftest.make <<\_ACEOF
2252 SHELL = /bin/sh
2253 all:
2254 @echo '@@@%%%=$(MAKE)=@@@%%%'
2255 _ACEOF
2256 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2257 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2258 *@@@%%%=?*=@@@%%%*)
2259 eval ac_cv_prog_make_${ac_make}_set=yes;;
2260 *)
2261 eval ac_cv_prog_make_${ac_make}_set=no;;
2262 esac
2263 rm -f conftest.make
2264 fi
2265 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2266 { echo "$as_me:$LINENO: result: yes" >&5
2267 echo "${ECHO_T}yes" >&6; }
2268 SET_MAKE=
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2272 SET_MAKE="MAKE=${MAKE-make}"
2273 fi
2274
2275 rm -rf .tst 2>/dev/null
2276 mkdir .tst 2>/dev/null
2277 if test -d .tst; then
2278 am__leading_dot=.
2279 else
2280 am__leading_dot=_
2281 fi
2282 rmdir .tst 2>/dev/null
2283
2284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2286 # is not polluted with repeated "-I."
2287 am__isrc=' -I$(srcdir)'
2288 # test to see if srcdir already configured
2289 if test -f $srcdir/config.status; then
2290 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2291 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2292 { (exit 1); exit 1; }; }
2293 fi
2294 fi
2295
2296 # test whether we have cygpath
2297 if test -z "$CYGPATH_W"; then
2298 if (cygpath --version) >/dev/null 2>/dev/null; then
2299 CYGPATH_W='cygpath -w'
2300 else
2301 CYGPATH_W=echo
2302 fi
2303 fi
2304
2305
2306 # Define the identity of the package.
2307 PACKAGE=libltdl
2308 VERSION=1.2
2309
2310
2311 # Some tools Automake needs.
2312
2313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2314
2315
2316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2317
2318
2319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2320
2321
2322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2323
2324
2325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2326
2327 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2328
2329 # Installed binaries are usually stripped using `strip' when the user
2330 # run `make install-strip'. However `strip' might not be the right
2331 # tool to use in cross-compilation environments, therefore Automake
2332 # will honor the `STRIP' environment variable to overrule this program.
2333 if test "$cross_compiling" != no; then
2334 if test -n "$ac_tool_prefix"; then
2335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2336 set dummy ${ac_tool_prefix}strip; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_STRIP+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342 if test -n "$STRIP"; then
2343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
2350 for ac_exec_ext in '' $ac_executable_extensions; do
2351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354 break 2
2355 fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 STRIP=$ac_cv_prog_STRIP
2363 if test -n "$STRIP"; then
2364 { echo "$as_me:$LINENO: result: $STRIP" >&5
2365 echo "${ECHO_T}$STRIP" >&6; }
2366 else
2367 { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2369 fi
2370
2371
2372 fi
2373 if test -z "$ac_cv_prog_STRIP"; then
2374 ac_ct_STRIP=$STRIP
2375 # Extract the first word of "strip", so it can be a program name with args.
2376 set dummy strip; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382 if test -n "$ac_ct_STRIP"; then
2383 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_ac_ct_STRIP="strip"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2395 fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2403 if test -n "$ac_ct_STRIP"; then
2404 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2405 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2406 else
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409 fi
2410
2411 if test "x$ac_ct_STRIP" = x; then
2412 STRIP=":"
2413 else
2414 case $cross_compiling:$ac_tool_warned in
2415 yes:)
2416 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2417 whose name does not start with the host triplet. If you think this
2418 configuration is useful to you, please write to autoconf@gnu.org." >&5
2419 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2420 whose name does not start with the host triplet. If you think this
2421 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2422 ac_tool_warned=yes ;;
2423 esac
2424 STRIP=$ac_ct_STRIP
2425 fi
2426 else
2427 STRIP="$ac_cv_prog_STRIP"
2428 fi
2429
2430 fi
2431 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2432
2433 # We need awk for the "check" target. The system "awk" is bad on
2434 # some platforms.
2435 # Always define AMTAR for backward compatibility.
2436
2437 AMTAR=${AMTAR-"${am_missing_run}tar"}
2438
2439 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2440
2441
2442
2443
2444
2445 ac_config_headers="$ac_config_headers config.h:config-h.in"
2446
2447
2448
2449 ## ------------------ ##
2450 ## C compiler checks. ##
2451 ## ------------------ ##
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487 { echo "$as_me:$LINENO: result: $CC" >&5
2488 echo "${ECHO_T}$CC" >&6; }
2489 else
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2492 fi
2493
2494
2495 fi
2496 if test -z "$ac_cv_prog_CC"; then
2497 ac_ct_CC=$CC
2498 # Extract the first word of "gcc", so it can be a program name with args.
2499 set dummy gcc; ac_word=$2
2500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2502 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_ac_ct_CC="gcc"
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526 if test -n "$ac_ct_CC"; then
2527 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2528 echo "${ECHO_T}$ac_ct_CC" >&6; }
2529 else
2530 { echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6; }
2532 fi
2533
2534 if test "x$ac_ct_CC" = x; then
2535 CC=""
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2540 whose name does not start with the host triplet. If you think this
2541 configuration is useful to you, please write to autoconf@gnu.org." >&5
2542 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2543 whose name does not start with the host triplet. If you think this
2544 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2545 ac_tool_warned=yes ;;
2546 esac
2547 CC=$ac_ct_CC
2548 fi
2549 else
2550 CC="$ac_cv_prog_CC"
2551 fi
2552
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}cc; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_CC="${ac_tool_prefix}cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 CC=$ac_cv_prog_CC
2583 if test -n "$CC"; then
2584 { echo "$as_me:$LINENO: result: $CC" >&5
2585 echo "${ECHO_T}$CC" >&6; }
2586 else
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592 fi
2593 fi
2594 if test -z "$CC"; then
2595 # Extract the first word of "cc", so it can be a program name with args.
2596 set dummy cc; ac_word=$2
2597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2599 if test "${ac_cv_prog_CC+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2604 else
2605 ac_prog_rejected=no
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614 ac_prog_rejected=yes
2615 continue
2616 fi
2617 ac_cv_prog_CC="cc"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 if test $ac_prog_rejected = yes; then
2626 # We found a bogon in the path, so make sure we never use it.
2627 set dummy $ac_cv_prog_CC
2628 shift
2629 if test $# != 0; then
2630 # We chose a different compiler from the bogus one.
2631 # However, it has the same basename, so the bogon will be chosen
2632 # first if we set CC to just the basename; use the full file name.
2633 shift
2634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635 fi
2636 fi
2637 fi
2638 fi
2639 CC=$ac_cv_prog_CC
2640 if test -n "$CC"; then
2641 { echo "$as_me:$LINENO: result: $CC" >&5
2642 echo "${ECHO_T}$CC" >&6; }
2643 else
2644 { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2646 fi
2647
2648
2649 fi
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 for ac_prog in cl.exe
2653 do
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663 else
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 for as_dir in $PATH
2666 do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 break 2
2674 fi
2675 done
2676 done
2677 IFS=$as_save_IFS
2678
2679 fi
2680 fi
2681 CC=$ac_cv_prog_CC
2682 if test -n "$CC"; then
2683 { echo "$as_me:$LINENO: result: $CC" >&5
2684 echo "${ECHO_T}$CC" >&6; }
2685 else
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2688 fi
2689
2690
2691 test -n "$CC" && break
2692 done
2693 fi
2694 if test -z "$CC"; then
2695 ac_ct_CC=$CC
2696 for ac_prog in cl.exe
2697 do
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 echo "${ECHO_T}$ac_ct_CC" >&6; }
2729 else
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735 test -n "$ac_ct_CC" && break
2736 done
2737
2738 if test "x$ac_ct_CC" = x; then
2739 CC=""
2740 else
2741 case $cross_compiling:$ac_tool_warned in
2742 yes:)
2743 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2744 whose name does not start with the host triplet. If you think this
2745 configuration is useful to you, please write to autoconf@gnu.org." >&5
2746 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2747 whose name does not start with the host triplet. If you think this
2748 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2749 ac_tool_warned=yes ;;
2750 esac
2751 CC=$ac_ct_CC
2752 fi
2753 fi
2754
2755 fi
2756
2757
2758 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2759 See \`config.log' for more details." >&5
2760 echo "$as_me: error: no acceptable C compiler found in \$PATH
2761 See \`config.log' for more details." >&2;}
2762 { (exit 1); exit 1; }; }
2763
2764 # Provide some information about the compiler.
2765 echo "$as_me:$LINENO: checking for C compiler version" >&5
2766 ac_compiler=`set X $ac_compile; echo $2`
2767 { (ac_try="$ac_compiler --version >&5"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compiler --version >&5") 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }
2777 { (ac_try="$ac_compiler -v >&5"
2778 case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compiler -v >&5") 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }
2787 { (ac_try="$ac_compiler -V >&5"
2788 case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791 esac
2792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_compiler -V >&5") 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2797
2798 cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h. */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2804
2805 int
2806 main ()
2807 {
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2817 # of exeext.
2818 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2820 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821 #
2822 # List of possible output files, starting from the most likely.
2823 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2824 # only as a last resort. b.out is created by i960 compilers.
2825 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826 #
2827 # The IRIX 6 linker writes into existing files which may not be
2828 # executable, retaining their permissions. Remove them first so a
2829 # subsequent execution test works.
2830 ac_rmfiles=
2831 for ac_file in $ac_files
2832 do
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2835 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2836 esac
2837 done
2838 rm -f $ac_rmfiles
2839
2840 if { (ac_try="$ac_link_default"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_link_default") 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; then
2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2852 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2853 # so that the user can short-circuit this test for compilers unknown to
2854 # Autoconf.
2855 for ac_file in $ac_files ''
2856 do
2857 test -f "$ac_file" || continue
2858 case $ac_file in
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2860 ;;
2861 [ab].out )
2862 # We found the default executable, but exeext='' is most
2863 # certainly right.
2864 break;;
2865 *.* )
2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2867 then :; else
2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 fi
2870 # We set ac_cv_exeext here because the later test for it is not
2871 # safe: cross compilers may not add the suffix if given an `-o'
2872 # argument, so we may need to know it at that point already.
2873 # Even if this section looks crufty: it has the advantage of
2874 # actually working.
2875 break;;
2876 * )
2877 break;;
2878 esac
2879 done
2880 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881
2882 else
2883 ac_file=''
2884 fi
2885
2886 { echo "$as_me:$LINENO: result: $ac_file" >&5
2887 echo "${ECHO_T}$ac_file" >&6; }
2888 if test -z "$ac_file"; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2893 See \`config.log' for more details." >&5
2894 echo "$as_me: error: C compiler cannot create executables
2895 See \`config.log' for more details." >&2;}
2896 { (exit 77); exit 77; }; }
2897 fi
2898
2899 ac_exeext=$ac_cv_exeext
2900
2901 # Check that the compiler produces executables we can run. If not, either
2902 # the compiler is broken, or we cross compile.
2903 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2904 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2905 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2906 # If not cross compiling, check that we can run a simple program.
2907 if test "$cross_compiling" != yes; then
2908 if { ac_try='./$ac_file'
2909 { (case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_try") 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2918 cross_compiling=no
2919 else
2920 if test "$cross_compiling" = maybe; then
2921 cross_compiling=yes
2922 else
2923 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2924 If you meant to cross compile, use \`--host'.
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot run C compiled programs.
2927 If you meant to cross compile, use \`--host'.
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2930 fi
2931 fi
2932 fi
2933 { echo "$as_me:$LINENO: result: yes" >&5
2934 echo "${ECHO_T}yes" >&6; }
2935
2936 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2937 ac_clean_files=$ac_clean_files_save
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2941 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2942 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2943 echo "${ECHO_T}$cross_compiling" >&6; }
2944
2945 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2946 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2947 if { (ac_try="$ac_link"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_link") 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
2957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2958 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2959 # work properly (i.e., refer to `conftest.exe'), while it won't with
2960 # `rm'.
2961 for ac_file in conftest.exe conftest conftest.*; do
2962 test -f "$ac_file" || continue
2963 case $ac_file in
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 break;;
2967 * ) break;;
2968 esac
2969 done
2970 else
2971 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2972 See \`config.log' for more details." >&5
2973 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2974 See \`config.log' for more details." >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978 rm -f conftest$ac_cv_exeext
2979 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2980 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2981
2982 rm -f conftest.$ac_ext
2983 EXEEXT=$ac_cv_exeext
2984 ac_exeext=$EXEEXT
2985 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2986 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2987 if test "${ac_cv_objext+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990 cat >conftest.$ac_ext <<_ACEOF
2991 /* confdefs.h. */
2992 _ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2996
2997 int
2998 main ()
2999 {
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 rm -f conftest.o conftest.obj
3006 if { (ac_try="$ac_compile"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>&5
3013 ac_status=$?
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; then
3016 for ac_file in conftest.o conftest.obj conftest.*; do
3017 test -f "$ac_file" || continue;
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3020 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3021 break;;
3022 esac
3023 done
3024 else
3025 echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3029 See \`config.log' for more details." >&5
3030 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3031 See \`config.log' for more details." >&2;}
3032 { (exit 1); exit 1; }; }
3033 fi
3034
3035 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036 fi
3037 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3038 echo "${ECHO_T}$ac_cv_objext" >&6; }
3039 OBJEXT=$ac_cv_objext
3040 ac_objext=$OBJEXT
3041 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3042 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3043 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3045 else
3046 cat >conftest.$ac_ext <<_ACEOF
3047 /* confdefs.h. */
3048 _ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052
3053 int
3054 main ()
3055 {
3056 #ifndef __GNUC__
3057 choke me
3058 #endif
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3081 ac_compiler_gnu=yes
3082 else
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086 ac_compiler_gnu=no
3087 fi
3088
3089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3091
3092 fi
3093 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3094 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3095 GCC=`test $ac_compiler_gnu = yes && echo yes`
3096 ac_test_CFLAGS=${CFLAGS+set}
3097 ac_save_CFLAGS=$CFLAGS
3098 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3099 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_cc_g+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 else
3103 ac_save_c_werror_flag=$ac_c_werror_flag
3104 ac_c_werror_flag=yes
3105 ac_cv_prog_cc_g=no
3106 CFLAGS="-g"
3107 cat >conftest.$ac_ext <<_ACEOF
3108 /* confdefs.h. */
3109 _ACEOF
3110 cat confdefs.h >>conftest.$ac_ext
3111 cat >>conftest.$ac_ext <<_ACEOF
3112 /* end confdefs.h. */
3113
3114 int
3115 main ()
3116 {
3117
3118 ;
3119 return 0;
3120 }
3121 _ACEOF
3122 rm -f conftest.$ac_objext
3123 if { (ac_try="$ac_compile"
3124 case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_compile") 2>conftest.er1
3130 ac_status=$?
3131 grep -v '^ *+' conftest.er1 >conftest.err
3132 rm -f conftest.er1
3133 cat conftest.err >&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); } && {
3136 test -z "$ac_c_werror_flag" ||
3137 test ! -s conftest.err
3138 } && test -s conftest.$ac_objext; then
3139 ac_cv_prog_cc_g=yes
3140 else
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3143
3144 CFLAGS=""
3145 cat >conftest.$ac_ext <<_ACEOF
3146 /* confdefs.h. */
3147 _ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3151
3152 int
3153 main ()
3154 {
3155
3156 ;
3157 return 0;
3158 }
3159 _ACEOF
3160 rm -f conftest.$ac_objext
3161 if { (ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compile") 2>conftest.er1
3168 ac_status=$?
3169 grep -v '^ *+' conftest.er1 >conftest.err
3170 rm -f conftest.er1
3171 cat conftest.err >&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } && {
3174 test -z "$ac_c_werror_flag" ||
3175 test ! -s conftest.err
3176 } && test -s conftest.$ac_objext; then
3177 :
3178 else
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 ac_c_werror_flag=$ac_save_c_werror_flag
3183 CFLAGS="-g"
3184 cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h. */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h. */
3190
3191 int
3192 main ()
3193 {
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3207 ac_status=$?
3208 grep -v '^ *+' conftest.er1 >conftest.err
3209 rm -f conftest.er1
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_c_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3216 ac_cv_prog_cc_g=yes
3217 else
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3220
3221
3222 fi
3223
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 fi
3226
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 fi
3229
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3232 fi
3233 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3239 CFLAGS="-g -O2"
3240 else
3241 CFLAGS="-g"
3242 fi
3243 else
3244 if test "$GCC" = yes; then
3245 CFLAGS="-O2"
3246 else
3247 CFLAGS=
3248 fi
3249 fi
3250 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3251 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3252 if test "${ac_cv_prog_cc_c89+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 else
3255 ac_cv_prog_cc_c89=no
3256 ac_save_CC=$CC
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3271 char **p;
3272 int i;
3273 {
3274 return p[i];
3275 }
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3277 {
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3284 }
3285
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297 #define FOO(x) 'x'
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 int argc;
3305 char **argv;
3306 int
3307 main ()
3308 {
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 do
3317 CC="$ac_save_CC $ac_arg"
3318 rm -f conftest.$ac_objext
3319 if { (ac_try="$ac_compile"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_compile") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } && {
3332 test -z "$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 } && test -s conftest.$ac_objext; then
3335 ac_cv_prog_cc_c89=$ac_arg
3336 else
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3339
3340
3341 fi
3342
3343 rm -f core conftest.err conftest.$ac_objext
3344 test "x$ac_cv_prog_cc_c89" != "xno" && break
3345 done
3346 rm -f conftest.$ac_ext
3347 CC=$ac_save_CC
3348
3349 fi
3350 # AC_CACHE_VAL
3351 case "x$ac_cv_prog_cc_c89" in
3352 x)
3353 { echo "$as_me:$LINENO: result: none needed" >&5
3354 echo "${ECHO_T}none needed" >&6; } ;;
3355 xno)
3356 { echo "$as_me:$LINENO: result: unsupported" >&5
3357 echo "${ECHO_T}unsupported" >&6; } ;;
3358 *)
3359 CC="$CC $ac_cv_prog_cc_c89"
3360 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3361 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3362 esac
3363
3364
3365 ac_ext=c
3366 ac_cpp='$CPP $CPPFLAGS'
3367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3370 DEPDIR="${am__leading_dot}deps"
3371
3372 ac_config_commands="$ac_config_commands depfiles"
3373
3374
3375 am_make=${MAKE-make}
3376 cat > confinc << 'END'
3377 am__doit:
3378 @echo done
3379 .PHONY: am__doit
3380 END
3381 # If we don't find an include directive, just comment out the code.
3382 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3383 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3384 am__include="#"
3385 am__quote=
3386 _am_result=none
3387 # First try GNU make style include.
3388 echo "include confinc" > confmf
3389 # We grep out `Entering directory' and `Leaving directory'
3390 # messages which can occur if `w' ends up in MAKEFLAGS.
3391 # In particular we don't look at `^make:' because GNU make might
3392 # be invoked under some other name (usually "gmake"), in which
3393 # case it prints its new name instead of `make'.
3394 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3395 am__include=include
3396 am__quote=
3397 _am_result=GNU
3398 fi
3399 # Now try BSD make style include.
3400 if test "$am__include" = "#"; then
3401 echo '.include "confinc"' > confmf
3402 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3403 am__include=.include
3404 am__quote="\""
3405 _am_result=BSD
3406 fi
3407 fi
3408
3409
3410 { echo "$as_me:$LINENO: result: $_am_result" >&5
3411 echo "${ECHO_T}$_am_result" >&6; }
3412 rm -f confinc confmf
3413
3414 # Check whether --enable-dependency-tracking was given.
3415 if test "${enable_dependency_tracking+set}" = set; then
3416 enableval=$enable_dependency_tracking;
3417 fi
3418
3419 if test "x$enable_dependency_tracking" != xno; then
3420 am_depcomp="$ac_aux_dir/depcomp"
3421 AMDEPBACKSLASH='\'
3422 fi
3423 if test "x$enable_dependency_tracking" != xno; then
3424 AMDEP_TRUE=
3425 AMDEP_FALSE='#'
3426 else
3427 AMDEP_TRUE='#'
3428 AMDEP_FALSE=
3429 fi
3430
3431
3432
3433 depcc="$CC" am_compiler_list=
3434
3435 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3436 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 else
3440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3441 # We make a subdir and do the tests there. Otherwise we can end up
3442 # making bogus files that we don't know about and never remove. For
3443 # instance it was reported that on HP-UX the gcc test will end up
3444 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # in D'.
3446 mkdir conftest.dir
3447 # Copy depcomp to subdir because otherwise we won't find it if we're
3448 # using a relative directory.
3449 cp "$am_depcomp" conftest.dir
3450 cd conftest.dir
3451 # We will build objects and dependencies in a subdirectory because
3452 # it helps to detect inapplicable dependency modes. For instance
3453 # both Tru64's cc and ICC support -MD to output dependencies as a
3454 # side effect of compilation, but ICC will put the dependencies in
3455 # the current directory while Tru64 will put them in the object
3456 # directory.
3457 mkdir sub
3458
3459 am_cv_CC_dependencies_compiler_type=none
3460 if test "$am_compiler_list" = ""; then
3461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3462 fi
3463 for depmode in $am_compiler_list; do
3464 # Setup a source with many dependencies, because some compilers
3465 # like to wrap large dependency lists on column 80 (with \), and
3466 # we should not choose a depcomp mode which is confused by this.
3467 #
3468 # We need to recreate these files for each test, as the compiler may
3469 # overwrite some of them when testing with obscure command lines.
3470 # This happens at least with the AIX C compiler.
3471 : > sub/conftest.c
3472 for i in 1 2 3 4 5 6; do
3473 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3474 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3475 # Solaris 8's {/usr,}/bin/sh.
3476 touch sub/conftst$i.h
3477 done
3478 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3479
3480 case $depmode in
3481 nosideeffect)
3482 # after this tag, mechanisms are not by side-effect, so they'll
3483 # only be used when explicitly requested
3484 if test "x$enable_dependency_tracking" = xyes; then
3485 continue
3486 else
3487 break
3488 fi
3489 ;;
3490 none) break ;;
3491 esac
3492 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3493 # mode. It turns out that the SunPro C++ compiler does not properly
3494 # handle `-M -o', and we need to detect this.
3495 if depmode=$depmode \
3496 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3497 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3498 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3499 >/dev/null 2>conftest.err &&
3500 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3501 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3502 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3503 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3504 # icc doesn't choke on unknown options, it will just issue warnings
3505 # or remarks (even with -Werror). So we grep stderr for any message
3506 # that says an option was ignored or not supported.
3507 # When given -MP, icc 7.0 and 7.1 complain thusly:
3508 # icc: Command line warning: ignoring option '-M'; no argument required
3509 # The diagnosis changed in icc 8.0:
3510 # icc: Command line remark: option '-MP' not supported
3511 if (grep 'ignoring option' conftest.err ||
3512 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3513 am_cv_CC_dependencies_compiler_type=$depmode
3514 break
3515 fi
3516 fi
3517 done
3518
3519 cd ..
3520 rm -rf conftest.dir
3521 else
3522 am_cv_CC_dependencies_compiler_type=none
3523 fi
3524
3525 fi
3526 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3527 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3528 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3529
3530 if
3531 test "x$enable_dependency_tracking" != xno \
3532 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_TRUE=
3534 am__fastdepCC_FALSE='#'
3535 else
3536 am__fastdepCC_TRUE='#'
3537 am__fastdepCC_FALSE=
3538 fi
3539
3540
3541
3542 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3544 if test "${ac_cv_c_const+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553
3554 int
3555 main ()
3556 {
3557 /* FIXME: Include the comments suggested by Paul. */
3558 #ifndef __cplusplus
3559 /* Ultrix mips cc rejects this. */
3560 typedef int charset[2];
3561 const charset cs;
3562 /* SunOS 4.1.1 cc rejects this. */
3563 char const *const *pcpcc;
3564 char **ppc;
3565 /* NEC SVR4.0.2 mips cc rejects this. */
3566 struct point {int x, y;};
3567 static struct point const zero = {0,0};
3568 /* AIX XL C 1.02.0.0 rejects this.
3569 It does not let you subtract one const X* pointer from another in
3570 an arm of an if-expression whose if-part is not a constant
3571 expression */
3572 const char *g = "string";
3573 pcpcc = &g + (g ? g-g : 0);
3574 /* HPUX 7.0 cc rejects these. */
3575 ++pcpcc;
3576 ppc = (char**) pcpcc;
3577 pcpcc = (char const *const *) ppc;
3578 { /* SCO 3.2v4 cc rejects this. */
3579 char *t;
3580 char const *s = 0 ? (char *) 0 : (char const *) 0;
3581
3582 *t++ = 0;
3583 if (s) return 0;
3584 }
3585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3586 int x[] = {25, 17};
3587 const int *foo = &x[0];
3588 ++foo;
3589 }
3590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591 typedef const int *iptr;
3592 iptr p = 0;
3593 ++p;
3594 }
3595 { /* AIX XL C 1.02.0.0 rejects this saying
3596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597 struct s { int j; const int *ap[3]; };
3598 struct s *b; b->j = 5;
3599 }
3600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3601 const int foo = 10;
3602 if (!foo) return 0;
3603 }
3604 return !cs[0] && !zero.x;
3605 #endif
3606
3607 ;
3608 return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3619 ac_status=$?
3620 grep -v '^ *+' conftest.er1 >conftest.err
3621 rm -f conftest.er1
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_c_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_c_const=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_c_const=no
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3639 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3640 if test $ac_cv_c_const = no; then
3641
3642 cat >>confdefs.h <<\_ACEOF
3643 #define const
3644 _ACEOF
3645
3646 fi
3647
3648 { echo "$as_me:$LINENO: checking for inline" >&5
3649 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3650 if test "${ac_cv_c_inline+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 ac_cv_c_inline=no
3654 for ac_kw in inline __inline__ __inline; do
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h. */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3661 #ifndef __cplusplus
3662 typedef int foo_t;
3663 static $ac_kw foo_t static_foo () {return 0; }
3664 $ac_kw foo_t foo () {return 0; }
3665 #endif
3666
3667 _ACEOF
3668 rm -f conftest.$ac_objext
3669 if { (ac_try="$ac_compile"
3670 case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_compile") 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } && {
3682 test -z "$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3684 } && test -s conftest.$ac_objext; then
3685 ac_cv_c_inline=$ac_kw
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690
3691 fi
3692
3693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694 test "$ac_cv_c_inline" != no && break
3695 done
3696
3697 fi
3698 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3699 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3700
3701
3702 case $ac_cv_c_inline in
3703 inline | yes) ;;
3704 *)
3705 case $ac_cv_c_inline in
3706 no) ac_val=;;
3707 *) ac_val=$ac_cv_c_inline;;
3708 esac
3709 cat >>confdefs.h <<_ACEOF
3710 #ifndef __cplusplus
3711 #define inline $ac_val
3712 #endif
3713 _ACEOF
3714 ;;
3715 esac
3716
3717
3718
3719 ## ----------------------- ##
3720 ## Libtool initialisation. ##
3721 ## ----------------------- ##
3722
3723
3724 # Check whether --enable-shared was given.
3725 if test "${enable_shared+set}" = set; then
3726 enableval=$enable_shared; p=${PACKAGE-default}
3727 case $enableval in
3728 yes) enable_shared=yes ;;
3729 no) enable_shared=no ;;
3730 *)
3731 enable_shared=no
3732 # Look at the argument we got. We use all the common list separators.
3733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734 for pkg in $enableval; do
3735 IFS="$lt_save_ifs"
3736 if test "X$pkg" = "X$p"; then
3737 enable_shared=yes
3738 fi
3739 done
3740 IFS="$lt_save_ifs"
3741 ;;
3742 esac
3743 else
3744 enable_shared=yes
3745 fi
3746
3747
3748 # Check whether --enable-static was given.
3749 if test "${enable_static+set}" = set; then
3750 enableval=$enable_static; p=${PACKAGE-default}
3751 case $enableval in
3752 yes) enable_static=yes ;;
3753 no) enable_static=no ;;
3754 *)
3755 enable_static=no
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3759 IFS="$lt_save_ifs"
3760 if test "X$pkg" = "X$p"; then
3761 enable_static=yes
3762 fi
3763 done
3764 IFS="$lt_save_ifs"
3765 ;;
3766 esac
3767 else
3768 enable_static=yes
3769 fi
3770
3771
3772 # Check whether --enable-fast-install was given.
3773 if test "${enable_fast_install+set}" = set; then
3774 enableval=$enable_fast_install; p=${PACKAGE-default}
3775 case $enableval in
3776 yes) enable_fast_install=yes ;;
3777 no) enable_fast_install=no ;;
3778 *)
3779 enable_fast_install=no
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782 for pkg in $enableval; do
3783 IFS="$lt_save_ifs"
3784 if test "X$pkg" = "X$p"; then
3785 enable_fast_install=yes
3786 fi
3787 done
3788 IFS="$lt_save_ifs"
3789 ;;
3790 esac
3791 else
3792 enable_fast_install=yes
3793 fi
3794
3795
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807 ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813 { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3823 *-*-*) ;;
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826 { (exit 1); exit 1; }; };;
3827 esac
3828 build=$ac_cv_build
3829 ac_save_IFS=$IFS; IFS='-'
3830 set x $ac_cv_build
3831 shift
3832 build_cpu=$1
3833 build_vendor=$2
3834 shift; shift
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3837 build_os=$*
3838 IFS=$ac_save_IFS
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 if test "x$host_alias" = x; then
3848 ac_cv_host=$ac_cv_build
3849 else
3850 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853 { (exit 1); exit 1; }; }
3854 fi
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3859 case $ac_cv_host in
3860 *-*-*) ;;
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863 { (exit 1); exit 1; }; };;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3880 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3881 if test "${lt_cv_path_SED+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884 # Loop through the user's path and test for sed and gsed.
3885 # Then use that list of sed's as ones to test for truncation.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for lt_ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3894 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3895 fi
3896 done
3897 done
3898 done
3899 IFS=$as_save_IFS
3900 lt_ac_max=0
3901 lt_ac_count=0
3902 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903 # along with /bin/sed that truncates output.
3904 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3905 test ! -f $lt_ac_sed && continue
3906 cat /dev/null > conftest.in
3907 lt_ac_count=0
3908 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3909 # Check for GNU sed and select it if it is found.
3910 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3911 lt_cv_path_SED=$lt_ac_sed
3912 break
3913 fi
3914 while true; do
3915 cat conftest.in conftest.in >conftest.tmp
3916 mv conftest.tmp conftest.in
3917 cp conftest.in conftest.nl
3918 echo >>conftest.nl
3919 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3920 cmp -s conftest.out conftest.nl || break
3921 # 10000 chars as input seems more than enough
3922 test $lt_ac_count -gt 10 && break
3923 lt_ac_count=`expr $lt_ac_count + 1`
3924 if test $lt_ac_count -gt $lt_ac_max; then
3925 lt_ac_max=$lt_ac_count
3926 lt_cv_path_SED=$lt_ac_sed
3927 fi
3928 done
3929 done
3930
3931 fi
3932
3933 SED=$lt_cv_path_SED
3934
3935 { echo "$as_me:$LINENO: result: $SED" >&5
3936 echo "${ECHO_T}$SED" >&6; }
3937
3938 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3939 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 # Extract the first word of "grep ggrep" to use in msg output
3944 if test -z "$GREP"; then
3945 set dummy grep ggrep; ac_prog_name=$2
3946 if test "${ac_cv_path_GREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 else
3949 ac_path_GREP_found=false
3950 # Loop through the user's path and test for each of PROGNAME-LIST
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3953 do
3954 IFS=$as_save_IFS
3955 test -z "$as_dir" && as_dir=.
3956 for ac_prog in grep ggrep; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3959 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3960 # Check for GNU ac_path_GREP and select it if it is found.
3961 # Check for GNU $ac_path_GREP
3962 case `"$ac_path_GREP" --version 2>&1` in
3963 *GNU*)
3964 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3965 *)
3966 ac_count=0
3967 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3968 while :
3969 do
3970 cat "conftest.in" "conftest.in" >"conftest.tmp"
3971 mv "conftest.tmp" "conftest.in"
3972 cp "conftest.in" "conftest.nl"
3973 echo 'GREP' >> "conftest.nl"
3974 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3975 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3976 ac_count=`expr $ac_count + 1`
3977 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3978 # Best one so far, save it but keep looking for a better one
3979 ac_cv_path_GREP="$ac_path_GREP"
3980 ac_path_GREP_max=$ac_count
3981 fi
3982 # 10*(2^10) chars as input seems more than enough
3983 test $ac_count -gt 10 && break
3984 done
3985 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3986 esac
3987
3988
3989 $ac_path_GREP_found && break 3
3990 done
3991 done
3992
3993 done
3994 IFS=$as_save_IFS
3995
3996
3997 fi
3998
3999 GREP="$ac_cv_path_GREP"
4000 if test -z "$GREP"; then
4001 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4002 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4003 { (exit 1); exit 1; }; }
4004 fi
4005
4006 else
4007 ac_cv_path_GREP=$GREP
4008 fi
4009
4010
4011 fi
4012 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4013 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4014 GREP="$ac_cv_path_GREP"
4015
4016
4017 { echo "$as_me:$LINENO: checking for egrep" >&5
4018 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4019 if test "${ac_cv_path_EGREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4023 then ac_cv_path_EGREP="$GREP -E"
4024 else
4025 # Extract the first word of "egrep" to use in msg output
4026 if test -z "$EGREP"; then
4027 set dummy egrep; ac_prog_name=$2
4028 if test "${ac_cv_path_EGREP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 ac_path_EGREP_found=false
4032 # Loop through the user's path and test for each of PROGNAME-LIST
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4035 do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_prog in egrep; do
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4042 # Check for GNU ac_path_EGREP and select it if it is found.
4043 # Check for GNU $ac_path_EGREP
4044 case `"$ac_path_EGREP" --version 2>&1` in
4045 *GNU*)
4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4047 *)
4048 ac_count=0
4049 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4050 while :
4051 do
4052 cat "conftest.in" "conftest.in" >"conftest.tmp"
4053 mv "conftest.tmp" "conftest.in"
4054 cp "conftest.in" "conftest.nl"
4055 echo 'EGREP' >> "conftest.nl"
4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4058 ac_count=`expr $ac_count + 1`
4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4060 # Best one so far, save it but keep looking for a better one
4061 ac_cv_path_EGREP="$ac_path_EGREP"
4062 ac_path_EGREP_max=$ac_count
4063 fi
4064 # 10*(2^10) chars as input seems more than enough
4065 test $ac_count -gt 10 && break
4066 done
4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4068 esac
4069
4070
4071 $ac_path_EGREP_found && break 3
4072 done
4073 done
4074
4075 done
4076 IFS=$as_save_IFS
4077
4078
4079 fi
4080
4081 EGREP="$ac_cv_path_EGREP"
4082 if test -z "$EGREP"; then
4083 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4084 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4085 { (exit 1); exit 1; }; }
4086 fi
4087
4088 else
4089 ac_cv_path_EGREP=$EGREP
4090 fi
4091
4092
4093 fi
4094 fi
4095 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4096 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4097 EGREP="$ac_cv_path_EGREP"
4098
4099
4100
4101 # Check whether --with-gnu-ld was given.
4102 if test "${with_gnu_ld+set}" = set; then
4103 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4104 else
4105 with_gnu_ld=no
4106 fi
4107
4108 ac_prog=ld
4109 if test "$GCC" = yes; then
4110 # Check if gcc -print-prog-name=ld gives a path.
4111 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4112 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4113 case $host in
4114 *-*-mingw*)
4115 # gcc leaves a trailing carriage return which upsets mingw
4116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4117 *)
4118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4119 esac
4120 case $ac_prog in
4121 # Accept absolute paths.
4122 [\\/]* | ?:[\\/]*)
4123 re_direlt='/[^/][^/]*/\.\./'
4124 # Canonicalize the pathname of ld
4125 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4127 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4128 done
4129 test -z "$LD" && LD="$ac_prog"
4130 ;;
4131 "")
4132 # If it fails, then pretend we aren't using GCC.
4133 ac_prog=ld
4134 ;;
4135 *)
4136 # If it is relative, then search for the first ld in PATH.
4137 with_gnu_ld=unknown
4138 ;;
4139 esac
4140 elif test "$with_gnu_ld" = yes; then
4141 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4142 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4143 else
4144 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4145 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4146 fi
4147 if test "${lt_cv_path_LD+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150 if test -z "$LD"; then
4151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4152 for ac_dir in $PATH; do
4153 IFS="$lt_save_ifs"
4154 test -z "$ac_dir" && ac_dir=.
4155 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4156 lt_cv_path_LD="$ac_dir/$ac_prog"
4157 # Check to see if the program is GNU ld. I'd rather use --version,
4158 # but apparently some variants of GNU ld only accept -v.
4159 # Break only if it was the GNU/non-GNU ld that we prefer.
4160 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4161 *GNU* | *'with BFD'*)
4162 test "$with_gnu_ld" != no && break
4163 ;;
4164 *)
4165 test "$with_gnu_ld" != yes && break
4166 ;;
4167 esac
4168 fi
4169 done
4170 IFS="$lt_save_ifs"
4171 else
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4173 fi
4174 fi
4175
4176 LD="$lt_cv_path_LD"
4177 if test -n "$LD"; then
4178 { echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6; }
4180 else
4181 { echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6; }
4183 fi
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
4187 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4193 case `$LD -v 2>&1 </dev/null` in
4194 *GNU* | *'with BFD'*)
4195 lt_cv_prog_gnu_ld=yes
4196 ;;
4197 *)
4198 lt_cv_prog_gnu_ld=no
4199 ;;
4200 esac
4201 fi
4202 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4203 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4204 with_gnu_ld=$lt_cv_prog_gnu_ld
4205
4206
4207 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4208 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4209 if test "${lt_cv_ld_reload_flag+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 lt_cv_ld_reload_flag='-r'
4213 fi
4214 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4215 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4216 reload_flag=$lt_cv_ld_reload_flag
4217 case $reload_flag in
4218 "" | " "*) ;;
4219 *) reload_flag=" $reload_flag" ;;
4220 esac
4221 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4222 case $host_os in
4223 darwin*)
4224 if test "$GCC" = yes; then
4225 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4226 else
4227 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4228 fi
4229 ;;
4230 esac
4231
4232 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4233 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4234 if test "${lt_cv_path_NM+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237 if test -n "$NM"; then
4238 # Let the user override the test.
4239 lt_cv_path_NM="$NM"
4240 else
4241 lt_nm_to_check="${ac_tool_prefix}nm"
4242 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4243 lt_nm_to_check="$lt_nm_to_check nm"
4244 fi
4245 for lt_tmp_nm in $lt_nm_to_check; do
4246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4247 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4248 IFS="$lt_save_ifs"
4249 test -z "$ac_dir" && ac_dir=.
4250 tmp_nm="$ac_dir/$lt_tmp_nm"
4251 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4252 # Check to see if the nm accepts a BSD-compat flag.
4253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4254 # nm: unknown option "B" ignored
4255 # Tru64's nm complains that /dev/null is an invalid object file
4256 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4257 */dev/null* | *'Invalid file or object type'*)
4258 lt_cv_path_NM="$tmp_nm -B"
4259 break
4260 ;;
4261 *)
4262 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4263 */dev/null*)
4264 lt_cv_path_NM="$tmp_nm -p"
4265 break
4266 ;;
4267 *)
4268 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4269 continue # so that we can try to find one that supports BSD flags
4270 ;;
4271 esac
4272 ;;
4273 esac
4274 fi
4275 done
4276 IFS="$lt_save_ifs"
4277 done
4278 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4279 fi
4280 fi
4281 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4282 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4283 NM="$lt_cv_path_NM"
4284
4285 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4286 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4287 LN_S=$as_ln_s
4288 if test "$LN_S" = "ln -s"; then
4289 { echo "$as_me:$LINENO: result: yes" >&5
4290 echo "${ECHO_T}yes" >&6; }
4291 else
4292 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4293 echo "${ECHO_T}no, using $LN_S" >&6; }
4294 fi
4295
4296 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4297 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4298 if test "${lt_cv_deplibs_check_method+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 lt_cv_file_magic_cmd='$MAGIC_CMD'
4302 lt_cv_file_magic_test_file=
4303 lt_cv_deplibs_check_method='unknown'
4304 # Need to set the preceding variable on all platforms that support
4305 # interlibrary dependencies.
4306 # 'none' -- dependencies not supported.
4307 # `unknown' -- same as none, but documents that we really don't know.
4308 # 'pass_all' -- all dependencies passed with no checks.
4309 # 'test_compile' -- check by making test program.
4310 # 'file_magic [[regex]]' -- check by looking for files in library path
4311 # which responds to the $file_magic_cmd with a given extended regex.
4312 # If you have `file' or equivalent on your system and you're not sure
4313 # whether `pass_all' will *always* work, you probably want this one.
4314
4315 case $host_os in
4316 aix4* | aix5*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
4320 beos*)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323
4324 bsdi[45]*)
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4326 lt_cv_file_magic_cmd='/usr/bin/file -L'
4327 lt_cv_file_magic_test_file=/shlib/libc.so
4328 ;;
4329
4330 cygwin*)
4331 # func_win32_libid is a shell function defined in ltmain.sh
4332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4333 lt_cv_file_magic_cmd='func_win32_libid'
4334 ;;
4335
4336 mingw* | pw32*)
4337 # Base MSYS/MinGW do not provide the 'file' command needed by
4338 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4339 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4340 lt_cv_file_magic_cmd='$OBJDUMP -f'
4341 ;;
4342
4343 darwin* | rhapsody*)
4344 lt_cv_deplibs_check_method=pass_all
4345 ;;
4346
4347 freebsd* | kfreebsd*-gnu | dragonfly*)
4348 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4349 case $host_cpu in
4350 i*86 )
4351 # Not sure whether the presence of OpenBSD here was a mistake.
4352 # Let's accept both of them until this is cleared up.
4353 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4354 lt_cv_file_magic_cmd=/usr/bin/file
4355 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4356 ;;
4357 esac
4358 else
4359 lt_cv_deplibs_check_method=pass_all
4360 fi
4361 ;;
4362
4363 gnu*)
4364 lt_cv_deplibs_check_method=pass_all
4365 ;;
4366
4367 hpux10.20* | hpux11*)
4368 lt_cv_file_magic_cmd=/usr/bin/file
4369 case $host_cpu in
4370 ia64*)
4371 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4372 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4373 ;;
4374 hppa*64*)
4375 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4376 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4377 ;;
4378 *)
4379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4380 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4381 ;;
4382 esac
4383 ;;
4384
4385 interix3*)
4386 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4388 ;;
4389
4390 irix5* | irix6* | nonstopux*)
4391 case $LD in
4392 *-32|*"-32 ") libmagic=32-bit;;
4393 *-n32|*"-n32 ") libmagic=N32;;
4394 *-64|*"-64 ") libmagic=64-bit;;
4395 *) libmagic=never-match;;
4396 esac
4397 lt_cv_deplibs_check_method=pass_all
4398 ;;
4399
4400 # This must be Linux ELF.
4401 linux*)
4402 lt_cv_deplibs_check_method=pass_all
4403 ;;
4404
4405 netbsd*)
4406 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4408 else
4409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4410 fi
4411 ;;
4412
4413 newos6*)
4414 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4415 lt_cv_file_magic_cmd=/usr/bin/file
4416 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4417 ;;
4418
4419 nto-qnx*)
4420 lt_cv_deplibs_check_method=unknown
4421 ;;
4422
4423 openbsd*)
4424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4426 else
4427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4428 fi
4429 ;;
4430
4431 osf3* | osf4* | osf5*)
4432 lt_cv_deplibs_check_method=pass_all
4433 ;;
4434
4435 solaris*)
4436 lt_cv_deplibs_check_method=pass_all
4437 ;;
4438
4439 sysv4 | sysv4.3*)
4440 case $host_vendor in
4441 motorola)
4442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4443 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4444 ;;
4445 ncr)
4446 lt_cv_deplibs_check_method=pass_all
4447 ;;
4448 sequent)
4449 lt_cv_file_magic_cmd='/bin/file'
4450 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4451 ;;
4452 sni)
4453 lt_cv_file_magic_cmd='/bin/file'
4454 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4455 lt_cv_file_magic_test_file=/lib/libc.so
4456 ;;
4457 siemens)
4458 lt_cv_deplibs_check_method=pass_all
4459 ;;
4460 pc)
4461 lt_cv_deplibs_check_method=pass_all
4462 ;;
4463 esac
4464 ;;
4465
4466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4467 lt_cv_deplibs_check_method=pass_all
4468 ;;
4469 esac
4470
4471 fi
4472 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4473 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4474 file_magic_cmd=$lt_cv_file_magic_cmd
4475 deplibs_check_method=$lt_cv_deplibs_check_method
4476 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4477
4478
4479
4480
4481 # If no C compiler was specified, use CC.
4482 LTCC=${LTCC-"$CC"}
4483
4484 # If no C compiler flags were specified, use CFLAGS.
4485 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4486
4487 # Allow CC to be a program name with arguments.
4488 compiler=$CC
4489
4490 # Check whether --enable-libtool-lock was given.
4491 if test "${enable_libtool_lock+set}" = set; then
4492 enableval=$enable_libtool_lock;
4493 fi
4494
4495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4496
4497 # Some flags need to be propagated to the compiler or linker for good
4498 # libtool support.
4499 case $host in
4500 ia64-*-hpux*)
4501 # Find out which ABI we are using.
4502 echo 'int i;' > conftest.$ac_ext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; then
4508 case `/usr/bin/file conftest.$ac_objext` in
4509 *ELF-32*)
4510 HPUX_IA64_MODE="32"
4511 ;;
4512 *ELF-64*)
4513 HPUX_IA64_MODE="64"
4514 ;;
4515 esac
4516 fi
4517 rm -rf conftest*
4518 ;;
4519 *-*-irix6*)
4520 # Find out which ABI we are using.
4521 echo '#line 4521 "configure"' > conftest.$ac_ext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>&5
4524 ac_status=$?
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
4527 if test "$lt_cv_prog_gnu_ld" = yes; then
4528 case `/usr/bin/file conftest.$ac_objext` in
4529 *32-bit*)
4530 LD="${LD-ld} -melf32bsmip"
4531 ;;
4532 *N32*)
4533 LD="${LD-ld} -melf32bmipn32"
4534 ;;
4535 *64-bit*)
4536 LD="${LD-ld} -melf64bmip"
4537 ;;
4538 esac
4539 else
4540 case `/usr/bin/file conftest.$ac_objext` in
4541 *32-bit*)
4542 LD="${LD-ld} -32"
4543 ;;
4544 *N32*)
4545 LD="${LD-ld} -n32"
4546 ;;
4547 *64-bit*)
4548 LD="${LD-ld} -64"
4549 ;;
4550 esac
4551 fi
4552 fi
4553 rm -rf conftest*
4554 ;;
4555
4556 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4557 # Find out which ABI we are using.
4558 echo 'int i;' > conftest.$ac_ext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560 (eval $ac_compile) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; then
4564 case `/usr/bin/file conftest.o` in
4565 *32-bit*)
4566 case $host in
4567 x86_64-*linux*)
4568 LD="${LD-ld} -m elf_i386"
4569 ;;
4570 ppc64-*linux*|powerpc64-*linux*)
4571 LD="${LD-ld} -m elf32ppclinux"
4572 ;;
4573 s390x-*linux*)
4574 LD="${LD-ld} -m elf_s390"
4575 ;;
4576 sparc64-*linux*)
4577 LD="${LD-ld} -m elf32_sparc"
4578 ;;
4579 esac
4580 ;;
4581 *64-bit*)
4582 case $host in
4583 x86_64-*linux*)
4584 LD="${LD-ld} -m elf_x86_64"
4585 ;;
4586 ppc*-*linux*|powerpc*-*linux*)
4587 LD="${LD-ld} -m elf64ppc"
4588 ;;
4589 s390*-*linux*)
4590 LD="${LD-ld} -m elf64_s390"
4591 ;;
4592 sparc*-*linux*)
4593 LD="${LD-ld} -m elf64_sparc"
4594 ;;
4595 esac
4596 ;;
4597 esac
4598 fi
4599 rm -rf conftest*
4600 ;;
4601
4602 *-*-sco3.2v5*)
4603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4604 SAVE_CFLAGS="$CFLAGS"
4605 CFLAGS="$CFLAGS -belf"
4606 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4607 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4608 if test "${lt_cv_cc_needs_belf+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611 ac_ext=c
4612 ac_cpp='$CPP $CPPFLAGS'
4613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4616
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623
4624 int
4625 main ()
4626 {
4627
4628 ;
4629 return 0;
4630 }
4631 _ACEOF
4632 rm -f conftest.$ac_objext conftest$ac_exeext
4633 if { (ac_try="$ac_link"
4634 case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4637 esac
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_link") 2>conftest.er1
4640 ac_status=$?
4641 grep -v '^ *+' conftest.er1 >conftest.err
4642 rm -f conftest.er1
4643 cat conftest.err >&5
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); } && {
4646 test -z "$ac_c_werror_flag" ||
4647 test ! -s conftest.err
4648 } && test -s conftest$ac_exeext &&
4649 $as_test_x conftest$ac_exeext; then
4650 lt_cv_cc_needs_belf=yes
4651 else
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4654
4655 lt_cv_cc_needs_belf=no
4656 fi
4657
4658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4659 conftest$ac_exeext conftest.$ac_ext
4660 ac_ext=c
4661 ac_cpp='$CPP $CPPFLAGS'
4662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4665
4666 fi
4667 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4668 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4669 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4670 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4671 CFLAGS="$SAVE_CFLAGS"
4672 fi
4673 ;;
4674 sparc*-*solaris*)
4675 # Find out which ABI we are using.
4676 echo 'int i;' > conftest.$ac_ext
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678 (eval $ac_compile) 2>&5
4679 ac_status=$?
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; then
4682 case `/usr/bin/file conftest.o` in
4683 *64-bit*)
4684 case $lt_cv_prog_gnu_ld in
4685 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4686 *) LD="${LD-ld} -64" ;;
4687 esac
4688 ;;
4689 esac
4690 fi
4691 rm -rf conftest*
4692 ;;
4693
4694 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4697 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703 if test -n "$DLLTOOL"; then
4704 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4716 fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 DLLTOOL=$ac_cv_prog_DLLTOOL
4724 if test -n "$DLLTOOL"; then
4725 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4726 echo "${ECHO_T}$DLLTOOL" >&6; }
4727 else
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731
4732
4733 fi
4734 if test -z "$ac_cv_prog_DLLTOOL"; then
4735 ac_ct_DLLTOOL=$DLLTOOL
4736 # Extract the first word of "dlltool", so it can be a program name with args.
4737 set dummy dlltool; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 if test -n "$ac_ct_DLLTOOL"; then
4744 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4764 if test -n "$ac_ct_DLLTOOL"; then
4765 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4766 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
4767 else
4768 { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 fi
4771
4772 if test "x$ac_ct_DLLTOOL" = x; then
4773 DLLTOOL="false"
4774 else
4775 case $cross_compiling:$ac_tool_warned in
4776 yes:)
4777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4778 whose name does not start with the host triplet. If you think this
4779 configuration is useful to you, please write to autoconf@gnu.org." >&5
4780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4781 whose name does not start with the host triplet. If you think this
4782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785 DLLTOOL=$ac_ct_DLLTOOL
4786 fi
4787 else
4788 DLLTOOL="$ac_cv_prog_DLLTOOL"
4789 fi
4790
4791 if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4793 set dummy ${ac_tool_prefix}as; ac_word=$2
4794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4796 if test "${ac_cv_prog_AS+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 else
4799 if test -n "$AS"; then
4800 ac_cv_prog_AS="$AS" # Let the user override the test.
4801 else
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH
4804 do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4809 ac_cv_prog_AS="${ac_tool_prefix}as"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813 done
4814 done
4815 IFS=$as_save_IFS
4816
4817 fi
4818 fi
4819 AS=$ac_cv_prog_AS
4820 if test -n "$AS"; then
4821 { echo "$as_me:$LINENO: result: $AS" >&5
4822 echo "${ECHO_T}$AS" >&6; }
4823 else
4824 { echo "$as_me:$LINENO: result: no" >&5
4825 echo "${ECHO_T}no" >&6; }
4826 fi
4827
4828
4829 fi
4830 if test -z "$ac_cv_prog_AS"; then
4831 ac_ct_AS=$AS
4832 # Extract the first word of "as", so it can be a program name with args.
4833 set dummy as; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 if test -n "$ac_ct_AS"; then
4840 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_ac_ct_AS="as"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4860 if test -n "$ac_ct_AS"; then
4861 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4862 echo "${ECHO_T}$ac_ct_AS" >&6; }
4863 else
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4866 fi
4867
4868 if test "x$ac_ct_AS" = x; then
4869 AS="false"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872 yes:)
4873 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4874 whose name does not start with the host triplet. If you think this
4875 configuration is useful to you, please write to autoconf@gnu.org." >&5
4876 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4877 whose name does not start with the host triplet. If you think this
4878 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4879 ac_tool_warned=yes ;;
4880 esac
4881 AS=$ac_ct_AS
4882 fi
4883 else
4884 AS="$ac_cv_prog_AS"
4885 fi
4886
4887 if test -n "$ac_tool_prefix"; then
4888 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4889 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4892 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895 if test -n "$OBJDUMP"; then
4896 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913 fi
4914 fi
4915 OBJDUMP=$ac_cv_prog_OBJDUMP
4916 if test -n "$OBJDUMP"; then
4917 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4918 echo "${ECHO_T}$OBJDUMP" >&6; }
4919 else
4920 { echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6; }
4922 fi
4923
4924
4925 fi
4926 if test -z "$ac_cv_prog_OBJDUMP"; then
4927 ac_ct_OBJDUMP=$OBJDUMP
4928 # Extract the first word of "objdump", so it can be a program name with args.
4929 set dummy objdump; ac_word=$2
4930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4932 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 if test -n "$ac_ct_OBJDUMP"; then
4936 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4947 break 2
4948 fi
4949 done
4950 done
4951 IFS=$as_save_IFS
4952
4953 fi
4954 fi
4955 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4956 if test -n "$ac_ct_OBJDUMP"; then
4957 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4958 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
4959 else
4960 { echo "$as_me:$LINENO: result: no" >&5
4961 echo "${ECHO_T}no" >&6; }
4962 fi
4963
4964 if test "x$ac_ct_OBJDUMP" = x; then
4965 OBJDUMP="false"
4966 else
4967 case $cross_compiling:$ac_tool_warned in
4968 yes:)
4969 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4970 whose name does not start with the host triplet. If you think this
4971 configuration is useful to you, please write to autoconf@gnu.org." >&5
4972 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4973 whose name does not start with the host triplet. If you think this
4974 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4975 ac_tool_warned=yes ;;
4976 esac
4977 OBJDUMP=$ac_ct_OBJDUMP
4978 fi
4979 else
4980 OBJDUMP="$ac_cv_prog_OBJDUMP"
4981 fi
4982
4983 ;;
4984
4985 esac
4986
4987 need_locks="$enable_libtool_lock"
4988
4989
4990 ac_ext=c
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4996 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4997 # On Suns, sometimes $CPP names a directory.
4998 if test -n "$CPP" && test -d "$CPP"; then
4999 CPP=
5000 fi
5001 if test -z "$CPP"; then
5002 if test "${ac_cv_prog_CPP+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 # Double quotes because CPP needs to be expanded
5006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5007 do
5008 ac_preproc_ok=false
5009 for ac_c_preproc_warn_flag in '' yes
5010 do
5011 # Use a header file that comes with gcc, so configuring glibc
5012 # with a fresh cross-compiler works.
5013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014 # <limits.h> exists even on freestanding compilers.
5015 # On the NeXT, cc -E runs the code through the compiler's parser,
5016 # not just through cpp. "Syntax error" is here to catch this case.
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #ifdef __STDC__
5024 # include <limits.h>
5025 #else
5026 # include <assert.h>
5027 #endif
5028 Syntax error
5029 _ACEOF
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5031 case "(($ac_try" in
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5034 esac
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5037 ac_status=$?
5038 grep -v '^ *+' conftest.er1 >conftest.err
5039 rm -f conftest.er1
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null && {
5043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5044 test ! -s conftest.err
5045 }; then
5046 :
5047 else
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 # Broken: fails on valid input.
5052 continue
5053 fi
5054
5055 rm -f conftest.err conftest.$ac_ext
5056
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat >conftest.$ac_ext <<_ACEOF
5060 /* confdefs.h. */
5061 _ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #include <ac_nonexistent.h>
5066 _ACEOF
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5068 case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071 esac
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 }; then
5083 # Broken: success on invalid input.
5084 continue
5085 else
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 # Passes both tests.
5090 ac_preproc_ok=:
5091 break
5092 fi
5093
5094 rm -f conftest.err conftest.$ac_ext
5095
5096 done
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.err conftest.$ac_ext
5099 if $ac_preproc_ok; then
5100 break
5101 fi
5102
5103 done
5104 ac_cv_prog_CPP=$CPP
5105
5106 fi
5107 CPP=$ac_cv_prog_CPP
5108 else
5109 ac_cv_prog_CPP=$CPP
5110 fi
5111 { echo "$as_me:$LINENO: result: $CPP" >&5
5112 echo "${ECHO_T}$CPP" >&6; }
5113 ac_preproc_ok=false
5114 for ac_c_preproc_warn_flag in '' yes
5115 do
5116 # Use a header file that comes with gcc, so configuring glibc
5117 # with a fresh cross-compiler works.
5118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 # <limits.h> exists even on freestanding compilers.
5120 # On the NeXT, cc -E runs the code through the compiler's parser,
5121 # not just through cpp. "Syntax error" is here to catch this case.
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133 Syntax error
5134 _ACEOF
5135 if { (ac_try="$ac_cpp conftest.$ac_ext"
5136 case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } >/dev/null && {
5148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 }; then
5151 :
5152 else
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 # Broken: fails on valid input.
5157 continue
5158 fi
5159
5160 rm -f conftest.err conftest.$ac_ext
5161
5162 # OK, works on sane cases. Now check whether nonexistent headers
5163 # can be detected and how.
5164 cat >conftest.$ac_ext <<_ACEOF
5165 /* confdefs.h. */
5166 _ACEOF
5167 cat confdefs.h >>conftest.$ac_ext
5168 cat >>conftest.$ac_ext <<_ACEOF
5169 /* end confdefs.h. */
5170 #include <ac_nonexistent.h>
5171 _ACEOF
5172 if { (ac_try="$ac_cpp conftest.$ac_ext"
5173 case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176 esac
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null && {
5185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5187 }; then
5188 # Broken: success on invalid input.
5189 continue
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194 # Passes both tests.
5195 ac_preproc_ok=:
5196 break
5197 fi
5198
5199 rm -f conftest.err conftest.$ac_ext
5200
5201 done
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.$ac_ext
5204 if $ac_preproc_ok; then
5205 :
5206 else
5207 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5208 See \`config.log' for more details." >&5
5209 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5210 See \`config.log' for more details." >&2;}
5211 { (exit 1); exit 1; }; }
5212 fi
5213
5214 ac_ext=c
5215 ac_cpp='$CPP $CPPFLAGS'
5216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5219
5220
5221 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5222 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5223 if test "${ac_cv_header_stdc+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h. */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5232 #include <stdlib.h>
5233 #include <stdarg.h>
5234 #include <string.h>
5235 #include <float.h>
5236
5237 int
5238 main ()
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 rm -f conftest.$ac_objext
5246 if { (ac_try="$ac_compile"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_header_stdc=yes
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_cv_header_stdc=no
5268 fi
5269
5270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271
5272 if test $ac_cv_header_stdc = yes; then
5273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #include <string.h>
5281
5282 _ACEOF
5283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "memchr" >/dev/null 2>&1; then
5285 :
5286 else
5287 ac_cv_header_stdc=no
5288 fi
5289 rm -f conftest*
5290
5291 fi
5292
5293 if test $ac_cv_header_stdc = yes; then
5294 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 /* confdefs.h. */
5297 _ACEOF
5298 cat confdefs.h >>conftest.$ac_ext
5299 cat >>conftest.$ac_ext <<_ACEOF
5300 /* end confdefs.h. */
5301 #include <stdlib.h>
5302
5303 _ACEOF
5304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5305 $EGREP "free" >/dev/null 2>&1; then
5306 :
5307 else
5308 ac_cv_header_stdc=no
5309 fi
5310 rm -f conftest*
5311
5312 fi
5313
5314 if test $ac_cv_header_stdc = yes; then
5315 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5316 if test "$cross_compiling" = yes; then
5317 :
5318 else
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <ctype.h>
5326 #include <stdlib.h>
5327 #if ((' ' & 0x0FF) == 0x020)
5328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5330 #else
5331 # define ISLOWER(c) \
5332 (('a' <= (c) && (c) <= 'i') \
5333 || ('j' <= (c) && (c) <= 'r') \
5334 || ('s' <= (c) && (c) <= 'z'))
5335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5336 #endif
5337
5338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5339 int
5340 main ()
5341 {
5342 int i;
5343 for (i = 0; i < 256; i++)
5344 if (XOR (islower (i), ISLOWER (i))
5345 || toupper (i) != TOUPPER (i))
5346 return 2;
5347 return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest$ac_exeext
5351 if { (ac_try="$ac_link"
5352 case "(($ac_try" in
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5355 esac
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357 (eval "$ac_link") 2>&5
5358 ac_status=$?
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5361 { (case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_try") 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 :
5371 else
5372 echo "$as_me: program exited with status $ac_status" >&5
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5375
5376 ( exit $ac_status )
5377 ac_cv_header_stdc=no
5378 fi
5379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5380 fi
5381
5382
5383 fi
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5386 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5387 if test $ac_cv_header_stdc = yes; then
5388
5389 cat >>confdefs.h <<\_ACEOF
5390 #define STDC_HEADERS 1
5391 _ACEOF
5392
5393 fi
5394
5395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5406 inttypes.h stdint.h unistd.h
5407 do
5408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 else
5414 cat >conftest.$ac_ext <<_ACEOF
5415 /* confdefs.h. */
5416 _ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 $ac_includes_default
5421
5422 #include <$ac_header>
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5441 eval "$as_ac_Header=yes"
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 eval "$as_ac_Header=no"
5447 fi
5448
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 fi
5451 ac_res=`eval echo '${'$as_ac_Header'}'`
5452 { echo "$as_me:$LINENO: result: $ac_res" >&5
5453 echo "${ECHO_T}$ac_res" >&6; }
5454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5457 _ACEOF
5458
5459 fi
5460
5461 done
5462
5463
5464
5465 for ac_header in dlfcn.h
5466 do
5467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 fi
5474 ac_res=`eval echo '${'$as_ac_Header'}'`
5475 { echo "$as_me:$LINENO: result: $ac_res" >&5
5476 echo "${ECHO_T}$ac_res" >&6; }
5477 else
5478 # Is the header compilable?
5479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5488 #include <$ac_header>
5489 _ACEOF
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5498 ac_status=$?
5499 grep -v '^ *+' conftest.er1 >conftest.err
5500 rm -f conftest.er1
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && {
5504 test -z "$ac_c_werror_flag" ||
5505 test ! -s conftest.err
5506 } && test -s conftest.$ac_objext; then
5507 ac_header_compiler=yes
5508 else
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5511
5512 ac_header_compiler=no
5513 fi
5514
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5517 echo "${ECHO_T}$ac_header_compiler" >&6; }
5518
5519 # Is the header present?
5520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5522 cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h. */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5528 #include <$ac_header>
5529 _ACEOF
5530 if { (ac_try="$ac_cpp conftest.$ac_ext"
5531 case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534 esac
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null && {
5543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5544 test ! -s conftest.err
5545 }; then
5546 ac_header_preproc=yes
5547 else
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 ac_header_preproc=no
5552 fi
5553
5554 rm -f conftest.err conftest.$ac_ext
5555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5556 echo "${ECHO_T}$ac_header_preproc" >&6; }
5557
5558 # So? What about this header?
5559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5560 yes:no: )
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5565 ac_header_preproc=yes
5566 ;;
5567 no:yes:* )
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5580 ( cat <<\_ASBOX
5581 ## ---------------------------------- ##
5582 ## Report this to bug-libtool@gnu.org ##
5583 ## ---------------------------------- ##
5584 _ASBOX
5585 ) | sed "s/^/$as_me: WARNING: /" >&2
5586 ;;
5587 esac
5588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 eval "$as_ac_Header=\$ac_header_preproc"
5594 fi
5595 ac_res=`eval echo '${'$as_ac_Header'}'`
5596 { echo "$as_me:$LINENO: result: $ac_res" >&5
5597 echo "${ECHO_T}$ac_res" >&6; }
5598
5599 fi
5600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5601 cat >>confdefs.h <<_ACEOF
5602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 _ACEOF
5604
5605 fi
5606
5607 done
5608
5609 ac_ext=cpp
5610 ac_cpp='$CXXCPP $CPPFLAGS'
5611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5614 if test -z "$CXX"; then
5615 if test -n "$CCC"; then
5616 CXX=$CCC
5617 else
5618 if test -n "$ac_tool_prefix"; then
5619 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5620 do
5621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5625 if test "${ac_cv_prog_CXX+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628 if test -n "$CXX"; then
5629 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634 IFS=$as_save_IFS
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 break 2
5641 fi
5642 done
5643 done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 CXX=$ac_cv_prog_CXX
5649 if test -n "$CXX"; then
5650 { echo "$as_me:$LINENO: result: $CXX" >&5
5651 echo "${ECHO_T}$CXX" >&6; }
5652 else
5653 { echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6; }
5655 fi
5656
5657
5658 test -n "$CXX" && break
5659 done
5660 fi
5661 if test -z "$CXX"; then
5662 ac_ct_CXX=$CXX
5663 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5664 do
5665 # Extract the first word of "$ac_prog", so it can be a program name with args.
5666 set dummy $ac_prog; ac_word=$2
5667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5669 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 else
5672 if test -n "$ac_ct_CXX"; then
5673 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5674 else
5675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678 IFS=$as_save_IFS
5679 test -z "$as_dir" && as_dir=.
5680 for ac_exec_ext in '' $ac_executable_extensions; do
5681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5682 ac_cv_prog_ac_ct_CXX="$ac_prog"
5683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5684 break 2
5685 fi
5686 done
5687 done
5688 IFS=$as_save_IFS
5689
5690 fi
5691 fi
5692 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5693 if test -n "$ac_ct_CXX"; then
5694 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5695 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5696 else
5697 { echo "$as_me:$LINENO: result: no" >&5
5698 echo "${ECHO_T}no" >&6; }
5699 fi
5700
5701
5702 test -n "$ac_ct_CXX" && break
5703 done
5704
5705 if test "x$ac_ct_CXX" = x; then
5706 CXX="g++"
5707 else
5708 case $cross_compiling:$ac_tool_warned in
5709 yes:)
5710 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5711 whose name does not start with the host triplet. If you think this
5712 configuration is useful to you, please write to autoconf@gnu.org." >&5
5713 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5714 whose name does not start with the host triplet. If you think this
5715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5716 ac_tool_warned=yes ;;
5717 esac
5718 CXX=$ac_ct_CXX
5719 fi
5720 fi
5721
5722 fi
5723 fi
5724 # Provide some information about the compiler.
5725 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5726 ac_compiler=`set X $ac_compile; echo $2`
5727 { (ac_try="$ac_compiler --version >&5"
5728 case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compiler --version >&5") 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }
5737 { (ac_try="$ac_compiler -v >&5"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compiler -v >&5") 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }
5747 { (ac_try="$ac_compiler -V >&5"
5748 case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751 esac
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compiler -V >&5") 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }
5757
5758 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5759 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5760 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 else
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h. */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5769
5770 int
5771 main ()
5772 {
5773 #ifndef __GNUC__
5774 choke me
5775 #endif
5776
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 rm -f conftest.$ac_objext
5782 if { (ac_try="$ac_compile"
5783 case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_compile") 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } && {
5795 test -z "$ac_cxx_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest.$ac_objext; then
5798 ac_compiler_gnu=yes
5799 else
5800 echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 ac_compiler_gnu=no
5804 fi
5805
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5808
5809 fi
5810 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5811 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5812 GXX=`test $ac_compiler_gnu = yes && echo yes`
5813 ac_test_CXXFLAGS=${CXXFLAGS+set}
5814 ac_save_CXXFLAGS=$CXXFLAGS
5815 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5816 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5817 if test "${ac_cv_prog_cxx_g+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5821 ac_cxx_werror_flag=yes
5822 ac_cv_prog_cxx_g=no
5823 CXXFLAGS="-g"
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830
5831 int
5832 main ()
5833 {
5834
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5841 case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_cxx_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
5856 ac_cv_prog_cxx_g=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 CXXFLAGS=""
5862 cat >conftest.$ac_ext <<_ACEOF
5863 /* confdefs.h. */
5864 _ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5868
5869 int
5870 main ()
5871 {
5872
5873 ;
5874 return 0;
5875 }
5876 _ACEOF
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5879 case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882 esac
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } && {
5891 test -z "$ac_cxx_werror_flag" ||
5892 test ! -s conftest.err
5893 } && test -s conftest.$ac_objext; then
5894 :
5895 else
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5900 CXXFLAGS="-g"
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907
5908 int
5909 main ()
5910 {
5911
5912 ;
5913 return 0;
5914 }
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_cxx_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5933 ac_cv_prog_cxx_g=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5937
5938
5939 fi
5940
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 fi
5946
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5948 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5949 fi
5950 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5951 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5952 if test "$ac_test_CXXFLAGS" = set; then
5953 CXXFLAGS=$ac_save_CXXFLAGS
5954 elif test $ac_cv_prog_cxx_g = yes; then
5955 if test "$GXX" = yes; then
5956 CXXFLAGS="-g -O2"
5957 else
5958 CXXFLAGS="-g"
5959 fi
5960 else
5961 if test "$GXX" = yes; then
5962 CXXFLAGS="-O2"
5963 else
5964 CXXFLAGS=
5965 fi
5966 fi
5967 ac_ext=cpp
5968 ac_cpp='$CXXCPP $CPPFLAGS'
5969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5972
5973 depcc="$CXX" am_compiler_list=
5974
5975 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5976 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5977 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5981 # We make a subdir and do the tests there. Otherwise we can end up
5982 # making bogus files that we don't know about and never remove. For
5983 # instance it was reported that on HP-UX the gcc test will end up
5984 # making a dummy file named `D' -- because `-MD' means `put the output
5985 # in D'.
5986 mkdir conftest.dir
5987 # Copy depcomp to subdir because otherwise we won't find it if we're
5988 # using a relative directory.
5989 cp "$am_depcomp" conftest.dir
5990 cd conftest.dir
5991 # We will build objects and dependencies in a subdirectory because
5992 # it helps to detect inapplicable dependency modes. For instance
5993 # both Tru64's cc and ICC support -MD to output dependencies as a
5994 # side effect of compilation, but ICC will put the dependencies in
5995 # the current directory while Tru64 will put them in the object
5996 # directory.
5997 mkdir sub
5998
5999 am_cv_CXX_dependencies_compiler_type=none
6000 if test "$am_compiler_list" = ""; then
6001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6002 fi
6003 for depmode in $am_compiler_list; do
6004 # Setup a source with many dependencies, because some compilers
6005 # like to wrap large dependency lists on column 80 (with \), and
6006 # we should not choose a depcomp mode which is confused by this.
6007 #
6008 # We need to recreate these files for each test, as the compiler may
6009 # overwrite some of them when testing with obscure command lines.
6010 # This happens at least with the AIX C compiler.
6011 : > sub/conftest.c
6012 for i in 1 2 3 4 5 6; do
6013 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6014 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6015 # Solaris 8's {/usr,}/bin/sh.
6016 touch sub/conftst$i.h
6017 done
6018 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6019
6020 case $depmode in
6021 nosideeffect)
6022 # after this tag, mechanisms are not by side-effect, so they'll
6023 # only be used when explicitly requested
6024 if test "x$enable_dependency_tracking" = xyes; then
6025 continue
6026 else
6027 break
6028 fi
6029 ;;
6030 none) break ;;
6031 esac
6032 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6033 # mode. It turns out that the SunPro C++ compiler does not properly
6034 # handle `-M -o', and we need to detect this.
6035 if depmode=$depmode \
6036 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6038 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6039 >/dev/null 2>conftest.err &&
6040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6042 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6044 # icc doesn't choke on unknown options, it will just issue warnings
6045 # or remarks (even with -Werror). So we grep stderr for any message
6046 # that says an option was ignored or not supported.
6047 # When given -MP, icc 7.0 and 7.1 complain thusly:
6048 # icc: Command line warning: ignoring option '-M'; no argument required
6049 # The diagnosis changed in icc 8.0:
6050 # icc: Command line remark: option '-MP' not supported
6051 if (grep 'ignoring option' conftest.err ||
6052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6053 am_cv_CXX_dependencies_compiler_type=$depmode
6054 break
6055 fi
6056 fi
6057 done
6058
6059 cd ..
6060 rm -rf conftest.dir
6061 else
6062 am_cv_CXX_dependencies_compiler_type=none
6063 fi
6064
6065 fi
6066 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6067 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6068 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6069
6070 if
6071 test "x$enable_dependency_tracking" != xno \
6072 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6073 am__fastdepCXX_TRUE=
6074 am__fastdepCXX_FALSE='#'
6075 else
6076 am__fastdepCXX_TRUE='#'
6077 am__fastdepCXX_FALSE=
6078 fi
6079
6080
6081
6082
6083 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6084 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6085 (test "X$CXX" != "Xg++"))) ; then
6086 ac_ext=cpp
6087 ac_cpp='$CXXCPP $CPPFLAGS'
6088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6091 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6092 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6093 if test -z "$CXXCPP"; then
6094 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 else
6097 # Double quotes because CXXCPP needs to be expanded
6098 for CXXCPP in "$CXX -E" "/lib/cpp"
6099 do
6100 ac_preproc_ok=false
6101 for ac_cxx_preproc_warn_flag in '' yes
6102 do
6103 # Use a header file that comes with gcc, so configuring glibc
6104 # with a fresh cross-compiler works.
6105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6106 # <limits.h> exists even on freestanding compilers.
6107 # On the NeXT, cc -E runs the code through the compiler's parser,
6108 # not just through cpp. "Syntax error" is here to catch this case.
6109 cat >conftest.$ac_ext <<_ACEOF
6110 /* confdefs.h. */
6111 _ACEOF
6112 cat confdefs.h >>conftest.$ac_ext
6113 cat >>conftest.$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6115 #ifdef __STDC__
6116 # include <limits.h>
6117 #else
6118 # include <assert.h>
6119 #endif
6120 Syntax error
6121 _ACEOF
6122 if { (ac_try="$ac_cpp conftest.$ac_ext"
6123 case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126 esac
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } >/dev/null && {
6135 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6136 test ! -s conftest.err
6137 }; then
6138 :
6139 else
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143 # Broken: fails on valid input.
6144 continue
6145 fi
6146
6147 rm -f conftest.err conftest.$ac_ext
6148
6149 # OK, works on sane cases. Now check whether nonexistent headers
6150 # can be detected and how.
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #include <ac_nonexistent.h>
6158 _ACEOF
6159 if { (ac_try="$ac_cpp conftest.$ac_ext"
6160 case "(($ac_try" in
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } >/dev/null && {
6172 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6173 test ! -s conftest.err
6174 }; then
6175 # Broken: success on invalid input.
6176 continue
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 # Passes both tests.
6182 ac_preproc_ok=:
6183 break
6184 fi
6185
6186 rm -f conftest.err conftest.$ac_ext
6187
6188 done
6189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6190 rm -f conftest.err conftest.$ac_ext
6191 if $ac_preproc_ok; then
6192 break
6193 fi
6194
6195 done
6196 ac_cv_prog_CXXCPP=$CXXCPP
6197
6198 fi
6199 CXXCPP=$ac_cv_prog_CXXCPP
6200 else
6201 ac_cv_prog_CXXCPP=$CXXCPP
6202 fi
6203 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6204 echo "${ECHO_T}$CXXCPP" >&6; }
6205 ac_preproc_ok=false
6206 for ac_cxx_preproc_warn_flag in '' yes
6207 do
6208 # Use a header file that comes with gcc, so configuring glibc
6209 # with a fresh cross-compiler works.
6210 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6211 # <limits.h> exists even on freestanding compilers.
6212 # On the NeXT, cc -E runs the code through the compiler's parser,
6213 # not just through cpp. "Syntax error" is here to catch this case.
6214 cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h. */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 #ifdef __STDC__
6221 # include <limits.h>
6222 #else
6223 # include <assert.h>
6224 #endif
6225 Syntax error
6226 _ACEOF
6227 if { (ac_try="$ac_cpp conftest.$ac_ext"
6228 case "(($ac_try" in
6229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6230 *) ac_try_echo=$ac_try;;
6231 esac
6232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } >/dev/null && {
6240 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6241 test ! -s conftest.err
6242 }; then
6243 :
6244 else
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 # Broken: fails on valid input.
6249 continue
6250 fi
6251
6252 rm -f conftest.err conftest.$ac_ext
6253
6254 # OK, works on sane cases. Now check whether nonexistent headers
6255 # can be detected and how.
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <ac_nonexistent.h>
6263 _ACEOF
6264 if { (ac_try="$ac_cpp conftest.$ac_ext"
6265 case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } >/dev/null && {
6277 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6278 test ! -s conftest.err
6279 }; then
6280 # Broken: success on invalid input.
6281 continue
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286 # Passes both tests.
6287 ac_preproc_ok=:
6288 break
6289 fi
6290
6291 rm -f conftest.err conftest.$ac_ext
6292
6293 done
6294 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6295 rm -f conftest.err conftest.$ac_ext
6296 if $ac_preproc_ok; then
6297 :
6298 else
6299 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6300 See \`config.log' for more details." >&5
6301 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6302 See \`config.log' for more details." >&2;}
6303 { (exit 1); exit 1; }; }
6304 fi
6305
6306 ac_ext=cpp
6307 ac_cpp='$CXXCPP $CPPFLAGS'
6308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6311
6312 fi
6313
6314
6315 ac_ext=f
6316 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6317 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6319 if test -n "$ac_tool_prefix"; then
6320 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6321 do
6322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_prog_F77+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 else
6329 if test -n "$F77"; then
6330 ac_cv_prog_F77="$F77" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6342 fi
6343 done
6344 done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 F77=$ac_cv_prog_F77
6350 if test -n "$F77"; then
6351 { echo "$as_me:$LINENO: result: $F77" >&5
6352 echo "${ECHO_T}$F77" >&6; }
6353 else
6354 { echo "$as_me:$LINENO: result: no" >&5
6355 echo "${ECHO_T}no" >&6; }
6356 fi
6357
6358
6359 test -n "$F77" && break
6360 done
6361 fi
6362 if test -z "$F77"; then
6363 ac_ct_F77=$F77
6364 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6365 do
6366 # Extract the first word of "$ac_prog", so it can be a program name with args.
6367 set dummy $ac_prog; ac_word=$2
6368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6370 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6371 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 else
6373 if test -n "$ac_ct_F77"; then
6374 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6378 do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_ac_ct_F77="$ac_prog"
6384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6386 fi
6387 done
6388 done
6389 IFS=$as_save_IFS
6390
6391 fi
6392 fi
6393 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6394 if test -n "$ac_ct_F77"; then
6395 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6396 echo "${ECHO_T}$ac_ct_F77" >&6; }
6397 else
6398 { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6400 fi
6401
6402
6403 test -n "$ac_ct_F77" && break
6404 done
6405
6406 if test "x$ac_ct_F77" = x; then
6407 F77=""
6408 else
6409 case $cross_compiling:$ac_tool_warned in
6410 yes:)
6411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6412 whose name does not start with the host triplet. If you think this
6413 configuration is useful to you, please write to autoconf@gnu.org." >&5
6414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6415 whose name does not start with the host triplet. If you think this
6416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6417 ac_tool_warned=yes ;;
6418 esac
6419 F77=$ac_ct_F77
6420 fi
6421 fi
6422
6423
6424 # Provide some information about the compiler.
6425 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6426 ac_compiler=`set X $ac_compile; echo $2`
6427 { (ac_try="$ac_compiler --version >&5"
6428 case "(($ac_try" in
6429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430 *) ac_try_echo=$ac_try;;
6431 esac
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_compiler --version >&5") 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }
6437 { (ac_try="$ac_compiler -v >&5"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compiler -v >&5") 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }
6447 { (ac_try="$ac_compiler -V >&5"
6448 case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compiler -V >&5") 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }
6457 rm -f a.out
6458
6459 # If we don't use `.F' as extension, the preprocessor is not run on the
6460 # input file. (Note that this only needs to work for GNU compilers.)
6461 ac_save_ext=$ac_ext
6462 ac_ext=F
6463 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6464 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6465 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 cat >conftest.$ac_ext <<_ACEOF
6469 program main
6470 #ifndef __GNUC__
6471 choke me
6472 #endif
6473
6474 end
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_f77_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 ac_compiler_gnu=yes
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 ac_compiler_gnu=no
6499 fi
6500
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6503
6504 fi
6505 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6506 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6507 ac_ext=$ac_save_ext
6508 ac_test_FFLAGS=${FFLAGS+set}
6509 ac_save_FFLAGS=$FFLAGS
6510 FFLAGS=
6511 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6512 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6513 if test "${ac_cv_prog_f77_g+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 else
6516 FFLAGS=-g
6517 cat >conftest.$ac_ext <<_ACEOF
6518 program main
6519
6520 end
6521 _ACEOF
6522 rm -f conftest.$ac_objext
6523 if { (ac_try="$ac_compile"
6524 case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527 esac
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_compile") 2>conftest.er1
6530 ac_status=$?
6531 grep -v '^ *+' conftest.er1 >conftest.err
6532 rm -f conftest.er1
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && {
6536 test -z "$ac_f77_werror_flag" ||
6537 test ! -s conftest.err
6538 } && test -s conftest.$ac_objext; then
6539 ac_cv_prog_f77_g=yes
6540 else
6541 echo "$as_me: failed program was:" >&5
6542 sed 's/^/| /' conftest.$ac_ext >&5
6543
6544 ac_cv_prog_f77_g=no
6545 fi
6546
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6548
6549 fi
6550 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6551 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6552 if test "$ac_test_FFLAGS" = set; then
6553 FFLAGS=$ac_save_FFLAGS
6554 elif test $ac_cv_prog_f77_g = yes; then
6555 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6556 FFLAGS="-g -O2"
6557 else
6558 FFLAGS="-g"
6559 fi
6560 else
6561 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6562 FFLAGS="-O2"
6563 else
6564 FFLAGS=
6565 fi
6566 fi
6567
6568 G77=`test $ac_compiler_gnu = yes && echo yes`
6569 ac_ext=c
6570 ac_cpp='$CPP $CPPFLAGS'
6571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6574
6575
6576
6577 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6578
6579 # find the maximum length of command line arguments
6580 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6581 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6582 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 i=0
6586 teststring="ABCD"
6587
6588 case $build_os in
6589 msdosdjgpp*)
6590 # On DJGPP, this test can blow up pretty badly due to problems in libc
6591 # (any single argument exceeding 2000 bytes causes a buffer overrun
6592 # during glob expansion). Even if it were fixed, the result of this
6593 # check would be larger than it should be.
6594 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6595 ;;
6596
6597 gnu*)
6598 # Under GNU Hurd, this test is not required because there is
6599 # no limit to the length of command line arguments.
6600 # Libtool will interpret -1 as no limit whatsoever
6601 lt_cv_sys_max_cmd_len=-1;
6602 ;;
6603
6604 cygwin* | mingw*)
6605 # On Win9x/ME, this test blows up -- it succeeds, but takes
6606 # about 5 minutes as the teststring grows exponentially.
6607 # Worse, since 9x/ME are not pre-emptively multitasking,
6608 # you end up with a "frozen" computer, even though with patience
6609 # the test eventually succeeds (with a max line length of 256k).
6610 # Instead, let's just punt: use the minimum linelength reported by
6611 # all of the supported platforms: 8192 (on NT/2K/XP).
6612 lt_cv_sys_max_cmd_len=8192;
6613 ;;
6614
6615 amigaos*)
6616 # On AmigaOS with pdksh, this test takes hours, literally.
6617 # So we just punt and use a minimum line length of 8192.
6618 lt_cv_sys_max_cmd_len=8192;
6619 ;;
6620
6621 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6622 # This has been around since 386BSD, at least. Likely further.
6623 if test -x /sbin/sysctl; then
6624 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6625 elif test -x /usr/sbin/sysctl; then
6626 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6627 else
6628 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6629 fi
6630 # And add a safety zone
6631 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6633 ;;
6634
6635 interix*)
6636 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6637 lt_cv_sys_max_cmd_len=196608
6638 ;;
6639
6640 osf*)
6641 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6642 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6643 # nice to cause kernel panics so lets avoid the loop below.
6644 # First set a reasonable default.
6645 lt_cv_sys_max_cmd_len=16384
6646 #
6647 if test -x /sbin/sysconfig; then
6648 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6649 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6650 esac
6651 fi
6652 ;;
6653 sco3.2v5*)
6654 lt_cv_sys_max_cmd_len=102400
6655 ;;
6656 sysv5* | sco5v6* | sysv4.2uw2*)
6657 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6658 if test -n "$kargmax"; then
6659 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6660 else
6661 lt_cv_sys_max_cmd_len=32768
6662 fi
6663 ;;
6664 *)
6665 # If test is not a shell built-in, we'll probably end up computing a
6666 # maximum length that is only half of the actual maximum length, but
6667 # we can't tell.
6668 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6669 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6670 = "XX$teststring") >/dev/null 2>&1 &&
6671 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6672 lt_cv_sys_max_cmd_len=$new_result &&
6673 test $i != 17 # 1/2 MB should be enough
6674 do
6675 i=`expr $i + 1`
6676 teststring=$teststring$teststring
6677 done
6678 teststring=
6679 # Add a significant safety factor because C++ compilers can tack on massive
6680 # amounts of additional arguments before passing them to the linker.
6681 # It appears as though 1/2 is a usable value.
6682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6683 ;;
6684 esac
6685
6686 fi
6687
6688 if test -n $lt_cv_sys_max_cmd_len ; then
6689 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6690 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6691 else
6692 { echo "$as_me:$LINENO: result: none" >&5
6693 echo "${ECHO_T}none" >&6; }
6694 fi
6695
6696
6697
6698
6699 # Check for command to grab the raw symbol name followed by C symbol from nm.
6700 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6701 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6702 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705
6706 # These are sane defaults that work on at least a few old systems.
6707 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6708
6709 # Character class describing NM global symbol codes.
6710 symcode='[BCDEGRST]'
6711
6712 # Regexp to match symbols that can be accessed directly from C.
6713 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6714
6715 # Transform an extracted symbol line into a proper C declaration
6716 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6717
6718 # Transform an extracted symbol line into symbol name and symbol address
6719 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'"
6720
6721 # Define system-specific variables.
6722 case $host_os in
6723 aix*)
6724 symcode='[BCDT]'
6725 ;;
6726 cygwin* | mingw* | pw32*)
6727 symcode='[ABCDGISTW]'
6728 ;;
6729 hpux*) # Its linker distinguishes data from code symbols
6730 if test "$host_cpu" = ia64; then
6731 symcode='[ABCDEGRST]'
6732 fi
6733 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6734 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'"
6735 ;;
6736 linux*)
6737 if test "$host_cpu" = ia64; then
6738 symcode='[ABCDGIRSTW]'
6739 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6740 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'"
6741 fi
6742 ;;
6743 irix* | nonstopux*)
6744 symcode='[BCDEGRST]'
6745 ;;
6746 osf*)
6747 symcode='[BCDEGQRST]'
6748 ;;
6749 solaris*)
6750 symcode='[BDRT]'
6751 ;;
6752 sco3.2v5*)
6753 symcode='[DT]'
6754 ;;
6755 sysv4.2uw2*)
6756 symcode='[DT]'
6757 ;;
6758 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6759 symcode='[ABDT]'
6760 ;;
6761 sysv4)
6762 symcode='[DFNSTU]'
6763 ;;
6764 esac
6765
6766 # Handle CRLF in mingw tool chain
6767 opt_cr=
6768 case $build_os in
6769 mingw*)
6770 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6771 ;;
6772 esac
6773
6774 # If we're using GNU nm, then use its standard symbol codes.
6775 case `$NM -V 2>&1` in
6776 *GNU* | *'with BFD'*)
6777 symcode='[ABCDGIRSTW]' ;;
6778 esac
6779
6780 # Try without a prefix undercore, then with it.
6781 for ac_symprfx in "" "_"; do
6782
6783 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6784 symxfrm="\\1 $ac_symprfx\\2 \\2"
6785
6786 # Write the raw and C identifiers.
6787 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6788
6789 # Check to see that the pipe works correctly.
6790 pipe_works=no
6791
6792 rm -f conftest*
6793 cat > conftest.$ac_ext <<EOF
6794 #ifdef __cplusplus
6795 extern "C" {
6796 #endif
6797 char nm_test_var;
6798 void nm_test_func(){}
6799 #ifdef __cplusplus
6800 }
6801 #endif
6802 int main(){nm_test_var='a';nm_test_func();return(0);}
6803 EOF
6804
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806 (eval $ac_compile) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; then
6810 # Now try to grab the symbols.
6811 nlist=conftest.nm
6812 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6813 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } && test -s "$nlist"; then
6817 # Try sorting and uniquifying the output.
6818 if sort "$nlist" | uniq > "$nlist"T; then
6819 mv -f "$nlist"T "$nlist"
6820 else
6821 rm -f "$nlist"T
6822 fi
6823
6824 # Make sure that we snagged all the symbols we need.
6825 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6826 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6827 cat <<EOF > conftest.$ac_ext
6828 #ifdef __cplusplus
6829 extern "C" {
6830 #endif
6831
6832 EOF
6833 # Now generate the symbol file.
6834 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6835
6836 cat <<EOF >> conftest.$ac_ext
6837 #if defined (__STDC__) && __STDC__
6838 # define lt_ptr_t void *
6839 #else
6840 # define lt_ptr_t char *
6841 # define const
6842 #endif
6843
6844 /* The mapping between symbol names and symbols. */
6845 const struct {
6846 const char *name;
6847 lt_ptr_t address;
6848 }
6849 lt_preloaded_symbols[] =
6850 {
6851 EOF
6852 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6853 cat <<\EOF >> conftest.$ac_ext
6854 {0, (lt_ptr_t) 0}
6855 };
6856
6857 #ifdef __cplusplus
6858 }
6859 #endif
6860 EOF
6861 # Now try linking the two files.
6862 mv conftest.$ac_objext conftstm.$ac_objext
6863 lt_save_LIBS="$LIBS"
6864 lt_save_CFLAGS="$CFLAGS"
6865 LIBS="conftstm.$ac_objext"
6866 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6868 (eval $ac_link) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6872 pipe_works=yes
6873 fi
6874 LIBS="$lt_save_LIBS"
6875 CFLAGS="$lt_save_CFLAGS"
6876 else
6877 echo "cannot find nm_test_func in $nlist" >&5
6878 fi
6879 else
6880 echo "cannot find nm_test_var in $nlist" >&5
6881 fi
6882 else
6883 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6884 fi
6885 else
6886 echo "$progname: failed program was:" >&5
6887 cat conftest.$ac_ext >&5
6888 fi
6889 rm -f conftest* conftst*
6890
6891 # Do not use the global_symbol_pipe unless it works.
6892 if test "$pipe_works" = yes; then
6893 break
6894 else
6895 lt_cv_sys_global_symbol_pipe=
6896 fi
6897 done
6898
6899 fi
6900
6901 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6902 lt_cv_sys_global_symbol_to_cdecl=
6903 fi
6904 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6905 { echo "$as_me:$LINENO: result: failed" >&5
6906 echo "${ECHO_T}failed" >&6; }
6907 else
6908 { echo "$as_me:$LINENO: result: ok" >&5
6909 echo "${ECHO_T}ok" >&6; }
6910 fi
6911
6912 { echo "$as_me:$LINENO: checking for objdir" >&5
6913 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6914 if test "${lt_cv_objdir+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 rm -f .libs 2>/dev/null
6918 mkdir .libs 2>/dev/null
6919 if test -d .libs; then
6920 lt_cv_objdir=.libs
6921 else
6922 # MS-DOS does not allow filenames that begin with a dot.
6923 lt_cv_objdir=_libs
6924 fi
6925 rmdir .libs 2>/dev/null
6926 fi
6927 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6928 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6929 objdir=$lt_cv_objdir
6930
6931
6932
6933
6934
6935 case $host_os in
6936 aix3*)
6937 # AIX sometimes has problems with the GCC collect2 program. For some
6938 # reason, if we set the COLLECT_NAMES environment variable, the problems
6939 # vanish in a puff of smoke.
6940 if test "X${COLLECT_NAMES+set}" != Xset; then
6941 COLLECT_NAMES=
6942 export COLLECT_NAMES
6943 fi
6944 ;;
6945 esac
6946
6947 # Sed substitution that helps us do robust quoting. It backslashifies
6948 # metacharacters that are still active within double-quoted strings.
6949 Xsed='sed -e 1s/^X//'
6950 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6951
6952 # Same as above, but do not quote variable references.
6953 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6954
6955 # Sed substitution to delay expansion of an escaped shell variable in a
6956 # double_quote_subst'ed string.
6957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6958
6959 # Sed substitution to avoid accidental globbing in evaled expressions
6960 no_glob_subst='s/\*/\\\*/g'
6961
6962 # Constants:
6963 rm="rm -f"
6964
6965 # Global variables:
6966 default_ofile=libtool
6967 can_build_shared=yes
6968
6969 # All known linkers require a `.a' archive for static linking (except MSVC,
6970 # which needs '.lib').
6971 libext=a
6972 ltmain="$ac_aux_dir/ltmain.sh"
6973 ofile="$default_ofile"
6974 with_gnu_ld="$lt_cv_prog_gnu_ld"
6975
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}ar; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_prog_AR+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984 if test -n "$AR"; then
6985 ac_cv_prog_AR="$AR" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_prog_AR="${ac_tool_prefix}ar"
6995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 AR=$ac_cv_prog_AR
7005 if test -n "$AR"; then
7006 { echo "$as_me:$LINENO: result: $AR" >&5
7007 echo "${ECHO_T}$AR" >&6; }
7008 else
7009 { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_AR"; then
7016 ac_ct_AR=$AR
7017 # Extract the first word of "ar", so it can be a program name with args.
7018 set dummy ar; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024 if test -n "$ac_ct_AR"; then
7025 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_ac_ct_AR="ar"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7045 if test -n "$ac_ct_AR"; then
7046 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7047 echo "${ECHO_T}$ac_ct_AR" >&6; }
7048 else
7049 { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7051 fi
7052
7053 if test "x$ac_ct_AR" = x; then
7054 AR="false"
7055 else
7056 case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7059 whose name does not start with the host triplet. If you think this
7060 configuration is useful to you, please write to autoconf@gnu.org." >&5
7061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7062 whose name does not start with the host triplet. If you think this
7063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7064 ac_tool_warned=yes ;;
7065 esac
7066 AR=$ac_ct_AR
7067 fi
7068 else
7069 AR="$ac_cv_prog_AR"
7070 fi
7071
7072 if test -n "$ac_tool_prefix"; then
7073 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7074 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7077 if test "${ac_cv_prog_RANLIB+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 else
7080 if test -n "$RANLIB"; then
7081 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7082 else
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH
7085 do
7086 IFS=$as_save_IFS
7087 test -z "$as_dir" && as_dir=.
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7090 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7092 break 2
7093 fi
7094 done
7095 done
7096 IFS=$as_save_IFS
7097
7098 fi
7099 fi
7100 RANLIB=$ac_cv_prog_RANLIB
7101 if test -n "$RANLIB"; then
7102 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7103 echo "${ECHO_T}$RANLIB" >&6; }
7104 else
7105 { echo "$as_me:$LINENO: result: no" >&5
7106 echo "${ECHO_T}no" >&6; }
7107 fi
7108
7109
7110 fi
7111 if test -z "$ac_cv_prog_RANLIB"; then
7112 ac_ct_RANLIB=$RANLIB
7113 # Extract the first word of "ranlib", so it can be a program name with args.
7114 set dummy ranlib; ac_word=$2
7115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7117 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 if test -n "$ac_ct_RANLIB"; then
7121 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_ac_ct_RANLIB="ranlib"
7131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7141 if test -n "$ac_ct_RANLIB"; then
7142 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7143 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7144 else
7145 { echo "$as_me:$LINENO: result: no" >&5
7146 echo "${ECHO_T}no" >&6; }
7147 fi
7148
7149 if test "x$ac_ct_RANLIB" = x; then
7150 RANLIB=":"
7151 else
7152 case $cross_compiling:$ac_tool_warned in
7153 yes:)
7154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7155 whose name does not start with the host triplet. If you think this
7156 configuration is useful to you, please write to autoconf@gnu.org." >&5
7157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7158 whose name does not start with the host triplet. If you think this
7159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162 RANLIB=$ac_ct_RANLIB
7163 fi
7164 else
7165 RANLIB="$ac_cv_prog_RANLIB"
7166 fi
7167
7168 if test -n "$ac_tool_prefix"; then
7169 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}strip; ac_word=$2
7171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173 if test "${ac_cv_prog_STRIP+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 else
7176 if test -n "$STRIP"; then
7177 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 STRIP=$ac_cv_prog_STRIP
7197 if test -n "$STRIP"; then
7198 { echo "$as_me:$LINENO: result: $STRIP" >&5
7199 echo "${ECHO_T}$STRIP" >&6; }
7200 else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_STRIP"; then
7208 ac_ct_STRIP=$STRIP
7209 # Extract the first word of "strip", so it can be a program name with args.
7210 set dummy strip; ac_word=$2
7211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 if test -n "$ac_ct_STRIP"; then
7217 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_prog_ac_ct_STRIP="strip"
7227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7229 fi
7230 done
7231 done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7237 if test -n "$ac_ct_STRIP"; then
7238 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7239 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7240 else
7241 { echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6; }
7243 fi
7244
7245 if test "x$ac_ct_STRIP" = x; then
7246 STRIP=":"
7247 else
7248 case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7251 whose name does not start with the host triplet. If you think this
7252 configuration is useful to you, please write to autoconf@gnu.org." >&5
7253 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7254 whose name does not start with the host triplet. If you think this
7255 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258 STRIP=$ac_ct_STRIP
7259 fi
7260 else
7261 STRIP="$ac_cv_prog_STRIP"
7262 fi
7263
7264
7265 old_CC="$CC"
7266 old_CFLAGS="$CFLAGS"
7267
7268 # Set sane defaults for various variables
7269 test -z "$AR" && AR=ar
7270 test -z "$AR_FLAGS" && AR_FLAGS=cru
7271 test -z "$AS" && AS=as
7272 test -z "$CC" && CC=cc
7273 test -z "$LTCC" && LTCC=$CC
7274 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7275 test -z "$DLLTOOL" && DLLTOOL=dlltool
7276 test -z "$LD" && LD=ld
7277 test -z "$LN_S" && LN_S="ln -s"
7278 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7279 test -z "$NM" && NM=nm
7280 test -z "$SED" && SED=sed
7281 test -z "$OBJDUMP" && OBJDUMP=objdump
7282 test -z "$RANLIB" && RANLIB=:
7283 test -z "$STRIP" && STRIP=:
7284 test -z "$ac_objext" && ac_objext=o
7285
7286 # Determine commands to create old-style static archives.
7287 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7288 old_postinstall_cmds='chmod 644 $oldlib'
7289 old_postuninstall_cmds=
7290
7291 if test -n "$RANLIB"; then
7292 case $host_os in
7293 openbsd*)
7294 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7295 ;;
7296 *)
7297 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7298 ;;
7299 esac
7300 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7301 fi
7302
7303 for cc_temp in $compiler""; do
7304 case $cc_temp in
7305 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7306 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7307 \-*) ;;
7308 *) break;;
7309 esac
7310 done
7311 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7312
7313
7314 # Only perform the check for file, if the check method requires it
7315 case $deplibs_check_method in
7316 file_magic*)
7317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7318 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7319 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7320 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323 case $MAGIC_CMD in
7324 [\\/*] | ?:[\\/]*)
7325 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7326 ;;
7327 *)
7328 lt_save_MAGIC_CMD="$MAGIC_CMD"
7329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7330 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7331 for ac_dir in $ac_dummy; do
7332 IFS="$lt_save_ifs"
7333 test -z "$ac_dir" && ac_dir=.
7334 if test -f $ac_dir/${ac_tool_prefix}file; then
7335 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7336 if test -n "$file_magic_test_file"; then
7337 case $deplibs_check_method in
7338 "file_magic "*)
7339 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7342 $EGREP "$file_magic_regex" > /dev/null; then
7343 :
7344 else
7345 cat <<EOF 1>&2
7346
7347 *** Warning: the command libtool uses to detect shared libraries,
7348 *** $file_magic_cmd, produces output that libtool cannot recognize.
7349 *** The result is that libtool may fail to recognize shared libraries
7350 *** as such. This will affect the creation of libtool libraries that
7351 *** depend on shared libraries, but programs linked with such libtool
7352 *** libraries will work regardless of this problem. Nevertheless, you
7353 *** may want to report the problem to your system manager and/or to
7354 *** bug-libtool@gnu.org
7355
7356 EOF
7357 fi ;;
7358 esac
7359 fi
7360 break
7361 fi
7362 done
7363 IFS="$lt_save_ifs"
7364 MAGIC_CMD="$lt_save_MAGIC_CMD"
7365 ;;
7366 esac
7367 fi
7368
7369 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7370 if test -n "$MAGIC_CMD"; then
7371 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7372 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7373 else
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7376 fi
7377
7378 if test -z "$lt_cv_path_MAGIC_CMD"; then
7379 if test -n "$ac_tool_prefix"; then
7380 { echo "$as_me:$LINENO: checking for file" >&5
7381 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7382 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385 case $MAGIC_CMD in
7386 [\\/*] | ?:[\\/]*)
7387 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7388 ;;
7389 *)
7390 lt_save_MAGIC_CMD="$MAGIC_CMD"
7391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7393 for ac_dir in $ac_dummy; do
7394 IFS="$lt_save_ifs"
7395 test -z "$ac_dir" && ac_dir=.
7396 if test -f $ac_dir/file; then
7397 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7398 if test -n "$file_magic_test_file"; then
7399 case $deplibs_check_method in
7400 "file_magic "*)
7401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7402 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7404 $EGREP "$file_magic_regex" > /dev/null; then
7405 :
7406 else
7407 cat <<EOF 1>&2
7408
7409 *** Warning: the command libtool uses to detect shared libraries,
7410 *** $file_magic_cmd, produces output that libtool cannot recognize.
7411 *** The result is that libtool may fail to recognize shared libraries
7412 *** as such. This will affect the creation of libtool libraries that
7413 *** depend on shared libraries, but programs linked with such libtool
7414 *** libraries will work regardless of this problem. Nevertheless, you
7415 *** may want to report the problem to your system manager and/or to
7416 *** bug-libtool@gnu.org
7417
7418 EOF
7419 fi ;;
7420 esac
7421 fi
7422 break
7423 fi
7424 done
7425 IFS="$lt_save_ifs"
7426 MAGIC_CMD="$lt_save_MAGIC_CMD"
7427 ;;
7428 esac
7429 fi
7430
7431 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7432 if test -n "$MAGIC_CMD"; then
7433 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7434 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7435 else
7436 { echo "$as_me:$LINENO: result: no" >&5
7437 echo "${ECHO_T}no" >&6; }
7438 fi
7439
7440 else
7441 MAGIC_CMD=:
7442 fi
7443 fi
7444
7445 fi
7446 ;;
7447 esac
7448
7449 enable_dlopen=no
7450 enable_win32_dll=yes
7451
7452 # Check whether --enable-libtool-lock was given.
7453 if test "${enable_libtool_lock+set}" = set; then
7454 enableval=$enable_libtool_lock;
7455 fi
7456
7457 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7458
7459
7460 # Check whether --with-pic was given.
7461 if test "${with_pic+set}" = set; then
7462 withval=$with_pic; pic_mode="$withval"
7463 else
7464 pic_mode=default
7465 fi
7466
7467 test -z "$pic_mode" && pic_mode=default
7468
7469 # Use C for the default configuration in the libtool script
7470 tagname=
7471 lt_save_CC="$CC"
7472 ac_ext=c
7473 ac_cpp='$CPP $CPPFLAGS'
7474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7477
7478
7479 # Source file extension for C test sources.
7480 ac_ext=c
7481
7482 # Object file extension for compiled C test sources.
7483 objext=o
7484 objext=$objext
7485
7486 # Code to be used in simple compile tests
7487 lt_simple_compile_test_code="int some_variable = 0;\n"
7488
7489 # Code to be used in simple link tests
7490 lt_simple_link_test_code='int main(){return(0);}\n'
7491
7492
7493 # If no C compiler was specified, use CC.
7494 LTCC=${LTCC-"$CC"}
7495
7496 # If no C compiler flags were specified, use CFLAGS.
7497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7498
7499 # Allow CC to be a program name with arguments.
7500 compiler=$CC
7501
7502
7503 # save warnings/boilerplate of simple test code
7504 ac_outfile=conftest.$ac_objext
7505 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7507 _lt_compiler_boilerplate=`cat conftest.err`
7508 $rm conftest*
7509
7510 ac_outfile=conftest.$ac_objext
7511 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7513 _lt_linker_boilerplate=`cat conftest.err`
7514 $rm conftest*
7515
7516
7517 ## CAVEAT EMPTOR:
7518 ## There is no encapsulation within the following macros, do not change
7519 ## the running order or otherwise move them around unless you know exactly
7520 ## what you are doing...
7521
7522 lt_prog_compiler_no_builtin_flag=
7523
7524 if test "$GCC" = yes; then
7525 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7526
7527
7528 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 else
7533 lt_cv_prog_compiler_rtti_exceptions=no
7534 ac_outfile=conftest.$ac_objext
7535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 lt_compiler_flag="-fno-rtti -fno-exceptions"
7537 # Insert the option either (1) after the last *FLAGS variable, or
7538 # (2) before a word containing "conftest.", or (3) at the end.
7539 # Note that $ac_compile itself does not contain backslashes and begins
7540 # with a dollar sign (not a hyphen), so the echo should work correctly.
7541 # The option is referenced via a variable to avoid confusing sed.
7542 lt_compile=`echo "$ac_compile" | $SED \
7543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7545 -e 's:$: $lt_compiler_flag:'`
7546 (eval echo "\"\$as_me:7546: $lt_compile\"" >&5)
7547 (eval "$lt_compile" 2>conftest.err)
7548 ac_status=$?
7549 cat conftest.err >&5
7550 echo "$as_me:7550: \$? = $ac_status" >&5
7551 if (exit $ac_status) && test -s "$ac_outfile"; then
7552 # The compiler can only warn and ignore the option if not recognized
7553 # So say no if there are warnings other than the usual output.
7554 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7557 lt_cv_prog_compiler_rtti_exceptions=yes
7558 fi
7559 fi
7560 $rm conftest*
7561
7562 fi
7563 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7564 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7565
7566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7568 else
7569 :
7570 fi
7571
7572 fi
7573
7574 lt_prog_compiler_wl=
7575 lt_prog_compiler_pic=
7576 lt_prog_compiler_static=
7577
7578 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7579 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7580
7581 if test "$GCC" = yes; then
7582 lt_prog_compiler_wl='-Wl,'
7583 lt_prog_compiler_static='-static'
7584
7585 case $host_os in
7586 aix*)
7587 # All AIX code is PIC.
7588 if test "$host_cpu" = ia64; then
7589 # AIX 5 now supports IA64 processor
7590 lt_prog_compiler_static='-Bstatic'
7591 fi
7592 ;;
7593
7594 amigaos*)
7595 # FIXME: we need at least 68020 code to build shared libraries, but
7596 # adding the `-m68020' flag to GCC prevents building anything better,
7597 # like `-m68040'.
7598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7599 ;;
7600
7601 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7602 # PIC is the default for these OSes.
7603 ;;
7604
7605 mingw* | pw32* | os2*)
7606 # This hack is so that the source file can tell whether it is being
7607 # built for inclusion in a dll (and should export symbols for example).
7608 lt_prog_compiler_pic='-DDLL_EXPORT'
7609 ;;
7610
7611 darwin* | rhapsody*)
7612 # PIC is the default on this platform
7613 # Common symbols not allowed in MH_DYLIB files
7614 lt_prog_compiler_pic='-fno-common'
7615 ;;
7616
7617 interix3*)
7618 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7619 # Instead, we relocate shared libraries at runtime.
7620 ;;
7621
7622 msdosdjgpp*)
7623 # Just because we use GCC doesn't mean we suddenly get shared libraries
7624 # on systems that don't support them.
7625 lt_prog_compiler_can_build_shared=no
7626 enable_shared=no
7627 ;;
7628
7629 sysv4*MP*)
7630 if test -d /usr/nec; then
7631 lt_prog_compiler_pic=-Kconform_pic
7632 fi
7633 ;;
7634
7635 hpux*)
7636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7637 # not for PA HP-UX.
7638 case $host_cpu in
7639 hppa*64*|ia64*)
7640 # +Z the default
7641 ;;
7642 *)
7643 lt_prog_compiler_pic='-fPIC'
7644 ;;
7645 esac
7646 ;;
7647
7648 *)
7649 lt_prog_compiler_pic='-fPIC'
7650 ;;
7651 esac
7652 else
7653 # PORTME Check for flag to pass linker flags through the system compiler.
7654 case $host_os in
7655 aix*)
7656 lt_prog_compiler_wl='-Wl,'
7657 if test "$host_cpu" = ia64; then
7658 # AIX 5 now supports IA64 processor
7659 lt_prog_compiler_static='-Bstatic'
7660 else
7661 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7662 fi
7663 ;;
7664 darwin*)
7665 # PIC is the default on this platform
7666 # Common symbols not allowed in MH_DYLIB files
7667 case $cc_basename in
7668 xlc*)
7669 lt_prog_compiler_pic='-qnocommon'
7670 lt_prog_compiler_wl='-Wl,'
7671 ;;
7672 esac
7673 ;;
7674
7675 mingw* | pw32* | os2*)
7676 # This hack is so that the source file can tell whether it is being
7677 # built for inclusion in a dll (and should export symbols for example).
7678 lt_prog_compiler_pic='-DDLL_EXPORT'
7679 ;;
7680
7681 hpux9* | hpux10* | hpux11*)
7682 lt_prog_compiler_wl='-Wl,'
7683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7684 # not for PA HP-UX.
7685 case $host_cpu in
7686 hppa*64*|ia64*)
7687 # +Z the default
7688 ;;
7689 *)
7690 lt_prog_compiler_pic='+Z'
7691 ;;
7692 esac
7693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7694 lt_prog_compiler_static='${wl}-a ${wl}archive'
7695 ;;
7696
7697 irix5* | irix6* | nonstopux*)
7698 lt_prog_compiler_wl='-Wl,'
7699 # PIC (with -KPIC) is the default.
7700 lt_prog_compiler_static='-non_shared'
7701 ;;
7702
7703 newsos6)
7704 lt_prog_compiler_pic='-KPIC'
7705 lt_prog_compiler_static='-Bstatic'
7706 ;;
7707
7708 linux*)
7709 case $cc_basename in
7710 icc* | ecc*)
7711 lt_prog_compiler_wl='-Wl,'
7712 lt_prog_compiler_pic='-KPIC'
7713 lt_prog_compiler_static='-static'
7714 ;;
7715 pgcc* | pgf77* | pgf90* | pgf95*)
7716 # Portland Group compilers (*not* the Pentium gcc compiler,
7717 # which looks to be a dead project)
7718 lt_prog_compiler_wl='-Wl,'
7719 lt_prog_compiler_pic='-fpic'
7720 lt_prog_compiler_static='-Bstatic'
7721 ;;
7722 ccc*)
7723 lt_prog_compiler_wl='-Wl,'
7724 # All Alpha code is PIC.
7725 lt_prog_compiler_static='-non_shared'
7726 ;;
7727 esac
7728 ;;
7729
7730 osf3* | osf4* | osf5*)
7731 lt_prog_compiler_wl='-Wl,'
7732 # All OSF/1 code is PIC.
7733 lt_prog_compiler_static='-non_shared'
7734 ;;
7735
7736 solaris*)
7737 lt_prog_compiler_pic='-KPIC'
7738 lt_prog_compiler_static='-Bstatic'
7739 case $cc_basename in
7740 f77* | f90* | f95*)
7741 lt_prog_compiler_wl='-Qoption ld ';;
7742 *)
7743 lt_prog_compiler_wl='-Wl,';;
7744 esac
7745 ;;
7746
7747 sunos4*)
7748 lt_prog_compiler_wl='-Qoption ld '
7749 lt_prog_compiler_pic='-PIC'
7750 lt_prog_compiler_static='-Bstatic'
7751 ;;
7752
7753 sysv4 | sysv4.2uw2* | sysv4.3*)
7754 lt_prog_compiler_wl='-Wl,'
7755 lt_prog_compiler_pic='-KPIC'
7756 lt_prog_compiler_static='-Bstatic'
7757 ;;
7758
7759 sysv4*MP*)
7760 if test -d /usr/nec ;then
7761 lt_prog_compiler_pic='-Kconform_pic'
7762 lt_prog_compiler_static='-Bstatic'
7763 fi
7764 ;;
7765
7766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7767 lt_prog_compiler_wl='-Wl,'
7768 lt_prog_compiler_pic='-KPIC'
7769 lt_prog_compiler_static='-Bstatic'
7770 ;;
7771
7772 unicos*)
7773 lt_prog_compiler_wl='-Wl,'
7774 lt_prog_compiler_can_build_shared=no
7775 ;;
7776
7777 uts4*)
7778 lt_prog_compiler_pic='-pic'
7779 lt_prog_compiler_static='-Bstatic'
7780 ;;
7781
7782 *)
7783 lt_prog_compiler_can_build_shared=no
7784 ;;
7785 esac
7786 fi
7787
7788 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7789 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7790
7791 #
7792 # Check to make sure the PIC flag actually works.
7793 #
7794 if test -n "$lt_prog_compiler_pic"; then
7795
7796 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7798 if test "${lt_prog_compiler_pic_works+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801 lt_prog_compiler_pic_works=no
7802 ac_outfile=conftest.$ac_objext
7803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7804 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7805 # Insert the option either (1) after the last *FLAGS variable, or
7806 # (2) before a word containing "conftest.", or (3) at the end.
7807 # Note that $ac_compile itself does not contain backslashes and begins
7808 # with a dollar sign (not a hyphen), so the echo should work correctly.
7809 # The option is referenced via a variable to avoid confusing sed.
7810 lt_compile=`echo "$ac_compile" | $SED \
7811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7813 -e 's:$: $lt_compiler_flag:'`
7814 (eval echo "\"\$as_me:7814: $lt_compile\"" >&5)
7815 (eval "$lt_compile" 2>conftest.err)
7816 ac_status=$?
7817 cat conftest.err >&5
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 if (exit $ac_status) && test -s "$ac_outfile"; then
7820 # The compiler can only warn and ignore the option if not recognized
7821 # So say no if there are warnings other than the usual output.
7822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7825 lt_prog_compiler_pic_works=yes
7826 fi
7827 fi
7828 $rm conftest*
7829
7830 fi
7831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7832 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7833
7834 if test x"$lt_prog_compiler_pic_works" = xyes; then
7835 case $lt_prog_compiler_pic in
7836 "" | " "*) ;;
7837 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7838 esac
7839 else
7840 lt_prog_compiler_pic=
7841 lt_prog_compiler_can_build_shared=no
7842 fi
7843
7844 fi
7845 case $host_os in
7846 # For platforms which do not support PIC, -DPIC is meaningless:
7847 *djgpp*)
7848 lt_prog_compiler_pic=
7849 ;;
7850 *)
7851 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7852 ;;
7853 esac
7854
7855 #
7856 # Check to make sure the static flag actually works.
7857 #
7858 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7859 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7860 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7861 if test "${lt_prog_compiler_static_works+set}" = set; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 lt_prog_compiler_static_works=no
7865 save_LDFLAGS="$LDFLAGS"
7866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7867 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7869 # The linker can only warn and ignore the option if not recognized
7870 # So say no if there are warnings
7871 if test -s conftest.err; then
7872 # Append any errors to the config.log.
7873 cat conftest.err 1>&5
7874 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7876 if diff conftest.exp conftest.er2 >/dev/null; then
7877 lt_prog_compiler_static_works=yes
7878 fi
7879 else
7880 lt_prog_compiler_static_works=yes
7881 fi
7882 fi
7883 $rm conftest*
7884 LDFLAGS="$save_LDFLAGS"
7885
7886 fi
7887 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7888 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7889
7890 if test x"$lt_prog_compiler_static_works" = xyes; then
7891 :
7892 else
7893 lt_prog_compiler_static=
7894 fi
7895
7896
7897 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902 lt_cv_prog_compiler_c_o=no
7903 $rm -r conftest 2>/dev/null
7904 mkdir conftest
7905 cd conftest
7906 mkdir out
7907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7908
7909 lt_compiler_flag="-o out/conftest2.$ac_objext"
7910 # Insert the option either (1) after the last *FLAGS variable, or
7911 # (2) before a word containing "conftest.", or (3) at the end.
7912 # Note that $ac_compile itself does not contain backslashes and begins
7913 # with a dollar sign (not a hyphen), so the echo should work correctly.
7914 lt_compile=`echo "$ac_compile" | $SED \
7915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7917 -e 's:$: $lt_compiler_flag:'`
7918 (eval echo "\"\$as_me:7918: $lt_compile\"" >&5)
7919 (eval "$lt_compile" 2>out/conftest.err)
7920 ac_status=$?
7921 cat out/conftest.err >&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7924 then
7925 # The compiler can only warn and ignore the option if not recognized
7926 # So say no if there are warnings
7927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7930 lt_cv_prog_compiler_c_o=yes
7931 fi
7932 fi
7933 chmod u+w . 2>&5
7934 $rm conftest*
7935 # SGI C++ compiler will create directory out/ii_files/ for
7936 # template instantiation
7937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7938 $rm out/* && rmdir out
7939 cd ..
7940 rmdir conftest
7941 $rm conftest*
7942
7943 fi
7944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7946
7947
7948 hard_links="nottested"
7949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7950 # do not overwrite the value of need_locks provided by the user
7951 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7953 hard_links=yes
7954 $rm conftest*
7955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7956 touch conftest.a
7957 ln conftest.a conftest.b 2>&5 || hard_links=no
7958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7959 { echo "$as_me:$LINENO: result: $hard_links" >&5
7960 echo "${ECHO_T}$hard_links" >&6; }
7961 if test "$hard_links" = no; then
7962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7964 need_locks=warn
7965 fi
7966 else
7967 need_locks=no
7968 fi
7969
7970 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7972
7973 runpath_var=
7974 allow_undefined_flag=
7975 enable_shared_with_static_runtimes=no
7976 archive_cmds=
7977 archive_expsym_cmds=
7978 old_archive_From_new_cmds=
7979 old_archive_from_expsyms_cmds=
7980 export_dynamic_flag_spec=
7981 whole_archive_flag_spec=
7982 thread_safe_flag_spec=
7983 hardcode_libdir_flag_spec=
7984 hardcode_libdir_flag_spec_ld=
7985 hardcode_libdir_separator=
7986 hardcode_direct=no
7987 hardcode_minus_L=no
7988 hardcode_shlibpath_var=unsupported
7989 link_all_deplibs=unknown
7990 hardcode_automatic=no
7991 module_cmds=
7992 module_expsym_cmds=
7993 always_export_symbols=no
7994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7995 # include_expsyms should be a list of space-separated symbols to be *always*
7996 # included in the symbol list
7997 include_expsyms=
7998 # exclude_expsyms can be an extended regexp of symbols to exclude
7999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8001 # as well as any symbol that contains `d'.
8002 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8004 # platforms (ab)use it in PIC code, but their linkers get confused if
8005 # the symbol is explicitly referenced. Since portable code cannot
8006 # rely on this symbol name, it's probably fine to never include it in
8007 # preloaded symbol tables.
8008 extract_expsyms_cmds=
8009 # Just being paranoid about ensuring that cc_basename is set.
8010 for cc_temp in $compiler""; do
8011 case $cc_temp in
8012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8014 \-*) ;;
8015 *) break;;
8016 esac
8017 done
8018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8019
8020 case $host_os in
8021 cygwin* | mingw* | pw32*)
8022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8023 # When not using gcc, we currently assume that we are using
8024 # Microsoft Visual C++.
8025 if test "$GCC" != yes; then
8026 with_gnu_ld=no
8027 fi
8028 ;;
8029 interix*)
8030 # we just hope/assume this is gcc and not c89 (= MSVC++)
8031 with_gnu_ld=yes
8032 ;;
8033 openbsd*)
8034 with_gnu_ld=no
8035 ;;
8036 esac
8037
8038 ld_shlibs=yes
8039 if test "$with_gnu_ld" = yes; then
8040 # If archive_cmds runs LD, not CC, wlarc should be empty
8041 wlarc='${wl}'
8042
8043 # Set some defaults for GNU ld with shared library support. These
8044 # are reset later if shared libraries are not supported. Putting them
8045 # here allows them to be overridden if necessary.
8046 runpath_var=LD_RUN_PATH
8047 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8048 export_dynamic_flag_spec='${wl}--export-dynamic'
8049 # ancient GNU ld didn't support --whole-archive et. al.
8050 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8051 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8052 else
8053 whole_archive_flag_spec=
8054 fi
8055 supports_anon_versioning=no
8056 case `$LD -v 2>/dev/null` in
8057 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8058 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8059 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8060 *\ 2.11.*) ;; # other 2.11 versions
8061 *) supports_anon_versioning=yes ;;
8062 esac
8063
8064 # See if GNU ld supports shared libraries.
8065 case $host_os in
8066 aix3* | aix4* | aix5*)
8067 # On AIX/PPC, the GNU linker is very broken
8068 if test "$host_cpu" != ia64; then
8069 ld_shlibs=no
8070 cat <<EOF 1>&2
8071
8072 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8073 *** to be unable to reliably create shared libraries on AIX.
8074 *** Therefore, libtool is disabling shared libraries support. If you
8075 *** really care for shared libraries, you may want to modify your PATH
8076 *** so that a non-GNU linker is found, and then restart.
8077
8078 EOF
8079 fi
8080 ;;
8081
8082 amigaos*)
8083 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8084 hardcode_libdir_flag_spec='-L$libdir'
8085 hardcode_minus_L=yes
8086
8087 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8088 # that the semantics of dynamic libraries on AmigaOS, at least up
8089 # to version 4, is to share data among multiple programs linked
8090 # with the same dynamic library. Since this doesn't match the
8091 # behavior of shared libraries on other platforms, we can't use
8092 # them.
8093 ld_shlibs=no
8094 ;;
8095
8096 beos*)
8097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8098 allow_undefined_flag=unsupported
8099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8100 # support --undefined. This deserves some investigation. FIXME
8101 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8102 else
8103 ld_shlibs=no
8104 fi
8105 ;;
8106
8107 cygwin* | mingw* | pw32*)
8108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8109 # as there is no search path for DLLs.
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 allow_undefined_flag=unsupported
8112 always_export_symbols=no
8113 enable_shared_with_static_runtimes=yes
8114 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8115
8116 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8118 # If the export-symbols file already is a .def file (1st line
8119 # is EXPORTS), use it as is; otherwise, prepend...
8120 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8121 cp $export_symbols $output_objdir/$soname.def;
8122 else
8123 echo EXPORTS > $output_objdir/$soname.def;
8124 cat $export_symbols >> $output_objdir/$soname.def;
8125 fi~
8126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8127 else
8128 ld_shlibs=no
8129 fi
8130 ;;
8131
8132 interix3*)
8133 hardcode_direct=no
8134 hardcode_shlibpath_var=no
8135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8136 export_dynamic_flag_spec='${wl}-E'
8137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8138 # Instead, shared libraries are loaded at an image base (0x10000000 by
8139 # default) and relocated if they conflict, which is a slow very memory
8140 # consuming and fragmenting process. To avoid this, we pick a random,
8141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8144 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'
8145 ;;
8146
8147 linux*)
8148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8149 tmp_addflag=
8150 case $cc_basename,$host_cpu in
8151 pgcc*) # Portland Group C compiler
8152 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'
8153 tmp_addflag=' $pic_flag'
8154 ;;
8155 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8156 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'
8157 tmp_addflag=' $pic_flag -Mnomain' ;;
8158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8159 tmp_addflag=' -i_dynamic' ;;
8160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8161 tmp_addflag=' -i_dynamic -nofor_main' ;;
8162 ifc* | ifort*) # Intel Fortran compiler
8163 tmp_addflag=' -nofor_main' ;;
8164 esac
8165 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166
8167 if test $supports_anon_versioning = yes; then
8168 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8170 $echo "local: *; };" >> $output_objdir/$libname.ver~
8171 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8172 fi
8173 else
8174 ld_shlibs=no
8175 fi
8176 ;;
8177
8178 netbsd*)
8179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8181 wlarc=
8182 else
8183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8185 fi
8186 ;;
8187
8188 solaris*)
8189 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8190 ld_shlibs=no
8191 cat <<EOF 1>&2
8192
8193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8194 *** create shared libraries on Solaris systems. Therefore, libtool
8195 *** is disabling shared libraries support. We urge you to upgrade GNU
8196 *** binutils to release 2.9.1 or newer. Another option is to modify
8197 *** your PATH or compiler configuration so that the native linker is
8198 *** used, and then restart.
8199
8200 EOF
8201 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8204 else
8205 ld_shlibs=no
8206 fi
8207 ;;
8208
8209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8210 case `$LD -v 2>&1` in
8211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8212 ld_shlibs=no
8213 cat <<_LT_EOF 1>&2
8214
8215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8216 *** reliably create shared libraries on SCO systems. Therefore, libtool
8217 *** is disabling shared libraries support. We urge you to upgrade GNU
8218 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8219 *** your PATH or compiler configuration so that the native linker is
8220 *** used, and then restart.
8221
8222 _LT_EOF
8223 ;;
8224 *)
8225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8226 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8229 else
8230 ld_shlibs=no
8231 fi
8232 ;;
8233 esac
8234 ;;
8235
8236 sunos4*)
8237 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8238 wlarc=
8239 hardcode_direct=yes
8240 hardcode_shlibpath_var=no
8241 ;;
8242
8243 *)
8244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8247 else
8248 ld_shlibs=no
8249 fi
8250 ;;
8251 esac
8252
8253 if test "$ld_shlibs" = no; then
8254 runpath_var=
8255 hardcode_libdir_flag_spec=
8256 export_dynamic_flag_spec=
8257 whole_archive_flag_spec=
8258 fi
8259 else
8260 # PORTME fill in a description of your system's linker (not GNU ld)
8261 case $host_os in
8262 aix3*)
8263 allow_undefined_flag=unsupported
8264 always_export_symbols=yes
8265 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8266 # Note: this linker hardcodes the directories in LIBPATH if there
8267 # are no directories specified by -L.
8268 hardcode_minus_L=yes
8269 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8270 # Neither direct hardcoding nor static linking is supported with a
8271 # broken collect2.
8272 hardcode_direct=unsupported
8273 fi
8274 ;;
8275
8276 aix4* | aix5*)
8277 if test "$host_cpu" = ia64; then
8278 # On IA64, the linker does run time linking by default, so we don't
8279 # have to do anything special.
8280 aix_use_runtimelinking=no
8281 exp_sym_flag='-Bexport'
8282 no_entry_flag=""
8283 else
8284 # If we're using GNU nm, then we don't want the "-C" option.
8285 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8286 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8287 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8288 else
8289 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8290 fi
8291 aix_use_runtimelinking=no
8292
8293 # Test if we are trying to use run time linking or normal
8294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8295 # need to do runtime linking.
8296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8297 for ld_flag in $LDFLAGS; do
8298 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8299 aix_use_runtimelinking=yes
8300 break
8301 fi
8302 done
8303 ;;
8304 esac
8305
8306 exp_sym_flag='-bexport'
8307 no_entry_flag='-bnoentry'
8308 fi
8309
8310 # When large executables or shared objects are built, AIX ld can
8311 # have problems creating the table of contents. If linking a library
8312 # or program results in "error TOC overflow" add -mminimal-toc to
8313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8315
8316 archive_cmds=''
8317 hardcode_direct=yes
8318 hardcode_libdir_separator=':'
8319 link_all_deplibs=yes
8320
8321 if test "$GCC" = yes; then
8322 case $host_os in aix4.[012]|aix4.[012].*)
8323 # We only want to do this on AIX 4.2 and lower, the check
8324 # below for broken collect2 doesn't work under 4.3+
8325 collect2name=`${CC} -print-prog-name=collect2`
8326 if test -f "$collect2name" && \
8327 strings "$collect2name" | grep resolve_lib_name >/dev/null
8328 then
8329 # We have reworked collect2
8330 hardcode_direct=yes
8331 else
8332 # We have old collect2
8333 hardcode_direct=unsupported
8334 # It fails to find uninstalled libraries when the uninstalled
8335 # path is not listed in the libpath. Setting hardcode_minus_L
8336 # to unsupported forces relinking
8337 hardcode_minus_L=yes
8338 hardcode_libdir_flag_spec='-L$libdir'
8339 hardcode_libdir_separator=
8340 fi
8341 ;;
8342 esac
8343 shared_flag='-shared'
8344 if test "$aix_use_runtimelinking" = yes; then
8345 shared_flag="$shared_flag "'${wl}-G'
8346 fi
8347 else
8348 # not using gcc
8349 if test "$host_cpu" = ia64; then
8350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8351 # chokes on -Wl,-G. The following line is correct:
8352 shared_flag='-G'
8353 else
8354 if test "$aix_use_runtimelinking" = yes; then
8355 shared_flag='${wl}-G'
8356 else
8357 shared_flag='${wl}-bM:SRE'
8358 fi
8359 fi
8360 fi
8361
8362 # It seems that -bexpall does not export symbols beginning with
8363 # underscore (_), so it is better to generate a list of symbols to export.
8364 always_export_symbols=yes
8365 if test "$aix_use_runtimelinking" = yes; then
8366 # Warning - without using the other runtime loading flags (-brtl),
8367 # -berok will link without error, but may produce a broken library.
8368 allow_undefined_flag='-berok'
8369 # Determine the default libpath from the value encoded in an empty executable.
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376
8377 int
8378 main ()
8379 {
8380
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8387 case "(($ac_try" in
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8390 esac
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8393 ac_status=$?
8394 grep -v '^ *+' conftest.er1 >conftest.err
8395 rm -f conftest.er1
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } && {
8399 test -z "$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8401 } && test -s conftest$ac_exeext &&
8402 $as_test_x conftest$ac_exeext; then
8403
8404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8405 }'`
8406 # Check for a 64-bit object if we didn't find anything.
8407 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8408 }'`; fi
8409 else
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.$ac_ext >&5
8412
8413
8414 fi
8415
8416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8417 conftest$ac_exeext conftest.$ac_ext
8418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8419
8420 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8421 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"
8422 else
8423 if test "$host_cpu" = ia64; then
8424 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8425 allow_undefined_flag="-z nodefs"
8426 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8427 else
8428 # Determine the default libpath from the value encoded in an empty executable.
8429 cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h. */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435
8436 int
8437 main ()
8438 {
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (ac_try="$ac_link"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_link") 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest$ac_exeext &&
8461 $as_test_x conftest$ac_exeext; then
8462
8463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8464 }'`
8465 # Check for a 64-bit object if we didn't find anything.
8466 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8467 }'`; fi
8468 else
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476 conftest$ac_exeext conftest.$ac_ext
8477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8478
8479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480 # Warning - without using the other run time loading flags,
8481 # -berok will link without error, but may produce a broken library.
8482 no_undefined_flag=' ${wl}-bernotok'
8483 allow_undefined_flag=' ${wl}-berok'
8484 # Exported symbols can be pulled into shared objects from archives
8485 whole_archive_flag_spec='$convenience'
8486 archive_cmds_need_lc=yes
8487 # This is similar to how AIX traditionally builds its shared libraries.
8488 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8489 fi
8490 fi
8491 ;;
8492
8493 amigaos*)
8494 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8495 hardcode_libdir_flag_spec='-L$libdir'
8496 hardcode_minus_L=yes
8497 # see comment about different semantics on the GNU ld section
8498 ld_shlibs=no
8499 ;;
8500
8501 bsdi[45]*)
8502 export_dynamic_flag_spec=-rdynamic
8503 ;;
8504
8505 cygwin* | mingw* | pw32*)
8506 # When not using gcc, we currently assume that we are using
8507 # Microsoft Visual C++.
8508 # hardcode_libdir_flag_spec is actually meaningless, as there is
8509 # no search path for DLLs.
8510 hardcode_libdir_flag_spec=' '
8511 allow_undefined_flag=unsupported
8512 # Tell ltmain to make .lib files, not .a files.
8513 libext=lib
8514 # Tell ltmain to make .dll files, not .so files.
8515 shrext_cmds=".dll"
8516 # FIXME: Setting linknames here is a bad hack.
8517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8518 # The linker will automatically build a .lib file if we build a DLL.
8519 old_archive_From_new_cmds='true'
8520 # FIXME: Should let the user specify the lib program.
8521 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8522 fix_srcfile_path='`cygpath -w "$srcfile"`'
8523 enable_shared_with_static_runtimes=yes
8524 ;;
8525
8526 darwin* | rhapsody*)
8527 case $host_os in
8528 rhapsody* | darwin1.[012])
8529 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8530 ;;
8531 *) # Darwin 1.3 on
8532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8533 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8534 else
8535 case ${MACOSX_DEPLOYMENT_TARGET} in
8536 10.[012])
8537 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8538 ;;
8539 10.*)
8540 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8541 ;;
8542 esac
8543 fi
8544 ;;
8545 esac
8546 archive_cmds_need_lc=no
8547 hardcode_direct=no
8548 hardcode_automatic=yes
8549 hardcode_shlibpath_var=unsupported
8550 whole_archive_flag_spec=''
8551 link_all_deplibs=yes
8552 if test "$GCC" = yes ; then
8553 output_verbose_link_cmd='echo'
8554 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8555 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8557 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8558 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8559 else
8560 case $cc_basename in
8561 xlc*)
8562 output_verbose_link_cmd='echo'
8563 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8564 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8566 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8567 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8568 ;;
8569 *)
8570 ld_shlibs=no
8571 ;;
8572 esac
8573 fi
8574 ;;
8575
8576 dgux*)
8577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_shlibpath_var=no
8580 ;;
8581
8582 freebsd1*)
8583 ld_shlibs=no
8584 ;;
8585
8586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8587 # support. Future versions do this automatically, but an explicit c++rt0.o
8588 # does not break anything, and helps significantly (at the cost of a little
8589 # extra space).
8590 freebsd2.2*)
8591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8592 hardcode_libdir_flag_spec='-R$libdir'
8593 hardcode_direct=yes
8594 hardcode_shlibpath_var=no
8595 ;;
8596
8597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8598 freebsd2*)
8599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8600 hardcode_direct=yes
8601 hardcode_minus_L=yes
8602 hardcode_shlibpath_var=no
8603 ;;
8604
8605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8606 freebsd* | kfreebsd*-gnu | dragonfly*)
8607 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8608 hardcode_libdir_flag_spec='-R$libdir'
8609 hardcode_direct=yes
8610 hardcode_shlibpath_var=no
8611 ;;
8612
8613 hpux9*)
8614 if test "$GCC" = yes; then
8615 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'
8616 else
8617 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8618 fi
8619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8620 hardcode_libdir_separator=:
8621 hardcode_direct=yes
8622
8623 # hardcode_minus_L: Not really in the search PATH,
8624 # but as the default location of the library.
8625 hardcode_minus_L=yes
8626 export_dynamic_flag_spec='${wl}-E'
8627 ;;
8628
8629 hpux10*)
8630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8631 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8632 else
8633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8634 fi
8635 if test "$with_gnu_ld" = no; then
8636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8637 hardcode_libdir_separator=:
8638
8639 hardcode_direct=yes
8640 export_dynamic_flag_spec='${wl}-E'
8641
8642 # hardcode_minus_L: Not really in the search PATH,
8643 # but as the default location of the library.
8644 hardcode_minus_L=yes
8645 fi
8646 ;;
8647
8648 hpux11*)
8649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8650 case $host_cpu in
8651 hppa*64*)
8652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8653 ;;
8654 ia64*)
8655 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8656 ;;
8657 *)
8658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659 ;;
8660 esac
8661 else
8662 case $host_cpu in
8663 hppa*64*)
8664 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8665 ;;
8666 ia64*)
8667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8668 ;;
8669 *)
8670 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8671 ;;
8672 esac
8673 fi
8674 if test "$with_gnu_ld" = no; then
8675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8676 hardcode_libdir_separator=:
8677
8678 case $host_cpu in
8679 hppa*64*|ia64*)
8680 hardcode_libdir_flag_spec_ld='+b $libdir'
8681 hardcode_direct=no
8682 hardcode_shlibpath_var=no
8683 ;;
8684 *)
8685 hardcode_direct=yes
8686 export_dynamic_flag_spec='${wl}-E'
8687
8688 # hardcode_minus_L: Not really in the search PATH,
8689 # but as the default location of the library.
8690 hardcode_minus_L=yes
8691 ;;
8692 esac
8693 fi
8694 ;;
8695
8696 irix5* | irix6* | nonstopux*)
8697 if test "$GCC" = yes; then
8698 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'
8699 else
8700 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8701 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8702 fi
8703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8704 hardcode_libdir_separator=:
8705 link_all_deplibs=yes
8706 ;;
8707
8708 netbsd*)
8709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8710 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8711 else
8712 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8713 fi
8714 hardcode_libdir_flag_spec='-R$libdir'
8715 hardcode_direct=yes
8716 hardcode_shlibpath_var=no
8717 ;;
8718
8719 newsos6)
8720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 hardcode_direct=yes
8722 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8723 hardcode_libdir_separator=:
8724 hardcode_shlibpath_var=no
8725 ;;
8726
8727 openbsd*)
8728 hardcode_direct=yes
8729 hardcode_shlibpath_var=no
8730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8731 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8732 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8734 export_dynamic_flag_spec='${wl}-E'
8735 else
8736 case $host_os in
8737 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_libdir_flag_spec='-R$libdir'
8740 ;;
8741 *)
8742 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8744 ;;
8745 esac
8746 fi
8747 ;;
8748
8749 os2*)
8750 hardcode_libdir_flag_spec='-L$libdir'
8751 hardcode_minus_L=yes
8752 allow_undefined_flag=unsupported
8753 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8754 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8755 ;;
8756
8757 osf3*)
8758 if test "$GCC" = yes; then
8759 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8760 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8761 else
8762 allow_undefined_flag=' -expect_unresolved \*'
8763 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8764 fi
8765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8766 hardcode_libdir_separator=:
8767 ;;
8768
8769 osf4* | osf5*) # as osf3* with the addition of -msym flag
8770 if test "$GCC" = yes; then
8771 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8772 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 else
8775 allow_undefined_flag=' -expect_unresolved \*'
8776 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8777 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8778 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8779
8780 # Both c and cxx compiler support -rpath directly
8781 hardcode_libdir_flag_spec='-rpath $libdir'
8782 fi
8783 hardcode_libdir_separator=:
8784 ;;
8785
8786 solaris*)
8787 no_undefined_flag=' -z text'
8788 if test "$GCC" = yes; then
8789 wlarc='${wl}'
8790 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8791 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8793 else
8794 wlarc=''
8795 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8796 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8798 fi
8799 hardcode_libdir_flag_spec='-R$libdir'
8800 hardcode_shlibpath_var=no
8801 case $host_os in
8802 solaris2.[0-5] | solaris2.[0-5].*) ;;
8803 *)
8804 # The compiler driver will combine linker options so we
8805 # cannot just pass the convience library names through
8806 # without $wl, iff we do not link with $LD.
8807 # Luckily, gcc supports the same syntax we need for Sun Studio.
8808 # Supported since Solaris 2.6 (maybe 2.5.1?)
8809 case $wlarc in
8810 '')
8811 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8812 *)
8813 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8814 esac ;;
8815 esac
8816 link_all_deplibs=yes
8817 ;;
8818
8819 sunos4*)
8820 if test "x$host_vendor" = xsequent; then
8821 # Use $CC to link under sequent, because it throws in some extra .o
8822 # files that make .init and .fini sections work.
8823 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8824 else
8825 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8826 fi
8827 hardcode_libdir_flag_spec='-L$libdir'
8828 hardcode_direct=yes
8829 hardcode_minus_L=yes
8830 hardcode_shlibpath_var=no
8831 ;;
8832
8833 sysv4)
8834 case $host_vendor in
8835 sni)
8836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8837 hardcode_direct=yes # is this really true???
8838 ;;
8839 siemens)
8840 ## LD is ld it makes a PLAMLIB
8841 ## CC just makes a GrossModule.
8842 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8843 reload_cmds='$CC -r -o $output$reload_objs'
8844 hardcode_direct=no
8845 ;;
8846 motorola)
8847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8849 ;;
8850 esac
8851 runpath_var='LD_RUN_PATH'
8852 hardcode_shlibpath_var=no
8853 ;;
8854
8855 sysv4.3*)
8856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8857 hardcode_shlibpath_var=no
8858 export_dynamic_flag_spec='-Bexport'
8859 ;;
8860
8861 sysv4*MP*)
8862 if test -d /usr/nec; then
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_shlibpath_var=no
8865 runpath_var=LD_RUN_PATH
8866 hardcode_runpath_var=yes
8867 ld_shlibs=yes
8868 fi
8869 ;;
8870
8871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8872 no_undefined_flag='${wl}-z,text'
8873 archive_cmds_need_lc=no
8874 hardcode_shlibpath_var=no
8875 runpath_var='LD_RUN_PATH'
8876
8877 if test "$GCC" = yes; then
8878 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8879 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8880 else
8881 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8882 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8883 fi
8884 ;;
8885
8886 sysv5* | sco3.2v5* | sco5v6*)
8887 # Note: We can NOT use -z defs as we might desire, because we do not
8888 # link with -lc, and that would cause any symbols used from libc to
8889 # always be unresolved, which means just about no library would
8890 # ever link correctly. If we're not using GNU ld we use -z text
8891 # though, which does catch some bad symbols but isn't as heavy-handed
8892 # as -z defs.
8893 no_undefined_flag='${wl}-z,text'
8894 allow_undefined_flag='${wl}-z,nodefs'
8895 archive_cmds_need_lc=no
8896 hardcode_shlibpath_var=no
8897 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8898 hardcode_libdir_separator=':'
8899 link_all_deplibs=yes
8900 export_dynamic_flag_spec='${wl}-Bexport'
8901 runpath_var='LD_RUN_PATH'
8902
8903 if test "$GCC" = yes; then
8904 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8905 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 else
8907 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8908 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8909 fi
8910 ;;
8911
8912 uts4*)
8913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914 hardcode_libdir_flag_spec='-L$libdir'
8915 hardcode_shlibpath_var=no
8916 ;;
8917
8918 *)
8919 ld_shlibs=no
8920 ;;
8921 esac
8922 fi
8923
8924 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8925 echo "${ECHO_T}$ld_shlibs" >&6; }
8926 test "$ld_shlibs" = no && can_build_shared=no
8927
8928 #
8929 # Do we need to explicitly link libc?
8930 #
8931 case "x$archive_cmds_need_lc" in
8932 x|xyes)
8933 # Assume -lc should be added
8934 archive_cmds_need_lc=yes
8935
8936 if test "$enable_shared" = yes && test "$GCC" = yes; then
8937 case $archive_cmds in
8938 *'~'*)
8939 # FIXME: we may have to deal with multi-command sequences.
8940 ;;
8941 '$CC '*)
8942 # Test whether the compiler implicitly links with -lc since on some
8943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8944 # to ld, don't add -lc before -lgcc.
8945 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8946 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8947 $rm conftest*
8948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8949
8950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8951 (eval $ac_compile) 2>&5
8952 ac_status=$?
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } 2>conftest.err; then
8955 soname=conftest
8956 lib=conftest
8957 libobjs=conftest.$ac_objext
8958 deplibs=
8959 wl=$lt_prog_compiler_wl
8960 pic_flag=$lt_prog_compiler_pic
8961 compiler_flags=-v
8962 linker_flags=-v
8963 verstring=
8964 output_objdir=.
8965 libname=conftest
8966 lt_save_allow_undefined_flag=$allow_undefined_flag
8967 allow_undefined_flag=
8968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8969 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8970 ac_status=$?
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }
8973 then
8974 archive_cmds_need_lc=no
8975 else
8976 archive_cmds_need_lc=yes
8977 fi
8978 allow_undefined_flag=$lt_save_allow_undefined_flag
8979 else
8980 cat conftest.err 1>&5
8981 fi
8982 $rm conftest*
8983 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8984 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8985 ;;
8986 esac
8987 fi
8988 ;;
8989 esac
8990
8991 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8992 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8993 library_names_spec=
8994 libname_spec='lib$name'
8995 soname_spec=
8996 shrext_cmds=".so"
8997 postinstall_cmds=
8998 postuninstall_cmds=
8999 finish_cmds=
9000 finish_eval=
9001 shlibpath_var=
9002 shlibpath_overrides_runpath=unknown
9003 version_type=none
9004 dynamic_linker="$host_os ld.so"
9005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9006 if test "$GCC" = yes; then
9007 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9008 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9009 # if the path contains ";" then we assume it to be the separator
9010 # otherwise default to the standard path separator (i.e. ":") - it is
9011 # assumed that no part of a normal pathname contains ";" but that should
9012 # okay in the real world where ";" in dirpaths is itself problematic.
9013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9014 else
9015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9016 fi
9017 else
9018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9019 fi
9020 need_lib_prefix=unknown
9021 hardcode_into_libs=no
9022
9023 # when you set need_version to no, make sure it does not cause -set_version
9024 # flags to be left without arguments
9025 need_version=unknown
9026
9027 case $host_os in
9028 aix3*)
9029 version_type=linux
9030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9031 shlibpath_var=LIBPATH
9032
9033 # AIX 3 has no versioning support, so we append a major version to the name.
9034 soname_spec='${libname}${release}${shared_ext}$major'
9035 ;;
9036
9037 aix4* | aix5*)
9038 version_type=linux
9039 need_lib_prefix=no
9040 need_version=no
9041 hardcode_into_libs=yes
9042 if test "$host_cpu" = ia64; then
9043 # AIX 5 supports IA64
9044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 else
9047 # With GCC up to 2.95.x, collect2 would create an import file
9048 # for dependence libraries. The import file would start with
9049 # the line `#! .'. This would cause the generated library to
9050 # depend on `.', always an invalid library. This was fixed in
9051 # development snapshots of GCC prior to 3.0.
9052 case $host_os in
9053 aix4 | aix4.[01] | aix4.[01].*)
9054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9055 echo ' yes '
9056 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9057 :
9058 else
9059 can_build_shared=no
9060 fi
9061 ;;
9062 esac
9063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9064 # soname into executable. Probably we can add versioning support to
9065 # collect2, so additional links can be useful in future.
9066 if test "$aix_use_runtimelinking" = yes; then
9067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9068 # instead of lib<name>.a to let people know that these are not
9069 # typical AIX shared libraries.
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 else
9072 # We preserve .a as extension for shared libraries through AIX4.2
9073 # and later when we are not doing run time linking.
9074 library_names_spec='${libname}${release}.a $libname.a'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 fi
9077 shlibpath_var=LIBPATH
9078 fi
9079 ;;
9080
9081 amigaos*)
9082 library_names_spec='$libname.ixlibrary $libname.a'
9083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9084 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9085 ;;
9086
9087 beos*)
9088 library_names_spec='${libname}${shared_ext}'
9089 dynamic_linker="$host_os ld.so"
9090 shlibpath_var=LIBRARY_PATH
9091 ;;
9092
9093 bsdi[45]*)
9094 version_type=linux
9095 need_version=no
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9102 # the default ld.so.conf also contains /usr/contrib/lib and
9103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9104 # libtool to hard-code these into programs
9105 ;;
9106
9107 cygwin* | mingw* | pw32*)
9108 version_type=windows
9109 shrext_cmds=".dll"
9110 need_version=no
9111 need_lib_prefix=no
9112
9113 case $GCC,$host_os in
9114 yes,cygwin* | yes,mingw* | yes,pw32*)
9115 library_names_spec='$libname.dll.a'
9116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9117 postinstall_cmds='base_file=`basename \${file}`~
9118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9119 dldir=$destdir/`dirname \$dlpath`~
9120 test -d \$dldir || mkdir -p \$dldir~
9121 $install_prog $dir/$dlname \$dldir/$dlname~
9122 chmod a+x \$dldir/$dlname'
9123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9124 dlpath=$dir/\$dldll~
9125 $rm \$dlpath'
9126 shlibpath_overrides_runpath=yes
9127
9128 case $host_os in
9129 cygwin*)
9130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9131 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9132 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9133 ;;
9134 mingw*)
9135 # MinGW DLLs use traditional 'lib' prefix
9136 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9137 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9138 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9139 # It is most probably a Windows format PATH printed by
9140 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9141 # path with ; separators, and with drive letters. We can handle the
9142 # drive letters (cygwin fileutils understands them), so leave them,
9143 # especially as we might pass files found there to a mingw objdump,
9144 # which wouldn't understand a cygwinified path. Ahh.
9145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9146 else
9147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9148 fi
9149 ;;
9150 pw32*)
9151 # pw32 DLLs use 'pw' prefix rather than 'lib'
9152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153 ;;
9154 esac
9155 ;;
9156
9157 *)
9158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9159 ;;
9160 esac
9161 dynamic_linker='Win32 ld.exe'
9162 # FIXME: first we should search . and the directory the executable is in
9163 shlibpath_var=PATH
9164 ;;
9165
9166 darwin* | rhapsody*)
9167 dynamic_linker="$host_os dyld"
9168 version_type=darwin
9169 need_lib_prefix=no
9170 need_version=no
9171 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9172 soname_spec='${libname}${release}${major}$shared_ext'
9173 shlibpath_overrides_runpath=yes
9174 shlibpath_var=DYLD_LIBRARY_PATH
9175 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9176 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9177 if test "$GCC" = yes; then
9178 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9179 else
9180 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9181 fi
9182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9183 ;;
9184
9185 dgux*)
9186 version_type=linux
9187 need_lib_prefix=no
9188 need_version=no
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 shlibpath_var=LD_LIBRARY_PATH
9192 ;;
9193
9194 freebsd1*)
9195 dynamic_linker=no
9196 ;;
9197
9198 kfreebsd*-gnu)
9199 version_type=linux
9200 need_lib_prefix=no
9201 need_version=no
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9203 soname_spec='${libname}${release}${shared_ext}$major'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 hardcode_into_libs=yes
9207 dynamic_linker='GNU ld.so'
9208 ;;
9209
9210 freebsd* | dragonfly*)
9211 # DragonFly does not have aout. When/if they implement a new
9212 # versioning mechanism, adjust this.
9213 if test -x /usr/bin/objformat; then
9214 objformat=`/usr/bin/objformat`
9215 else
9216 case $host_os in
9217 freebsd[123]*) objformat=aout ;;
9218 *) objformat=elf ;;
9219 esac
9220 fi
9221 version_type=freebsd-$objformat
9222 case $version_type in
9223 freebsd-elf*)
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9225 need_version=no
9226 need_lib_prefix=no
9227 ;;
9228 freebsd-*)
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9230 need_version=yes
9231 ;;
9232 esac
9233 shlibpath_var=LD_LIBRARY_PATH
9234 case $host_os in
9235 freebsd2*)
9236 shlibpath_overrides_runpath=yes
9237 ;;
9238 freebsd3.[01]* | freebsdelf3.[01]*)
9239 shlibpath_overrides_runpath=yes
9240 hardcode_into_libs=yes
9241 ;;
9242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9244 shlibpath_overrides_runpath=no
9245 hardcode_into_libs=yes
9246 ;;
9247 freebsd*) # from 4.6 on
9248 shlibpath_overrides_runpath=yes
9249 hardcode_into_libs=yes
9250 ;;
9251 esac
9252 ;;
9253
9254 gnu*)
9255 version_type=linux
9256 need_lib_prefix=no
9257 need_version=no
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 hardcode_into_libs=yes
9262 ;;
9263
9264 hpux9* | hpux10* | hpux11*)
9265 # Give a soname corresponding to the major version so that dld.sl refuses to
9266 # link against other versions.
9267 version_type=sunos
9268 need_lib_prefix=no
9269 need_version=no
9270 case $host_cpu in
9271 ia64*)
9272 shrext_cmds='.so'
9273 hardcode_into_libs=yes
9274 dynamic_linker="$host_os dld.so"
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 if test "X$HPUX_IA64_MODE" = X32; then
9280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9281 else
9282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9283 fi
9284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9285 ;;
9286 hppa*64*)
9287 shrext_cmds='.sl'
9288 hardcode_into_libs=yes
9289 dynamic_linker="$host_os dld.sl"
9290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9296 ;;
9297 *)
9298 shrext_cmds='.sl'
9299 dynamic_linker="$host_os dld.sl"
9300 shlibpath_var=SHLIB_PATH
9301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 ;;
9305 esac
9306 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9307 postinstall_cmds='chmod 555 $lib'
9308 ;;
9309
9310 interix3*)
9311 version_type=linux
9312 need_lib_prefix=no
9313 need_version=no
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9317 shlibpath_var=LD_LIBRARY_PATH
9318 shlibpath_overrides_runpath=no
9319 hardcode_into_libs=yes
9320 ;;
9321
9322 irix5* | irix6* | nonstopux*)
9323 case $host_os in
9324 nonstopux*) version_type=nonstopux ;;
9325 *)
9326 if test "$lt_cv_prog_gnu_ld" = yes; then
9327 version_type=linux
9328 else
9329 version_type=irix
9330 fi ;;
9331 esac
9332 need_lib_prefix=no
9333 need_version=no
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9336 case $host_os in
9337 irix5* | nonstopux*)
9338 libsuff= shlibsuff=
9339 ;;
9340 *)
9341 case $LD in # libtool.m4 will add one of these switches to LD
9342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9343 libsuff= shlibsuff= libmagic=32-bit;;
9344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9345 libsuff=32 shlibsuff=N32 libmagic=N32;;
9346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9348 *) libsuff= shlibsuff= libmagic=never-match;;
9349 esac
9350 ;;
9351 esac
9352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9353 shlibpath_overrides_runpath=no
9354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9356 hardcode_into_libs=yes
9357 ;;
9358
9359 # No shared lib support for Linux oldld, aout, or coff.
9360 linux*oldld* | linux*aout* | linux*coff*)
9361 dynamic_linker=no
9362 ;;
9363
9364 # This must be Linux ELF.
9365 linux*)
9366 version_type=linux
9367 need_lib_prefix=no
9368 need_version=no
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 shlibpath_overrides_runpath=no
9374 # This implies no fast_install, which is unacceptable.
9375 # Some rework will be needed to allow for fast_install
9376 # before this can be enabled.
9377 hardcode_into_libs=yes
9378
9379 # find out which ABI we are using
9380 libsuff=
9381 case "$host_cpu" in
9382 x86_64*|s390x*|powerpc64*)
9383 echo '#line 9383 "configure"' > conftest.$ac_ext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9385 (eval $ac_compile) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; then
9389 case `/usr/bin/file conftest.$ac_objext` in
9390 *64-bit*)
9391 libsuff=64
9392 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9393 ;;
9394 esac
9395 fi
9396 rm -rf conftest*
9397 ;;
9398 esac
9399
9400 # Append ld.so.conf contents to the search path
9401 if test -f /etc/ld.so.conf; then
9402 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9403 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9404 fi
9405
9406 # We used to test for /lib/ld.so.1 and disable shared libraries on
9407 # powerpc, because MkLinux only supported shared libraries with the
9408 # GNU dynamic linker. Since this was broken with cross compilers,
9409 # most powerpc-linux boxes support dynamic linking these days and
9410 # people can always --disable-shared, the test was removed, and we
9411 # assume the GNU/Linux dynamic linker is in use.
9412 dynamic_linker='GNU/Linux ld.so'
9413 ;;
9414
9415 knetbsd*-gnu)
9416 version_type=linux
9417 need_lib_prefix=no
9418 need_version=no
9419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9422 shlibpath_overrides_runpath=no
9423 hardcode_into_libs=yes
9424 dynamic_linker='GNU ld.so'
9425 ;;
9426
9427 netbsd*)
9428 version_type=sunos
9429 need_lib_prefix=no
9430 need_version=no
9431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9434 dynamic_linker='NetBSD (a.out) ld.so'
9435 else
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 dynamic_linker='NetBSD ld.elf_so'
9439 fi
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=yes
9442 hardcode_into_libs=yes
9443 ;;
9444
9445 newsos6)
9446 version_type=linux
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 shlibpath_overrides_runpath=yes
9450 ;;
9451
9452 nto-qnx*)
9453 version_type=linux
9454 need_lib_prefix=no
9455 need_version=no
9456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=yes
9460 ;;
9461
9462 openbsd*)
9463 version_type=sunos
9464 sys_lib_dlsearch_path_spec="/usr/lib"
9465 need_lib_prefix=no
9466 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9467 case $host_os in
9468 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9469 *) need_version=no ;;
9470 esac
9471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9472 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9473 shlibpath_var=LD_LIBRARY_PATH
9474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9475 case $host_os in
9476 openbsd2.[89] | openbsd2.[89].*)
9477 shlibpath_overrides_runpath=no
9478 ;;
9479 *)
9480 shlibpath_overrides_runpath=yes
9481 ;;
9482 esac
9483 else
9484 shlibpath_overrides_runpath=yes
9485 fi
9486 ;;
9487
9488 os2*)
9489 libname_spec='$name'
9490 shrext_cmds=".dll"
9491 need_lib_prefix=no
9492 library_names_spec='$libname${shared_ext} $libname.a'
9493 dynamic_linker='OS/2 ld.exe'
9494 shlibpath_var=LIBPATH
9495 ;;
9496
9497 osf3* | osf4* | osf5*)
9498 version_type=osf
9499 need_lib_prefix=no
9500 need_version=no
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9505 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9506 ;;
9507
9508 solaris*)
9509 version_type=linux
9510 need_lib_prefix=no
9511 need_version=no
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 shlibpath_var=LD_LIBRARY_PATH
9515 shlibpath_overrides_runpath=yes
9516 hardcode_into_libs=yes
9517 # ldd complains unless libraries are executable
9518 postinstall_cmds='chmod +x $lib'
9519 ;;
9520
9521 sunos4*)
9522 version_type=sunos
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9524 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9525 shlibpath_var=LD_LIBRARY_PATH
9526 shlibpath_overrides_runpath=yes
9527 if test "$with_gnu_ld" = yes; then
9528 need_lib_prefix=no
9529 fi
9530 need_version=yes
9531 ;;
9532
9533 sysv4 | sysv4.3*)
9534 version_type=linux
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9536 soname_spec='${libname}${release}${shared_ext}$major'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 case $host_vendor in
9539 sni)
9540 shlibpath_overrides_runpath=no
9541 need_lib_prefix=no
9542 export_dynamic_flag_spec='${wl}-Blargedynsym'
9543 runpath_var=LD_RUN_PATH
9544 ;;
9545 siemens)
9546 need_lib_prefix=no
9547 ;;
9548 motorola)
9549 need_lib_prefix=no
9550 need_version=no
9551 shlibpath_overrides_runpath=no
9552 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9553 ;;
9554 esac
9555 ;;
9556
9557 sysv4*MP*)
9558 if test -d /usr/nec ;then
9559 version_type=linux
9560 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9561 soname_spec='$libname${shared_ext}.$major'
9562 shlibpath_var=LD_LIBRARY_PATH
9563 fi
9564 ;;
9565
9566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9567 version_type=freebsd-elf
9568 need_lib_prefix=no
9569 need_version=no
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 shlibpath_var=LD_LIBRARY_PATH
9573 hardcode_into_libs=yes
9574 if test "$with_gnu_ld" = yes; then
9575 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9576 shlibpath_overrides_runpath=no
9577 else
9578 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9579 shlibpath_overrides_runpath=yes
9580 case $host_os in
9581 sco3.2v5*)
9582 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9583 ;;
9584 esac
9585 fi
9586 sys_lib_dlsearch_path_spec='/usr/lib'
9587 ;;
9588
9589 uts4*)
9590 version_type=linux
9591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592 soname_spec='${libname}${release}${shared_ext}$major'
9593 shlibpath_var=LD_LIBRARY_PATH
9594 ;;
9595
9596 *)
9597 dynamic_linker=no
9598 ;;
9599 esac
9600 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9601 echo "${ECHO_T}$dynamic_linker" >&6; }
9602 test "$dynamic_linker" = no && can_build_shared=no
9603
9604 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9605 if test "$GCC" = yes; then
9606 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9607 fi
9608
9609 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9610 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9611 hardcode_action=
9612 if test -n "$hardcode_libdir_flag_spec" || \
9613 test -n "$runpath_var" || \
9614 test "X$hardcode_automatic" = "Xyes" ; then
9615
9616 # We can hardcode non-existant directories.
9617 if test "$hardcode_direct" != no &&
9618 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9619 # have to relink, otherwise we might link with an installed library
9620 # when we should be linking with a yet-to-be-installed one
9621 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9622 test "$hardcode_minus_L" != no; then
9623 # Linking always hardcodes the temporary library directory.
9624 hardcode_action=relink
9625 else
9626 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9627 hardcode_action=immediate
9628 fi
9629 else
9630 # We cannot hardcode anything, or else we can only hardcode existing
9631 # directories.
9632 hardcode_action=unsupported
9633 fi
9634 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9635 echo "${ECHO_T}$hardcode_action" >&6; }
9636
9637 if test "$hardcode_action" = relink; then
9638 # Fast installation is not supported
9639 enable_fast_install=no
9640 elif test "$shlibpath_overrides_runpath" = yes ||
9641 test "$enable_shared" = no; then
9642 # Fast installation is not necessary
9643 enable_fast_install=needless
9644 fi
9645
9646 striplib=
9647 old_striplib=
9648 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9649 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9650 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9651 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9652 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9653 { echo "$as_me:$LINENO: result: yes" >&5
9654 echo "${ECHO_T}yes" >&6; }
9655 else
9656 # FIXME - insert some real tests, host_os isn't really good enough
9657 case $host_os in
9658 darwin*)
9659 if test -n "$STRIP" ; then
9660 striplib="$STRIP -x"
9661 { echo "$as_me:$LINENO: result: yes" >&5
9662 echo "${ECHO_T}yes" >&6; }
9663 else
9664 { echo "$as_me:$LINENO: result: no" >&5
9665 echo "${ECHO_T}no" >&6; }
9666 fi
9667 ;;
9668 *)
9669 { echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6; }
9671 ;;
9672 esac
9673 fi
9674
9675 if test "x$enable_dlopen" != xyes; then
9676 enable_dlopen=unknown
9677 enable_dlopen_self=unknown
9678 enable_dlopen_self_static=unknown
9679 else
9680 lt_cv_dlopen=no
9681 lt_cv_dlopen_libs=
9682
9683 case $host_os in
9684 beos*)
9685 lt_cv_dlopen="load_add_on"
9686 lt_cv_dlopen_libs=
9687 lt_cv_dlopen_self=yes
9688 ;;
9689
9690 mingw* | pw32*)
9691 lt_cv_dlopen="LoadLibrary"
9692 lt_cv_dlopen_libs=
9693 ;;
9694
9695 cygwin*)
9696 lt_cv_dlopen="dlopen"
9697 lt_cv_dlopen_libs=
9698 ;;
9699
9700 darwin*)
9701 # if libdl is installed we need to link against it
9702 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9703 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9704 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 ac_check_lib_save_LIBS=$LIBS
9708 LIBS="-ldl $LIBS"
9709 cat >conftest.$ac_ext <<_ACEOF
9710 /* confdefs.h. */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715
9716 /* Override any GCC internal prototype to avoid an error.
9717 Use char because int might match the return type of a GCC
9718 builtin and then its argument prototype would still apply. */
9719 #ifdef __cplusplus
9720 extern "C"
9721 #endif
9722 char dlopen ();
9723 int
9724 main ()
9725 {
9726 return dlopen ();
9727 ;
9728 return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (ac_try="$ac_link"
9733 case "(($ac_try" in
9734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735 *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738 (eval "$ac_link") 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } && {
9745 test -z "$ac_c_werror_flag" ||
9746 test ! -s conftest.err
9747 } && test -s conftest$ac_exeext &&
9748 $as_test_x conftest$ac_exeext; then
9749 ac_cv_lib_dl_dlopen=yes
9750 else
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754 ac_cv_lib_dl_dlopen=no
9755 fi
9756
9757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9758 conftest$ac_exeext conftest.$ac_ext
9759 LIBS=$ac_check_lib_save_LIBS
9760 fi
9761 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9762 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9763 if test $ac_cv_lib_dl_dlopen = yes; then
9764 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9765 else
9766
9767 lt_cv_dlopen="dyld"
9768 lt_cv_dlopen_libs=
9769 lt_cv_dlopen_self=yes
9770
9771 fi
9772
9773 ;;
9774
9775 *)
9776 { echo "$as_me:$LINENO: checking for shl_load" >&5
9777 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9778 if test "${ac_cv_func_shl_load+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781 cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h. */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h. */
9787 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9789 #define shl_load innocuous_shl_load
9790
9791 /* System header to define __stub macros and hopefully few prototypes,
9792 which can conflict with char shl_load (); below.
9793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9794 <limits.h> exists even on freestanding compilers. */
9795
9796 #ifdef __STDC__
9797 # include <limits.h>
9798 #else
9799 # include <assert.h>
9800 #endif
9801
9802 #undef shl_load
9803
9804 /* Override any GCC internal prototype to avoid an error.
9805 Use char because int might match the return type of a GCC
9806 builtin and then its argument prototype would still apply. */
9807 #ifdef __cplusplus
9808 extern "C"
9809 #endif
9810 char shl_load ();
9811 /* The GNU C library defines this for functions which it implements
9812 to always fail with ENOSYS. Some functions are actually named
9813 something starting with __ and the normal name is an alias. */
9814 #if defined __stub_shl_load || defined __stub___shl_load
9815 choke me
9816 #endif
9817
9818 int
9819 main ()
9820 {
9821 return shl_load ();
9822 ;
9823 return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext conftest$ac_exeext
9827 if { (ac_try="$ac_link"
9828 case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831 esac
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_link") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest$ac_exeext &&
9843 $as_test_x conftest$ac_exeext; then
9844 ac_cv_func_shl_load=yes
9845 else
9846 echo "$as_me: failed program was:" >&5
9847 sed 's/^/| /' conftest.$ac_ext >&5
9848
9849 ac_cv_func_shl_load=no
9850 fi
9851
9852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853 conftest$ac_exeext conftest.$ac_ext
9854 fi
9855 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9857 if test $ac_cv_func_shl_load = yes; then
9858 lt_cv_dlopen="shl_load"
9859 else
9860 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9861 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9862 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-ldld $LIBS"
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9877 #ifdef __cplusplus
9878 extern "C"
9879 #endif
9880 char shl_load ();
9881 int
9882 main ()
9883 {
9884 return shl_load ();
9885 ;
9886 return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9891 case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894 esac
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } && {
9903 test -z "$ac_c_werror_flag" ||
9904 test ! -s conftest.err
9905 } && test -s conftest$ac_exeext &&
9906 $as_test_x conftest$ac_exeext; then
9907 ac_cv_lib_dld_shl_load=yes
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 ac_cv_lib_dld_shl_load=no
9913 fi
9914
9915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9916 conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9918 fi
9919 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9920 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9921 if test $ac_cv_lib_dld_shl_load = yes; then
9922 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9923 else
9924 { echo "$as_me:$LINENO: checking for dlopen" >&5
9925 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9926 if test "${ac_cv_func_dlopen+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 else
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937 #define dlopen innocuous_dlopen
9938
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char dlopen (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
9943
9944 #ifdef __STDC__
9945 # include <limits.h>
9946 #else
9947 # include <assert.h>
9948 #endif
9949
9950 #undef dlopen
9951
9952 /* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9955 #ifdef __cplusplus
9956 extern "C"
9957 #endif
9958 char dlopen ();
9959 /* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962 #if defined __stub_dlopen || defined __stub___dlopen
9963 choke me
9964 #endif
9965
9966 int
9967 main ()
9968 {
9969 return dlopen ();
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9976 case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979 esac
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && {
9988 test -z "$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 } && test -s conftest$ac_exeext &&
9991 $as_test_x conftest$ac_exeext; then
9992 ac_cv_func_dlopen=yes
9993 else
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_func_dlopen=no
9998 fi
9999
10000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10001 conftest$ac_exeext conftest.$ac_ext
10002 fi
10003 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10005 if test $ac_cv_func_dlopen = yes; then
10006 lt_cv_dlopen="dlopen"
10007 else
10008 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10009 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10010 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013 ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-ldl $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h. */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021
10022 /* Override any GCC internal prototype to avoid an error.
10023 Use char because int might match the return type of a GCC
10024 builtin and then its argument prototype would still apply. */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
10028 char dlopen ();
10029 int
10030 main ()
10031 {
10032 return dlopen ();
10033 ;
10034 return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (ac_try="$ac_link"
10039 case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_link") 2>conftest.er1
10045 ac_status=$?
10046 grep -v '^ *+' conftest.er1 >conftest.err
10047 rm -f conftest.er1
10048 cat conftest.err >&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && {
10051 test -z "$ac_c_werror_flag" ||
10052 test ! -s conftest.err
10053 } && test -s conftest$ac_exeext &&
10054 $as_test_x conftest$ac_exeext; then
10055 ac_cv_lib_dl_dlopen=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_lib_dl_dlopen=no
10061 fi
10062
10063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10064 conftest$ac_exeext conftest.$ac_ext
10065 LIBS=$ac_check_lib_save_LIBS
10066 fi
10067 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10069 if test $ac_cv_lib_dl_dlopen = yes; then
10070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10071 else
10072 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10073 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10074 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 ac_check_lib_save_LIBS=$LIBS
10078 LIBS="-lsvld $LIBS"
10079 cat >conftest.$ac_ext <<_ACEOF
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085
10086 /* Override any GCC internal prototype to avoid an error.
10087 Use char because int might match the return type of a GCC
10088 builtin and then its argument prototype would still apply. */
10089 #ifdef __cplusplus
10090 extern "C"
10091 #endif
10092 char dlopen ();
10093 int
10094 main ()
10095 {
10096 return dlopen ();
10097 ;
10098 return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (ac_try="$ac_link"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_link") 2>conftest.er1
10109 ac_status=$?
10110 grep -v '^ *+' conftest.er1 >conftest.err
10111 rm -f conftest.er1
10112 cat conftest.err >&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } && {
10115 test -z "$ac_c_werror_flag" ||
10116 test ! -s conftest.err
10117 } && test -s conftest$ac_exeext &&
10118 $as_test_x conftest$ac_exeext; then
10119 ac_cv_lib_svld_dlopen=yes
10120 else
10121 echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10123
10124 ac_cv_lib_svld_dlopen=no
10125 fi
10126
10127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10128 conftest$ac_exeext conftest.$ac_ext
10129 LIBS=$ac_check_lib_save_LIBS
10130 fi
10131 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10132 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10133 if test $ac_cv_lib_svld_dlopen = yes; then
10134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10135 else
10136 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10137 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10138 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141 ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-ldld $LIBS"
10143 cat >conftest.$ac_ext <<_ACEOF
10144 /* confdefs.h. */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h. */
10149
10150 /* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 char dld_link ();
10157 int
10158 main ()
10159 {
10160 return dld_link ();
10161 ;
10162 return 0;
10163 }
10164 _ACEOF
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (ac_try="$ac_link"
10167 case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10170 esac
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_link") 2>conftest.er1
10173 ac_status=$?
10174 grep -v '^ *+' conftest.er1 >conftest.err
10175 rm -f conftest.er1
10176 cat conftest.err >&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); } && {
10179 test -z "$ac_c_werror_flag" ||
10180 test ! -s conftest.err
10181 } && test -s conftest$ac_exeext &&
10182 $as_test_x conftest$ac_exeext; then
10183 ac_cv_lib_dld_dld_link=yes
10184 else
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188 ac_cv_lib_dld_dld_link=no
10189 fi
10190
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192 conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10196 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10197 if test $ac_cv_lib_dld_dld_link = yes; then
10198 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10199 fi
10200
10201
10202 fi
10203
10204
10205 fi
10206
10207
10208 fi
10209
10210
10211 fi
10212
10213
10214 fi
10215
10216 ;;
10217 esac
10218
10219 if test "x$lt_cv_dlopen" != xno; then
10220 enable_dlopen=yes
10221 else
10222 enable_dlopen=no
10223 fi
10224
10225 case $lt_cv_dlopen in
10226 dlopen)
10227 save_CPPFLAGS="$CPPFLAGS"
10228 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10229
10230 save_LDFLAGS="$LDFLAGS"
10231 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10232
10233 save_LIBS="$LIBS"
10234 LIBS="$lt_cv_dlopen_libs $LIBS"
10235
10236 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10237 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10238 if test "${lt_cv_dlopen_self+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241 if test "$cross_compiling" = yes; then :
10242 lt_cv_dlopen_self=cross
10243 else
10244 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10245 lt_status=$lt_dlunknown
10246 cat > conftest.$ac_ext <<EOF
10247 #line 10247 "configure"
10248 #include "confdefs.h"
10249
10250 #if HAVE_DLFCN_H
10251 #include <dlfcn.h>
10252 #endif
10253
10254 #include <stdio.h>
10255
10256 #ifdef RTLD_GLOBAL
10257 # define LT_DLGLOBAL RTLD_GLOBAL
10258 #else
10259 # ifdef DL_GLOBAL
10260 # define LT_DLGLOBAL DL_GLOBAL
10261 # else
10262 # define LT_DLGLOBAL 0
10263 # endif
10264 #endif
10265
10266 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10267 find out it does not work in some platform. */
10268 #ifndef LT_DLLAZY_OR_NOW
10269 # ifdef RTLD_LAZY
10270 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10271 # else
10272 # ifdef DL_LAZY
10273 # define LT_DLLAZY_OR_NOW DL_LAZY
10274 # else
10275 # ifdef RTLD_NOW
10276 # define LT_DLLAZY_OR_NOW RTLD_NOW
10277 # else
10278 # ifdef DL_NOW
10279 # define LT_DLLAZY_OR_NOW DL_NOW
10280 # else
10281 # define LT_DLLAZY_OR_NOW 0
10282 # endif
10283 # endif
10284 # endif
10285 # endif
10286 #endif
10287
10288 #ifdef __cplusplus
10289 extern "C" void exit (int);
10290 #endif
10291
10292 void fnord() { int i=42;}
10293 int main ()
10294 {
10295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10296 int status = $lt_dlunknown;
10297
10298 if (self)
10299 {
10300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10301 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10302 /* dlclose (self); */
10303 }
10304 else
10305 puts (dlerror ());
10306
10307 exit (status);
10308 }
10309 EOF
10310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10311 (eval $ac_link) 2>&5
10312 ac_status=$?
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10315 (./conftest; exit; ) >&5 2>/dev/null
10316 lt_status=$?
10317 case x$lt_status in
10318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10321 esac
10322 else :
10323 # compilation failed
10324 lt_cv_dlopen_self=no
10325 fi
10326 fi
10327 rm -fr conftest*
10328
10329
10330 fi
10331 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10332 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10333
10334 if test "x$lt_cv_dlopen_self" = xyes; then
10335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10336 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10337 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10338 if test "${lt_cv_dlopen_self_static+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 if test "$cross_compiling" = yes; then :
10342 lt_cv_dlopen_self_static=cross
10343 else
10344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10345 lt_status=$lt_dlunknown
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10349
10350 #if HAVE_DLFCN_H
10351 #include <dlfcn.h>
10352 #endif
10353
10354 #include <stdio.h>
10355
10356 #ifdef RTLD_GLOBAL
10357 # define LT_DLGLOBAL RTLD_GLOBAL
10358 #else
10359 # ifdef DL_GLOBAL
10360 # define LT_DLGLOBAL DL_GLOBAL
10361 # else
10362 # define LT_DLGLOBAL 0
10363 # endif
10364 #endif
10365
10366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10367 find out it does not work in some platform. */
10368 #ifndef LT_DLLAZY_OR_NOW
10369 # ifdef RTLD_LAZY
10370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10371 # else
10372 # ifdef DL_LAZY
10373 # define LT_DLLAZY_OR_NOW DL_LAZY
10374 # else
10375 # ifdef RTLD_NOW
10376 # define LT_DLLAZY_OR_NOW RTLD_NOW
10377 # else
10378 # ifdef DL_NOW
10379 # define LT_DLLAZY_OR_NOW DL_NOW
10380 # else
10381 # define LT_DLLAZY_OR_NOW 0
10382 # endif
10383 # endif
10384 # endif
10385 # endif
10386 #endif
10387
10388 #ifdef __cplusplus
10389 extern "C" void exit (int);
10390 #endif
10391
10392 void fnord() { int i=42;}
10393 int main ()
10394 {
10395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10396 int status = $lt_dlunknown;
10397
10398 if (self)
10399 {
10400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10401 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10402 /* dlclose (self); */
10403 }
10404 else
10405 puts (dlerror ());
10406
10407 exit (status);
10408 }
10409 EOF
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411 (eval $ac_link) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10415 (./conftest; exit; ) >&5 2>/dev/null
10416 lt_status=$?
10417 case x$lt_status in
10418 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10419 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10420 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10421 esac
10422 else :
10423 # compilation failed
10424 lt_cv_dlopen_self_static=no
10425 fi
10426 fi
10427 rm -fr conftest*
10428
10429
10430 fi
10431 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10432 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10433 fi
10434
10435 CPPFLAGS="$save_CPPFLAGS"
10436 LDFLAGS="$save_LDFLAGS"
10437 LIBS="$save_LIBS"
10438 ;;
10439 esac
10440
10441 case $lt_cv_dlopen_self in
10442 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10443 *) enable_dlopen_self=unknown ;;
10444 esac
10445
10446 case $lt_cv_dlopen_self_static in
10447 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10448 *) enable_dlopen_self_static=unknown ;;
10449 esac
10450 fi
10451
10452
10453 # Report which library types will actually be built
10454 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10455 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10456 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10457 echo "${ECHO_T}$can_build_shared" >&6; }
10458
10459 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10460 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10461 test "$can_build_shared" = "no" && enable_shared=no
10462
10463 # On AIX, shared libraries and static libraries use the same namespace, and
10464 # are all built from PIC.
10465 case $host_os in
10466 aix3*)
10467 test "$enable_shared" = yes && enable_static=no
10468 if test -n "$RANLIB"; then
10469 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10470 postinstall_cmds='$RANLIB $lib'
10471 fi
10472 ;;
10473
10474 aix4* | aix5*)
10475 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10476 test "$enable_shared" = yes && enable_static=no
10477 fi
10478 ;;
10479 esac
10480 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10481 echo "${ECHO_T}$enable_shared" >&6; }
10482
10483 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10484 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10485 # Make sure either enable_shared or enable_static is yes.
10486 test "$enable_shared" = yes || enable_static=yes
10487 { echo "$as_me:$LINENO: result: $enable_static" >&5
10488 echo "${ECHO_T}$enable_static" >&6; }
10489
10490 # The else clause should only fire when bootstrapping the
10491 # libtool distribution, otherwise you forgot to ship ltmain.sh
10492 # with your package, and you will get complaints that there are
10493 # no rules to generate ltmain.sh.
10494 if test -f "$ltmain"; then
10495 # See if we are running on zsh, and set the options which allow our commands through
10496 # without removal of \ escapes.
10497 if test -n "${ZSH_VERSION+set}" ; then
10498 setopt NO_GLOB_SUBST
10499 fi
10500 # Now quote all the things that may contain metacharacters while being
10501 # careful not to overquote the AC_SUBSTed values. We take copies of the
10502 # variables and quote the copies for generation of the libtool script.
10503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10504 SED SHELL STRIP \
10505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10507 deplibs_check_method reload_flag reload_cmds need_locks \
10508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10509 lt_cv_sys_global_symbol_to_c_name_address \
10510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10511 old_postinstall_cmds old_postuninstall_cmds \
10512 compiler \
10513 CC \
10514 LD \
10515 lt_prog_compiler_wl \
10516 lt_prog_compiler_pic \
10517 lt_prog_compiler_static \
10518 lt_prog_compiler_no_builtin_flag \
10519 export_dynamic_flag_spec \
10520 thread_safe_flag_spec \
10521 whole_archive_flag_spec \
10522 enable_shared_with_static_runtimes \
10523 old_archive_cmds \
10524 old_archive_from_new_cmds \
10525 predep_objects \
10526 postdep_objects \
10527 predeps \
10528 postdeps \
10529 compiler_lib_search_path \
10530 archive_cmds \
10531 archive_expsym_cmds \
10532 postinstall_cmds \
10533 postuninstall_cmds \
10534 old_archive_from_expsyms_cmds \
10535 allow_undefined_flag \
10536 no_undefined_flag \
10537 export_symbols_cmds \
10538 hardcode_libdir_flag_spec \
10539 hardcode_libdir_flag_spec_ld \
10540 hardcode_libdir_separator \
10541 hardcode_automatic \
10542 module_cmds \
10543 module_expsym_cmds \
10544 lt_cv_prog_compiler_c_o \
10545 exclude_expsyms \
10546 include_expsyms; do
10547
10548 case $var in
10549 old_archive_cmds | \
10550 old_archive_from_new_cmds | \
10551 archive_cmds | \
10552 archive_expsym_cmds | \
10553 module_cmds | \
10554 module_expsym_cmds | \
10555 old_archive_from_expsyms_cmds | \
10556 export_symbols_cmds | \
10557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10558 postinstall_cmds | postuninstall_cmds | \
10559 old_postinstall_cmds | old_postuninstall_cmds | \
10560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10561 # Double-quote double-evaled strings.
10562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10563 ;;
10564 *)
10565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10566 ;;
10567 esac
10568 done
10569
10570 case $lt_echo in
10571 *'\$0 --fallback-echo"')
10572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10573 ;;
10574 esac
10575
10576 cfgfile="${ofile}T"
10577 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10578 $rm -f "$cfgfile"
10579 { echo "$as_me:$LINENO: creating $ofile" >&5
10580 echo "$as_me: creating $ofile" >&6;}
10581
10582 cat <<__EOF__ >> "$cfgfile"
10583 #! $SHELL
10584
10585 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10586 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10588 #
10589 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10590 # Free Software Foundation, Inc.
10591 #
10592 # This file is part of GNU Libtool:
10593 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10594 #
10595 # This program is free software; you can redistribute it and/or modify
10596 # it under the terms of the GNU General Public License as published by
10597 # the Free Software Foundation; either version 2 of the License, or
10598 # (at your option) any later version.
10599 #
10600 # This program is distributed in the hope that it will be useful, but
10601 # WITHOUT ANY WARRANTY; without even the implied warranty of
10602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10603 # General Public License for more details.
10604 #
10605 # You should have received a copy of the GNU General Public License
10606 # along with this program; if not, write to the Free Software
10607 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10608 #
10609 # As a special exception to the GNU General Public License, if you
10610 # distribute this file as part of a program that contains a
10611 # configuration script generated by Autoconf, you may include it under
10612 # the same distribution terms that you use for the rest of that program.
10613
10614 # A sed program that does not truncate output.
10615 SED=$lt_SED
10616
10617 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10618 Xsed="$SED -e 1s/^X//"
10619
10620 # The HP-UX ksh and POSIX shell print the target directory to stdout
10621 # if CDPATH is set.
10622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10623
10624 # The names of the tagged configurations supported by this script.
10625 available_tags=
10626
10627 # ### BEGIN LIBTOOL CONFIG
10628
10629 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10630
10631 # Shell to use when invoking shell scripts.
10632 SHELL=$lt_SHELL
10633
10634 # Whether or not to build shared libraries.
10635 build_libtool_libs=$enable_shared
10636
10637 # Whether or not to build static libraries.
10638 build_old_libs=$enable_static
10639
10640 # Whether or not to add -lc for building shared libraries.
10641 build_libtool_need_lc=$archive_cmds_need_lc
10642
10643 # Whether or not to disallow shared libs when runtime libs are static
10644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10645
10646 # Whether or not to optimize for fast installation.
10647 fast_install=$enable_fast_install
10648
10649 # The host system.
10650 host_alias=$host_alias
10651 host=$host
10652 host_os=$host_os
10653
10654 # The build system.
10655 build_alias=$build_alias
10656 build=$build
10657 build_os=$build_os
10658
10659 # An echo program that does not interpret backslashes.
10660 echo=$lt_echo
10661
10662 # The archiver.
10663 AR=$lt_AR
10664 AR_FLAGS=$lt_AR_FLAGS
10665
10666 # A C compiler.
10667 LTCC=$lt_LTCC
10668
10669 # LTCC compiler flags.
10670 LTCFLAGS=$lt_LTCFLAGS
10671
10672 # A language-specific compiler.
10673 CC=$lt_compiler
10674
10675 # Is the compiler the GNU C compiler?
10676 with_gcc=$GCC
10677
10678 # An ERE matcher.
10679 EGREP=$lt_EGREP
10680
10681 # The linker used to build libraries.
10682 LD=$lt_LD
10683
10684 # Whether we need hard or soft links.
10685 LN_S=$lt_LN_S
10686
10687 # A BSD-compatible nm program.
10688 NM=$lt_NM
10689
10690 # A symbol stripping program
10691 STRIP=$lt_STRIP
10692
10693 # Used to examine libraries when file_magic_cmd begins "file"
10694 MAGIC_CMD=$MAGIC_CMD
10695
10696 # Used on cygwin: DLL creation program.
10697 DLLTOOL="$DLLTOOL"
10698
10699 # Used on cygwin: object dumper.
10700 OBJDUMP="$OBJDUMP"
10701
10702 # Used on cygwin: assembler.
10703 AS="$AS"
10704
10705 # The name of the directory that contains temporary libtool files.
10706 objdir=$objdir
10707
10708 # How to create reloadable object files.
10709 reload_flag=$lt_reload_flag
10710 reload_cmds=$lt_reload_cmds
10711
10712 # How to pass a linker flag through the compiler.
10713 wl=$lt_lt_prog_compiler_wl
10714
10715 # Object file suffix (normally "o").
10716 objext="$ac_objext"
10717
10718 # Old archive suffix (normally "a").
10719 libext="$libext"
10720
10721 # Shared library suffix (normally ".so").
10722 shrext_cmds='$shrext_cmds'
10723
10724 # Executable file suffix (normally "").
10725 exeext="$exeext"
10726
10727 # Additional compiler flags for building library objects.
10728 pic_flag=$lt_lt_prog_compiler_pic
10729 pic_mode=$pic_mode
10730
10731 # What is the maximum length of a command?
10732 max_cmd_len=$lt_cv_sys_max_cmd_len
10733
10734 # Does compiler simultaneously support -c and -o options?
10735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10736
10737 # Must we lock files when doing compilation?
10738 need_locks=$lt_need_locks
10739
10740 # Do we need the lib prefix for modules?
10741 need_lib_prefix=$need_lib_prefix
10742
10743 # Do we need a version for libraries?
10744 need_version=$need_version
10745
10746 # Whether dlopen is supported.
10747 dlopen_support=$enable_dlopen
10748
10749 # Whether dlopen of programs is supported.
10750 dlopen_self=$enable_dlopen_self
10751
10752 # Whether dlopen of statically linked programs is supported.
10753 dlopen_self_static=$enable_dlopen_self_static
10754
10755 # Compiler flag to prevent dynamic linking.
10756 link_static_flag=$lt_lt_prog_compiler_static
10757
10758 # Compiler flag to turn off builtin functions.
10759 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10760
10761 # Compiler flag to allow reflexive dlopens.
10762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10763
10764 # Compiler flag to generate shared objects directly from archives.
10765 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10766
10767 # Compiler flag to generate thread-safe objects.
10768 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10769
10770 # Library versioning type.
10771 version_type=$version_type
10772
10773 # Format of library name prefix.
10774 libname_spec=$lt_libname_spec
10775
10776 # List of archive names. First name is the real one, the rest are links.
10777 # The last name is the one that the linker finds with -lNAME.
10778 library_names_spec=$lt_library_names_spec
10779
10780 # The coded name of the library, if different from the real name.
10781 soname_spec=$lt_soname_spec
10782
10783 # Commands used to build and install an old-style archive.
10784 RANLIB=$lt_RANLIB
10785 old_archive_cmds=$lt_old_archive_cmds
10786 old_postinstall_cmds=$lt_old_postinstall_cmds
10787 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10788
10789 # Create an old-style archive from a shared archive.
10790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10791
10792 # Create a temporary old-style archive to link instead of a shared archive.
10793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10794
10795 # Commands used to build and install a shared archive.
10796 archive_cmds=$lt_archive_cmds
10797 archive_expsym_cmds=$lt_archive_expsym_cmds
10798 postinstall_cmds=$lt_postinstall_cmds
10799 postuninstall_cmds=$lt_postuninstall_cmds
10800
10801 # Commands used to build a loadable module (assumed same as above if empty)
10802 module_cmds=$lt_module_cmds
10803 module_expsym_cmds=$lt_module_expsym_cmds
10804
10805 # Commands to strip libraries.
10806 old_striplib=$lt_old_striplib
10807 striplib=$lt_striplib
10808
10809 # Dependencies to place before the objects being linked to create a
10810 # shared library.
10811 predep_objects=$lt_predep_objects
10812
10813 # Dependencies to place after the objects being linked to create a
10814 # shared library.
10815 postdep_objects=$lt_postdep_objects
10816
10817 # Dependencies to place before the objects being linked to create a
10818 # shared library.
10819 predeps=$lt_predeps
10820
10821 # Dependencies to place after the objects being linked to create a
10822 # shared library.
10823 postdeps=$lt_postdeps
10824
10825 # The library search path used internally by the compiler when linking
10826 # a shared library.
10827 compiler_lib_search_path=$lt_compiler_lib_search_path
10828
10829 # Method to check whether dependent libraries are shared objects.
10830 deplibs_check_method=$lt_deplibs_check_method
10831
10832 # Command to use when deplibs_check_method == file_magic.
10833 file_magic_cmd=$lt_file_magic_cmd
10834
10835 # Flag that allows shared libraries with undefined symbols to be built.
10836 allow_undefined_flag=$lt_allow_undefined_flag
10837
10838 # Flag that forces no undefined symbols.
10839 no_undefined_flag=$lt_no_undefined_flag
10840
10841 # Commands used to finish a libtool library installation in a directory.
10842 finish_cmds=$lt_finish_cmds
10843
10844 # Same as above, but a single script fragment to be evaled but not shown.
10845 finish_eval=$lt_finish_eval
10846
10847 # Take the output of nm and produce a listing of raw symbols and C names.
10848 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10849
10850 # Transform the output of nm in a proper C declaration
10851 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10852
10853 # Transform the output of nm in a C name address pair
10854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10855
10856 # This is the shared library runtime path variable.
10857 runpath_var=$runpath_var
10858
10859 # This is the shared library path variable.
10860 shlibpath_var=$shlibpath_var
10861
10862 # Is shlibpath searched before the hard-coded library search path?
10863 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10864
10865 # How to hardcode a shared library path into an executable.
10866 hardcode_action=$hardcode_action
10867
10868 # Whether we should hardcode library paths into libraries.
10869 hardcode_into_libs=$hardcode_into_libs
10870
10871 # Flag to hardcode \$libdir into a binary during linking.
10872 # This must work even if \$libdir does not exist.
10873 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10874
10875 # If ld is used when linking, flag to hardcode \$libdir into
10876 # a binary during linking. This must work even if \$libdir does
10877 # not exist.
10878 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10879
10880 # Whether we need a single -rpath flag with a separated argument.
10881 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10882
10883 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10884 # resulting binary.
10885 hardcode_direct=$hardcode_direct
10886
10887 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10888 # resulting binary.
10889 hardcode_minus_L=$hardcode_minus_L
10890
10891 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10892 # the resulting binary.
10893 hardcode_shlibpath_var=$hardcode_shlibpath_var
10894
10895 # Set to yes if building a shared library automatically hardcodes DIR into the library
10896 # and all subsequent libraries and executables linked against it.
10897 hardcode_automatic=$hardcode_automatic
10898
10899 # Variables whose values should be saved in libtool wrapper scripts and
10900 # restored at relink time.
10901 variables_saved_for_relink="$variables_saved_for_relink"
10902
10903 # Whether libtool must link a program against all its dependency libraries.
10904 link_all_deplibs=$link_all_deplibs
10905
10906 # Compile-time system search path for libraries
10907 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10908
10909 # Run-time system search path for libraries
10910 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10911
10912 # Fix the shell variable \$srcfile for the compiler.
10913 fix_srcfile_path="$fix_srcfile_path"
10914
10915 # Set to yes if exported symbols are required.
10916 always_export_symbols=$always_export_symbols
10917
10918 # The commands to list exported symbols.
10919 export_symbols_cmds=$lt_export_symbols_cmds
10920
10921 # The commands to extract the exported symbol list from a shared archive.
10922 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10923
10924 # Symbols that should not be listed in the preloaded symbols.
10925 exclude_expsyms=$lt_exclude_expsyms
10926
10927 # Symbols that must always be exported.
10928 include_expsyms=$lt_include_expsyms
10929
10930 # ### END LIBTOOL CONFIG
10931
10932 __EOF__
10933
10934
10935 case $host_os in
10936 aix3*)
10937 cat <<\EOF >> "$cfgfile"
10938
10939 # AIX sometimes has problems with the GCC collect2 program. For some
10940 # reason, if we set the COLLECT_NAMES environment variable, the problems
10941 # vanish in a puff of smoke.
10942 if test "X${COLLECT_NAMES+set}" != Xset; then
10943 COLLECT_NAMES=
10944 export COLLECT_NAMES
10945 fi
10946 EOF
10947 ;;
10948 esac
10949
10950 # We use sed instead of cat because bash on DJGPP gets confused if
10951 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10952 # text mode, it properly converts lines to CR/LF. This bash problem
10953 # is reportedly fixed, but why not run on old versions too?
10954 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10955
10956 mv -f "$cfgfile" "$ofile" || \
10957 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10958 chmod +x "$ofile"
10959
10960 else
10961 # If there is no Makefile yet, we rely on a make rule to execute
10962 # `config.status --recheck' to rerun these tests and create the
10963 # libtool script then.
10964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10965 if test -f "$ltmain_in"; then
10966 test -f Makefile && make "$ltmain"
10967 fi
10968 fi
10969
10970
10971 ac_ext=c
10972 ac_cpp='$CPP $CPPFLAGS'
10973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10976
10977 CC="$lt_save_CC"
10978
10979
10980 # Check whether --with-tags was given.
10981 if test "${with_tags+set}" = set; then
10982 withval=$with_tags; tagnames="$withval"
10983 fi
10984
10985
10986 if test -f "$ltmain" && test -n "$tagnames"; then
10987 if test ! -f "${ofile}"; then
10988 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10989 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10990 fi
10991
10992 if test -z "$LTCC"; then
10993 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10994 if test -z "$LTCC"; then
10995 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10996 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10997 else
10998 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10999 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11000 fi
11001 fi
11002 if test -z "$LTCFLAGS"; then
11003 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11004 fi
11005
11006 # Extract list of available tagged configurations in $ofile.
11007 # Note that this assumes the entire list is on one line.
11008 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11009
11010 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11011 for tagname in $tagnames; do
11012 IFS="$lt_save_ifs"
11013 # Check whether tagname contains only valid characters
11014 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11015 "") ;;
11016 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11017 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11018 { (exit 1); exit 1; }; }
11019 ;;
11020 esac
11021
11022 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11023 then
11024 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11025 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11026 { (exit 1); exit 1; }; }
11027 fi
11028
11029 # Update the list of available tags.
11030 if test -n "$tagname"; then
11031 echo appending configuration tag \"$tagname\" to $ofile
11032
11033 case $tagname in
11034 CXX)
11035 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11036 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11037 (test "X$CXX" != "Xg++"))) ; then
11038 ac_ext=cpp
11039 ac_cpp='$CXXCPP $CPPFLAGS'
11040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11043
11044
11045
11046
11047 archive_cmds_need_lc_CXX=no
11048 allow_undefined_flag_CXX=
11049 always_export_symbols_CXX=no
11050 archive_expsym_cmds_CXX=
11051 export_dynamic_flag_spec_CXX=
11052 hardcode_direct_CXX=no
11053 hardcode_libdir_flag_spec_CXX=
11054 hardcode_libdir_flag_spec_ld_CXX=
11055 hardcode_libdir_separator_CXX=
11056 hardcode_minus_L_CXX=no
11057 hardcode_shlibpath_var_CXX=unsupported
11058 hardcode_automatic_CXX=no
11059 module_cmds_CXX=
11060 module_expsym_cmds_CXX=
11061 link_all_deplibs_CXX=unknown
11062 old_archive_cmds_CXX=$old_archive_cmds
11063 no_undefined_flag_CXX=
11064 whole_archive_flag_spec_CXX=
11065 enable_shared_with_static_runtimes_CXX=no
11066
11067 # Dependencies to place before and after the object being linked:
11068 predep_objects_CXX=
11069 postdep_objects_CXX=
11070 predeps_CXX=
11071 postdeps_CXX=
11072 compiler_lib_search_path_CXX=
11073
11074 # Source file extension for C++ test sources.
11075 ac_ext=cpp
11076
11077 # Object file extension for compiled C++ test sources.
11078 objext=o
11079 objext_CXX=$objext
11080
11081 # Code to be used in simple compile tests
11082 lt_simple_compile_test_code="int some_variable = 0;\n"
11083
11084 # Code to be used in simple link tests
11085 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11086
11087 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11088
11089 # If no C compiler was specified, use CC.
11090 LTCC=${LTCC-"$CC"}
11091
11092 # If no C compiler flags were specified, use CFLAGS.
11093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11094
11095 # Allow CC to be a program name with arguments.
11096 compiler=$CC
11097
11098
11099 # save warnings/boilerplate of simple test code
11100 ac_outfile=conftest.$ac_objext
11101 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11102 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11103 _lt_compiler_boilerplate=`cat conftest.err`
11104 $rm conftest*
11105
11106 ac_outfile=conftest.$ac_objext
11107 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11108 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11109 _lt_linker_boilerplate=`cat conftest.err`
11110 $rm conftest*
11111
11112
11113 # Allow CC to be a program name with arguments.
11114 lt_save_CC=$CC
11115 lt_save_LD=$LD
11116 lt_save_GCC=$GCC
11117 GCC=$GXX
11118 lt_save_with_gnu_ld=$with_gnu_ld
11119 lt_save_path_LD=$lt_cv_path_LD
11120 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11121 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11122 else
11123 $as_unset lt_cv_prog_gnu_ld
11124 fi
11125 if test -n "${lt_cv_path_LDCXX+set}"; then
11126 lt_cv_path_LD=$lt_cv_path_LDCXX
11127 else
11128 $as_unset lt_cv_path_LD
11129 fi
11130 test -z "${LDCXX+set}" || LD=$LDCXX
11131 CC=${CXX-"c++"}
11132 compiler=$CC
11133 compiler_CXX=$CC
11134 for cc_temp in $compiler""; do
11135 case $cc_temp in
11136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11138 \-*) ;;
11139 *) break;;
11140 esac
11141 done
11142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11143
11144
11145 # We don't want -fno-exception wen compiling C++ code, so set the
11146 # no_builtin_flag separately
11147 if test "$GXX" = yes; then
11148 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11149 else
11150 lt_prog_compiler_no_builtin_flag_CXX=
11151 fi
11152
11153 if test "$GXX" = yes; then
11154 # Set up default GNU C++ configuration
11155
11156
11157 # Check whether --with-gnu-ld was given.
11158 if test "${with_gnu_ld+set}" = set; then
11159 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11160 else
11161 with_gnu_ld=no
11162 fi
11163
11164 ac_prog=ld
11165 if test "$GCC" = yes; then
11166 # Check if gcc -print-prog-name=ld gives a path.
11167 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11168 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11169 case $host in
11170 *-*-mingw*)
11171 # gcc leaves a trailing carriage return which upsets mingw
11172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11173 *)
11174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11175 esac
11176 case $ac_prog in
11177 # Accept absolute paths.
11178 [\\/]* | ?:[\\/]*)
11179 re_direlt='/[^/][^/]*/\.\./'
11180 # Canonicalize the pathname of ld
11181 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11183 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11184 done
11185 test -z "$LD" && LD="$ac_prog"
11186 ;;
11187 "")
11188 # If it fails, then pretend we aren't using GCC.
11189 ac_prog=ld
11190 ;;
11191 *)
11192 # If it is relative, then search for the first ld in PATH.
11193 with_gnu_ld=unknown
11194 ;;
11195 esac
11196 elif test "$with_gnu_ld" = yes; then
11197 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11199 else
11200 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11202 fi
11203 if test "${lt_cv_path_LD+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206 if test -z "$LD"; then
11207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11208 for ac_dir in $PATH; do
11209 IFS="$lt_save_ifs"
11210 test -z "$ac_dir" && ac_dir=.
11211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11212 lt_cv_path_LD="$ac_dir/$ac_prog"
11213 # Check to see if the program is GNU ld. I'd rather use --version,
11214 # but apparently some variants of GNU ld only accept -v.
11215 # Break only if it was the GNU/non-GNU ld that we prefer.
11216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11217 *GNU* | *'with BFD'*)
11218 test "$with_gnu_ld" != no && break
11219 ;;
11220 *)
11221 test "$with_gnu_ld" != yes && break
11222 ;;
11223 esac
11224 fi
11225 done
11226 IFS="$lt_save_ifs"
11227 else
11228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11229 fi
11230 fi
11231
11232 LD="$lt_cv_path_LD"
11233 if test -n "$LD"; then
11234 { echo "$as_me:$LINENO: result: $LD" >&5
11235 echo "${ECHO_T}$LD" >&6; }
11236 else
11237 { echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6; }
11239 fi
11240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11242 { (exit 1); exit 1; }; }
11243 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 else
11248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11249 case `$LD -v 2>&1 </dev/null` in
11250 *GNU* | *'with BFD'*)
11251 lt_cv_prog_gnu_ld=yes
11252 ;;
11253 *)
11254 lt_cv_prog_gnu_ld=no
11255 ;;
11256 esac
11257 fi
11258 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11260 with_gnu_ld=$lt_cv_prog_gnu_ld
11261
11262
11263
11264 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11265 # archiving commands below assume that GNU ld is being used.
11266 if test "$with_gnu_ld" = yes; then
11267 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11268 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11269
11270 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11272
11273 # If archive_cmds runs LD, not CC, wlarc should be empty
11274 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11275 # investigate it a little bit more. (MM)
11276 wlarc='${wl}'
11277
11278 # ancient GNU ld didn't support --whole-archive et. al.
11279 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11280 grep 'no-whole-archive' > /dev/null; then
11281 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11282 else
11283 whole_archive_flag_spec_CXX=
11284 fi
11285 else
11286 with_gnu_ld=no
11287 wlarc=
11288
11289 # A generic and very simple default shared library creation
11290 # command for GNU C++ for the case where it uses the native
11291 # linker, instead of GNU ld. If possible, this setting should
11292 # overridden to take advantage of the native linker features on
11293 # the platform it is being used on.
11294 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11295 fi
11296
11297 # Commands to make compiler produce verbose output that lists
11298 # what "hidden" libraries, object files and flags are used when
11299 # linking a shared library.
11300 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11301
11302 else
11303 GXX=no
11304 with_gnu_ld=no
11305 wlarc=
11306 fi
11307
11308 # PORTME: fill in a description of your system's C++ link characteristics
11309 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11311 ld_shlibs_CXX=yes
11312 case $host_os in
11313 aix3*)
11314 # FIXME: insert proper C++ library support
11315 ld_shlibs_CXX=no
11316 ;;
11317 aix4* | aix5*)
11318 if test "$host_cpu" = ia64; then
11319 # On IA64, the linker does run time linking by default, so we don't
11320 # have to do anything special.
11321 aix_use_runtimelinking=no
11322 exp_sym_flag='-Bexport'
11323 no_entry_flag=""
11324 else
11325 aix_use_runtimelinking=no
11326
11327 # Test if we are trying to use run time linking or normal
11328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11329 # need to do runtime linking.
11330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11331 for ld_flag in $LDFLAGS; do
11332 case $ld_flag in
11333 *-brtl*)
11334 aix_use_runtimelinking=yes
11335 break
11336 ;;
11337 esac
11338 done
11339 ;;
11340 esac
11341
11342 exp_sym_flag='-bexport'
11343 no_entry_flag='-bnoentry'
11344 fi
11345
11346 # When large executables or shared objects are built, AIX ld can
11347 # have problems creating the table of contents. If linking a library
11348 # or program results in "error TOC overflow" add -mminimal-toc to
11349 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11350 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11351
11352 archive_cmds_CXX=''
11353 hardcode_direct_CXX=yes
11354 hardcode_libdir_separator_CXX=':'
11355 link_all_deplibs_CXX=yes
11356
11357 if test "$GXX" = yes; then
11358 case $host_os in aix4.[012]|aix4.[012].*)
11359 # We only want to do this on AIX 4.2 and lower, the check
11360 # below for broken collect2 doesn't work under 4.3+
11361 collect2name=`${CC} -print-prog-name=collect2`
11362 if test -f "$collect2name" && \
11363 strings "$collect2name" | grep resolve_lib_name >/dev/null
11364 then
11365 # We have reworked collect2
11366 hardcode_direct_CXX=yes
11367 else
11368 # We have old collect2
11369 hardcode_direct_CXX=unsupported
11370 # It fails to find uninstalled libraries when the uninstalled
11371 # path is not listed in the libpath. Setting hardcode_minus_L
11372 # to unsupported forces relinking
11373 hardcode_minus_L_CXX=yes
11374 hardcode_libdir_flag_spec_CXX='-L$libdir'
11375 hardcode_libdir_separator_CXX=
11376 fi
11377 ;;
11378 esac
11379 shared_flag='-shared'
11380 if test "$aix_use_runtimelinking" = yes; then
11381 shared_flag="$shared_flag "'${wl}-G'
11382 fi
11383 else
11384 # not using gcc
11385 if test "$host_cpu" = ia64; then
11386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11387 # chokes on -Wl,-G. The following line is correct:
11388 shared_flag='-G'
11389 else
11390 if test "$aix_use_runtimelinking" = yes; then
11391 shared_flag='${wl}-G'
11392 else
11393 shared_flag='${wl}-bM:SRE'
11394 fi
11395 fi
11396 fi
11397
11398 # It seems that -bexpall does not export symbols beginning with
11399 # underscore (_), so it is better to generate a list of symbols to export.
11400 always_export_symbols_CXX=yes
11401 if test "$aix_use_runtimelinking" = yes; then
11402 # Warning - without using the other runtime loading flags (-brtl),
11403 # -berok will link without error, but may produce a broken library.
11404 allow_undefined_flag_CXX='-berok'
11405 # Determine the default libpath from the value encoded in an empty executable.
11406 cat >conftest.$ac_ext <<_ACEOF
11407 /* confdefs.h. */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412
11413 int
11414 main ()
11415 {
11416
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (ac_try="$ac_link"
11423 case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426 esac
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_link") 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } && {
11435 test -z "$ac_cxx_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest$ac_exeext &&
11438 $as_test_x conftest$ac_exeext; then
11439
11440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11441 }'`
11442 # Check for a 64-bit object if we didn't find anything.
11443 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11444 }'`; fi
11445 else
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11448
11449
11450 fi
11451
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11454 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11455
11456 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11457
11458 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11459 else
11460 if test "$host_cpu" = ia64; then
11461 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11462 allow_undefined_flag_CXX="-z nodefs"
11463 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"
11464 else
11465 # Determine the default libpath from the value encoded in an empty executable.
11466 cat >conftest.$ac_ext <<_ACEOF
11467 /* confdefs.h. */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11472
11473 int
11474 main ()
11475 {
11476
11477 ;
11478 return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_link") 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } && {
11495 test -z "$ac_cxx_werror_flag" ||
11496 test ! -s conftest.err
11497 } && test -s conftest$ac_exeext &&
11498 $as_test_x conftest$ac_exeext; then
11499
11500 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11501 }'`
11502 # Check for a 64-bit object if we didn't find anything.
11503 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11504 }'`; fi
11505 else
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11508
11509
11510 fi
11511
11512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11513 conftest$ac_exeext conftest.$ac_ext
11514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11515
11516 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11517 # Warning - without using the other run time loading flags,
11518 # -berok will link without error, but may produce a broken library.
11519 no_undefined_flag_CXX=' ${wl}-bernotok'
11520 allow_undefined_flag_CXX=' ${wl}-berok'
11521 # Exported symbols can be pulled into shared objects from archives
11522 whole_archive_flag_spec_CXX='$convenience'
11523 archive_cmds_need_lc_CXX=yes
11524 # This is similar to how AIX traditionally builds its shared libraries.
11525 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'
11526 fi
11527 fi
11528 ;;
11529
11530 beos*)
11531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11532 allow_undefined_flag_CXX=unsupported
11533 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11534 # support --undefined. This deserves some investigation. FIXME
11535 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11536 else
11537 ld_shlibs_CXX=no
11538 fi
11539 ;;
11540
11541 chorus*)
11542 case $cc_basename in
11543 *)
11544 # FIXME: insert proper C++ library support
11545 ld_shlibs_CXX=no
11546 ;;
11547 esac
11548 ;;
11549
11550 cygwin* | mingw* | pw32*)
11551 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11552 # as there is no search path for DLLs.
11553 hardcode_libdir_flag_spec_CXX='-L$libdir'
11554 allow_undefined_flag_CXX=unsupported
11555 always_export_symbols_CXX=no
11556 enable_shared_with_static_runtimes_CXX=yes
11557
11558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11559 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11560 # If the export-symbols file already is a .def file (1st line
11561 # is EXPORTS), use it as is; otherwise, prepend...
11562 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11563 cp $export_symbols $output_objdir/$soname.def;
11564 else
11565 echo EXPORTS > $output_objdir/$soname.def;
11566 cat $export_symbols >> $output_objdir/$soname.def;
11567 fi~
11568 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11569 else
11570 ld_shlibs_CXX=no
11571 fi
11572 ;;
11573 darwin* | rhapsody*)
11574 case $host_os in
11575 rhapsody* | darwin1.[012])
11576 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11577 ;;
11578 *) # Darwin 1.3 on
11579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11580 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11581 else
11582 case ${MACOSX_DEPLOYMENT_TARGET} in
11583 10.[012])
11584 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11585 ;;
11586 10.*)
11587 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11588 ;;
11589 esac
11590 fi
11591 ;;
11592 esac
11593 archive_cmds_need_lc_CXX=no
11594 hardcode_direct_CXX=no
11595 hardcode_automatic_CXX=yes
11596 hardcode_shlibpath_var_CXX=unsupported
11597 whole_archive_flag_spec_CXX=''
11598 link_all_deplibs_CXX=yes
11599
11600 if test "$GXX" = yes ; then
11601 lt_int_apple_cc_single_mod=no
11602 output_verbose_link_cmd='echo'
11603 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11604 lt_int_apple_cc_single_mod=yes
11605 fi
11606 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11607 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11608 else
11609 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11610 fi
11611 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11613 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11614 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11615 else
11616 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11617 fi
11618 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11619 else
11620 case $cc_basename in
11621 xlc*)
11622 output_verbose_link_cmd='echo'
11623 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11624 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11625 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11626 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11627 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11628 ;;
11629 *)
11630 ld_shlibs_CXX=no
11631 ;;
11632 esac
11633 fi
11634 ;;
11635
11636 dgux*)
11637 case $cc_basename in
11638 ec++*)
11639 # FIXME: insert proper C++ library support
11640 ld_shlibs_CXX=no
11641 ;;
11642 ghcx*)
11643 # Green Hills C++ Compiler
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11646 ;;
11647 *)
11648 # FIXME: insert proper C++ library support
11649 ld_shlibs_CXX=no
11650 ;;
11651 esac
11652 ;;
11653 freebsd[12]*)
11654 # C++ shared libraries reported to be fairly broken before switch to ELF
11655 ld_shlibs_CXX=no
11656 ;;
11657 freebsd-elf*)
11658 archive_cmds_need_lc_CXX=no
11659 ;;
11660 freebsd* | kfreebsd*-gnu | dragonfly*)
11661 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11662 # conventions
11663 ld_shlibs_CXX=yes
11664 ;;
11665 gnu*)
11666 ;;
11667 hpux9*)
11668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11669 hardcode_libdir_separator_CXX=:
11670 export_dynamic_flag_spec_CXX='${wl}-E'
11671 hardcode_direct_CXX=yes
11672 hardcode_minus_L_CXX=yes # Not in the search PATH,
11673 # but as the default
11674 # location of the library.
11675
11676 case $cc_basename in
11677 CC*)
11678 # FIXME: insert proper C++ library support
11679 ld_shlibs_CXX=no
11680 ;;
11681 aCC*)
11682 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11683 # Commands to make compiler produce verbose output that lists
11684 # what "hidden" libraries, object files and flags are used when
11685 # linking a shared library.
11686 #
11687 # There doesn't appear to be a way to prevent this compiler from
11688 # explicitly linking system object files so we need to strip them
11689 # from the output so that they don't get included in the library
11690 # dependencies.
11691 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'
11692 ;;
11693 *)
11694 if test "$GXX" = yes; then
11695 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'
11696 else
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11699 fi
11700 ;;
11701 esac
11702 ;;
11703 hpux10*|hpux11*)
11704 if test $with_gnu_ld = no; then
11705 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11706 hardcode_libdir_separator_CXX=:
11707
11708 case $host_cpu in
11709 hppa*64*|ia64*)
11710 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11711 ;;
11712 *)
11713 export_dynamic_flag_spec_CXX='${wl}-E'
11714 ;;
11715 esac
11716 fi
11717 case $host_cpu in
11718 hppa*64*|ia64*)
11719 hardcode_direct_CXX=no
11720 hardcode_shlibpath_var_CXX=no
11721 ;;
11722 *)
11723 hardcode_direct_CXX=yes
11724 hardcode_minus_L_CXX=yes # Not in the search PATH,
11725 # but as the default
11726 # location of the library.
11727 ;;
11728 esac
11729
11730 case $cc_basename in
11731 CC*)
11732 # FIXME: insert proper C++ library support
11733 ld_shlibs_CXX=no
11734 ;;
11735 aCC*)
11736 case $host_cpu in
11737 hppa*64*)
11738 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11739 ;;
11740 ia64*)
11741 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11742 ;;
11743 *)
11744 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11745 ;;
11746 esac
11747 # Commands to make compiler produce verbose output that lists
11748 # what "hidden" libraries, object files and flags are used when
11749 # linking a shared library.
11750 #
11751 # There doesn't appear to be a way to prevent this compiler from
11752 # explicitly linking system object files so we need to strip them
11753 # from the output so that they don't get included in the library
11754 # dependencies.
11755 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'
11756 ;;
11757 *)
11758 if test "$GXX" = yes; then
11759 if test $with_gnu_ld = no; then
11760 case $host_cpu in
11761 hppa*64*)
11762 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11763 ;;
11764 ia64*)
11765 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11766 ;;
11767 *)
11768 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'
11769 ;;
11770 esac
11771 fi
11772 else
11773 # FIXME: insert proper C++ library support
11774 ld_shlibs_CXX=no
11775 fi
11776 ;;
11777 esac
11778 ;;
11779 interix3*)
11780 hardcode_direct_CXX=no
11781 hardcode_shlibpath_var_CXX=no
11782 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11783 export_dynamic_flag_spec_CXX='${wl}-E'
11784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11785 # Instead, shared libraries are loaded at an image base (0x10000000 by
11786 # default) and relocated if they conflict, which is a slow very memory
11787 # consuming and fragmenting process. To avoid this, we pick a random,
11788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11790 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11791 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11792 ;;
11793 irix5* | irix6*)
11794 case $cc_basename in
11795 CC*)
11796 # SGI C++
11797 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11798
11799 # Archives containing C++ object files must be created using
11800 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11801 # necessary to make sure instantiated templates are included
11802 # in the archive.
11803 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11804 ;;
11805 *)
11806 if test "$GXX" = yes; then
11807 if test "$with_gnu_ld" = no; then
11808 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11809 else
11810 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11811 fi
11812 fi
11813 link_all_deplibs_CXX=yes
11814 ;;
11815 esac
11816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11817 hardcode_libdir_separator_CXX=:
11818 ;;
11819 linux*)
11820 case $cc_basename in
11821 KCC*)
11822 # Kuck and Associates, Inc. (KAI) C++ Compiler
11823
11824 # KCC will only create a shared library if the output file
11825 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11826 # to its proper name (with version) after linking.
11827 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11828 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11829 # Commands to make compiler produce verbose output that lists
11830 # what "hidden" libraries, object files and flags are used when
11831 # linking a shared library.
11832 #
11833 # There doesn't appear to be a way to prevent this compiler from
11834 # explicitly linking system object files so we need to strip them
11835 # from the output so that they don't get included in the library
11836 # dependencies.
11837 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11838
11839 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11840 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11841
11842 # Archives containing C++ object files must be created using
11843 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11844 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11845 ;;
11846 icpc*)
11847 # Intel C++
11848 with_gnu_ld=yes
11849 # version 8.0 and above of icpc choke on multiply defined symbols
11850 # if we add $predep_objects and $postdep_objects, however 7.1 and
11851 # earlier do not add the objects themselves.
11852 case `$CC -V 2>&1` in
11853 *"Version 7."*)
11854 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11855 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11856 ;;
11857 *) # Version 8.0 or newer
11858 tmp_idyn=
11859 case $host_cpu in
11860 ia64*) tmp_idyn=' -i_dynamic';;
11861 esac
11862 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11863 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11864 ;;
11865 esac
11866 archive_cmds_need_lc_CXX=no
11867 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11869 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11870 ;;
11871 pgCC*)
11872 # Portland Group C++ compiler
11873 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11874 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'
11875
11876 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11877 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11878 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11879 ;;
11880 cxx*)
11881 # Compaq C++
11882 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11883 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11884
11885 runpath_var=LD_RUN_PATH
11886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11887 hardcode_libdir_separator_CXX=:
11888
11889 # Commands to make compiler produce verbose output that lists
11890 # what "hidden" libraries, object files and flags are used when
11891 # linking a shared library.
11892 #
11893 # There doesn't appear to be a way to prevent this compiler from
11894 # explicitly linking system object files so we need to strip them
11895 # from the output so that they don't get included in the library
11896 # dependencies.
11897 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11898 ;;
11899 esac
11900 ;;
11901 lynxos*)
11902 # FIXME: insert proper C++ library support
11903 ld_shlibs_CXX=no
11904 ;;
11905 m88k*)
11906 # FIXME: insert proper C++ library support
11907 ld_shlibs_CXX=no
11908 ;;
11909 mvs*)
11910 case $cc_basename in
11911 cxx*)
11912 # FIXME: insert proper C++ library support
11913 ld_shlibs_CXX=no
11914 ;;
11915 *)
11916 # FIXME: insert proper C++ library support
11917 ld_shlibs_CXX=no
11918 ;;
11919 esac
11920 ;;
11921 netbsd*)
11922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11923 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11924 wlarc=
11925 hardcode_libdir_flag_spec_CXX='-R$libdir'
11926 hardcode_direct_CXX=yes
11927 hardcode_shlibpath_var_CXX=no
11928 fi
11929 # Workaround some broken pre-1.5 toolchains
11930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11931 ;;
11932 openbsd2*)
11933 # C++ shared libraries are fairly broken
11934 ld_shlibs_CXX=no
11935 ;;
11936 openbsd*)
11937 hardcode_direct_CXX=yes
11938 hardcode_shlibpath_var_CXX=no
11939 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11942 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11943 export_dynamic_flag_spec_CXX='${wl}-E'
11944 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11945 fi
11946 output_verbose_link_cmd='echo'
11947 ;;
11948 osf3*)
11949 case $cc_basename in
11950 KCC*)
11951 # Kuck and Associates, Inc. (KAI) C++ Compiler
11952
11953 # KCC will only create a shared library if the output file
11954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11955 # to its proper name (with version) after linking.
11956 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11957
11958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11959 hardcode_libdir_separator_CXX=:
11960
11961 # Archives containing C++ object files must be created using
11962 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11963 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11964
11965 ;;
11966 RCC*)
11967 # Rational C++ 2.4.1
11968 # FIXME: insert proper C++ library support
11969 ld_shlibs_CXX=no
11970 ;;
11971 cxx*)
11972 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11973 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11974
11975 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11976 hardcode_libdir_separator_CXX=:
11977
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11981 #
11982 # There doesn't appear to be a way to prevent this compiler from
11983 # explicitly linking system object files so we need to strip them
11984 # from the output so that they don't get included in the library
11985 # dependencies.
11986 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11987 ;;
11988 *)
11989 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11991 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11992
11993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11994 hardcode_libdir_separator_CXX=:
11995
11996 # Commands to make compiler produce verbose output that lists
11997 # what "hidden" libraries, object files and flags are used when
11998 # linking a shared library.
11999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12000
12001 else
12002 # FIXME: insert proper C++ library support
12003 ld_shlibs_CXX=no
12004 fi
12005 ;;
12006 esac
12007 ;;
12008 osf4* | osf5*)
12009 case $cc_basename in
12010 KCC*)
12011 # Kuck and Associates, Inc. (KAI) C++ Compiler
12012
12013 # KCC will only create a shared library if the output file
12014 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12015 # to its proper name (with version) after linking.
12016 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12017
12018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12019 hardcode_libdir_separator_CXX=:
12020
12021 # Archives containing C++ object files must be created using
12022 # the KAI C++ compiler.
12023 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12024 ;;
12025 RCC*)
12026 # Rational C++ 2.4.1
12027 # FIXME: insert proper C++ library support
12028 ld_shlibs_CXX=no
12029 ;;
12030 cxx*)
12031 allow_undefined_flag_CXX=' -expect_unresolved \*'
12032 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12033 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12034 echo "-hidden">> $lib.exp~
12035 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12036 $rm $lib.exp'
12037
12038 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12039 hardcode_libdir_separator_CXX=:
12040
12041 # Commands to make compiler produce verbose output that lists
12042 # what "hidden" libraries, object files and flags are used when
12043 # linking a shared library.
12044 #
12045 # There doesn't appear to be a way to prevent this compiler from
12046 # explicitly linking system object files so we need to strip them
12047 # from the output so that they don't get included in the library
12048 # dependencies.
12049 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12050 ;;
12051 *)
12052 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12053 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12054 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12055
12056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12057 hardcode_libdir_separator_CXX=:
12058
12059 # Commands to make compiler produce verbose output that lists
12060 # what "hidden" libraries, object files and flags are used when
12061 # linking a shared library.
12062 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12063
12064 else
12065 # FIXME: insert proper C++ library support
12066 ld_shlibs_CXX=no
12067 fi
12068 ;;
12069 esac
12070 ;;
12071 psos*)
12072 # FIXME: insert proper C++ library support
12073 ld_shlibs_CXX=no
12074 ;;
12075 sunos4*)
12076 case $cc_basename in
12077 CC*)
12078 # Sun C++ 4.x
12079 # FIXME: insert proper C++ library support
12080 ld_shlibs_CXX=no
12081 ;;
12082 lcc*)
12083 # Lucid
12084 # FIXME: insert proper C++ library support
12085 ld_shlibs_CXX=no
12086 ;;
12087 *)
12088 # FIXME: insert proper C++ library support
12089 ld_shlibs_CXX=no
12090 ;;
12091 esac
12092 ;;
12093 solaris*)
12094 case $cc_basename in
12095 CC*)
12096 # Sun C++ 4.2, 5.x and Centerline C++
12097 archive_cmds_need_lc_CXX=yes
12098 no_undefined_flag_CXX=' -zdefs'
12099 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12100 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12101 $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'
12102
12103 hardcode_libdir_flag_spec_CXX='-R$libdir'
12104 hardcode_shlibpath_var_CXX=no
12105 case $host_os in
12106 solaris2.[0-5] | solaris2.[0-5].*) ;;
12107 *)
12108 # The C++ compiler is used as linker so we must use $wl
12109 # flag to pass the commands to the underlying system
12110 # linker. We must also pass each convience library through
12111 # to the system linker between allextract/defaultextract.
12112 # The C++ compiler will combine linker options so we
12113 # cannot just pass the convience library names through
12114 # without $wl.
12115 # Supported since Solaris 2.6 (maybe 2.5.1?)
12116 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12117 ;;
12118 esac
12119 link_all_deplibs_CXX=yes
12120
12121 output_verbose_link_cmd='echo'
12122
12123 # Archives containing C++ object files must be created using
12124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12125 # necessary to make sure instantiated templates are included
12126 # in the archive.
12127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12128 ;;
12129 gcx*)
12130 # Green Hills C++ Compiler
12131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12132
12133 # The C++ compiler must be used to create the archive.
12134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12135 ;;
12136 *)
12137 # GNU C++ compiler with Solaris linker
12138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12140 if $CC --version | grep -v '^2\.7' > /dev/null; then
12141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12142 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12144
12145 # Commands to make compiler produce verbose output that lists
12146 # what "hidden" libraries, object files and flags are used when
12147 # linking a shared library.
12148 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12149 else
12150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12151 # platform.
12152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12153 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12155
12156 # Commands to make compiler produce verbose output that lists
12157 # what "hidden" libraries, object files and flags are used when
12158 # linking a shared library.
12159 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12160 fi
12161
12162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12163 fi
12164 ;;
12165 esac
12166 ;;
12167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12168 no_undefined_flag_CXX='${wl}-z,text'
12169 archive_cmds_need_lc_CXX=no
12170 hardcode_shlibpath_var_CXX=no
12171 runpath_var='LD_RUN_PATH'
12172
12173 case $cc_basename in
12174 CC*)
12175 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12177 ;;
12178 *)
12179 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12180 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12181 ;;
12182 esac
12183 ;;
12184 sysv5* | sco3.2v5* | sco5v6*)
12185 # Note: We can NOT use -z defs as we might desire, because we do not
12186 # link with -lc, and that would cause any symbols used from libc to
12187 # always be unresolved, which means just about no library would
12188 # ever link correctly. If we're not using GNU ld we use -z text
12189 # though, which does catch some bad symbols but isn't as heavy-handed
12190 # as -z defs.
12191 # For security reasons, it is highly recommended that you always
12192 # use absolute paths for naming shared libraries, and exclude the
12193 # DT_RUNPATH tag from executables and libraries. But doing so
12194 # requires that you compile everything twice, which is a pain.
12195 # So that behaviour is only enabled if SCOABSPATH is set to a
12196 # non-empty value in the environment. Most likely only useful for
12197 # creating official distributions of packages.
12198 # This is a hack until libtool officially supports absolute path
12199 # names for shared libraries.
12200 no_undefined_flag_CXX='${wl}-z,text'
12201 allow_undefined_flag_CXX='${wl}-z,nodefs'
12202 archive_cmds_need_lc_CXX=no
12203 hardcode_shlibpath_var_CXX=no
12204 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12205 hardcode_libdir_separator_CXX=':'
12206 link_all_deplibs_CXX=yes
12207 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12208 runpath_var='LD_RUN_PATH'
12209
12210 case $cc_basename in
12211 CC*)
12212 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12213 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12214 ;;
12215 *)
12216 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12217 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12218 ;;
12219 esac
12220 ;;
12221 tandem*)
12222 case $cc_basename in
12223 NCC*)
12224 # NonStop-UX NCC 3.20
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12227 ;;
12228 *)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12231 ;;
12232 esac
12233 ;;
12234 vxworks*)
12235 # FIXME: insert proper C++ library support
12236 ld_shlibs_CXX=no
12237 ;;
12238 *)
12239 # FIXME: insert proper C++ library support
12240 ld_shlibs_CXX=no
12241 ;;
12242 esac
12243 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12244 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12245 test "$ld_shlibs_CXX" = no && can_build_shared=no
12246
12247 GCC_CXX="$GXX"
12248 LD_CXX="$LD"
12249
12250 ## CAVEAT EMPTOR:
12251 ## There is no encapsulation within the following macros, do not change
12252 ## the running order or otherwise move them around unless you know exactly
12253 ## what you are doing...
12254
12255 cat > conftest.$ac_ext <<EOF
12256 class Foo
12257 {
12258 public:
12259 Foo (void) { a = 0; }
12260 private:
12261 int a;
12262 };
12263 EOF
12264
12265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12266 (eval $ac_compile) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; then
12270 # Parse the compiler output and extract the necessary
12271 # objects, libraries and library flags.
12272
12273 # Sentinel used to keep track of whether or not we are before
12274 # the conftest object file.
12275 pre_test_object_deps_done=no
12276
12277 # The `*' in the case matches for architectures that use `case' in
12278 # $output_verbose_cmd can trigger glob expansion during the loop
12279 # eval without this substitution.
12280 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12281
12282 for p in `eval $output_verbose_link_cmd`; do
12283 case $p in
12284
12285 -L* | -R* | -l*)
12286 # Some compilers place space between "-{L,R}" and the path.
12287 # Remove the space.
12288 if test $p = "-L" \
12289 || test $p = "-R"; then
12290 prev=$p
12291 continue
12292 else
12293 prev=
12294 fi
12295
12296 if test "$pre_test_object_deps_done" = no; then
12297 case $p in
12298 -L* | -R*)
12299 # Internal compiler library paths should come after those
12300 # provided the user. The postdeps already come after the
12301 # user supplied libs so there is no need to process them.
12302 if test -z "$compiler_lib_search_path_CXX"; then
12303 compiler_lib_search_path_CXX="${prev}${p}"
12304 else
12305 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12306 fi
12307 ;;
12308 # The "-l" case would never come before the object being
12309 # linked, so don't bother handling this case.
12310 esac
12311 else
12312 if test -z "$postdeps_CXX"; then
12313 postdeps_CXX="${prev}${p}"
12314 else
12315 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12316 fi
12317 fi
12318 ;;
12319
12320 *.$objext)
12321 # This assumes that the test object file only shows up
12322 # once in the compiler output.
12323 if test "$p" = "conftest.$objext"; then
12324 pre_test_object_deps_done=yes
12325 continue
12326 fi
12327
12328 if test "$pre_test_object_deps_done" = no; then
12329 if test -z "$predep_objects_CXX"; then
12330 predep_objects_CXX="$p"
12331 else
12332 predep_objects_CXX="$predep_objects_CXX $p"
12333 fi
12334 else
12335 if test -z "$postdep_objects_CXX"; then
12336 postdep_objects_CXX="$p"
12337 else
12338 postdep_objects_CXX="$postdep_objects_CXX $p"
12339 fi
12340 fi
12341 ;;
12342
12343 *) ;; # Ignore the rest.
12344
12345 esac
12346 done
12347
12348 # Clean up.
12349 rm -f a.out a.exe
12350 else
12351 echo "libtool.m4: error: problem compiling CXX test program"
12352 fi
12353
12354 $rm -f confest.$objext
12355
12356 # PORTME: override above test on systems where it is broken
12357 case $host_os in
12358 interix3*)
12359 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12360 # hack all around it, let's just trust "g++" to DTRT.
12361 predep_objects_CXX=
12362 postdep_objects_CXX=
12363 postdeps_CXX=
12364 ;;
12365
12366 solaris*)
12367 case $cc_basename in
12368 CC*)
12369 # Adding this requires a known-good setup of shared libraries for
12370 # Sun compiler versions before 5.6, else PIC objects from an old
12371 # archive will be linked into the output, leading to subtle bugs.
12372 postdeps_CXX='-lCstd -lCrun'
12373 ;;
12374 esac
12375 ;;
12376 esac
12377
12378
12379 case " $postdeps_CXX " in
12380 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12381 esac
12382
12383 lt_prog_compiler_wl_CXX=
12384 lt_prog_compiler_pic_CXX=
12385 lt_prog_compiler_static_CXX=
12386
12387 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12388 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12389
12390 # C++ specific cases for pic, static, wl, etc.
12391 if test "$GXX" = yes; then
12392 lt_prog_compiler_wl_CXX='-Wl,'
12393 lt_prog_compiler_static_CXX='-static'
12394
12395 case $host_os in
12396 aix*)
12397 # All AIX code is PIC.
12398 if test "$host_cpu" = ia64; then
12399 # AIX 5 now supports IA64 processor
12400 lt_prog_compiler_static_CXX='-Bstatic'
12401 fi
12402 ;;
12403 amigaos*)
12404 # FIXME: we need at least 68020 code to build shared libraries, but
12405 # adding the `-m68020' flag to GCC prevents building anything better,
12406 # like `-m68040'.
12407 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12408 ;;
12409 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12410 # PIC is the default for these OSes.
12411 ;;
12412 mingw* | os2* | pw32*)
12413 # This hack is so that the source file can tell whether it is being
12414 # built for inclusion in a dll (and should export symbols for example).
12415 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12416 ;;
12417 darwin* | rhapsody*)
12418 # PIC is the default on this platform
12419 # Common symbols not allowed in MH_DYLIB files
12420 lt_prog_compiler_pic_CXX='-fno-common'
12421 ;;
12422 *djgpp*)
12423 # DJGPP does not support shared libraries at all
12424 lt_prog_compiler_pic_CXX=
12425 ;;
12426 interix3*)
12427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12428 # Instead, we relocate shared libraries at runtime.
12429 ;;
12430 sysv4*MP*)
12431 if test -d /usr/nec; then
12432 lt_prog_compiler_pic_CXX=-Kconform_pic
12433 fi
12434 ;;
12435 hpux*)
12436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12437 # not for PA HP-UX.
12438 case $host_cpu in
12439 hppa*64*|ia64*)
12440 ;;
12441 *)
12442 lt_prog_compiler_pic_CXX='-fPIC'
12443 ;;
12444 esac
12445 ;;
12446 *)
12447 lt_prog_compiler_pic_CXX='-fPIC'
12448 ;;
12449 esac
12450 else
12451 case $host_os in
12452 aix4* | aix5*)
12453 # All AIX code is PIC.
12454 if test "$host_cpu" = ia64; then
12455 # AIX 5 now supports IA64 processor
12456 lt_prog_compiler_static_CXX='-Bstatic'
12457 else
12458 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12459 fi
12460 ;;
12461 chorus*)
12462 case $cc_basename in
12463 cxch68*)
12464 # Green Hills C++ Compiler
12465 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12466 ;;
12467 esac
12468 ;;
12469 darwin*)
12470 # PIC is the default on this platform
12471 # Common symbols not allowed in MH_DYLIB files
12472 case $cc_basename in
12473 xlc*)
12474 lt_prog_compiler_pic_CXX='-qnocommon'
12475 lt_prog_compiler_wl_CXX='-Wl,'
12476 ;;
12477 esac
12478 ;;
12479 dgux*)
12480 case $cc_basename in
12481 ec++*)
12482 lt_prog_compiler_pic_CXX='-KPIC'
12483 ;;
12484 ghcx*)
12485 # Green Hills C++ Compiler
12486 lt_prog_compiler_pic_CXX='-pic'
12487 ;;
12488 *)
12489 ;;
12490 esac
12491 ;;
12492 freebsd* | kfreebsd*-gnu | dragonfly*)
12493 # FreeBSD uses GNU C++
12494 ;;
12495 hpux9* | hpux10* | hpux11*)
12496 case $cc_basename in
12497 CC*)
12498 lt_prog_compiler_wl_CXX='-Wl,'
12499 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12500 if test "$host_cpu" != ia64; then
12501 lt_prog_compiler_pic_CXX='+Z'
12502 fi
12503 ;;
12504 aCC*)
12505 lt_prog_compiler_wl_CXX='-Wl,'
12506 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12507 case $host_cpu in
12508 hppa*64*|ia64*)
12509 # +Z the default
12510 ;;
12511 *)
12512 lt_prog_compiler_pic_CXX='+Z'
12513 ;;
12514 esac
12515 ;;
12516 *)
12517 ;;
12518 esac
12519 ;;
12520 interix*)
12521 # This is c89, which is MS Visual C++ (no shared libs)
12522 # Anyone wants to do a port?
12523 ;;
12524 irix5* | irix6* | nonstopux*)
12525 case $cc_basename in
12526 CC*)
12527 lt_prog_compiler_wl_CXX='-Wl,'
12528 lt_prog_compiler_static_CXX='-non_shared'
12529 # CC pic flag -KPIC is the default.
12530 ;;
12531 *)
12532 ;;
12533 esac
12534 ;;
12535 linux*)
12536 case $cc_basename in
12537 KCC*)
12538 # KAI C++ Compiler
12539 lt_prog_compiler_wl_CXX='--backend -Wl,'
12540 lt_prog_compiler_pic_CXX='-fPIC'
12541 ;;
12542 icpc* | ecpc*)
12543 # Intel C++
12544 lt_prog_compiler_wl_CXX='-Wl,'
12545 lt_prog_compiler_pic_CXX='-KPIC'
12546 lt_prog_compiler_static_CXX='-static'
12547 ;;
12548 pgCC*)
12549 # Portland Group C++ compiler.
12550 lt_prog_compiler_wl_CXX='-Wl,'
12551 lt_prog_compiler_pic_CXX='-fpic'
12552 lt_prog_compiler_static_CXX='-Bstatic'
12553 ;;
12554 cxx*)
12555 # Compaq C++
12556 # Make sure the PIC flag is empty. It appears that all Alpha
12557 # Linux and Compaq Tru64 Unix objects are PIC.
12558 lt_prog_compiler_pic_CXX=
12559 lt_prog_compiler_static_CXX='-non_shared'
12560 ;;
12561 *)
12562 ;;
12563 esac
12564 ;;
12565 lynxos*)
12566 ;;
12567 m88k*)
12568 ;;
12569 mvs*)
12570 case $cc_basename in
12571 cxx*)
12572 lt_prog_compiler_pic_CXX='-W c,exportall'
12573 ;;
12574 *)
12575 ;;
12576 esac
12577 ;;
12578 netbsd*)
12579 ;;
12580 osf3* | osf4* | osf5*)
12581 case $cc_basename in
12582 KCC*)
12583 lt_prog_compiler_wl_CXX='--backend -Wl,'
12584 ;;
12585 RCC*)
12586 # Rational C++ 2.4.1
12587 lt_prog_compiler_pic_CXX='-pic'
12588 ;;
12589 cxx*)
12590 # Digital/Compaq C++
12591 lt_prog_compiler_wl_CXX='-Wl,'
12592 # Make sure the PIC flag is empty. It appears that all Alpha
12593 # Linux and Compaq Tru64 Unix objects are PIC.
12594 lt_prog_compiler_pic_CXX=
12595 lt_prog_compiler_static_CXX='-non_shared'
12596 ;;
12597 *)
12598 ;;
12599 esac
12600 ;;
12601 psos*)
12602 ;;
12603 solaris*)
12604 case $cc_basename in
12605 CC*)
12606 # Sun C++ 4.2, 5.x and Centerline C++
12607 lt_prog_compiler_pic_CXX='-KPIC'
12608 lt_prog_compiler_static_CXX='-Bstatic'
12609 lt_prog_compiler_wl_CXX='-Qoption ld '
12610 ;;
12611 gcx*)
12612 # Green Hills C++ Compiler
12613 lt_prog_compiler_pic_CXX='-PIC'
12614 ;;
12615 *)
12616 ;;
12617 esac
12618 ;;
12619 sunos4*)
12620 case $cc_basename in
12621 CC*)
12622 # Sun C++ 4.x
12623 lt_prog_compiler_pic_CXX='-pic'
12624 lt_prog_compiler_static_CXX='-Bstatic'
12625 ;;
12626 lcc*)
12627 # Lucid
12628 lt_prog_compiler_pic_CXX='-pic'
12629 ;;
12630 *)
12631 ;;
12632 esac
12633 ;;
12634 tandem*)
12635 case $cc_basename in
12636 NCC*)
12637 # NonStop-UX NCC 3.20
12638 lt_prog_compiler_pic_CXX='-KPIC'
12639 ;;
12640 *)
12641 ;;
12642 esac
12643 ;;
12644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12645 case $cc_basename in
12646 CC*)
12647 lt_prog_compiler_wl_CXX='-Wl,'
12648 lt_prog_compiler_pic_CXX='-KPIC'
12649 lt_prog_compiler_static_CXX='-Bstatic'
12650 ;;
12651 esac
12652 ;;
12653 vxworks*)
12654 ;;
12655 *)
12656 lt_prog_compiler_can_build_shared_CXX=no
12657 ;;
12658 esac
12659 fi
12660
12661 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12662 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12663
12664 #
12665 # Check to make sure the PIC flag actually works.
12666 #
12667 if test -n "$lt_prog_compiler_pic_CXX"; then
12668
12669 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12671 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12673 else
12674 lt_prog_compiler_pic_works_CXX=no
12675 ac_outfile=conftest.$ac_objext
12676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12677 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12678 # Insert the option either (1) after the last *FLAGS variable, or
12679 # (2) before a word containing "conftest.", or (3) at the end.
12680 # Note that $ac_compile itself does not contain backslashes and begins
12681 # with a dollar sign (not a hyphen), so the echo should work correctly.
12682 # The option is referenced via a variable to avoid confusing sed.
12683 lt_compile=`echo "$ac_compile" | $SED \
12684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12686 -e 's:$: $lt_compiler_flag:'`
12687 (eval echo "\"\$as_me:12687: $lt_compile\"" >&5)
12688 (eval "$lt_compile" 2>conftest.err)
12689 ac_status=$?
12690 cat conftest.err >&5
12691 echo "$as_me:12691: \$? = $ac_status" >&5
12692 if (exit $ac_status) && test -s "$ac_outfile"; then
12693 # The compiler can only warn and ignore the option if not recognized
12694 # So say no if there are warnings other than the usual output.
12695 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12697 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12698 lt_prog_compiler_pic_works_CXX=yes
12699 fi
12700 fi
12701 $rm conftest*
12702
12703 fi
12704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12705 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12706
12707 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12708 case $lt_prog_compiler_pic_CXX in
12709 "" | " "*) ;;
12710 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12711 esac
12712 else
12713 lt_prog_compiler_pic_CXX=
12714 lt_prog_compiler_can_build_shared_CXX=no
12715 fi
12716
12717 fi
12718 case $host_os in
12719 # For platforms which do not support PIC, -DPIC is meaningless:
12720 *djgpp*)
12721 lt_prog_compiler_pic_CXX=
12722 ;;
12723 *)
12724 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12725 ;;
12726 esac
12727
12728 #
12729 # Check to make sure the static flag actually works.
12730 #
12731 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12732 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12733 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12734 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 else
12737 lt_prog_compiler_static_works_CXX=no
12738 save_LDFLAGS="$LDFLAGS"
12739 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12740 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12742 # The linker can only warn and ignore the option if not recognized
12743 # So say no if there are warnings
12744 if test -s conftest.err; then
12745 # Append any errors to the config.log.
12746 cat conftest.err 1>&5
12747 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12749 if diff conftest.exp conftest.er2 >/dev/null; then
12750 lt_prog_compiler_static_works_CXX=yes
12751 fi
12752 else
12753 lt_prog_compiler_static_works_CXX=yes
12754 fi
12755 fi
12756 $rm conftest*
12757 LDFLAGS="$save_LDFLAGS"
12758
12759 fi
12760 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12761 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12762
12763 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12764 :
12765 else
12766 lt_prog_compiler_static_CXX=
12767 fi
12768
12769
12770 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12771 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12772 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 lt_cv_prog_compiler_c_o_CXX=no
12776 $rm -r conftest 2>/dev/null
12777 mkdir conftest
12778 cd conftest
12779 mkdir out
12780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12781
12782 lt_compiler_flag="-o out/conftest2.$ac_objext"
12783 # Insert the option either (1) after the last *FLAGS variable, or
12784 # (2) before a word containing "conftest.", or (3) at the end.
12785 # Note that $ac_compile itself does not contain backslashes and begins
12786 # with a dollar sign (not a hyphen), so the echo should work correctly.
12787 lt_compile=`echo "$ac_compile" | $SED \
12788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12790 -e 's:$: $lt_compiler_flag:'`
12791 (eval echo "\"\$as_me:12791: $lt_compile\"" >&5)
12792 (eval "$lt_compile" 2>out/conftest.err)
12793 ac_status=$?
12794 cat out/conftest.err >&5
12795 echo "$as_me:12795: \$? = $ac_status" >&5
12796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12797 then
12798 # The compiler can only warn and ignore the option if not recognized
12799 # So say no if there are warnings
12800 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12803 lt_cv_prog_compiler_c_o_CXX=yes
12804 fi
12805 fi
12806 chmod u+w . 2>&5
12807 $rm conftest*
12808 # SGI C++ compiler will create directory out/ii_files/ for
12809 # template instantiation
12810 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12811 $rm out/* && rmdir out
12812 cd ..
12813 rmdir conftest
12814 $rm conftest*
12815
12816 fi
12817 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12818 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12819
12820
12821 hard_links="nottested"
12822 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12823 # do not overwrite the value of need_locks provided by the user
12824 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12825 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12826 hard_links=yes
12827 $rm conftest*
12828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12829 touch conftest.a
12830 ln conftest.a conftest.b 2>&5 || hard_links=no
12831 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12832 { echo "$as_me:$LINENO: result: $hard_links" >&5
12833 echo "${ECHO_T}$hard_links" >&6; }
12834 if test "$hard_links" = no; then
12835 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12836 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12837 need_locks=warn
12838 fi
12839 else
12840 need_locks=no
12841 fi
12842
12843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12845
12846 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12847 case $host_os in
12848 aix4* | aix5*)
12849 # If we're using GNU nm, then we don't want the "-C" option.
12850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12851 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12852 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12853 else
12854 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12855 fi
12856 ;;
12857 pw32*)
12858 export_symbols_cmds_CXX="$ltdll_cmds"
12859 ;;
12860 cygwin* | mingw*)
12861 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12862 ;;
12863 *)
12864 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12865 ;;
12866 esac
12867
12868 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12869 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12870 test "$ld_shlibs_CXX" = no && can_build_shared=no
12871
12872 #
12873 # Do we need to explicitly link libc?
12874 #
12875 case "x$archive_cmds_need_lc_CXX" in
12876 x|xyes)
12877 # Assume -lc should be added
12878 archive_cmds_need_lc_CXX=yes
12879
12880 if test "$enable_shared" = yes && test "$GCC" = yes; then
12881 case $archive_cmds_CXX in
12882 *'~'*)
12883 # FIXME: we may have to deal with multi-command sequences.
12884 ;;
12885 '$CC '*)
12886 # Test whether the compiler implicitly links with -lc since on some
12887 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12888 # to ld, don't add -lc before -lgcc.
12889 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12890 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12891 $rm conftest*
12892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12893
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } 2>conftest.err; then
12899 soname=conftest
12900 lib=conftest
12901 libobjs=conftest.$ac_objext
12902 deplibs=
12903 wl=$lt_prog_compiler_wl_CXX
12904 pic_flag=$lt_prog_compiler_pic_CXX
12905 compiler_flags=-v
12906 linker_flags=-v
12907 verstring=
12908 output_objdir=.
12909 libname=conftest
12910 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12911 allow_undefined_flag_CXX=
12912 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12913 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }
12917 then
12918 archive_cmds_need_lc_CXX=no
12919 else
12920 archive_cmds_need_lc_CXX=yes
12921 fi
12922 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12923 else
12924 cat conftest.err 1>&5
12925 fi
12926 $rm conftest*
12927 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12928 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12929 ;;
12930 esac
12931 fi
12932 ;;
12933 esac
12934
12935 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12936 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12937 library_names_spec=
12938 libname_spec='lib$name'
12939 soname_spec=
12940 shrext_cmds=".so"
12941 postinstall_cmds=
12942 postuninstall_cmds=
12943 finish_cmds=
12944 finish_eval=
12945 shlibpath_var=
12946 shlibpath_overrides_runpath=unknown
12947 version_type=none
12948 dynamic_linker="$host_os ld.so"
12949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12950 if test "$GCC" = yes; then
12951 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12952 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12953 # if the path contains ";" then we assume it to be the separator
12954 # otherwise default to the standard path separator (i.e. ":") - it is
12955 # assumed that no part of a normal pathname contains ";" but that should
12956 # okay in the real world where ";" in dirpaths is itself problematic.
12957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12958 else
12959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12960 fi
12961 else
12962 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12963 fi
12964 need_lib_prefix=unknown
12965 hardcode_into_libs=no
12966
12967 # when you set need_version to no, make sure it does not cause -set_version
12968 # flags to be left without arguments
12969 need_version=unknown
12970
12971 case $host_os in
12972 aix3*)
12973 version_type=linux
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12975 shlibpath_var=LIBPATH
12976
12977 # AIX 3 has no versioning support, so we append a major version to the name.
12978 soname_spec='${libname}${release}${shared_ext}$major'
12979 ;;
12980
12981 aix4* | aix5*)
12982 version_type=linux
12983 need_lib_prefix=no
12984 need_version=no
12985 hardcode_into_libs=yes
12986 if test "$host_cpu" = ia64; then
12987 # AIX 5 supports IA64
12988 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12989 shlibpath_var=LD_LIBRARY_PATH
12990 else
12991 # With GCC up to 2.95.x, collect2 would create an import file
12992 # for dependence libraries. The import file would start with
12993 # the line `#! .'. This would cause the generated library to
12994 # depend on `.', always an invalid library. This was fixed in
12995 # development snapshots of GCC prior to 3.0.
12996 case $host_os in
12997 aix4 | aix4.[01] | aix4.[01].*)
12998 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12999 echo ' yes '
13000 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13001 :
13002 else
13003 can_build_shared=no
13004 fi
13005 ;;
13006 esac
13007 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13008 # soname into executable. Probably we can add versioning support to
13009 # collect2, so additional links can be useful in future.
13010 if test "$aix_use_runtimelinking" = yes; then
13011 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13012 # instead of lib<name>.a to let people know that these are not
13013 # typical AIX shared libraries.
13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 else
13016 # We preserve .a as extension for shared libraries through AIX4.2
13017 # and later when we are not doing run time linking.
13018 library_names_spec='${libname}${release}.a $libname.a'
13019 soname_spec='${libname}${release}${shared_ext}$major'
13020 fi
13021 shlibpath_var=LIBPATH
13022 fi
13023 ;;
13024
13025 amigaos*)
13026 library_names_spec='$libname.ixlibrary $libname.a'
13027 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13028 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13029 ;;
13030
13031 beos*)
13032 library_names_spec='${libname}${shared_ext}'
13033 dynamic_linker="$host_os ld.so"
13034 shlibpath_var=LIBRARY_PATH
13035 ;;
13036
13037 bsdi[45]*)
13038 version_type=linux
13039 need_version=no
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 soname_spec='${libname}${release}${shared_ext}$major'
13042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13046 # the default ld.so.conf also contains /usr/contrib/lib and
13047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13048 # libtool to hard-code these into programs
13049 ;;
13050
13051 cygwin* | mingw* | pw32*)
13052 version_type=windows
13053 shrext_cmds=".dll"
13054 need_version=no
13055 need_lib_prefix=no
13056
13057 case $GCC,$host_os in
13058 yes,cygwin* | yes,mingw* | yes,pw32*)
13059 library_names_spec='$libname.dll.a'
13060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13061 postinstall_cmds='base_file=`basename \${file}`~
13062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13063 dldir=$destdir/`dirname \$dlpath`~
13064 test -d \$dldir || mkdir -p \$dldir~
13065 $install_prog $dir/$dlname \$dldir/$dlname~
13066 chmod a+x \$dldir/$dlname'
13067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13068 dlpath=$dir/\$dldll~
13069 $rm \$dlpath'
13070 shlibpath_overrides_runpath=yes
13071
13072 case $host_os in
13073 cygwin*)
13074 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13075 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13076 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13077 ;;
13078 mingw*)
13079 # MinGW DLLs use traditional 'lib' prefix
13080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13082 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13083 # It is most probably a Windows format PATH printed by
13084 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13085 # path with ; separators, and with drive letters. We can handle the
13086 # drive letters (cygwin fileutils understands them), so leave them,
13087 # especially as we might pass files found there to a mingw objdump,
13088 # which wouldn't understand a cygwinified path. Ahh.
13089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13090 else
13091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13092 fi
13093 ;;
13094 pw32*)
13095 # pw32 DLLs use 'pw' prefix rather than 'lib'
13096 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13097 ;;
13098 esac
13099 ;;
13100
13101 *)
13102 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13103 ;;
13104 esac
13105 dynamic_linker='Win32 ld.exe'
13106 # FIXME: first we should search . and the directory the executable is in
13107 shlibpath_var=PATH
13108 ;;
13109
13110 darwin* | rhapsody*)
13111 dynamic_linker="$host_os dyld"
13112 version_type=darwin
13113 need_lib_prefix=no
13114 need_version=no
13115 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13116 soname_spec='${libname}${release}${major}$shared_ext'
13117 shlibpath_overrides_runpath=yes
13118 shlibpath_var=DYLD_LIBRARY_PATH
13119 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13120 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13121 if test "$GCC" = yes; then
13122 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13123 else
13124 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13125 fi
13126 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13127 ;;
13128
13129 dgux*)
13130 version_type=linux
13131 need_lib_prefix=no
13132 need_version=no
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13135 shlibpath_var=LD_LIBRARY_PATH
13136 ;;
13137
13138 freebsd1*)
13139 dynamic_linker=no
13140 ;;
13141
13142 kfreebsd*-gnu)
13143 version_type=linux
13144 need_lib_prefix=no
13145 need_version=no
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 shlibpath_var=LD_LIBRARY_PATH
13149 shlibpath_overrides_runpath=no
13150 hardcode_into_libs=yes
13151 dynamic_linker='GNU ld.so'
13152 ;;
13153
13154 freebsd* | dragonfly*)
13155 # DragonFly does not have aout. When/if they implement a new
13156 # versioning mechanism, adjust this.
13157 if test -x /usr/bin/objformat; then
13158 objformat=`/usr/bin/objformat`
13159 else
13160 case $host_os in
13161 freebsd[123]*) objformat=aout ;;
13162 *) objformat=elf ;;
13163 esac
13164 fi
13165 version_type=freebsd-$objformat
13166 case $version_type in
13167 freebsd-elf*)
13168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13169 need_version=no
13170 need_lib_prefix=no
13171 ;;
13172 freebsd-*)
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13174 need_version=yes
13175 ;;
13176 esac
13177 shlibpath_var=LD_LIBRARY_PATH
13178 case $host_os in
13179 freebsd2*)
13180 shlibpath_overrides_runpath=yes
13181 ;;
13182 freebsd3.[01]* | freebsdelf3.[01]*)
13183 shlibpath_overrides_runpath=yes
13184 hardcode_into_libs=yes
13185 ;;
13186 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13187 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13188 shlibpath_overrides_runpath=no
13189 hardcode_into_libs=yes
13190 ;;
13191 freebsd*) # from 4.6 on
13192 shlibpath_overrides_runpath=yes
13193 hardcode_into_libs=yes
13194 ;;
13195 esac
13196 ;;
13197
13198 gnu*)
13199 version_type=linux
13200 need_lib_prefix=no
13201 need_version=no
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 shlibpath_var=LD_LIBRARY_PATH
13205 hardcode_into_libs=yes
13206 ;;
13207
13208 hpux9* | hpux10* | hpux11*)
13209 # Give a soname corresponding to the major version so that dld.sl refuses to
13210 # link against other versions.
13211 version_type=sunos
13212 need_lib_prefix=no
13213 need_version=no
13214 case $host_cpu in
13215 ia64*)
13216 shrext_cmds='.so'
13217 hardcode_into_libs=yes
13218 dynamic_linker="$host_os dld.so"
13219 shlibpath_var=LD_LIBRARY_PATH
13220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13222 soname_spec='${libname}${release}${shared_ext}$major'
13223 if test "X$HPUX_IA64_MODE" = X32; then
13224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13225 else
13226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13227 fi
13228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13229 ;;
13230 hppa*64*)
13231 shrext_cmds='.sl'
13232 hardcode_into_libs=yes
13233 dynamic_linker="$host_os dld.sl"
13234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13237 soname_spec='${libname}${release}${shared_ext}$major'
13238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13240 ;;
13241 *)
13242 shrext_cmds='.sl'
13243 dynamic_linker="$host_os dld.sl"
13244 shlibpath_var=SHLIB_PATH
13245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13247 soname_spec='${libname}${release}${shared_ext}$major'
13248 ;;
13249 esac
13250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13251 postinstall_cmds='chmod 555 $lib'
13252 ;;
13253
13254 interix3*)
13255 version_type=linux
13256 need_lib_prefix=no
13257 need_version=no
13258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13259 soname_spec='${libname}${release}${shared_ext}$major'
13260 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13261 shlibpath_var=LD_LIBRARY_PATH
13262 shlibpath_overrides_runpath=no
13263 hardcode_into_libs=yes
13264 ;;
13265
13266 irix5* | irix6* | nonstopux*)
13267 case $host_os in
13268 nonstopux*) version_type=nonstopux ;;
13269 *)
13270 if test "$lt_cv_prog_gnu_ld" = yes; then
13271 version_type=linux
13272 else
13273 version_type=irix
13274 fi ;;
13275 esac
13276 need_lib_prefix=no
13277 need_version=no
13278 soname_spec='${libname}${release}${shared_ext}$major'
13279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13280 case $host_os in
13281 irix5* | nonstopux*)
13282 libsuff= shlibsuff=
13283 ;;
13284 *)
13285 case $LD in # libtool.m4 will add one of these switches to LD
13286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13287 libsuff= shlibsuff= libmagic=32-bit;;
13288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13289 libsuff=32 shlibsuff=N32 libmagic=N32;;
13290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13292 *) libsuff= shlibsuff= libmagic=never-match;;
13293 esac
13294 ;;
13295 esac
13296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13297 shlibpath_overrides_runpath=no
13298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13300 hardcode_into_libs=yes
13301 ;;
13302
13303 # No shared lib support for Linux oldld, aout, or coff.
13304 linux*oldld* | linux*aout* | linux*coff*)
13305 dynamic_linker=no
13306 ;;
13307
13308 # This must be Linux ELF.
13309 linux*)
13310 version_type=linux
13311 need_lib_prefix=no
13312 need_version=no
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13316 shlibpath_var=LD_LIBRARY_PATH
13317 shlibpath_overrides_runpath=no
13318 # This implies no fast_install, which is unacceptable.
13319 # Some rework will be needed to allow for fast_install
13320 # before this can be enabled.
13321 hardcode_into_libs=yes
13322
13323 # find out which ABI we are using
13324 libsuff=
13325 case "$host_cpu" in
13326 x86_64*|s390x*|powerpc64*)
13327 echo '#line 13327 "configure"' > conftest.$ac_ext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13329 (eval $ac_compile) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; then
13333 case `/usr/bin/file conftest.$ac_objext` in
13334 *64-bit*)
13335 libsuff=64
13336 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13337 ;;
13338 esac
13339 fi
13340 rm -rf conftest*
13341 ;;
13342 esac
13343
13344 # Append ld.so.conf contents to the search path
13345 if test -f /etc/ld.so.conf; then
13346 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13347 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13348 fi
13349
13350 # We used to test for /lib/ld.so.1 and disable shared libraries on
13351 # powerpc, because MkLinux only supported shared libraries with the
13352 # GNU dynamic linker. Since this was broken with cross compilers,
13353 # most powerpc-linux boxes support dynamic linking these days and
13354 # people can always --disable-shared, the test was removed, and we
13355 # assume the GNU/Linux dynamic linker is in use.
13356 dynamic_linker='GNU/Linux ld.so'
13357 ;;
13358
13359 knetbsd*-gnu)
13360 version_type=linux
13361 need_lib_prefix=no
13362 need_version=no
13363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13364 soname_spec='${libname}${release}${shared_ext}$major'
13365 shlibpath_var=LD_LIBRARY_PATH
13366 shlibpath_overrides_runpath=no
13367 hardcode_into_libs=yes
13368 dynamic_linker='GNU ld.so'
13369 ;;
13370
13371 netbsd*)
13372 version_type=sunos
13373 need_lib_prefix=no
13374 need_version=no
13375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13378 dynamic_linker='NetBSD (a.out) ld.so'
13379 else
13380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
13382 dynamic_linker='NetBSD ld.elf_so'
13383 fi
13384 shlibpath_var=LD_LIBRARY_PATH
13385 shlibpath_overrides_runpath=yes
13386 hardcode_into_libs=yes
13387 ;;
13388
13389 newsos6)
13390 version_type=linux
13391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 shlibpath_overrides_runpath=yes
13394 ;;
13395
13396 nto-qnx*)
13397 version_type=linux
13398 need_lib_prefix=no
13399 need_version=no
13400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13401 soname_spec='${libname}${release}${shared_ext}$major'
13402 shlibpath_var=LD_LIBRARY_PATH
13403 shlibpath_overrides_runpath=yes
13404 ;;
13405
13406 openbsd*)
13407 version_type=sunos
13408 sys_lib_dlsearch_path_spec="/usr/lib"
13409 need_lib_prefix=no
13410 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13411 case $host_os in
13412 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13413 *) need_version=no ;;
13414 esac
13415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13417 shlibpath_var=LD_LIBRARY_PATH
13418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13419 case $host_os in
13420 openbsd2.[89] | openbsd2.[89].*)
13421 shlibpath_overrides_runpath=no
13422 ;;
13423 *)
13424 shlibpath_overrides_runpath=yes
13425 ;;
13426 esac
13427 else
13428 shlibpath_overrides_runpath=yes
13429 fi
13430 ;;
13431
13432 os2*)
13433 libname_spec='$name'
13434 shrext_cmds=".dll"
13435 need_lib_prefix=no
13436 library_names_spec='$libname${shared_ext} $libname.a'
13437 dynamic_linker='OS/2 ld.exe'
13438 shlibpath_var=LIBPATH
13439 ;;
13440
13441 osf3* | osf4* | osf5*)
13442 version_type=osf
13443 need_lib_prefix=no
13444 need_version=no
13445 soname_spec='${libname}${release}${shared_ext}$major'
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 shlibpath_var=LD_LIBRARY_PATH
13448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13450 ;;
13451
13452 solaris*)
13453 version_type=linux
13454 need_lib_prefix=no
13455 need_version=no
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 soname_spec='${libname}${release}${shared_ext}$major'
13458 shlibpath_var=LD_LIBRARY_PATH
13459 shlibpath_overrides_runpath=yes
13460 hardcode_into_libs=yes
13461 # ldd complains unless libraries are executable
13462 postinstall_cmds='chmod +x $lib'
13463 ;;
13464
13465 sunos4*)
13466 version_type=sunos
13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 shlibpath_overrides_runpath=yes
13471 if test "$with_gnu_ld" = yes; then
13472 need_lib_prefix=no
13473 fi
13474 need_version=yes
13475 ;;
13476
13477 sysv4 | sysv4.3*)
13478 version_type=linux
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 case $host_vendor in
13483 sni)
13484 shlibpath_overrides_runpath=no
13485 need_lib_prefix=no
13486 export_dynamic_flag_spec='${wl}-Blargedynsym'
13487 runpath_var=LD_RUN_PATH
13488 ;;
13489 siemens)
13490 need_lib_prefix=no
13491 ;;
13492 motorola)
13493 need_lib_prefix=no
13494 need_version=no
13495 shlibpath_overrides_runpath=no
13496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13497 ;;
13498 esac
13499 ;;
13500
13501 sysv4*MP*)
13502 if test -d /usr/nec ;then
13503 version_type=linux
13504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13505 soname_spec='$libname${shared_ext}.$major'
13506 shlibpath_var=LD_LIBRARY_PATH
13507 fi
13508 ;;
13509
13510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13511 version_type=freebsd-elf
13512 need_lib_prefix=no
13513 need_version=no
13514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13515 soname_spec='${libname}${release}${shared_ext}$major'
13516 shlibpath_var=LD_LIBRARY_PATH
13517 hardcode_into_libs=yes
13518 if test "$with_gnu_ld" = yes; then
13519 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13520 shlibpath_overrides_runpath=no
13521 else
13522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13523 shlibpath_overrides_runpath=yes
13524 case $host_os in
13525 sco3.2v5*)
13526 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13527 ;;
13528 esac
13529 fi
13530 sys_lib_dlsearch_path_spec='/usr/lib'
13531 ;;
13532
13533 uts4*)
13534 version_type=linux
13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536 soname_spec='${libname}${release}${shared_ext}$major'
13537 shlibpath_var=LD_LIBRARY_PATH
13538 ;;
13539
13540 *)
13541 dynamic_linker=no
13542 ;;
13543 esac
13544 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13545 echo "${ECHO_T}$dynamic_linker" >&6; }
13546 test "$dynamic_linker" = no && can_build_shared=no
13547
13548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13549 if test "$GCC" = yes; then
13550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13551 fi
13552
13553 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13554 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13555 hardcode_action_CXX=
13556 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13557 test -n "$runpath_var_CXX" || \
13558 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13559
13560 # We can hardcode non-existant directories.
13561 if test "$hardcode_direct_CXX" != no &&
13562 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13563 # have to relink, otherwise we might link with an installed library
13564 # when we should be linking with a yet-to-be-installed one
13565 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13566 test "$hardcode_minus_L_CXX" != no; then
13567 # Linking always hardcodes the temporary library directory.
13568 hardcode_action_CXX=relink
13569 else
13570 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13571 hardcode_action_CXX=immediate
13572 fi
13573 else
13574 # We cannot hardcode anything, or else we can only hardcode existing
13575 # directories.
13576 hardcode_action_CXX=unsupported
13577 fi
13578 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13579 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13580
13581 if test "$hardcode_action_CXX" = relink; then
13582 # Fast installation is not supported
13583 enable_fast_install=no
13584 elif test "$shlibpath_overrides_runpath" = yes ||
13585 test "$enable_shared" = no; then
13586 # Fast installation is not necessary
13587 enable_fast_install=needless
13588 fi
13589
13590
13591 # The else clause should only fire when bootstrapping the
13592 # libtool distribution, otherwise you forgot to ship ltmain.sh
13593 # with your package, and you will get complaints that there are
13594 # no rules to generate ltmain.sh.
13595 if test -f "$ltmain"; then
13596 # See if we are running on zsh, and set the options which allow our commands through
13597 # without removal of \ escapes.
13598 if test -n "${ZSH_VERSION+set}" ; then
13599 setopt NO_GLOB_SUBST
13600 fi
13601 # Now quote all the things that may contain metacharacters while being
13602 # careful not to overquote the AC_SUBSTed values. We take copies of the
13603 # variables and quote the copies for generation of the libtool script.
13604 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13605 SED SHELL STRIP \
13606 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13607 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13608 deplibs_check_method reload_flag reload_cmds need_locks \
13609 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13610 lt_cv_sys_global_symbol_to_c_name_address \
13611 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13612 old_postinstall_cmds old_postuninstall_cmds \
13613 compiler_CXX \
13614 CC_CXX \
13615 LD_CXX \
13616 lt_prog_compiler_wl_CXX \
13617 lt_prog_compiler_pic_CXX \
13618 lt_prog_compiler_static_CXX \
13619 lt_prog_compiler_no_builtin_flag_CXX \
13620 export_dynamic_flag_spec_CXX \
13621 thread_safe_flag_spec_CXX \
13622 whole_archive_flag_spec_CXX \
13623 enable_shared_with_static_runtimes_CXX \
13624 old_archive_cmds_CXX \
13625 old_archive_from_new_cmds_CXX \
13626 predep_objects_CXX \
13627 postdep_objects_CXX \
13628 predeps_CXX \
13629 postdeps_CXX \
13630 compiler_lib_search_path_CXX \
13631 archive_cmds_CXX \
13632 archive_expsym_cmds_CXX \
13633 postinstall_cmds_CXX \
13634 postuninstall_cmds_CXX \
13635 old_archive_from_expsyms_cmds_CXX \
13636 allow_undefined_flag_CXX \
13637 no_undefined_flag_CXX \
13638 export_symbols_cmds_CXX \
13639 hardcode_libdir_flag_spec_CXX \
13640 hardcode_libdir_flag_spec_ld_CXX \
13641 hardcode_libdir_separator_CXX \
13642 hardcode_automatic_CXX \
13643 module_cmds_CXX \
13644 module_expsym_cmds_CXX \
13645 lt_cv_prog_compiler_c_o_CXX \
13646 exclude_expsyms_CXX \
13647 include_expsyms_CXX; do
13648
13649 case $var in
13650 old_archive_cmds_CXX | \
13651 old_archive_from_new_cmds_CXX | \
13652 archive_cmds_CXX | \
13653 archive_expsym_cmds_CXX | \
13654 module_cmds_CXX | \
13655 module_expsym_cmds_CXX | \
13656 old_archive_from_expsyms_cmds_CXX | \
13657 export_symbols_cmds_CXX | \
13658 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13659 postinstall_cmds | postuninstall_cmds | \
13660 old_postinstall_cmds | old_postuninstall_cmds | \
13661 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13662 # Double-quote double-evaled strings.
13663 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13664 ;;
13665 *)
13666 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13667 ;;
13668 esac
13669 done
13670
13671 case $lt_echo in
13672 *'\$0 --fallback-echo"')
13673 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13674 ;;
13675 esac
13676
13677 cfgfile="$ofile"
13678
13679 cat <<__EOF__ >> "$cfgfile"
13680 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13681
13682 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13683
13684 # Shell to use when invoking shell scripts.
13685 SHELL=$lt_SHELL
13686
13687 # Whether or not to build shared libraries.
13688 build_libtool_libs=$enable_shared
13689
13690 # Whether or not to build static libraries.
13691 build_old_libs=$enable_static
13692
13693 # Whether or not to add -lc for building shared libraries.
13694 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13695
13696 # Whether or not to disallow shared libs when runtime libs are static
13697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13698
13699 # Whether or not to optimize for fast installation.
13700 fast_install=$enable_fast_install
13701
13702 # The host system.
13703 host_alias=$host_alias
13704 host=$host
13705 host_os=$host_os
13706
13707 # The build system.
13708 build_alias=$build_alias
13709 build=$build
13710 build_os=$build_os
13711
13712 # An echo program that does not interpret backslashes.
13713 echo=$lt_echo
13714
13715 # The archiver.
13716 AR=$lt_AR
13717 AR_FLAGS=$lt_AR_FLAGS
13718
13719 # A C compiler.
13720 LTCC=$lt_LTCC
13721
13722 # LTCC compiler flags.
13723 LTCFLAGS=$lt_LTCFLAGS
13724
13725 # A language-specific compiler.
13726 CC=$lt_compiler_CXX
13727
13728 # Is the compiler the GNU C compiler?
13729 with_gcc=$GCC_CXX
13730
13731 # An ERE matcher.
13732 EGREP=$lt_EGREP
13733
13734 # The linker used to build libraries.
13735 LD=$lt_LD_CXX
13736
13737 # Whether we need hard or soft links.
13738 LN_S=$lt_LN_S
13739
13740 # A BSD-compatible nm program.
13741 NM=$lt_NM
13742
13743 # A symbol stripping program
13744 STRIP=$lt_STRIP
13745
13746 # Used to examine libraries when file_magic_cmd begins "file"
13747 MAGIC_CMD=$MAGIC_CMD
13748
13749 # Used on cygwin: DLL creation program.
13750 DLLTOOL="$DLLTOOL"
13751
13752 # Used on cygwin: object dumper.
13753 OBJDUMP="$OBJDUMP"
13754
13755 # Used on cygwin: assembler.
13756 AS="$AS"
13757
13758 # The name of the directory that contains temporary libtool files.
13759 objdir=$objdir
13760
13761 # How to create reloadable object files.
13762 reload_flag=$lt_reload_flag
13763 reload_cmds=$lt_reload_cmds
13764
13765 # How to pass a linker flag through the compiler.
13766 wl=$lt_lt_prog_compiler_wl_CXX
13767
13768 # Object file suffix (normally "o").
13769 objext="$ac_objext"
13770
13771 # Old archive suffix (normally "a").
13772 libext="$libext"
13773
13774 # Shared library suffix (normally ".so").
13775 shrext_cmds='$shrext_cmds'
13776
13777 # Executable file suffix (normally "").
13778 exeext="$exeext"
13779
13780 # Additional compiler flags for building library objects.
13781 pic_flag=$lt_lt_prog_compiler_pic_CXX
13782 pic_mode=$pic_mode
13783
13784 # What is the maximum length of a command?
13785 max_cmd_len=$lt_cv_sys_max_cmd_len
13786
13787 # Does compiler simultaneously support -c and -o options?
13788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13789
13790 # Must we lock files when doing compilation?
13791 need_locks=$lt_need_locks
13792
13793 # Do we need the lib prefix for modules?
13794 need_lib_prefix=$need_lib_prefix
13795
13796 # Do we need a version for libraries?
13797 need_version=$need_version
13798
13799 # Whether dlopen is supported.
13800 dlopen_support=$enable_dlopen
13801
13802 # Whether dlopen of programs is supported.
13803 dlopen_self=$enable_dlopen_self
13804
13805 # Whether dlopen of statically linked programs is supported.
13806 dlopen_self_static=$enable_dlopen_self_static
13807
13808 # Compiler flag to prevent dynamic linking.
13809 link_static_flag=$lt_lt_prog_compiler_static_CXX
13810
13811 # Compiler flag to turn off builtin functions.
13812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13813
13814 # Compiler flag to allow reflexive dlopens.
13815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13816
13817 # Compiler flag to generate shared objects directly from archives.
13818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13819
13820 # Compiler flag to generate thread-safe objects.
13821 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13822
13823 # Library versioning type.
13824 version_type=$version_type
13825
13826 # Format of library name prefix.
13827 libname_spec=$lt_libname_spec
13828
13829 # List of archive names. First name is the real one, the rest are links.
13830 # The last name is the one that the linker finds with -lNAME.
13831 library_names_spec=$lt_library_names_spec
13832
13833 # The coded name of the library, if different from the real name.
13834 soname_spec=$lt_soname_spec
13835
13836 # Commands used to build and install an old-style archive.
13837 RANLIB=$lt_RANLIB
13838 old_archive_cmds=$lt_old_archive_cmds_CXX
13839 old_postinstall_cmds=$lt_old_postinstall_cmds
13840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13841
13842 # Create an old-style archive from a shared archive.
13843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13844
13845 # Create a temporary old-style archive to link instead of a shared archive.
13846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13847
13848 # Commands used to build and install a shared archive.
13849 archive_cmds=$lt_archive_cmds_CXX
13850 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13851 postinstall_cmds=$lt_postinstall_cmds
13852 postuninstall_cmds=$lt_postuninstall_cmds
13853
13854 # Commands used to build a loadable module (assumed same as above if empty)
13855 module_cmds=$lt_module_cmds_CXX
13856 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13857
13858 # Commands to strip libraries.
13859 old_striplib=$lt_old_striplib
13860 striplib=$lt_striplib
13861
13862 # Dependencies to place before the objects being linked to create a
13863 # shared library.
13864 predep_objects=$lt_predep_objects_CXX
13865
13866 # Dependencies to place after the objects being linked to create a
13867 # shared library.
13868 postdep_objects=$lt_postdep_objects_CXX
13869
13870 # Dependencies to place before the objects being linked to create a
13871 # shared library.
13872 predeps=$lt_predeps_CXX
13873
13874 # Dependencies to place after the objects being linked to create a
13875 # shared library.
13876 postdeps=$lt_postdeps_CXX
13877
13878 # The library search path used internally by the compiler when linking
13879 # a shared library.
13880 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13881
13882 # Method to check whether dependent libraries are shared objects.
13883 deplibs_check_method=$lt_deplibs_check_method
13884
13885 # Command to use when deplibs_check_method == file_magic.
13886 file_magic_cmd=$lt_file_magic_cmd
13887
13888 # Flag that allows shared libraries with undefined symbols to be built.
13889 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13890
13891 # Flag that forces no undefined symbols.
13892 no_undefined_flag=$lt_no_undefined_flag_CXX
13893
13894 # Commands used to finish a libtool library installation in a directory.
13895 finish_cmds=$lt_finish_cmds
13896
13897 # Same as above, but a single script fragment to be evaled but not shown.
13898 finish_eval=$lt_finish_eval
13899
13900 # Take the output of nm and produce a listing of raw symbols and C names.
13901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13902
13903 # Transform the output of nm in a proper C declaration
13904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13905
13906 # Transform the output of nm in a C name address pair
13907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13908
13909 # This is the shared library runtime path variable.
13910 runpath_var=$runpath_var
13911
13912 # This is the shared library path variable.
13913 shlibpath_var=$shlibpath_var
13914
13915 # Is shlibpath searched before the hard-coded library search path?
13916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13917
13918 # How to hardcode a shared library path into an executable.
13919 hardcode_action=$hardcode_action_CXX
13920
13921 # Whether we should hardcode library paths into libraries.
13922 hardcode_into_libs=$hardcode_into_libs
13923
13924 # Flag to hardcode \$libdir into a binary during linking.
13925 # This must work even if \$libdir does not exist.
13926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13927
13928 # If ld is used when linking, flag to hardcode \$libdir into
13929 # a binary during linking. This must work even if \$libdir does
13930 # not exist.
13931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13932
13933 # Whether we need a single -rpath flag with a separated argument.
13934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13935
13936 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13937 # resulting binary.
13938 hardcode_direct=$hardcode_direct_CXX
13939
13940 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13941 # resulting binary.
13942 hardcode_minus_L=$hardcode_minus_L_CXX
13943
13944 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13945 # the resulting binary.
13946 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13947
13948 # Set to yes if building a shared library automatically hardcodes DIR into the library
13949 # and all subsequent libraries and executables linked against it.
13950 hardcode_automatic=$hardcode_automatic_CXX
13951
13952 # Variables whose values should be saved in libtool wrapper scripts and
13953 # restored at relink time.
13954 variables_saved_for_relink="$variables_saved_for_relink"
13955
13956 # Whether libtool must link a program against all its dependency libraries.
13957 link_all_deplibs=$link_all_deplibs_CXX
13958
13959 # Compile-time system search path for libraries
13960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13961
13962 # Run-time system search path for libraries
13963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13964
13965 # Fix the shell variable \$srcfile for the compiler.
13966 fix_srcfile_path="$fix_srcfile_path_CXX"
13967
13968 # Set to yes if exported symbols are required.
13969 always_export_symbols=$always_export_symbols_CXX
13970
13971 # The commands to list exported symbols.
13972 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13973
13974 # The commands to extract the exported symbol list from a shared archive.
13975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13976
13977 # Symbols that should not be listed in the preloaded symbols.
13978 exclude_expsyms=$lt_exclude_expsyms_CXX
13979
13980 # Symbols that must always be exported.
13981 include_expsyms=$lt_include_expsyms_CXX
13982
13983 # ### END LIBTOOL TAG CONFIG: $tagname
13984
13985 __EOF__
13986
13987
13988 else
13989 # If there is no Makefile yet, we rely on a make rule to execute
13990 # `config.status --recheck' to rerun these tests and create the
13991 # libtool script then.
13992 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13993 if test -f "$ltmain_in"; then
13994 test -f Makefile && make "$ltmain"
13995 fi
13996 fi
13997
13998
13999 ac_ext=c
14000 ac_cpp='$CPP $CPPFLAGS'
14001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14004
14005 CC=$lt_save_CC
14006 LDCXX=$LD
14007 LD=$lt_save_LD
14008 GCC=$lt_save_GCC
14009 with_gnu_ldcxx=$with_gnu_ld
14010 with_gnu_ld=$lt_save_with_gnu_ld
14011 lt_cv_path_LDCXX=$lt_cv_path_LD
14012 lt_cv_path_LD=$lt_save_path_LD
14013 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14014 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14015
14016 else
14017 tagname=""
14018 fi
14019 ;;
14020
14021 F77)
14022 if test -n "$F77" && test "X$F77" != "Xno"; then
14023
14024 ac_ext=f
14025 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14026 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14027 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14028
14029
14030 archive_cmds_need_lc_F77=no
14031 allow_undefined_flag_F77=
14032 always_export_symbols_F77=no
14033 archive_expsym_cmds_F77=
14034 export_dynamic_flag_spec_F77=
14035 hardcode_direct_F77=no
14036 hardcode_libdir_flag_spec_F77=
14037 hardcode_libdir_flag_spec_ld_F77=
14038 hardcode_libdir_separator_F77=
14039 hardcode_minus_L_F77=no
14040 hardcode_automatic_F77=no
14041 module_cmds_F77=
14042 module_expsym_cmds_F77=
14043 link_all_deplibs_F77=unknown
14044 old_archive_cmds_F77=$old_archive_cmds
14045 no_undefined_flag_F77=
14046 whole_archive_flag_spec_F77=
14047 enable_shared_with_static_runtimes_F77=no
14048
14049 # Source file extension for f77 test sources.
14050 ac_ext=f
14051
14052 # Object file extension for compiled f77 test sources.
14053 objext=o
14054 objext_F77=$objext
14055
14056 # Code to be used in simple compile tests
14057 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14058
14059 # Code to be used in simple link tests
14060 lt_simple_link_test_code=" program t\n end\n"
14061
14062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14063
14064 # If no C compiler was specified, use CC.
14065 LTCC=${LTCC-"$CC"}
14066
14067 # If no C compiler flags were specified, use CFLAGS.
14068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14069
14070 # Allow CC to be a program name with arguments.
14071 compiler=$CC
14072
14073
14074 # save warnings/boilerplate of simple test code
14075 ac_outfile=conftest.$ac_objext
14076 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14078 _lt_compiler_boilerplate=`cat conftest.err`
14079 $rm conftest*
14080
14081 ac_outfile=conftest.$ac_objext
14082 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14084 _lt_linker_boilerplate=`cat conftest.err`
14085 $rm conftest*
14086
14087
14088 # Allow CC to be a program name with arguments.
14089 lt_save_CC="$CC"
14090 CC=${F77-"f77"}
14091 compiler=$CC
14092 compiler_F77=$CC
14093 for cc_temp in $compiler""; do
14094 case $cc_temp in
14095 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14096 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14097 \-*) ;;
14098 *) break;;
14099 esac
14100 done
14101 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14102
14103
14104 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14105 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14106 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14107 echo "${ECHO_T}$can_build_shared" >&6; }
14108
14109 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14110 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14111 test "$can_build_shared" = "no" && enable_shared=no
14112
14113 # On AIX, shared libraries and static libraries use the same namespace, and
14114 # are all built from PIC.
14115 case $host_os in
14116 aix3*)
14117 test "$enable_shared" = yes && enable_static=no
14118 if test -n "$RANLIB"; then
14119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14120 postinstall_cmds='$RANLIB $lib'
14121 fi
14122 ;;
14123 aix4* | aix5*)
14124 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14125 test "$enable_shared" = yes && enable_static=no
14126 fi
14127 ;;
14128 esac
14129 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14130 echo "${ECHO_T}$enable_shared" >&6; }
14131
14132 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14133 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14134 # Make sure either enable_shared or enable_static is yes.
14135 test "$enable_shared" = yes || enable_static=yes
14136 { echo "$as_me:$LINENO: result: $enable_static" >&5
14137 echo "${ECHO_T}$enable_static" >&6; }
14138
14139 GCC_F77="$G77"
14140 LD_F77="$LD"
14141
14142 lt_prog_compiler_wl_F77=
14143 lt_prog_compiler_pic_F77=
14144 lt_prog_compiler_static_F77=
14145
14146 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14148
14149 if test "$GCC" = yes; then
14150 lt_prog_compiler_wl_F77='-Wl,'
14151 lt_prog_compiler_static_F77='-static'
14152
14153 case $host_os in
14154 aix*)
14155 # All AIX code is PIC.
14156 if test "$host_cpu" = ia64; then
14157 # AIX 5 now supports IA64 processor
14158 lt_prog_compiler_static_F77='-Bstatic'
14159 fi
14160 ;;
14161
14162 amigaos*)
14163 # FIXME: we need at least 68020 code to build shared libraries, but
14164 # adding the `-m68020' flag to GCC prevents building anything better,
14165 # like `-m68040'.
14166 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14167 ;;
14168
14169 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14170 # PIC is the default for these OSes.
14171 ;;
14172
14173 mingw* | pw32* | os2*)
14174 # This hack is so that the source file can tell whether it is being
14175 # built for inclusion in a dll (and should export symbols for example).
14176 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14177 ;;
14178
14179 darwin* | rhapsody*)
14180 # PIC is the default on this platform
14181 # Common symbols not allowed in MH_DYLIB files
14182 lt_prog_compiler_pic_F77='-fno-common'
14183 ;;
14184
14185 interix3*)
14186 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14187 # Instead, we relocate shared libraries at runtime.
14188 ;;
14189
14190 msdosdjgpp*)
14191 # Just because we use GCC doesn't mean we suddenly get shared libraries
14192 # on systems that don't support them.
14193 lt_prog_compiler_can_build_shared_F77=no
14194 enable_shared=no
14195 ;;
14196
14197 sysv4*MP*)
14198 if test -d /usr/nec; then
14199 lt_prog_compiler_pic_F77=-Kconform_pic
14200 fi
14201 ;;
14202
14203 hpux*)
14204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14205 # not for PA HP-UX.
14206 case $host_cpu in
14207 hppa*64*|ia64*)
14208 # +Z the default
14209 ;;
14210 *)
14211 lt_prog_compiler_pic_F77='-fPIC'
14212 ;;
14213 esac
14214 ;;
14215
14216 *)
14217 lt_prog_compiler_pic_F77='-fPIC'
14218 ;;
14219 esac
14220 else
14221 # PORTME Check for flag to pass linker flags through the system compiler.
14222 case $host_os in
14223 aix*)
14224 lt_prog_compiler_wl_F77='-Wl,'
14225 if test "$host_cpu" = ia64; then
14226 # AIX 5 now supports IA64 processor
14227 lt_prog_compiler_static_F77='-Bstatic'
14228 else
14229 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14230 fi
14231 ;;
14232 darwin*)
14233 # PIC is the default on this platform
14234 # Common symbols not allowed in MH_DYLIB files
14235 case $cc_basename in
14236 xlc*)
14237 lt_prog_compiler_pic_F77='-qnocommon'
14238 lt_prog_compiler_wl_F77='-Wl,'
14239 ;;
14240 esac
14241 ;;
14242
14243 mingw* | pw32* | os2*)
14244 # This hack is so that the source file can tell whether it is being
14245 # built for inclusion in a dll (and should export symbols for example).
14246 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14247 ;;
14248
14249 hpux9* | hpux10* | hpux11*)
14250 lt_prog_compiler_wl_F77='-Wl,'
14251 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14252 # not for PA HP-UX.
14253 case $host_cpu in
14254 hppa*64*|ia64*)
14255 # +Z the default
14256 ;;
14257 *)
14258 lt_prog_compiler_pic_F77='+Z'
14259 ;;
14260 esac
14261 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14262 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14263 ;;
14264
14265 irix5* | irix6* | nonstopux*)
14266 lt_prog_compiler_wl_F77='-Wl,'
14267 # PIC (with -KPIC) is the default.
14268 lt_prog_compiler_static_F77='-non_shared'
14269 ;;
14270
14271 newsos6)
14272 lt_prog_compiler_pic_F77='-KPIC'
14273 lt_prog_compiler_static_F77='-Bstatic'
14274 ;;
14275
14276 linux*)
14277 case $cc_basename in
14278 icc* | ecc*)
14279 lt_prog_compiler_wl_F77='-Wl,'
14280 lt_prog_compiler_pic_F77='-KPIC'
14281 lt_prog_compiler_static_F77='-static'
14282 ;;
14283 pgcc* | pgf77* | pgf90* | pgf95*)
14284 # Portland Group compilers (*not* the Pentium gcc compiler,
14285 # which looks to be a dead project)
14286 lt_prog_compiler_wl_F77='-Wl,'
14287 lt_prog_compiler_pic_F77='-fpic'
14288 lt_prog_compiler_static_F77='-Bstatic'
14289 ;;
14290 ccc*)
14291 lt_prog_compiler_wl_F77='-Wl,'
14292 # All Alpha code is PIC.
14293 lt_prog_compiler_static_F77='-non_shared'
14294 ;;
14295 esac
14296 ;;
14297
14298 osf3* | osf4* | osf5*)
14299 lt_prog_compiler_wl_F77='-Wl,'
14300 # All OSF/1 code is PIC.
14301 lt_prog_compiler_static_F77='-non_shared'
14302 ;;
14303
14304 solaris*)
14305 lt_prog_compiler_pic_F77='-KPIC'
14306 lt_prog_compiler_static_F77='-Bstatic'
14307 case $cc_basename in
14308 f77* | f90* | f95*)
14309 lt_prog_compiler_wl_F77='-Qoption ld ';;
14310 *)
14311 lt_prog_compiler_wl_F77='-Wl,';;
14312 esac
14313 ;;
14314
14315 sunos4*)
14316 lt_prog_compiler_wl_F77='-Qoption ld '
14317 lt_prog_compiler_pic_F77='-PIC'
14318 lt_prog_compiler_static_F77='-Bstatic'
14319 ;;
14320
14321 sysv4 | sysv4.2uw2* | sysv4.3*)
14322 lt_prog_compiler_wl_F77='-Wl,'
14323 lt_prog_compiler_pic_F77='-KPIC'
14324 lt_prog_compiler_static_F77='-Bstatic'
14325 ;;
14326
14327 sysv4*MP*)
14328 if test -d /usr/nec ;then
14329 lt_prog_compiler_pic_F77='-Kconform_pic'
14330 lt_prog_compiler_static_F77='-Bstatic'
14331 fi
14332 ;;
14333
14334 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14335 lt_prog_compiler_wl_F77='-Wl,'
14336 lt_prog_compiler_pic_F77='-KPIC'
14337 lt_prog_compiler_static_F77='-Bstatic'
14338 ;;
14339
14340 unicos*)
14341 lt_prog_compiler_wl_F77='-Wl,'
14342 lt_prog_compiler_can_build_shared_F77=no
14343 ;;
14344
14345 uts4*)
14346 lt_prog_compiler_pic_F77='-pic'
14347 lt_prog_compiler_static_F77='-Bstatic'
14348 ;;
14349
14350 *)
14351 lt_prog_compiler_can_build_shared_F77=no
14352 ;;
14353 esac
14354 fi
14355
14356 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14357 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14358
14359 #
14360 # Check to make sure the PIC flag actually works.
14361 #
14362 if test -n "$lt_prog_compiler_pic_F77"; then
14363
14364 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14365 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14366 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369 lt_prog_compiler_pic_works_F77=no
14370 ac_outfile=conftest.$ac_objext
14371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14372 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14373 # Insert the option either (1) after the last *FLAGS variable, or
14374 # (2) before a word containing "conftest.", or (3) at the end.
14375 # Note that $ac_compile itself does not contain backslashes and begins
14376 # with a dollar sign (not a hyphen), so the echo should work correctly.
14377 # The option is referenced via a variable to avoid confusing sed.
14378 lt_compile=`echo "$ac_compile" | $SED \
14379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14381 -e 's:$: $lt_compiler_flag:'`
14382 (eval echo "\"\$as_me:14382: $lt_compile\"" >&5)
14383 (eval "$lt_compile" 2>conftest.err)
14384 ac_status=$?
14385 cat conftest.err >&5
14386 echo "$as_me:14386: \$? = $ac_status" >&5
14387 if (exit $ac_status) && test -s "$ac_outfile"; then
14388 # The compiler can only warn and ignore the option if not recognized
14389 # So say no if there are warnings other than the usual output.
14390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14393 lt_prog_compiler_pic_works_F77=yes
14394 fi
14395 fi
14396 $rm conftest*
14397
14398 fi
14399 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14400 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14401
14402 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14403 case $lt_prog_compiler_pic_F77 in
14404 "" | " "*) ;;
14405 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14406 esac
14407 else
14408 lt_prog_compiler_pic_F77=
14409 lt_prog_compiler_can_build_shared_F77=no
14410 fi
14411
14412 fi
14413 case $host_os in
14414 # For platforms which do not support PIC, -DPIC is meaningless:
14415 *djgpp*)
14416 lt_prog_compiler_pic_F77=
14417 ;;
14418 *)
14419 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14420 ;;
14421 esac
14422
14423 #
14424 # Check to make sure the static flag actually works.
14425 #
14426 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14427 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14428 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14429 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 else
14432 lt_prog_compiler_static_works_F77=no
14433 save_LDFLAGS="$LDFLAGS"
14434 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14435 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14436 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14437 # The linker can only warn and ignore the option if not recognized
14438 # So say no if there are warnings
14439 if test -s conftest.err; then
14440 # Append any errors to the config.log.
14441 cat conftest.err 1>&5
14442 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14444 if diff conftest.exp conftest.er2 >/dev/null; then
14445 lt_prog_compiler_static_works_F77=yes
14446 fi
14447 else
14448 lt_prog_compiler_static_works_F77=yes
14449 fi
14450 fi
14451 $rm conftest*
14452 LDFLAGS="$save_LDFLAGS"
14453
14454 fi
14455 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14456 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14457
14458 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14459 :
14460 else
14461 lt_prog_compiler_static_F77=
14462 fi
14463
14464
14465 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14466 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14467 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14468 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470 lt_cv_prog_compiler_c_o_F77=no
14471 $rm -r conftest 2>/dev/null
14472 mkdir conftest
14473 cd conftest
14474 mkdir out
14475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14476
14477 lt_compiler_flag="-o out/conftest2.$ac_objext"
14478 # Insert the option either (1) after the last *FLAGS variable, or
14479 # (2) before a word containing "conftest.", or (3) at the end.
14480 # Note that $ac_compile itself does not contain backslashes and begins
14481 # with a dollar sign (not a hyphen), so the echo should work correctly.
14482 lt_compile=`echo "$ac_compile" | $SED \
14483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14485 -e 's:$: $lt_compiler_flag:'`
14486 (eval echo "\"\$as_me:14486: $lt_compile\"" >&5)
14487 (eval "$lt_compile" 2>out/conftest.err)
14488 ac_status=$?
14489 cat out/conftest.err >&5
14490 echo "$as_me:14490: \$? = $ac_status" >&5
14491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14492 then
14493 # The compiler can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14498 lt_cv_prog_compiler_c_o_F77=yes
14499 fi
14500 fi
14501 chmod u+w . 2>&5
14502 $rm conftest*
14503 # SGI C++ compiler will create directory out/ii_files/ for
14504 # template instantiation
14505 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14506 $rm out/* && rmdir out
14507 cd ..
14508 rmdir conftest
14509 $rm conftest*
14510
14511 fi
14512 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14513 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14514
14515
14516 hard_links="nottested"
14517 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14518 # do not overwrite the value of need_locks provided by the user
14519 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14520 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14521 hard_links=yes
14522 $rm conftest*
14523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14524 touch conftest.a
14525 ln conftest.a conftest.b 2>&5 || hard_links=no
14526 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14527 { echo "$as_me:$LINENO: result: $hard_links" >&5
14528 echo "${ECHO_T}$hard_links" >&6; }
14529 if test "$hard_links" = no; then
14530 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14531 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14532 need_locks=warn
14533 fi
14534 else
14535 need_locks=no
14536 fi
14537
14538 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14539 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14540
14541 runpath_var=
14542 allow_undefined_flag_F77=
14543 enable_shared_with_static_runtimes_F77=no
14544 archive_cmds_F77=
14545 archive_expsym_cmds_F77=
14546 old_archive_From_new_cmds_F77=
14547 old_archive_from_expsyms_cmds_F77=
14548 export_dynamic_flag_spec_F77=
14549 whole_archive_flag_spec_F77=
14550 thread_safe_flag_spec_F77=
14551 hardcode_libdir_flag_spec_F77=
14552 hardcode_libdir_flag_spec_ld_F77=
14553 hardcode_libdir_separator_F77=
14554 hardcode_direct_F77=no
14555 hardcode_minus_L_F77=no
14556 hardcode_shlibpath_var_F77=unsupported
14557 link_all_deplibs_F77=unknown
14558 hardcode_automatic_F77=no
14559 module_cmds_F77=
14560 module_expsym_cmds_F77=
14561 always_export_symbols_F77=no
14562 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14563 # include_expsyms should be a list of space-separated symbols to be *always*
14564 # included in the symbol list
14565 include_expsyms_F77=
14566 # exclude_expsyms can be an extended regexp of symbols to exclude
14567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14569 # as well as any symbol that contains `d'.
14570 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14572 # platforms (ab)use it in PIC code, but their linkers get confused if
14573 # the symbol is explicitly referenced. Since portable code cannot
14574 # rely on this symbol name, it's probably fine to never include it in
14575 # preloaded symbol tables.
14576 extract_expsyms_cmds=
14577 # Just being paranoid about ensuring that cc_basename is set.
14578 for cc_temp in $compiler""; do
14579 case $cc_temp in
14580 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14581 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14582 \-*) ;;
14583 *) break;;
14584 esac
14585 done
14586 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14587
14588 case $host_os in
14589 cygwin* | mingw* | pw32*)
14590 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14591 # When not using gcc, we currently assume that we are using
14592 # Microsoft Visual C++.
14593 if test "$GCC" != yes; then
14594 with_gnu_ld=no
14595 fi
14596 ;;
14597 interix*)
14598 # we just hope/assume this is gcc and not c89 (= MSVC++)
14599 with_gnu_ld=yes
14600 ;;
14601 openbsd*)
14602 with_gnu_ld=no
14603 ;;
14604 esac
14605
14606 ld_shlibs_F77=yes
14607 if test "$with_gnu_ld" = yes; then
14608 # If archive_cmds runs LD, not CC, wlarc should be empty
14609 wlarc='${wl}'
14610
14611 # Set some defaults for GNU ld with shared library support. These
14612 # are reset later if shared libraries are not supported. Putting them
14613 # here allows them to be overridden if necessary.
14614 runpath_var=LD_RUN_PATH
14615 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14616 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14617 # ancient GNU ld didn't support --whole-archive et. al.
14618 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14619 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14620 else
14621 whole_archive_flag_spec_F77=
14622 fi
14623 supports_anon_versioning=no
14624 case `$LD -v 2>/dev/null` in
14625 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14626 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14627 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14628 *\ 2.11.*) ;; # other 2.11 versions
14629 *) supports_anon_versioning=yes ;;
14630 esac
14631
14632 # See if GNU ld supports shared libraries.
14633 case $host_os in
14634 aix3* | aix4* | aix5*)
14635 # On AIX/PPC, the GNU linker is very broken
14636 if test "$host_cpu" != ia64; then
14637 ld_shlibs_F77=no
14638 cat <<EOF 1>&2
14639
14640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14641 *** to be unable to reliably create shared libraries on AIX.
14642 *** Therefore, libtool is disabling shared libraries support. If you
14643 *** really care for shared libraries, you may want to modify your PATH
14644 *** so that a non-GNU linker is found, and then restart.
14645
14646 EOF
14647 fi
14648 ;;
14649
14650 amigaos*)
14651 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14652 hardcode_libdir_flag_spec_F77='-L$libdir'
14653 hardcode_minus_L_F77=yes
14654
14655 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14656 # that the semantics of dynamic libraries on AmigaOS, at least up
14657 # to version 4, is to share data among multiple programs linked
14658 # with the same dynamic library. Since this doesn't match the
14659 # behavior of shared libraries on other platforms, we can't use
14660 # them.
14661 ld_shlibs_F77=no
14662 ;;
14663
14664 beos*)
14665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14666 allow_undefined_flag_F77=unsupported
14667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14668 # support --undefined. This deserves some investigation. FIXME
14669 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14670 else
14671 ld_shlibs_F77=no
14672 fi
14673 ;;
14674
14675 cygwin* | mingw* | pw32*)
14676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14677 # as there is no search path for DLLs.
14678 hardcode_libdir_flag_spec_F77='-L$libdir'
14679 allow_undefined_flag_F77=unsupported
14680 always_export_symbols_F77=no
14681 enable_shared_with_static_runtimes_F77=yes
14682 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14683
14684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14685 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14686 # If the export-symbols file already is a .def file (1st line
14687 # is EXPORTS), use it as is; otherwise, prepend...
14688 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14689 cp $export_symbols $output_objdir/$soname.def;
14690 else
14691 echo EXPORTS > $output_objdir/$soname.def;
14692 cat $export_symbols >> $output_objdir/$soname.def;
14693 fi~
14694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14695 else
14696 ld_shlibs_F77=no
14697 fi
14698 ;;
14699
14700 interix3*)
14701 hardcode_direct_F77=no
14702 hardcode_shlibpath_var_F77=no
14703 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14704 export_dynamic_flag_spec_F77='${wl}-E'
14705 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14706 # Instead, shared libraries are loaded at an image base (0x10000000 by
14707 # default) and relocated if they conflict, which is a slow very memory
14708 # consuming and fragmenting process. To avoid this, we pick a random,
14709 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14710 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14711 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14712 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14713 ;;
14714
14715 linux*)
14716 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14717 tmp_addflag=
14718 case $cc_basename,$host_cpu in
14719 pgcc*) # Portland Group C compiler
14720 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14721 tmp_addflag=' $pic_flag'
14722 ;;
14723 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14724 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14725 tmp_addflag=' $pic_flag -Mnomain' ;;
14726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14727 tmp_addflag=' -i_dynamic' ;;
14728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14729 tmp_addflag=' -i_dynamic -nofor_main' ;;
14730 ifc* | ifort*) # Intel Fortran compiler
14731 tmp_addflag=' -nofor_main' ;;
14732 esac
14733 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14734
14735 if test $supports_anon_versioning = yes; then
14736 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14738 $echo "local: *; };" >> $output_objdir/$libname.ver~
14739 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14740 fi
14741 else
14742 ld_shlibs_F77=no
14743 fi
14744 ;;
14745
14746 netbsd*)
14747 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14748 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14749 wlarc=
14750 else
14751 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14752 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14753 fi
14754 ;;
14755
14756 solaris*)
14757 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14758 ld_shlibs_F77=no
14759 cat <<EOF 1>&2
14760
14761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14762 *** create shared libraries on Solaris systems. Therefore, libtool
14763 *** is disabling shared libraries support. We urge you to upgrade GNU
14764 *** binutils to release 2.9.1 or newer. Another option is to modify
14765 *** your PATH or compiler configuration so that the native linker is
14766 *** used, and then restart.
14767
14768 EOF
14769 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14770 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14771 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14772 else
14773 ld_shlibs_F77=no
14774 fi
14775 ;;
14776
14777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14778 case `$LD -v 2>&1` in
14779 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14780 ld_shlibs_F77=no
14781 cat <<_LT_EOF 1>&2
14782
14783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14784 *** reliably create shared libraries on SCO systems. Therefore, libtool
14785 *** is disabling shared libraries support. We urge you to upgrade GNU
14786 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14787 *** your PATH or compiler configuration so that the native linker is
14788 *** used, and then restart.
14789
14790 _LT_EOF
14791 ;;
14792 *)
14793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14794 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14795 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14796 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14797 else
14798 ld_shlibs_F77=no
14799 fi
14800 ;;
14801 esac
14802 ;;
14803
14804 sunos4*)
14805 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14806 wlarc=
14807 hardcode_direct_F77=yes
14808 hardcode_shlibpath_var_F77=no
14809 ;;
14810
14811 *)
14812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14813 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14814 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14815 else
14816 ld_shlibs_F77=no
14817 fi
14818 ;;
14819 esac
14820
14821 if test "$ld_shlibs_F77" = no; then
14822 runpath_var=
14823 hardcode_libdir_flag_spec_F77=
14824 export_dynamic_flag_spec_F77=
14825 whole_archive_flag_spec_F77=
14826 fi
14827 else
14828 # PORTME fill in a description of your system's linker (not GNU ld)
14829 case $host_os in
14830 aix3*)
14831 allow_undefined_flag_F77=unsupported
14832 always_export_symbols_F77=yes
14833 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'
14834 # Note: this linker hardcodes the directories in LIBPATH if there
14835 # are no directories specified by -L.
14836 hardcode_minus_L_F77=yes
14837 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14838 # Neither direct hardcoding nor static linking is supported with a
14839 # broken collect2.
14840 hardcode_direct_F77=unsupported
14841 fi
14842 ;;
14843
14844 aix4* | aix5*)
14845 if test "$host_cpu" = ia64; then
14846 # On IA64, the linker does run time linking by default, so we don't
14847 # have to do anything special.
14848 aix_use_runtimelinking=no
14849 exp_sym_flag='-Bexport'
14850 no_entry_flag=""
14851 else
14852 # If we're using GNU nm, then we don't want the "-C" option.
14853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14854 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14855 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'
14856 else
14857 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14858 fi
14859 aix_use_runtimelinking=no
14860
14861 # Test if we are trying to use run time linking or normal
14862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14863 # need to do runtime linking.
14864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14865 for ld_flag in $LDFLAGS; do
14866 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14867 aix_use_runtimelinking=yes
14868 break
14869 fi
14870 done
14871 ;;
14872 esac
14873
14874 exp_sym_flag='-bexport'
14875 no_entry_flag='-bnoentry'
14876 fi
14877
14878 # When large executables or shared objects are built, AIX ld can
14879 # have problems creating the table of contents. If linking a library
14880 # or program results in "error TOC overflow" add -mminimal-toc to
14881 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14882 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14883
14884 archive_cmds_F77=''
14885 hardcode_direct_F77=yes
14886 hardcode_libdir_separator_F77=':'
14887 link_all_deplibs_F77=yes
14888
14889 if test "$GCC" = yes; then
14890 case $host_os in aix4.[012]|aix4.[012].*)
14891 # We only want to do this on AIX 4.2 and lower, the check
14892 # below for broken collect2 doesn't work under 4.3+
14893 collect2name=`${CC} -print-prog-name=collect2`
14894 if test -f "$collect2name" && \
14895 strings "$collect2name" | grep resolve_lib_name >/dev/null
14896 then
14897 # We have reworked collect2
14898 hardcode_direct_F77=yes
14899 else
14900 # We have old collect2
14901 hardcode_direct_F77=unsupported
14902 # It fails to find uninstalled libraries when the uninstalled
14903 # path is not listed in the libpath. Setting hardcode_minus_L
14904 # to unsupported forces relinking
14905 hardcode_minus_L_F77=yes
14906 hardcode_libdir_flag_spec_F77='-L$libdir'
14907 hardcode_libdir_separator_F77=
14908 fi
14909 ;;
14910 esac
14911 shared_flag='-shared'
14912 if test "$aix_use_runtimelinking" = yes; then
14913 shared_flag="$shared_flag "'${wl}-G'
14914 fi
14915 else
14916 # not using gcc
14917 if test "$host_cpu" = ia64; then
14918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14919 # chokes on -Wl,-G. The following line is correct:
14920 shared_flag='-G'
14921 else
14922 if test "$aix_use_runtimelinking" = yes; then
14923 shared_flag='${wl}-G'
14924 else
14925 shared_flag='${wl}-bM:SRE'
14926 fi
14927 fi
14928 fi
14929
14930 # It seems that -bexpall does not export symbols beginning with
14931 # underscore (_), so it is better to generate a list of symbols to export.
14932 always_export_symbols_F77=yes
14933 if test "$aix_use_runtimelinking" = yes; then
14934 # Warning - without using the other runtime loading flags (-brtl),
14935 # -berok will link without error, but may produce a broken library.
14936 allow_undefined_flag_F77='-berok'
14937 # Determine the default libpath from the value encoded in an empty executable.
14938 cat >conftest.$ac_ext <<_ACEOF
14939 program main
14940
14941 end
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_link") 2>conftest.er1
14951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_f77_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext &&
14960 $as_test_x conftest$ac_exeext; then
14961
14962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14963 }'`
14964 # Check for a 64-bit object if we didn't find anything.
14965 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14966 }'`; fi
14967 else
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.$ac_ext >&5
14970
14971
14972 fi
14973
14974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14975 conftest$ac_exeext conftest.$ac_ext
14976 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14977
14978 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14979 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14980 else
14981 if test "$host_cpu" = ia64; then
14982 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14983 allow_undefined_flag_F77="-z nodefs"
14984 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14985 else
14986 # Determine the default libpath from the value encoded in an empty executable.
14987 cat >conftest.$ac_ext <<_ACEOF
14988 program main
14989
14990 end
14991 _ACEOF
14992 rm -f conftest.$ac_objext conftest$ac_exeext
14993 if { (ac_try="$ac_link"
14994 case "(($ac_try" in
14995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996 *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999 (eval "$ac_link") 2>conftest.er1
15000 ac_status=$?
15001 grep -v '^ *+' conftest.er1 >conftest.err
15002 rm -f conftest.er1
15003 cat conftest.err >&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } && {
15006 test -z "$ac_f77_werror_flag" ||
15007 test ! -s conftest.err
15008 } && test -s conftest$ac_exeext &&
15009 $as_test_x conftest$ac_exeext; then
15010
15011 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15012 }'`
15013 # Check for a 64-bit object if we didn't find anything.
15014 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15015 }'`; fi
15016 else
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15019
15020
15021 fi
15022
15023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024 conftest$ac_exeext conftest.$ac_ext
15025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15026
15027 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15028 # Warning - without using the other run time loading flags,
15029 # -berok will link without error, but may produce a broken library.
15030 no_undefined_flag_F77=' ${wl}-bernotok'
15031 allow_undefined_flag_F77=' ${wl}-berok'
15032 # Exported symbols can be pulled into shared objects from archives
15033 whole_archive_flag_spec_F77='$convenience'
15034 archive_cmds_need_lc_F77=yes
15035 # This is similar to how AIX traditionally builds its shared libraries.
15036 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15037 fi
15038 fi
15039 ;;
15040
15041 amigaos*)
15042 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15043 hardcode_libdir_flag_spec_F77='-L$libdir'
15044 hardcode_minus_L_F77=yes
15045 # see comment about different semantics on the GNU ld section
15046 ld_shlibs_F77=no
15047 ;;
15048
15049 bsdi[45]*)
15050 export_dynamic_flag_spec_F77=-rdynamic
15051 ;;
15052
15053 cygwin* | mingw* | pw32*)
15054 # When not using gcc, we currently assume that we are using
15055 # Microsoft Visual C++.
15056 # hardcode_libdir_flag_spec is actually meaningless, as there is
15057 # no search path for DLLs.
15058 hardcode_libdir_flag_spec_F77=' '
15059 allow_undefined_flag_F77=unsupported
15060 # Tell ltmain to make .lib files, not .a files.
15061 libext=lib
15062 # Tell ltmain to make .dll files, not .so files.
15063 shrext_cmds=".dll"
15064 # FIXME: Setting linknames here is a bad hack.
15065 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15066 # The linker will automatically build a .lib file if we build a DLL.
15067 old_archive_From_new_cmds_F77='true'
15068 # FIXME: Should let the user specify the lib program.
15069 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15070 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15071 enable_shared_with_static_runtimes_F77=yes
15072 ;;
15073
15074 darwin* | rhapsody*)
15075 case $host_os in
15076 rhapsody* | darwin1.[012])
15077 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15078 ;;
15079 *) # Darwin 1.3 on
15080 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15081 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15082 else
15083 case ${MACOSX_DEPLOYMENT_TARGET} in
15084 10.[012])
15085 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15086 ;;
15087 10.*)
15088 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15089 ;;
15090 esac
15091 fi
15092 ;;
15093 esac
15094 archive_cmds_need_lc_F77=no
15095 hardcode_direct_F77=no
15096 hardcode_automatic_F77=yes
15097 hardcode_shlibpath_var_F77=unsupported
15098 whole_archive_flag_spec_F77=''
15099 link_all_deplibs_F77=yes
15100 if test "$GCC" = yes ; then
15101 output_verbose_link_cmd='echo'
15102 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15103 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15105 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15106 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15107 else
15108 case $cc_basename in
15109 xlc*)
15110 output_verbose_link_cmd='echo'
15111 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15112 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15113 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15114 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15115 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15116 ;;
15117 *)
15118 ld_shlibs_F77=no
15119 ;;
15120 esac
15121 fi
15122 ;;
15123
15124 dgux*)
15125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15126 hardcode_libdir_flag_spec_F77='-L$libdir'
15127 hardcode_shlibpath_var_F77=no
15128 ;;
15129
15130 freebsd1*)
15131 ld_shlibs_F77=no
15132 ;;
15133
15134 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15135 # support. Future versions do this automatically, but an explicit c++rt0.o
15136 # does not break anything, and helps significantly (at the cost of a little
15137 # extra space).
15138 freebsd2.2*)
15139 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15140 hardcode_libdir_flag_spec_F77='-R$libdir'
15141 hardcode_direct_F77=yes
15142 hardcode_shlibpath_var_F77=no
15143 ;;
15144
15145 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15146 freebsd2*)
15147 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15148 hardcode_direct_F77=yes
15149 hardcode_minus_L_F77=yes
15150 hardcode_shlibpath_var_F77=no
15151 ;;
15152
15153 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15154 freebsd* | kfreebsd*-gnu | dragonfly*)
15155 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15156 hardcode_libdir_flag_spec_F77='-R$libdir'
15157 hardcode_direct_F77=yes
15158 hardcode_shlibpath_var_F77=no
15159 ;;
15160
15161 hpux9*)
15162 if test "$GCC" = yes; then
15163 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'
15164 else
15165 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15166 fi
15167 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15168 hardcode_libdir_separator_F77=:
15169 hardcode_direct_F77=yes
15170
15171 # hardcode_minus_L: Not really in the search PATH,
15172 # but as the default location of the library.
15173 hardcode_minus_L_F77=yes
15174 export_dynamic_flag_spec_F77='${wl}-E'
15175 ;;
15176
15177 hpux10*)
15178 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15179 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15180 else
15181 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15182 fi
15183 if test "$with_gnu_ld" = no; then
15184 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15185 hardcode_libdir_separator_F77=:
15186
15187 hardcode_direct_F77=yes
15188 export_dynamic_flag_spec_F77='${wl}-E'
15189
15190 # hardcode_minus_L: Not really in the search PATH,
15191 # but as the default location of the library.
15192 hardcode_minus_L_F77=yes
15193 fi
15194 ;;
15195
15196 hpux11*)
15197 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15198 case $host_cpu in
15199 hppa*64*)
15200 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15201 ;;
15202 ia64*)
15203 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15204 ;;
15205 *)
15206 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15207 ;;
15208 esac
15209 else
15210 case $host_cpu in
15211 hppa*64*)
15212 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15213 ;;
15214 ia64*)
15215 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15216 ;;
15217 *)
15218 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15219 ;;
15220 esac
15221 fi
15222 if test "$with_gnu_ld" = no; then
15223 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15224 hardcode_libdir_separator_F77=:
15225
15226 case $host_cpu in
15227 hppa*64*|ia64*)
15228 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15229 hardcode_direct_F77=no
15230 hardcode_shlibpath_var_F77=no
15231 ;;
15232 *)
15233 hardcode_direct_F77=yes
15234 export_dynamic_flag_spec_F77='${wl}-E'
15235
15236 # hardcode_minus_L: Not really in the search PATH,
15237 # but as the default location of the library.
15238 hardcode_minus_L_F77=yes
15239 ;;
15240 esac
15241 fi
15242 ;;
15243
15244 irix5* | irix6* | nonstopux*)
15245 if test "$GCC" = yes; then
15246 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15247 else
15248 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15249 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15250 fi
15251 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15252 hardcode_libdir_separator_F77=:
15253 link_all_deplibs_F77=yes
15254 ;;
15255
15256 netbsd*)
15257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15259 else
15260 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15261 fi
15262 hardcode_libdir_flag_spec_F77='-R$libdir'
15263 hardcode_direct_F77=yes
15264 hardcode_shlibpath_var_F77=no
15265 ;;
15266
15267 newsos6)
15268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15269 hardcode_direct_F77=yes
15270 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15271 hardcode_libdir_separator_F77=:
15272 hardcode_shlibpath_var_F77=no
15273 ;;
15274
15275 openbsd*)
15276 hardcode_direct_F77=yes
15277 hardcode_shlibpath_var_F77=no
15278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15279 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15280 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15281 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15282 export_dynamic_flag_spec_F77='${wl}-E'
15283 else
15284 case $host_os in
15285 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15286 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_libdir_flag_spec_F77='-R$libdir'
15288 ;;
15289 *)
15290 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15291 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15292 ;;
15293 esac
15294 fi
15295 ;;
15296
15297 os2*)
15298 hardcode_libdir_flag_spec_F77='-L$libdir'
15299 hardcode_minus_L_F77=yes
15300 allow_undefined_flag_F77=unsupported
15301 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15302 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15303 ;;
15304
15305 osf3*)
15306 if test "$GCC" = yes; then
15307 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15308 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15309 else
15310 allow_undefined_flag_F77=' -expect_unresolved \*'
15311 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15312 fi
15313 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15314 hardcode_libdir_separator_F77=:
15315 ;;
15316
15317 osf4* | osf5*) # as osf3* with the addition of -msym flag
15318 if test "$GCC" = yes; then
15319 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15320 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15321 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15322 else
15323 allow_undefined_flag_F77=' -expect_unresolved \*'
15324 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15325 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~
15326 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15327
15328 # Both c and cxx compiler support -rpath directly
15329 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15330 fi
15331 hardcode_libdir_separator_F77=:
15332 ;;
15333
15334 solaris*)
15335 no_undefined_flag_F77=' -z text'
15336 if test "$GCC" = yes; then
15337 wlarc='${wl}'
15338 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15339 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15340 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15341 else
15342 wlarc=''
15343 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15344 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15345 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15346 fi
15347 hardcode_libdir_flag_spec_F77='-R$libdir'
15348 hardcode_shlibpath_var_F77=no
15349 case $host_os in
15350 solaris2.[0-5] | solaris2.[0-5].*) ;;
15351 *)
15352 # The compiler driver will combine linker options so we
15353 # cannot just pass the convience library names through
15354 # without $wl, iff we do not link with $LD.
15355 # Luckily, gcc supports the same syntax we need for Sun Studio.
15356 # Supported since Solaris 2.6 (maybe 2.5.1?)
15357 case $wlarc in
15358 '')
15359 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15360 *)
15361 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15362 esac ;;
15363 esac
15364 link_all_deplibs_F77=yes
15365 ;;
15366
15367 sunos4*)
15368 if test "x$host_vendor" = xsequent; then
15369 # Use $CC to link under sequent, because it throws in some extra .o
15370 # files that make .init and .fini sections work.
15371 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15372 else
15373 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15374 fi
15375 hardcode_libdir_flag_spec_F77='-L$libdir'
15376 hardcode_direct_F77=yes
15377 hardcode_minus_L_F77=yes
15378 hardcode_shlibpath_var_F77=no
15379 ;;
15380
15381 sysv4)
15382 case $host_vendor in
15383 sni)
15384 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15385 hardcode_direct_F77=yes # is this really true???
15386 ;;
15387 siemens)
15388 ## LD is ld it makes a PLAMLIB
15389 ## CC just makes a GrossModule.
15390 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15391 reload_cmds_F77='$CC -r -o $output$reload_objs'
15392 hardcode_direct_F77=no
15393 ;;
15394 motorola)
15395 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15396 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15397 ;;
15398 esac
15399 runpath_var='LD_RUN_PATH'
15400 hardcode_shlibpath_var_F77=no
15401 ;;
15402
15403 sysv4.3*)
15404 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15405 hardcode_shlibpath_var_F77=no
15406 export_dynamic_flag_spec_F77='-Bexport'
15407 ;;
15408
15409 sysv4*MP*)
15410 if test -d /usr/nec; then
15411 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_shlibpath_var_F77=no
15413 runpath_var=LD_RUN_PATH
15414 hardcode_runpath_var=yes
15415 ld_shlibs_F77=yes
15416 fi
15417 ;;
15418
15419 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15420 no_undefined_flag_F77='${wl}-z,text'
15421 archive_cmds_need_lc_F77=no
15422 hardcode_shlibpath_var_F77=no
15423 runpath_var='LD_RUN_PATH'
15424
15425 if test "$GCC" = yes; then
15426 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15427 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15428 else
15429 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15430 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15431 fi
15432 ;;
15433
15434 sysv5* | sco3.2v5* | sco5v6*)
15435 # Note: We can NOT use -z defs as we might desire, because we do not
15436 # link with -lc, and that would cause any symbols used from libc to
15437 # always be unresolved, which means just about no library would
15438 # ever link correctly. If we're not using GNU ld we use -z text
15439 # though, which does catch some bad symbols but isn't as heavy-handed
15440 # as -z defs.
15441 no_undefined_flag_F77='${wl}-z,text'
15442 allow_undefined_flag_F77='${wl}-z,nodefs'
15443 archive_cmds_need_lc_F77=no
15444 hardcode_shlibpath_var_F77=no
15445 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15446 hardcode_libdir_separator_F77=':'
15447 link_all_deplibs_F77=yes
15448 export_dynamic_flag_spec_F77='${wl}-Bexport'
15449 runpath_var='LD_RUN_PATH'
15450
15451 if test "$GCC" = yes; then
15452 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15453 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15454 else
15455 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15456 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15457 fi
15458 ;;
15459
15460 uts4*)
15461 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15462 hardcode_libdir_flag_spec_F77='-L$libdir'
15463 hardcode_shlibpath_var_F77=no
15464 ;;
15465
15466 *)
15467 ld_shlibs_F77=no
15468 ;;
15469 esac
15470 fi
15471
15472 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15473 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15474 test "$ld_shlibs_F77" = no && can_build_shared=no
15475
15476 #
15477 # Do we need to explicitly link libc?
15478 #
15479 case "x$archive_cmds_need_lc_F77" in
15480 x|xyes)
15481 # Assume -lc should be added
15482 archive_cmds_need_lc_F77=yes
15483
15484 if test "$enable_shared" = yes && test "$GCC" = yes; then
15485 case $archive_cmds_F77 in
15486 *'~'*)
15487 # FIXME: we may have to deal with multi-command sequences.
15488 ;;
15489 '$CC '*)
15490 # Test whether the compiler implicitly links with -lc since on some
15491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15492 # to ld, don't add -lc before -lgcc.
15493 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15495 $rm conftest*
15496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15497
15498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15499 (eval $ac_compile) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } 2>conftest.err; then
15503 soname=conftest
15504 lib=conftest
15505 libobjs=conftest.$ac_objext
15506 deplibs=
15507 wl=$lt_prog_compiler_wl_F77
15508 pic_flag=$lt_prog_compiler_pic_F77
15509 compiler_flags=-v
15510 linker_flags=-v
15511 verstring=
15512 output_objdir=.
15513 libname=conftest
15514 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15515 allow_undefined_flag_F77=
15516 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15517 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15518 ac_status=$?
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }
15521 then
15522 archive_cmds_need_lc_F77=no
15523 else
15524 archive_cmds_need_lc_F77=yes
15525 fi
15526 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15527 else
15528 cat conftest.err 1>&5
15529 fi
15530 $rm conftest*
15531 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15532 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15533 ;;
15534 esac
15535 fi
15536 ;;
15537 esac
15538
15539 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15540 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15541 library_names_spec=
15542 libname_spec='lib$name'
15543 soname_spec=
15544 shrext_cmds=".so"
15545 postinstall_cmds=
15546 postuninstall_cmds=
15547 finish_cmds=
15548 finish_eval=
15549 shlibpath_var=
15550 shlibpath_overrides_runpath=unknown
15551 version_type=none
15552 dynamic_linker="$host_os ld.so"
15553 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15554 if test "$GCC" = yes; then
15555 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15556 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15557 # if the path contains ";" then we assume it to be the separator
15558 # otherwise default to the standard path separator (i.e. ":") - it is
15559 # assumed that no part of a normal pathname contains ";" but that should
15560 # okay in the real world where ";" in dirpaths is itself problematic.
15561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15562 else
15563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15564 fi
15565 else
15566 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15567 fi
15568 need_lib_prefix=unknown
15569 hardcode_into_libs=no
15570
15571 # when you set need_version to no, make sure it does not cause -set_version
15572 # flags to be left without arguments
15573 need_version=unknown
15574
15575 case $host_os in
15576 aix3*)
15577 version_type=linux
15578 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15579 shlibpath_var=LIBPATH
15580
15581 # AIX 3 has no versioning support, so we append a major version to the name.
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 ;;
15584
15585 aix4* | aix5*)
15586 version_type=linux
15587 need_lib_prefix=no
15588 need_version=no
15589 hardcode_into_libs=yes
15590 if test "$host_cpu" = ia64; then
15591 # AIX 5 supports IA64
15592 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 else
15595 # With GCC up to 2.95.x, collect2 would create an import file
15596 # for dependence libraries. The import file would start with
15597 # the line `#! .'. This would cause the generated library to
15598 # depend on `.', always an invalid library. This was fixed in
15599 # development snapshots of GCC prior to 3.0.
15600 case $host_os in
15601 aix4 | aix4.[01] | aix4.[01].*)
15602 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15603 echo ' yes '
15604 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15605 :
15606 else
15607 can_build_shared=no
15608 fi
15609 ;;
15610 esac
15611 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15612 # soname into executable. Probably we can add versioning support to
15613 # collect2, so additional links can be useful in future.
15614 if test "$aix_use_runtimelinking" = yes; then
15615 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15616 # instead of lib<name>.a to let people know that these are not
15617 # typical AIX shared libraries.
15618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15619 else
15620 # We preserve .a as extension for shared libraries through AIX4.2
15621 # and later when we are not doing run time linking.
15622 library_names_spec='${libname}${release}.a $libname.a'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 fi
15625 shlibpath_var=LIBPATH
15626 fi
15627 ;;
15628
15629 amigaos*)
15630 library_names_spec='$libname.ixlibrary $libname.a'
15631 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15632 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15633 ;;
15634
15635 beos*)
15636 library_names_spec='${libname}${shared_ext}'
15637 dynamic_linker="$host_os ld.so"
15638 shlibpath_var=LIBRARY_PATH
15639 ;;
15640
15641 bsdi[45]*)
15642 version_type=linux
15643 need_version=no
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15649 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15650 # the default ld.so.conf also contains /usr/contrib/lib and
15651 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15652 # libtool to hard-code these into programs
15653 ;;
15654
15655 cygwin* | mingw* | pw32*)
15656 version_type=windows
15657 shrext_cmds=".dll"
15658 need_version=no
15659 need_lib_prefix=no
15660
15661 case $GCC,$host_os in
15662 yes,cygwin* | yes,mingw* | yes,pw32*)
15663 library_names_spec='$libname.dll.a'
15664 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665 postinstall_cmds='base_file=`basename \${file}`~
15666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15667 dldir=$destdir/`dirname \$dlpath`~
15668 test -d \$dldir || mkdir -p \$dldir~
15669 $install_prog $dir/$dlname \$dldir/$dlname~
15670 chmod a+x \$dldir/$dlname'
15671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15672 dlpath=$dir/\$dldll~
15673 $rm \$dlpath'
15674 shlibpath_overrides_runpath=yes
15675
15676 case $host_os in
15677 cygwin*)
15678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15679 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15681 ;;
15682 mingw*)
15683 # MinGW DLLs use traditional 'lib' prefix
15684 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15687 # It is most probably a Windows format PATH printed by
15688 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15689 # path with ; separators, and with drive letters. We can handle the
15690 # drive letters (cygwin fileutils understands them), so leave them,
15691 # especially as we might pass files found there to a mingw objdump,
15692 # which wouldn't understand a cygwinified path. Ahh.
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15694 else
15695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15696 fi
15697 ;;
15698 pw32*)
15699 # pw32 DLLs use 'pw' prefix rather than 'lib'
15700 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701 ;;
15702 esac
15703 ;;
15704
15705 *)
15706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15707 ;;
15708 esac
15709 dynamic_linker='Win32 ld.exe'
15710 # FIXME: first we should search . and the directory the executable is in
15711 shlibpath_var=PATH
15712 ;;
15713
15714 darwin* | rhapsody*)
15715 dynamic_linker="$host_os dyld"
15716 version_type=darwin
15717 need_lib_prefix=no
15718 need_version=no
15719 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15720 soname_spec='${libname}${release}${major}$shared_ext'
15721 shlibpath_overrides_runpath=yes
15722 shlibpath_var=DYLD_LIBRARY_PATH
15723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15724 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15725 if test "$GCC" = yes; then
15726 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15727 else
15728 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15729 fi
15730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15731 ;;
15732
15733 dgux*)
15734 version_type=linux
15735 need_lib_prefix=no
15736 need_version=no
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 ;;
15741
15742 freebsd1*)
15743 dynamic_linker=no
15744 ;;
15745
15746 kfreebsd*-gnu)
15747 version_type=linux
15748 need_lib_prefix=no
15749 need_version=no
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 shlibpath_overrides_runpath=no
15754 hardcode_into_libs=yes
15755 dynamic_linker='GNU ld.so'
15756 ;;
15757
15758 freebsd* | dragonfly*)
15759 # DragonFly does not have aout. When/if they implement a new
15760 # versioning mechanism, adjust this.
15761 if test -x /usr/bin/objformat; then
15762 objformat=`/usr/bin/objformat`
15763 else
15764 case $host_os in
15765 freebsd[123]*) objformat=aout ;;
15766 *) objformat=elf ;;
15767 esac
15768 fi
15769 version_type=freebsd-$objformat
15770 case $version_type in
15771 freebsd-elf*)
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15773 need_version=no
15774 need_lib_prefix=no
15775 ;;
15776 freebsd-*)
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15778 need_version=yes
15779 ;;
15780 esac
15781 shlibpath_var=LD_LIBRARY_PATH
15782 case $host_os in
15783 freebsd2*)
15784 shlibpath_overrides_runpath=yes
15785 ;;
15786 freebsd3.[01]* | freebsdelf3.[01]*)
15787 shlibpath_overrides_runpath=yes
15788 hardcode_into_libs=yes
15789 ;;
15790 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15791 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15792 shlibpath_overrides_runpath=no
15793 hardcode_into_libs=yes
15794 ;;
15795 freebsd*) # from 4.6 on
15796 shlibpath_overrides_runpath=yes
15797 hardcode_into_libs=yes
15798 ;;
15799 esac
15800 ;;
15801
15802 gnu*)
15803 version_type=linux
15804 need_lib_prefix=no
15805 need_version=no
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15807 soname_spec='${libname}${release}${shared_ext}$major'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 hardcode_into_libs=yes
15810 ;;
15811
15812 hpux9* | hpux10* | hpux11*)
15813 # Give a soname corresponding to the major version so that dld.sl refuses to
15814 # link against other versions.
15815 version_type=sunos
15816 need_lib_prefix=no
15817 need_version=no
15818 case $host_cpu in
15819 ia64*)
15820 shrext_cmds='.so'
15821 hardcode_into_libs=yes
15822 dynamic_linker="$host_os dld.so"
15823 shlibpath_var=LD_LIBRARY_PATH
15824 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15826 soname_spec='${libname}${release}${shared_ext}$major'
15827 if test "X$HPUX_IA64_MODE" = X32; then
15828 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15829 else
15830 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15831 fi
15832 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15833 ;;
15834 hppa*64*)
15835 shrext_cmds='.sl'
15836 hardcode_into_libs=yes
15837 dynamic_linker="$host_os dld.sl"
15838 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15844 ;;
15845 *)
15846 shrext_cmds='.sl'
15847 dynamic_linker="$host_os dld.sl"
15848 shlibpath_var=SHLIB_PATH
15849 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851 soname_spec='${libname}${release}${shared_ext}$major'
15852 ;;
15853 esac
15854 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15855 postinstall_cmds='chmod 555 $lib'
15856 ;;
15857
15858 interix3*)
15859 version_type=linux
15860 need_lib_prefix=no
15861 need_version=no
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15864 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 shlibpath_overrides_runpath=no
15867 hardcode_into_libs=yes
15868 ;;
15869
15870 irix5* | irix6* | nonstopux*)
15871 case $host_os in
15872 nonstopux*) version_type=nonstopux ;;
15873 *)
15874 if test "$lt_cv_prog_gnu_ld" = yes; then
15875 version_type=linux
15876 else
15877 version_type=irix
15878 fi ;;
15879 esac
15880 need_lib_prefix=no
15881 need_version=no
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15884 case $host_os in
15885 irix5* | nonstopux*)
15886 libsuff= shlibsuff=
15887 ;;
15888 *)
15889 case $LD in # libtool.m4 will add one of these switches to LD
15890 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15891 libsuff= shlibsuff= libmagic=32-bit;;
15892 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15893 libsuff=32 shlibsuff=N32 libmagic=N32;;
15894 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15895 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15896 *) libsuff= shlibsuff= libmagic=never-match;;
15897 esac
15898 ;;
15899 esac
15900 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15901 shlibpath_overrides_runpath=no
15902 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15903 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15904 hardcode_into_libs=yes
15905 ;;
15906
15907 # No shared lib support for Linux oldld, aout, or coff.
15908 linux*oldld* | linux*aout* | linux*coff*)
15909 dynamic_linker=no
15910 ;;
15911
15912 # This must be Linux ELF.
15913 linux*)
15914 version_type=linux
15915 need_lib_prefix=no
15916 need_version=no
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15920 shlibpath_var=LD_LIBRARY_PATH
15921 shlibpath_overrides_runpath=no
15922 # This implies no fast_install, which is unacceptable.
15923 # Some rework will be needed to allow for fast_install
15924 # before this can be enabled.
15925 hardcode_into_libs=yes
15926
15927 # find out which ABI we are using
15928 libsuff=
15929 case "$host_cpu" in
15930 x86_64*|s390x*|powerpc64*)
15931 echo '#line 15931 "configure"' > conftest.$ac_ext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>&5
15934 ac_status=$?
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); }; then
15937 case `/usr/bin/file conftest.$ac_objext` in
15938 *64-bit*)
15939 libsuff=64
15940 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15941 ;;
15942 esac
15943 fi
15944 rm -rf conftest*
15945 ;;
15946 esac
15947
15948 # Append ld.so.conf contents to the search path
15949 if test -f /etc/ld.so.conf; then
15950 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15951 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15952 fi
15953
15954 # We used to test for /lib/ld.so.1 and disable shared libraries on
15955 # powerpc, because MkLinux only supported shared libraries with the
15956 # GNU dynamic linker. Since this was broken with cross compilers,
15957 # most powerpc-linux boxes support dynamic linking these days and
15958 # people can always --disable-shared, the test was removed, and we
15959 # assume the GNU/Linux dynamic linker is in use.
15960 dynamic_linker='GNU/Linux ld.so'
15961 ;;
15962
15963 knetbsd*-gnu)
15964 version_type=linux
15965 need_lib_prefix=no
15966 need_version=no
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15968 soname_spec='${libname}${release}${shared_ext}$major'
15969 shlibpath_var=LD_LIBRARY_PATH
15970 shlibpath_overrides_runpath=no
15971 hardcode_into_libs=yes
15972 dynamic_linker='GNU ld.so'
15973 ;;
15974
15975 netbsd*)
15976 version_type=sunos
15977 need_lib_prefix=no
15978 need_version=no
15979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982 dynamic_linker='NetBSD (a.out) ld.so'
15983 else
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15985 soname_spec='${libname}${release}${shared_ext}$major'
15986 dynamic_linker='NetBSD ld.elf_so'
15987 fi
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=yes
15990 hardcode_into_libs=yes
15991 ;;
15992
15993 newsos6)
15994 version_type=linux
15995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996 shlibpath_var=LD_LIBRARY_PATH
15997 shlibpath_overrides_runpath=yes
15998 ;;
15999
16000 nto-qnx*)
16001 version_type=linux
16002 need_lib_prefix=no
16003 need_version=no
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=yes
16008 ;;
16009
16010 openbsd*)
16011 version_type=sunos
16012 sys_lib_dlsearch_path_spec="/usr/lib"
16013 need_lib_prefix=no
16014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16015 case $host_os in
16016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16017 *) need_version=no ;;
16018 esac
16019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16023 case $host_os in
16024 openbsd2.[89] | openbsd2.[89].*)
16025 shlibpath_overrides_runpath=no
16026 ;;
16027 *)
16028 shlibpath_overrides_runpath=yes
16029 ;;
16030 esac
16031 else
16032 shlibpath_overrides_runpath=yes
16033 fi
16034 ;;
16035
16036 os2*)
16037 libname_spec='$name'
16038 shrext_cmds=".dll"
16039 need_lib_prefix=no
16040 library_names_spec='$libname${shared_ext} $libname.a'
16041 dynamic_linker='OS/2 ld.exe'
16042 shlibpath_var=LIBPATH
16043 ;;
16044
16045 osf3* | osf4* | osf5*)
16046 version_type=osf
16047 need_lib_prefix=no
16048 need_version=no
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16054 ;;
16055
16056 solaris*)
16057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 shlibpath_var=LD_LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 hardcode_into_libs=yes
16065 # ldd complains unless libraries are executable
16066 postinstall_cmds='chmod +x $lib'
16067 ;;
16068
16069 sunos4*)
16070 version_type=sunos
16071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16073 shlibpath_var=LD_LIBRARY_PATH
16074 shlibpath_overrides_runpath=yes
16075 if test "$with_gnu_ld" = yes; then
16076 need_lib_prefix=no
16077 fi
16078 need_version=yes
16079 ;;
16080
16081 sysv4 | sysv4.3*)
16082 version_type=linux
16083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 soname_spec='${libname}${release}${shared_ext}$major'
16085 shlibpath_var=LD_LIBRARY_PATH
16086 case $host_vendor in
16087 sni)
16088 shlibpath_overrides_runpath=no
16089 need_lib_prefix=no
16090 export_dynamic_flag_spec='${wl}-Blargedynsym'
16091 runpath_var=LD_RUN_PATH
16092 ;;
16093 siemens)
16094 need_lib_prefix=no
16095 ;;
16096 motorola)
16097 need_lib_prefix=no
16098 need_version=no
16099 shlibpath_overrides_runpath=no
16100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16101 ;;
16102 esac
16103 ;;
16104
16105 sysv4*MP*)
16106 if test -d /usr/nec ;then
16107 version_type=linux
16108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16109 soname_spec='$libname${shared_ext}.$major'
16110 shlibpath_var=LD_LIBRARY_PATH
16111 fi
16112 ;;
16113
16114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16115 version_type=freebsd-elf
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 hardcode_into_libs=yes
16122 if test "$with_gnu_ld" = yes; then
16123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16124 shlibpath_overrides_runpath=no
16125 else
16126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16127 shlibpath_overrides_runpath=yes
16128 case $host_os in
16129 sco3.2v5*)
16130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16131 ;;
16132 esac
16133 fi
16134 sys_lib_dlsearch_path_spec='/usr/lib'
16135 ;;
16136
16137 uts4*)
16138 version_type=linux
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16140 soname_spec='${libname}${release}${shared_ext}$major'
16141 shlibpath_var=LD_LIBRARY_PATH
16142 ;;
16143
16144 *)
16145 dynamic_linker=no
16146 ;;
16147 esac
16148 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16149 echo "${ECHO_T}$dynamic_linker" >&6; }
16150 test "$dynamic_linker" = no && can_build_shared=no
16151
16152 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16153 if test "$GCC" = yes; then
16154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16155 fi
16156
16157 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16159 hardcode_action_F77=
16160 if test -n "$hardcode_libdir_flag_spec_F77" || \
16161 test -n "$runpath_var_F77" || \
16162 test "X$hardcode_automatic_F77" = "Xyes" ; then
16163
16164 # We can hardcode non-existant directories.
16165 if test "$hardcode_direct_F77" != no &&
16166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16167 # have to relink, otherwise we might link with an installed library
16168 # when we should be linking with a yet-to-be-installed one
16169 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16170 test "$hardcode_minus_L_F77" != no; then
16171 # Linking always hardcodes the temporary library directory.
16172 hardcode_action_F77=relink
16173 else
16174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16175 hardcode_action_F77=immediate
16176 fi
16177 else
16178 # We cannot hardcode anything, or else we can only hardcode existing
16179 # directories.
16180 hardcode_action_F77=unsupported
16181 fi
16182 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16183 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16184
16185 if test "$hardcode_action_F77" = relink; then
16186 # Fast installation is not supported
16187 enable_fast_install=no
16188 elif test "$shlibpath_overrides_runpath" = yes ||
16189 test "$enable_shared" = no; then
16190 # Fast installation is not necessary
16191 enable_fast_install=needless
16192 fi
16193
16194
16195 # The else clause should only fire when bootstrapping the
16196 # libtool distribution, otherwise you forgot to ship ltmain.sh
16197 # with your package, and you will get complaints that there are
16198 # no rules to generate ltmain.sh.
16199 if test -f "$ltmain"; then
16200 # See if we are running on zsh, and set the options which allow our commands through
16201 # without removal of \ escapes.
16202 if test -n "${ZSH_VERSION+set}" ; then
16203 setopt NO_GLOB_SUBST
16204 fi
16205 # Now quote all the things that may contain metacharacters while being
16206 # careful not to overquote the AC_SUBSTed values. We take copies of the
16207 # variables and quote the copies for generation of the libtool script.
16208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16209 SED SHELL STRIP \
16210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16212 deplibs_check_method reload_flag reload_cmds need_locks \
16213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16214 lt_cv_sys_global_symbol_to_c_name_address \
16215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16216 old_postinstall_cmds old_postuninstall_cmds \
16217 compiler_F77 \
16218 CC_F77 \
16219 LD_F77 \
16220 lt_prog_compiler_wl_F77 \
16221 lt_prog_compiler_pic_F77 \
16222 lt_prog_compiler_static_F77 \
16223 lt_prog_compiler_no_builtin_flag_F77 \
16224 export_dynamic_flag_spec_F77 \
16225 thread_safe_flag_spec_F77 \
16226 whole_archive_flag_spec_F77 \
16227 enable_shared_with_static_runtimes_F77 \
16228 old_archive_cmds_F77 \
16229 old_archive_from_new_cmds_F77 \
16230 predep_objects_F77 \
16231 postdep_objects_F77 \
16232 predeps_F77 \
16233 postdeps_F77 \
16234 compiler_lib_search_path_F77 \
16235 archive_cmds_F77 \
16236 archive_expsym_cmds_F77 \
16237 postinstall_cmds_F77 \
16238 postuninstall_cmds_F77 \
16239 old_archive_from_expsyms_cmds_F77 \
16240 allow_undefined_flag_F77 \
16241 no_undefined_flag_F77 \
16242 export_symbols_cmds_F77 \
16243 hardcode_libdir_flag_spec_F77 \
16244 hardcode_libdir_flag_spec_ld_F77 \
16245 hardcode_libdir_separator_F77 \
16246 hardcode_automatic_F77 \
16247 module_cmds_F77 \
16248 module_expsym_cmds_F77 \
16249 lt_cv_prog_compiler_c_o_F77 \
16250 exclude_expsyms_F77 \
16251 include_expsyms_F77; do
16252
16253 case $var in
16254 old_archive_cmds_F77 | \
16255 old_archive_from_new_cmds_F77 | \
16256 archive_cmds_F77 | \
16257 archive_expsym_cmds_F77 | \
16258 module_cmds_F77 | \
16259 module_expsym_cmds_F77 | \
16260 old_archive_from_expsyms_cmds_F77 | \
16261 export_symbols_cmds_F77 | \
16262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16263 postinstall_cmds | postuninstall_cmds | \
16264 old_postinstall_cmds | old_postuninstall_cmds | \
16265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16266 # Double-quote double-evaled strings.
16267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16268 ;;
16269 *)
16270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16271 ;;
16272 esac
16273 done
16274
16275 case $lt_echo in
16276 *'\$0 --fallback-echo"')
16277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16278 ;;
16279 esac
16280
16281 cfgfile="$ofile"
16282
16283 cat <<__EOF__ >> "$cfgfile"
16284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16285
16286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16287
16288 # Shell to use when invoking shell scripts.
16289 SHELL=$lt_SHELL
16290
16291 # Whether or not to build shared libraries.
16292 build_libtool_libs=$enable_shared
16293
16294 # Whether or not to build static libraries.
16295 build_old_libs=$enable_static
16296
16297 # Whether or not to add -lc for building shared libraries.
16298 build_libtool_need_lc=$archive_cmds_need_lc_F77
16299
16300 # Whether or not to disallow shared libs when runtime libs are static
16301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16302
16303 # Whether or not to optimize for fast installation.
16304 fast_install=$enable_fast_install
16305
16306 # The host system.
16307 host_alias=$host_alias
16308 host=$host
16309 host_os=$host_os
16310
16311 # The build system.
16312 build_alias=$build_alias
16313 build=$build
16314 build_os=$build_os
16315
16316 # An echo program that does not interpret backslashes.
16317 echo=$lt_echo
16318
16319 # The archiver.
16320 AR=$lt_AR
16321 AR_FLAGS=$lt_AR_FLAGS
16322
16323 # A C compiler.
16324 LTCC=$lt_LTCC
16325
16326 # LTCC compiler flags.
16327 LTCFLAGS=$lt_LTCFLAGS
16328
16329 # A language-specific compiler.
16330 CC=$lt_compiler_F77
16331
16332 # Is the compiler the GNU C compiler?
16333 with_gcc=$GCC_F77
16334
16335 # An ERE matcher.
16336 EGREP=$lt_EGREP
16337
16338 # The linker used to build libraries.
16339 LD=$lt_LD_F77
16340
16341 # Whether we need hard or soft links.
16342 LN_S=$lt_LN_S
16343
16344 # A BSD-compatible nm program.
16345 NM=$lt_NM
16346
16347 # A symbol stripping program
16348 STRIP=$lt_STRIP
16349
16350 # Used to examine libraries when file_magic_cmd begins "file"
16351 MAGIC_CMD=$MAGIC_CMD
16352
16353 # Used on cygwin: DLL creation program.
16354 DLLTOOL="$DLLTOOL"
16355
16356 # Used on cygwin: object dumper.
16357 OBJDUMP="$OBJDUMP"
16358
16359 # Used on cygwin: assembler.
16360 AS="$AS"
16361
16362 # The name of the directory that contains temporary libtool files.
16363 objdir=$objdir
16364
16365 # How to create reloadable object files.
16366 reload_flag=$lt_reload_flag
16367 reload_cmds=$lt_reload_cmds
16368
16369 # How to pass a linker flag through the compiler.
16370 wl=$lt_lt_prog_compiler_wl_F77
16371
16372 # Object file suffix (normally "o").
16373 objext="$ac_objext"
16374
16375 # Old archive suffix (normally "a").
16376 libext="$libext"
16377
16378 # Shared library suffix (normally ".so").
16379 shrext_cmds='$shrext_cmds'
16380
16381 # Executable file suffix (normally "").
16382 exeext="$exeext"
16383
16384 # Additional compiler flags for building library objects.
16385 pic_flag=$lt_lt_prog_compiler_pic_F77
16386 pic_mode=$pic_mode
16387
16388 # What is the maximum length of a command?
16389 max_cmd_len=$lt_cv_sys_max_cmd_len
16390
16391 # Does compiler simultaneously support -c and -o options?
16392 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16393
16394 # Must we lock files when doing compilation?
16395 need_locks=$lt_need_locks
16396
16397 # Do we need the lib prefix for modules?
16398 need_lib_prefix=$need_lib_prefix
16399
16400 # Do we need a version for libraries?
16401 need_version=$need_version
16402
16403 # Whether dlopen is supported.
16404 dlopen_support=$enable_dlopen
16405
16406 # Whether dlopen of programs is supported.
16407 dlopen_self=$enable_dlopen_self
16408
16409 # Whether dlopen of statically linked programs is supported.
16410 dlopen_self_static=$enable_dlopen_self_static
16411
16412 # Compiler flag to prevent dynamic linking.
16413 link_static_flag=$lt_lt_prog_compiler_static_F77
16414
16415 # Compiler flag to turn off builtin functions.
16416 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16417
16418 # Compiler flag to allow reflexive dlopens.
16419 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16420
16421 # Compiler flag to generate shared objects directly from archives.
16422 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16423
16424 # Compiler flag to generate thread-safe objects.
16425 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16426
16427 # Library versioning type.
16428 version_type=$version_type
16429
16430 # Format of library name prefix.
16431 libname_spec=$lt_libname_spec
16432
16433 # List of archive names. First name is the real one, the rest are links.
16434 # The last name is the one that the linker finds with -lNAME.
16435 library_names_spec=$lt_library_names_spec
16436
16437 # The coded name of the library, if different from the real name.
16438 soname_spec=$lt_soname_spec
16439
16440 # Commands used to build and install an old-style archive.
16441 RANLIB=$lt_RANLIB
16442 old_archive_cmds=$lt_old_archive_cmds_F77
16443 old_postinstall_cmds=$lt_old_postinstall_cmds
16444 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16445
16446 # Create an old-style archive from a shared archive.
16447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16448
16449 # Create a temporary old-style archive to link instead of a shared archive.
16450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16451
16452 # Commands used to build and install a shared archive.
16453 archive_cmds=$lt_archive_cmds_F77
16454 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16455 postinstall_cmds=$lt_postinstall_cmds
16456 postuninstall_cmds=$lt_postuninstall_cmds
16457
16458 # Commands used to build a loadable module (assumed same as above if empty)
16459 module_cmds=$lt_module_cmds_F77
16460 module_expsym_cmds=$lt_module_expsym_cmds_F77
16461
16462 # Commands to strip libraries.
16463 old_striplib=$lt_old_striplib
16464 striplib=$lt_striplib
16465
16466 # Dependencies to place before the objects being linked to create a
16467 # shared library.
16468 predep_objects=$lt_predep_objects_F77
16469
16470 # Dependencies to place after the objects being linked to create a
16471 # shared library.
16472 postdep_objects=$lt_postdep_objects_F77
16473
16474 # Dependencies to place before the objects being linked to create a
16475 # shared library.
16476 predeps=$lt_predeps_F77
16477
16478 # Dependencies to place after the objects being linked to create a
16479 # shared library.
16480 postdeps=$lt_postdeps_F77
16481
16482 # The library search path used internally by the compiler when linking
16483 # a shared library.
16484 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16485
16486 # Method to check whether dependent libraries are shared objects.
16487 deplibs_check_method=$lt_deplibs_check_method
16488
16489 # Command to use when deplibs_check_method == file_magic.
16490 file_magic_cmd=$lt_file_magic_cmd
16491
16492 # Flag that allows shared libraries with undefined symbols to be built.
16493 allow_undefined_flag=$lt_allow_undefined_flag_F77
16494
16495 # Flag that forces no undefined symbols.
16496 no_undefined_flag=$lt_no_undefined_flag_F77
16497
16498 # Commands used to finish a libtool library installation in a directory.
16499 finish_cmds=$lt_finish_cmds
16500
16501 # Same as above, but a single script fragment to be evaled but not shown.
16502 finish_eval=$lt_finish_eval
16503
16504 # Take the output of nm and produce a listing of raw symbols and C names.
16505 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16506
16507 # Transform the output of nm in a proper C declaration
16508 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16509
16510 # Transform the output of nm in a C name address pair
16511 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16512
16513 # This is the shared library runtime path variable.
16514 runpath_var=$runpath_var
16515
16516 # This is the shared library path variable.
16517 shlibpath_var=$shlibpath_var
16518
16519 # Is shlibpath searched before the hard-coded library search path?
16520 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16521
16522 # How to hardcode a shared library path into an executable.
16523 hardcode_action=$hardcode_action_F77
16524
16525 # Whether we should hardcode library paths into libraries.
16526 hardcode_into_libs=$hardcode_into_libs
16527
16528 # Flag to hardcode \$libdir into a binary during linking.
16529 # This must work even if \$libdir does not exist.
16530 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16531
16532 # If ld is used when linking, flag to hardcode \$libdir into
16533 # a binary during linking. This must work even if \$libdir does
16534 # not exist.
16535 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16536
16537 # Whether we need a single -rpath flag with a separated argument.
16538 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16539
16540 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16541 # resulting binary.
16542 hardcode_direct=$hardcode_direct_F77
16543
16544 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16545 # resulting binary.
16546 hardcode_minus_L=$hardcode_minus_L_F77
16547
16548 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16549 # the resulting binary.
16550 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16551
16552 # Set to yes if building a shared library automatically hardcodes DIR into the library
16553 # and all subsequent libraries and executables linked against it.
16554 hardcode_automatic=$hardcode_automatic_F77
16555
16556 # Variables whose values should be saved in libtool wrapper scripts and
16557 # restored at relink time.
16558 variables_saved_for_relink="$variables_saved_for_relink"
16559
16560 # Whether libtool must link a program against all its dependency libraries.
16561 link_all_deplibs=$link_all_deplibs_F77
16562
16563 # Compile-time system search path for libraries
16564 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16565
16566 # Run-time system search path for libraries
16567 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16568
16569 # Fix the shell variable \$srcfile for the compiler.
16570 fix_srcfile_path="$fix_srcfile_path_F77"
16571
16572 # Set to yes if exported symbols are required.
16573 always_export_symbols=$always_export_symbols_F77
16574
16575 # The commands to list exported symbols.
16576 export_symbols_cmds=$lt_export_symbols_cmds_F77
16577
16578 # The commands to extract the exported symbol list from a shared archive.
16579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16580
16581 # Symbols that should not be listed in the preloaded symbols.
16582 exclude_expsyms=$lt_exclude_expsyms_F77
16583
16584 # Symbols that must always be exported.
16585 include_expsyms=$lt_include_expsyms_F77
16586
16587 # ### END LIBTOOL TAG CONFIG: $tagname
16588
16589 __EOF__
16590
16591
16592 else
16593 # If there is no Makefile yet, we rely on a make rule to execute
16594 # `config.status --recheck' to rerun these tests and create the
16595 # libtool script then.
16596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16597 if test -f "$ltmain_in"; then
16598 test -f Makefile && make "$ltmain"
16599 fi
16600 fi
16601
16602
16603 ac_ext=c
16604 ac_cpp='$CPP $CPPFLAGS'
16605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16608
16609 CC="$lt_save_CC"
16610
16611 else
16612 tagname=""
16613 fi
16614 ;;
16615
16616 GCJ)
16617 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16618
16619
16620 # Source file extension for Java test sources.
16621 ac_ext=java
16622
16623 # Object file extension for compiled Java test sources.
16624 objext=o
16625 objext_GCJ=$objext
16626
16627 # Code to be used in simple compile tests
16628 lt_simple_compile_test_code="class foo {}\n"
16629
16630 # Code to be used in simple link tests
16631 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16632
16633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16634
16635 # If no C compiler was specified, use CC.
16636 LTCC=${LTCC-"$CC"}
16637
16638 # If no C compiler flags were specified, use CFLAGS.
16639 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16640
16641 # Allow CC to be a program name with arguments.
16642 compiler=$CC
16643
16644
16645 # save warnings/boilerplate of simple test code
16646 ac_outfile=conftest.$ac_objext
16647 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16649 _lt_compiler_boilerplate=`cat conftest.err`
16650 $rm conftest*
16651
16652 ac_outfile=conftest.$ac_objext
16653 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16655 _lt_linker_boilerplate=`cat conftest.err`
16656 $rm conftest*
16657
16658
16659 # Allow CC to be a program name with arguments.
16660 lt_save_CC="$CC"
16661 CC=${GCJ-"gcj"}
16662 compiler=$CC
16663 compiler_GCJ=$CC
16664 for cc_temp in $compiler""; do
16665 case $cc_temp in
16666 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16667 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16668 \-*) ;;
16669 *) break;;
16670 esac
16671 done
16672 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16673
16674
16675 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16676 archive_cmds_need_lc_GCJ=no
16677
16678 old_archive_cmds_GCJ=$old_archive_cmds
16679
16680 ## CAVEAT EMPTOR:
16681 ## There is no encapsulation within the following macros, do not change
16682 ## the running order or otherwise move them around unless you know exactly
16683 ## what you are doing...
16684
16685 lt_prog_compiler_no_builtin_flag_GCJ=
16686
16687 if test "$GCC" = yes; then
16688 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16689
16690
16691 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16692 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16693 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16694 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 else
16696 lt_cv_prog_compiler_rtti_exceptions=no
16697 ac_outfile=conftest.$ac_objext
16698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16699 lt_compiler_flag="-fno-rtti -fno-exceptions"
16700 # Insert the option either (1) after the last *FLAGS variable, or
16701 # (2) before a word containing "conftest.", or (3) at the end.
16702 # Note that $ac_compile itself does not contain backslashes and begins
16703 # with a dollar sign (not a hyphen), so the echo should work correctly.
16704 # The option is referenced via a variable to avoid confusing sed.
16705 lt_compile=`echo "$ac_compile" | $SED \
16706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16708 -e 's:$: $lt_compiler_flag:'`
16709 (eval echo "\"\$as_me:16709: $lt_compile\"" >&5)
16710 (eval "$lt_compile" 2>conftest.err)
16711 ac_status=$?
16712 cat conftest.err >&5
16713 echo "$as_me:16713: \$? = $ac_status" >&5
16714 if (exit $ac_status) && test -s "$ac_outfile"; then
16715 # The compiler can only warn and ignore the option if not recognized
16716 # So say no if there are warnings other than the usual output.
16717 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16720 lt_cv_prog_compiler_rtti_exceptions=yes
16721 fi
16722 fi
16723 $rm conftest*
16724
16725 fi
16726 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16727 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16728
16729 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16730 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16731 else
16732 :
16733 fi
16734
16735 fi
16736
16737 lt_prog_compiler_wl_GCJ=
16738 lt_prog_compiler_pic_GCJ=
16739 lt_prog_compiler_static_GCJ=
16740
16741 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16742 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16743
16744 if test "$GCC" = yes; then
16745 lt_prog_compiler_wl_GCJ='-Wl,'
16746 lt_prog_compiler_static_GCJ='-static'
16747
16748 case $host_os in
16749 aix*)
16750 # All AIX code is PIC.
16751 if test "$host_cpu" = ia64; then
16752 # AIX 5 now supports IA64 processor
16753 lt_prog_compiler_static_GCJ='-Bstatic'
16754 fi
16755 ;;
16756
16757 amigaos*)
16758 # FIXME: we need at least 68020 code to build shared libraries, but
16759 # adding the `-m68020' flag to GCC prevents building anything better,
16760 # like `-m68040'.
16761 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16762 ;;
16763
16764 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16765 # PIC is the default for these OSes.
16766 ;;
16767
16768 mingw* | pw32* | os2*)
16769 # This hack is so that the source file can tell whether it is being
16770 # built for inclusion in a dll (and should export symbols for example).
16771 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16772 ;;
16773
16774 darwin* | rhapsody*)
16775 # PIC is the default on this platform
16776 # Common symbols not allowed in MH_DYLIB files
16777 lt_prog_compiler_pic_GCJ='-fno-common'
16778 ;;
16779
16780 interix3*)
16781 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16782 # Instead, we relocate shared libraries at runtime.
16783 ;;
16784
16785 msdosdjgpp*)
16786 # Just because we use GCC doesn't mean we suddenly get shared libraries
16787 # on systems that don't support them.
16788 lt_prog_compiler_can_build_shared_GCJ=no
16789 enable_shared=no
16790 ;;
16791
16792 sysv4*MP*)
16793 if test -d /usr/nec; then
16794 lt_prog_compiler_pic_GCJ=-Kconform_pic
16795 fi
16796 ;;
16797
16798 hpux*)
16799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16800 # not for PA HP-UX.
16801 case $host_cpu in
16802 hppa*64*|ia64*)
16803 # +Z the default
16804 ;;
16805 *)
16806 lt_prog_compiler_pic_GCJ='-fPIC'
16807 ;;
16808 esac
16809 ;;
16810
16811 *)
16812 lt_prog_compiler_pic_GCJ='-fPIC'
16813 ;;
16814 esac
16815 else
16816 # PORTME Check for flag to pass linker flags through the system compiler.
16817 case $host_os in
16818 aix*)
16819 lt_prog_compiler_wl_GCJ='-Wl,'
16820 if test "$host_cpu" = ia64; then
16821 # AIX 5 now supports IA64 processor
16822 lt_prog_compiler_static_GCJ='-Bstatic'
16823 else
16824 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16825 fi
16826 ;;
16827 darwin*)
16828 # PIC is the default on this platform
16829 # Common symbols not allowed in MH_DYLIB files
16830 case $cc_basename in
16831 xlc*)
16832 lt_prog_compiler_pic_GCJ='-qnocommon'
16833 lt_prog_compiler_wl_GCJ='-Wl,'
16834 ;;
16835 esac
16836 ;;
16837
16838 mingw* | pw32* | os2*)
16839 # This hack is so that the source file can tell whether it is being
16840 # built for inclusion in a dll (and should export symbols for example).
16841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16842 ;;
16843
16844 hpux9* | hpux10* | hpux11*)
16845 lt_prog_compiler_wl_GCJ='-Wl,'
16846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16847 # not for PA HP-UX.
16848 case $host_cpu in
16849 hppa*64*|ia64*)
16850 # +Z the default
16851 ;;
16852 *)
16853 lt_prog_compiler_pic_GCJ='+Z'
16854 ;;
16855 esac
16856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16857 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16858 ;;
16859
16860 irix5* | irix6* | nonstopux*)
16861 lt_prog_compiler_wl_GCJ='-Wl,'
16862 # PIC (with -KPIC) is the default.
16863 lt_prog_compiler_static_GCJ='-non_shared'
16864 ;;
16865
16866 newsos6)
16867 lt_prog_compiler_pic_GCJ='-KPIC'
16868 lt_prog_compiler_static_GCJ='-Bstatic'
16869 ;;
16870
16871 linux*)
16872 case $cc_basename in
16873 icc* | ecc*)
16874 lt_prog_compiler_wl_GCJ='-Wl,'
16875 lt_prog_compiler_pic_GCJ='-KPIC'
16876 lt_prog_compiler_static_GCJ='-static'
16877 ;;
16878 pgcc* | pgf77* | pgf90* | pgf95*)
16879 # Portland Group compilers (*not* the Pentium gcc compiler,
16880 # which looks to be a dead project)
16881 lt_prog_compiler_wl_GCJ='-Wl,'
16882 lt_prog_compiler_pic_GCJ='-fpic'
16883 lt_prog_compiler_static_GCJ='-Bstatic'
16884 ;;
16885 ccc*)
16886 lt_prog_compiler_wl_GCJ='-Wl,'
16887 # All Alpha code is PIC.
16888 lt_prog_compiler_static_GCJ='-non_shared'
16889 ;;
16890 esac
16891 ;;
16892
16893 osf3* | osf4* | osf5*)
16894 lt_prog_compiler_wl_GCJ='-Wl,'
16895 # All OSF/1 code is PIC.
16896 lt_prog_compiler_static_GCJ='-non_shared'
16897 ;;
16898
16899 solaris*)
16900 lt_prog_compiler_pic_GCJ='-KPIC'
16901 lt_prog_compiler_static_GCJ='-Bstatic'
16902 case $cc_basename in
16903 f77* | f90* | f95*)
16904 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16905 *)
16906 lt_prog_compiler_wl_GCJ='-Wl,';;
16907 esac
16908 ;;
16909
16910 sunos4*)
16911 lt_prog_compiler_wl_GCJ='-Qoption ld '
16912 lt_prog_compiler_pic_GCJ='-PIC'
16913 lt_prog_compiler_static_GCJ='-Bstatic'
16914 ;;
16915
16916 sysv4 | sysv4.2uw2* | sysv4.3*)
16917 lt_prog_compiler_wl_GCJ='-Wl,'
16918 lt_prog_compiler_pic_GCJ='-KPIC'
16919 lt_prog_compiler_static_GCJ='-Bstatic'
16920 ;;
16921
16922 sysv4*MP*)
16923 if test -d /usr/nec ;then
16924 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16925 lt_prog_compiler_static_GCJ='-Bstatic'
16926 fi
16927 ;;
16928
16929 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16930 lt_prog_compiler_wl_GCJ='-Wl,'
16931 lt_prog_compiler_pic_GCJ='-KPIC'
16932 lt_prog_compiler_static_GCJ='-Bstatic'
16933 ;;
16934
16935 unicos*)
16936 lt_prog_compiler_wl_GCJ='-Wl,'
16937 lt_prog_compiler_can_build_shared_GCJ=no
16938 ;;
16939
16940 uts4*)
16941 lt_prog_compiler_pic_GCJ='-pic'
16942 lt_prog_compiler_static_GCJ='-Bstatic'
16943 ;;
16944
16945 *)
16946 lt_prog_compiler_can_build_shared_GCJ=no
16947 ;;
16948 esac
16949 fi
16950
16951 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16952 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16953
16954 #
16955 # Check to make sure the PIC flag actually works.
16956 #
16957 if test -n "$lt_prog_compiler_pic_GCJ"; then
16958
16959 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16960 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16961 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964 lt_prog_compiler_pic_works_GCJ=no
16965 ac_outfile=conftest.$ac_objext
16966 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16967 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16968 # Insert the option either (1) after the last *FLAGS variable, or
16969 # (2) before a word containing "conftest.", or (3) at the end.
16970 # Note that $ac_compile itself does not contain backslashes and begins
16971 # with a dollar sign (not a hyphen), so the echo should work correctly.
16972 # The option is referenced via a variable to avoid confusing sed.
16973 lt_compile=`echo "$ac_compile" | $SED \
16974 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16975 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16976 -e 's:$: $lt_compiler_flag:'`
16977 (eval echo "\"\$as_me:16977: $lt_compile\"" >&5)
16978 (eval "$lt_compile" 2>conftest.err)
16979 ac_status=$?
16980 cat conftest.err >&5
16981 echo "$as_me:16981: \$? = $ac_status" >&5
16982 if (exit $ac_status) && test -s "$ac_outfile"; then
16983 # The compiler can only warn and ignore the option if not recognized
16984 # So say no if there are warnings other than the usual output.
16985 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16986 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16987 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16988 lt_prog_compiler_pic_works_GCJ=yes
16989 fi
16990 fi
16991 $rm conftest*
16992
16993 fi
16994 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16995 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16996
16997 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16998 case $lt_prog_compiler_pic_GCJ in
16999 "" | " "*) ;;
17000 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17001 esac
17002 else
17003 lt_prog_compiler_pic_GCJ=
17004 lt_prog_compiler_can_build_shared_GCJ=no
17005 fi
17006
17007 fi
17008 case $host_os in
17009 # For platforms which do not support PIC, -DPIC is meaningless:
17010 *djgpp*)
17011 lt_prog_compiler_pic_GCJ=
17012 ;;
17013 *)
17014 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17015 ;;
17016 esac
17017
17018 #
17019 # Check to make sure the static flag actually works.
17020 #
17021 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17022 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17023 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17024 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027 lt_prog_compiler_static_works_GCJ=no
17028 save_LDFLAGS="$LDFLAGS"
17029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17030 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17032 # The linker can only warn and ignore the option if not recognized
17033 # So say no if there are warnings
17034 if test -s conftest.err; then
17035 # Append any errors to the config.log.
17036 cat conftest.err 1>&5
17037 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17039 if diff conftest.exp conftest.er2 >/dev/null; then
17040 lt_prog_compiler_static_works_GCJ=yes
17041 fi
17042 else
17043 lt_prog_compiler_static_works_GCJ=yes
17044 fi
17045 fi
17046 $rm conftest*
17047 LDFLAGS="$save_LDFLAGS"
17048
17049 fi
17050 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17051 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17052
17053 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17054 :
17055 else
17056 lt_prog_compiler_static_GCJ=
17057 fi
17058
17059
17060 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17062 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 lt_cv_prog_compiler_c_o_GCJ=no
17066 $rm -r conftest 2>/dev/null
17067 mkdir conftest
17068 cd conftest
17069 mkdir out
17070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17071
17072 lt_compiler_flag="-o out/conftest2.$ac_objext"
17073 # Insert the option either (1) after the last *FLAGS variable, or
17074 # (2) before a word containing "conftest.", or (3) at the end.
17075 # Note that $ac_compile itself does not contain backslashes and begins
17076 # with a dollar sign (not a hyphen), so the echo should work correctly.
17077 lt_compile=`echo "$ac_compile" | $SED \
17078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17080 -e 's:$: $lt_compiler_flag:'`
17081 (eval echo "\"\$as_me:17081: $lt_compile\"" >&5)
17082 (eval "$lt_compile" 2>out/conftest.err)
17083 ac_status=$?
17084 cat out/conftest.err >&5
17085 echo "$as_me:17085: \$? = $ac_status" >&5
17086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17087 then
17088 # The compiler can only warn and ignore the option if not recognized
17089 # So say no if there are warnings
17090 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17093 lt_cv_prog_compiler_c_o_GCJ=yes
17094 fi
17095 fi
17096 chmod u+w . 2>&5
17097 $rm conftest*
17098 # SGI C++ compiler will create directory out/ii_files/ for
17099 # template instantiation
17100 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17101 $rm out/* && rmdir out
17102 cd ..
17103 rmdir conftest
17104 $rm conftest*
17105
17106 fi
17107 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17108 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17109
17110
17111 hard_links="nottested"
17112 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17113 # do not overwrite the value of need_locks provided by the user
17114 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17115 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17116 hard_links=yes
17117 $rm conftest*
17118 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17119 touch conftest.a
17120 ln conftest.a conftest.b 2>&5 || hard_links=no
17121 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17122 { echo "$as_me:$LINENO: result: $hard_links" >&5
17123 echo "${ECHO_T}$hard_links" >&6; }
17124 if test "$hard_links" = no; then
17125 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17126 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17127 need_locks=warn
17128 fi
17129 else
17130 need_locks=no
17131 fi
17132
17133 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17134 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17135
17136 runpath_var=
17137 allow_undefined_flag_GCJ=
17138 enable_shared_with_static_runtimes_GCJ=no
17139 archive_cmds_GCJ=
17140 archive_expsym_cmds_GCJ=
17141 old_archive_From_new_cmds_GCJ=
17142 old_archive_from_expsyms_cmds_GCJ=
17143 export_dynamic_flag_spec_GCJ=
17144 whole_archive_flag_spec_GCJ=
17145 thread_safe_flag_spec_GCJ=
17146 hardcode_libdir_flag_spec_GCJ=
17147 hardcode_libdir_flag_spec_ld_GCJ=
17148 hardcode_libdir_separator_GCJ=
17149 hardcode_direct_GCJ=no
17150 hardcode_minus_L_GCJ=no
17151 hardcode_shlibpath_var_GCJ=unsupported
17152 link_all_deplibs_GCJ=unknown
17153 hardcode_automatic_GCJ=no
17154 module_cmds_GCJ=
17155 module_expsym_cmds_GCJ=
17156 always_export_symbols_GCJ=no
17157 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17158 # include_expsyms should be a list of space-separated symbols to be *always*
17159 # included in the symbol list
17160 include_expsyms_GCJ=
17161 # exclude_expsyms can be an extended regexp of symbols to exclude
17162 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17163 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17164 # as well as any symbol that contains `d'.
17165 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17166 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17167 # platforms (ab)use it in PIC code, but their linkers get confused if
17168 # the symbol is explicitly referenced. Since portable code cannot
17169 # rely on this symbol name, it's probably fine to never include it in
17170 # preloaded symbol tables.
17171 extract_expsyms_cmds=
17172 # Just being paranoid about ensuring that cc_basename is set.
17173 for cc_temp in $compiler""; do
17174 case $cc_temp in
17175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17177 \-*) ;;
17178 *) break;;
17179 esac
17180 done
17181 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17182
17183 case $host_os in
17184 cygwin* | mingw* | pw32*)
17185 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17186 # When not using gcc, we currently assume that we are using
17187 # Microsoft Visual C++.
17188 if test "$GCC" != yes; then
17189 with_gnu_ld=no
17190 fi
17191 ;;
17192 interix*)
17193 # we just hope/assume this is gcc and not c89 (= MSVC++)
17194 with_gnu_ld=yes
17195 ;;
17196 openbsd*)
17197 with_gnu_ld=no
17198 ;;
17199 esac
17200
17201 ld_shlibs_GCJ=yes
17202 if test "$with_gnu_ld" = yes; then
17203 # If archive_cmds runs LD, not CC, wlarc should be empty
17204 wlarc='${wl}'
17205
17206 # Set some defaults for GNU ld with shared library support. These
17207 # are reset later if shared libraries are not supported. Putting them
17208 # here allows them to be overridden if necessary.
17209 runpath_var=LD_RUN_PATH
17210 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17211 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17212 # ancient GNU ld didn't support --whole-archive et. al.
17213 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17214 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17215 else
17216 whole_archive_flag_spec_GCJ=
17217 fi
17218 supports_anon_versioning=no
17219 case `$LD -v 2>/dev/null` in
17220 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17221 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17222 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17223 *\ 2.11.*) ;; # other 2.11 versions
17224 *) supports_anon_versioning=yes ;;
17225 esac
17226
17227 # See if GNU ld supports shared libraries.
17228 case $host_os in
17229 aix3* | aix4* | aix5*)
17230 # On AIX/PPC, the GNU linker is very broken
17231 if test "$host_cpu" != ia64; then
17232 ld_shlibs_GCJ=no
17233 cat <<EOF 1>&2
17234
17235 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17236 *** to be unable to reliably create shared libraries on AIX.
17237 *** Therefore, libtool is disabling shared libraries support. If you
17238 *** really care for shared libraries, you may want to modify your PATH
17239 *** so that a non-GNU linker is found, and then restart.
17240
17241 EOF
17242 fi
17243 ;;
17244
17245 amigaos*)
17246 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17247 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17248 hardcode_minus_L_GCJ=yes
17249
17250 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17251 # that the semantics of dynamic libraries on AmigaOS, at least up
17252 # to version 4, is to share data among multiple programs linked
17253 # with the same dynamic library. Since this doesn't match the
17254 # behavior of shared libraries on other platforms, we can't use
17255 # them.
17256 ld_shlibs_GCJ=no
17257 ;;
17258
17259 beos*)
17260 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17261 allow_undefined_flag_GCJ=unsupported
17262 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17263 # support --undefined. This deserves some investigation. FIXME
17264 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17265 else
17266 ld_shlibs_GCJ=no
17267 fi
17268 ;;
17269
17270 cygwin* | mingw* | pw32*)
17271 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17272 # as there is no search path for DLLs.
17273 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17274 allow_undefined_flag_GCJ=unsupported
17275 always_export_symbols_GCJ=no
17276 enable_shared_with_static_runtimes_GCJ=yes
17277 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17278
17279 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17280 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17281 # If the export-symbols file already is a .def file (1st line
17282 # is EXPORTS), use it as is; otherwise, prepend...
17283 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17284 cp $export_symbols $output_objdir/$soname.def;
17285 else
17286 echo EXPORTS > $output_objdir/$soname.def;
17287 cat $export_symbols >> $output_objdir/$soname.def;
17288 fi~
17289 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17290 else
17291 ld_shlibs_GCJ=no
17292 fi
17293 ;;
17294
17295 interix3*)
17296 hardcode_direct_GCJ=no
17297 hardcode_shlibpath_var_GCJ=no
17298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17299 export_dynamic_flag_spec_GCJ='${wl}-E'
17300 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17301 # Instead, shared libraries are loaded at an image base (0x10000000 by
17302 # default) and relocated if they conflict, which is a slow very memory
17303 # consuming and fragmenting process. To avoid this, we pick a random,
17304 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17305 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17306 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17307 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17308 ;;
17309
17310 linux*)
17311 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17312 tmp_addflag=
17313 case $cc_basename,$host_cpu in
17314 pgcc*) # Portland Group C compiler
17315 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17316 tmp_addflag=' $pic_flag'
17317 ;;
17318 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17319 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17320 tmp_addflag=' $pic_flag -Mnomain' ;;
17321 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17322 tmp_addflag=' -i_dynamic' ;;
17323 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17324 tmp_addflag=' -i_dynamic -nofor_main' ;;
17325 ifc* | ifort*) # Intel Fortran compiler
17326 tmp_addflag=' -nofor_main' ;;
17327 esac
17328 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17329
17330 if test $supports_anon_versioning = yes; then
17331 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17332 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17333 $echo "local: *; };" >> $output_objdir/$libname.ver~
17334 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17335 fi
17336 else
17337 ld_shlibs_GCJ=no
17338 fi
17339 ;;
17340
17341 netbsd*)
17342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17343 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17344 wlarc=
17345 else
17346 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17347 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17348 fi
17349 ;;
17350
17351 solaris*)
17352 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17353 ld_shlibs_GCJ=no
17354 cat <<EOF 1>&2
17355
17356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17357 *** create shared libraries on Solaris systems. Therefore, libtool
17358 *** is disabling shared libraries support. We urge you to upgrade GNU
17359 *** binutils to release 2.9.1 or newer. Another option is to modify
17360 *** your PATH or compiler configuration so that the native linker is
17361 *** used, and then restart.
17362
17363 EOF
17364 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17365 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17366 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17367 else
17368 ld_shlibs_GCJ=no
17369 fi
17370 ;;
17371
17372 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17373 case `$LD -v 2>&1` in
17374 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17375 ld_shlibs_GCJ=no
17376 cat <<_LT_EOF 1>&2
17377
17378 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17379 *** reliably create shared libraries on SCO systems. Therefore, libtool
17380 *** is disabling shared libraries support. We urge you to upgrade GNU
17381 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17382 *** your PATH or compiler configuration so that the native linker is
17383 *** used, and then restart.
17384
17385 _LT_EOF
17386 ;;
17387 *)
17388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17389 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17390 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17391 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17392 else
17393 ld_shlibs_GCJ=no
17394 fi
17395 ;;
17396 esac
17397 ;;
17398
17399 sunos4*)
17400 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17401 wlarc=
17402 hardcode_direct_GCJ=yes
17403 hardcode_shlibpath_var_GCJ=no
17404 ;;
17405
17406 *)
17407 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17408 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17409 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17410 else
17411 ld_shlibs_GCJ=no
17412 fi
17413 ;;
17414 esac
17415
17416 if test "$ld_shlibs_GCJ" = no; then
17417 runpath_var=
17418 hardcode_libdir_flag_spec_GCJ=
17419 export_dynamic_flag_spec_GCJ=
17420 whole_archive_flag_spec_GCJ=
17421 fi
17422 else
17423 # PORTME fill in a description of your system's linker (not GNU ld)
17424 case $host_os in
17425 aix3*)
17426 allow_undefined_flag_GCJ=unsupported
17427 always_export_symbols_GCJ=yes
17428 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'
17429 # Note: this linker hardcodes the directories in LIBPATH if there
17430 # are no directories specified by -L.
17431 hardcode_minus_L_GCJ=yes
17432 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17433 # Neither direct hardcoding nor static linking is supported with a
17434 # broken collect2.
17435 hardcode_direct_GCJ=unsupported
17436 fi
17437 ;;
17438
17439 aix4* | aix5*)
17440 if test "$host_cpu" = ia64; then
17441 # On IA64, the linker does run time linking by default, so we don't
17442 # have to do anything special.
17443 aix_use_runtimelinking=no
17444 exp_sym_flag='-Bexport'
17445 no_entry_flag=""
17446 else
17447 # If we're using GNU nm, then we don't want the "-C" option.
17448 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17449 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17450 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'
17451 else
17452 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17453 fi
17454 aix_use_runtimelinking=no
17455
17456 # Test if we are trying to use run time linking or normal
17457 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17458 # need to do runtime linking.
17459 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17460 for ld_flag in $LDFLAGS; do
17461 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17462 aix_use_runtimelinking=yes
17463 break
17464 fi
17465 done
17466 ;;
17467 esac
17468
17469 exp_sym_flag='-bexport'
17470 no_entry_flag='-bnoentry'
17471 fi
17472
17473 # When large executables or shared objects are built, AIX ld can
17474 # have problems creating the table of contents. If linking a library
17475 # or program results in "error TOC overflow" add -mminimal-toc to
17476 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17477 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17478
17479 archive_cmds_GCJ=''
17480 hardcode_direct_GCJ=yes
17481 hardcode_libdir_separator_GCJ=':'
17482 link_all_deplibs_GCJ=yes
17483
17484 if test "$GCC" = yes; then
17485 case $host_os in aix4.[012]|aix4.[012].*)
17486 # We only want to do this on AIX 4.2 and lower, the check
17487 # below for broken collect2 doesn't work under 4.3+
17488 collect2name=`${CC} -print-prog-name=collect2`
17489 if test -f "$collect2name" && \
17490 strings "$collect2name" | grep resolve_lib_name >/dev/null
17491 then
17492 # We have reworked collect2
17493 hardcode_direct_GCJ=yes
17494 else
17495 # We have old collect2
17496 hardcode_direct_GCJ=unsupported
17497 # It fails to find uninstalled libraries when the uninstalled
17498 # path is not listed in the libpath. Setting hardcode_minus_L
17499 # to unsupported forces relinking
17500 hardcode_minus_L_GCJ=yes
17501 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17502 hardcode_libdir_separator_GCJ=
17503 fi
17504 ;;
17505 esac
17506 shared_flag='-shared'
17507 if test "$aix_use_runtimelinking" = yes; then
17508 shared_flag="$shared_flag "'${wl}-G'
17509 fi
17510 else
17511 # not using gcc
17512 if test "$host_cpu" = ia64; then
17513 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17514 # chokes on -Wl,-G. The following line is correct:
17515 shared_flag='-G'
17516 else
17517 if test "$aix_use_runtimelinking" = yes; then
17518 shared_flag='${wl}-G'
17519 else
17520 shared_flag='${wl}-bM:SRE'
17521 fi
17522 fi
17523 fi
17524
17525 # It seems that -bexpall does not export symbols beginning with
17526 # underscore (_), so it is better to generate a list of symbols to export.
17527 always_export_symbols_GCJ=yes
17528 if test "$aix_use_runtimelinking" = yes; then
17529 # Warning - without using the other runtime loading flags (-brtl),
17530 # -berok will link without error, but may produce a broken library.
17531 allow_undefined_flag_GCJ='-berok'
17532 # Determine the default libpath from the value encoded in an empty executable.
17533 cat >conftest.$ac_ext <<_ACEOF
17534 /* confdefs.h. */
17535 _ACEOF
17536 cat confdefs.h >>conftest.$ac_ext
17537 cat >>conftest.$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539
17540 int
17541 main ()
17542 {
17543
17544 ;
17545 return 0;
17546 }
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_link") 2>conftest.er1
17556 ac_status=$?
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest$ac_exeext &&
17565 $as_test_x conftest$ac_exeext; then
17566
17567 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17568 }'`
17569 # Check for a 64-bit object if we didn't find anything.
17570 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17571 }'`; fi
17572 else
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17575
17576
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17580 conftest$ac_exeext conftest.$ac_ext
17581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17582
17583 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17584 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17585 else
17586 if test "$host_cpu" = ia64; then
17587 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17588 allow_undefined_flag_GCJ="-z nodefs"
17589 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17590 else
17591 # Determine the default libpath from the value encoded in an empty executable.
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598
17599 int
17600 main ()
17601 {
17602
17603 ;
17604 return 0;
17605 }
17606 _ACEOF
17607 rm -f conftest.$ac_objext conftest$ac_exeext
17608 if { (ac_try="$ac_link"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_link") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest$ac_exeext &&
17624 $as_test_x conftest$ac_exeext; then
17625
17626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17627 }'`
17628 # Check for a 64-bit object if we didn't find anything.
17629 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17630 }'`; fi
17631 else
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635
17636 fi
17637
17638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17639 conftest$ac_exeext conftest.$ac_ext
17640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17641
17642 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17643 # Warning - without using the other run time loading flags,
17644 # -berok will link without error, but may produce a broken library.
17645 no_undefined_flag_GCJ=' ${wl}-bernotok'
17646 allow_undefined_flag_GCJ=' ${wl}-berok'
17647 # Exported symbols can be pulled into shared objects from archives
17648 whole_archive_flag_spec_GCJ='$convenience'
17649 archive_cmds_need_lc_GCJ=yes
17650 # This is similar to how AIX traditionally builds its shared libraries.
17651 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17652 fi
17653 fi
17654 ;;
17655
17656 amigaos*)
17657 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17658 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17659 hardcode_minus_L_GCJ=yes
17660 # see comment about different semantics on the GNU ld section
17661 ld_shlibs_GCJ=no
17662 ;;
17663
17664 bsdi[45]*)
17665 export_dynamic_flag_spec_GCJ=-rdynamic
17666 ;;
17667
17668 cygwin* | mingw* | pw32*)
17669 # When not using gcc, we currently assume that we are using
17670 # Microsoft Visual C++.
17671 # hardcode_libdir_flag_spec is actually meaningless, as there is
17672 # no search path for DLLs.
17673 hardcode_libdir_flag_spec_GCJ=' '
17674 allow_undefined_flag_GCJ=unsupported
17675 # Tell ltmain to make .lib files, not .a files.
17676 libext=lib
17677 # Tell ltmain to make .dll files, not .so files.
17678 shrext_cmds=".dll"
17679 # FIXME: Setting linknames here is a bad hack.
17680 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17681 # The linker will automatically build a .lib file if we build a DLL.
17682 old_archive_From_new_cmds_GCJ='true'
17683 # FIXME: Should let the user specify the lib program.
17684 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17685 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17686 enable_shared_with_static_runtimes_GCJ=yes
17687 ;;
17688
17689 darwin* | rhapsody*)
17690 case $host_os in
17691 rhapsody* | darwin1.[012])
17692 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17693 ;;
17694 *) # Darwin 1.3 on
17695 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17696 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17697 else
17698 case ${MACOSX_DEPLOYMENT_TARGET} in
17699 10.[012])
17700 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17701 ;;
17702 10.*)
17703 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17704 ;;
17705 esac
17706 fi
17707 ;;
17708 esac
17709 archive_cmds_need_lc_GCJ=no
17710 hardcode_direct_GCJ=no
17711 hardcode_automatic_GCJ=yes
17712 hardcode_shlibpath_var_GCJ=unsupported
17713 whole_archive_flag_spec_GCJ=''
17714 link_all_deplibs_GCJ=yes
17715 if test "$GCC" = yes ; then
17716 output_verbose_link_cmd='echo'
17717 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17718 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17719 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17720 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17721 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17722 else
17723 case $cc_basename in
17724 xlc*)
17725 output_verbose_link_cmd='echo'
17726 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17727 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17728 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17729 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17730 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17731 ;;
17732 *)
17733 ld_shlibs_GCJ=no
17734 ;;
17735 esac
17736 fi
17737 ;;
17738
17739 dgux*)
17740 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17742 hardcode_shlibpath_var_GCJ=no
17743 ;;
17744
17745 freebsd1*)
17746 ld_shlibs_GCJ=no
17747 ;;
17748
17749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17750 # support. Future versions do this automatically, but an explicit c++rt0.o
17751 # does not break anything, and helps significantly (at the cost of a little
17752 # extra space).
17753 freebsd2.2*)
17754 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17755 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17756 hardcode_direct_GCJ=yes
17757 hardcode_shlibpath_var_GCJ=no
17758 ;;
17759
17760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17761 freebsd2*)
17762 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17763 hardcode_direct_GCJ=yes
17764 hardcode_minus_L_GCJ=yes
17765 hardcode_shlibpath_var_GCJ=no
17766 ;;
17767
17768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17769 freebsd* | kfreebsd*-gnu | dragonfly*)
17770 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17771 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17772 hardcode_direct_GCJ=yes
17773 hardcode_shlibpath_var_GCJ=no
17774 ;;
17775
17776 hpux9*)
17777 if test "$GCC" = yes; then
17778 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'
17779 else
17780 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17781 fi
17782 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17783 hardcode_libdir_separator_GCJ=:
17784 hardcode_direct_GCJ=yes
17785
17786 # hardcode_minus_L: Not really in the search PATH,
17787 # but as the default location of the library.
17788 hardcode_minus_L_GCJ=yes
17789 export_dynamic_flag_spec_GCJ='${wl}-E'
17790 ;;
17791
17792 hpux10*)
17793 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17794 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17795 else
17796 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17797 fi
17798 if test "$with_gnu_ld" = no; then
17799 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17800 hardcode_libdir_separator_GCJ=:
17801
17802 hardcode_direct_GCJ=yes
17803 export_dynamic_flag_spec_GCJ='${wl}-E'
17804
17805 # hardcode_minus_L: Not really in the search PATH,
17806 # but as the default location of the library.
17807 hardcode_minus_L_GCJ=yes
17808 fi
17809 ;;
17810
17811 hpux11*)
17812 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17813 case $host_cpu in
17814 hppa*64*)
17815 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17816 ;;
17817 ia64*)
17818 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17819 ;;
17820 *)
17821 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17822 ;;
17823 esac
17824 else
17825 case $host_cpu in
17826 hppa*64*)
17827 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17828 ;;
17829 ia64*)
17830 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17831 ;;
17832 *)
17833 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17834 ;;
17835 esac
17836 fi
17837 if test "$with_gnu_ld" = no; then
17838 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17839 hardcode_libdir_separator_GCJ=:
17840
17841 case $host_cpu in
17842 hppa*64*|ia64*)
17843 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17844 hardcode_direct_GCJ=no
17845 hardcode_shlibpath_var_GCJ=no
17846 ;;
17847 *)
17848 hardcode_direct_GCJ=yes
17849 export_dynamic_flag_spec_GCJ='${wl}-E'
17850
17851 # hardcode_minus_L: Not really in the search PATH,
17852 # but as the default location of the library.
17853 hardcode_minus_L_GCJ=yes
17854 ;;
17855 esac
17856 fi
17857 ;;
17858
17859 irix5* | irix6* | nonstopux*)
17860 if test "$GCC" = yes; then
17861 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17862 else
17863 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17864 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17865 fi
17866 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17867 hardcode_libdir_separator_GCJ=:
17868 link_all_deplibs_GCJ=yes
17869 ;;
17870
17871 netbsd*)
17872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17873 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17874 else
17875 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17876 fi
17877 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17878 hardcode_direct_GCJ=yes
17879 hardcode_shlibpath_var_GCJ=no
17880 ;;
17881
17882 newsos6)
17883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17884 hardcode_direct_GCJ=yes
17885 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17886 hardcode_libdir_separator_GCJ=:
17887 hardcode_shlibpath_var_GCJ=no
17888 ;;
17889
17890 openbsd*)
17891 hardcode_direct_GCJ=yes
17892 hardcode_shlibpath_var_GCJ=no
17893 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17894 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17895 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17896 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17897 export_dynamic_flag_spec_GCJ='${wl}-E'
17898 else
17899 case $host_os in
17900 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17901 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17902 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17903 ;;
17904 *)
17905 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17906 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17907 ;;
17908 esac
17909 fi
17910 ;;
17911
17912 os2*)
17913 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17914 hardcode_minus_L_GCJ=yes
17915 allow_undefined_flag_GCJ=unsupported
17916 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17917 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17918 ;;
17919
17920 osf3*)
17921 if test "$GCC" = yes; then
17922 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17923 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17924 else
17925 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17926 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17927 fi
17928 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17929 hardcode_libdir_separator_GCJ=:
17930 ;;
17931
17932 osf4* | osf5*) # as osf3* with the addition of -msym flag
17933 if test "$GCC" = yes; then
17934 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17935 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17937 else
17938 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17939 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17940 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~
17941 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17942
17943 # Both c and cxx compiler support -rpath directly
17944 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17945 fi
17946 hardcode_libdir_separator_GCJ=:
17947 ;;
17948
17949 solaris*)
17950 no_undefined_flag_GCJ=' -z text'
17951 if test "$GCC" = yes; then
17952 wlarc='${wl}'
17953 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17954 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17955 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17956 else
17957 wlarc=''
17958 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17961 fi
17962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963 hardcode_shlibpath_var_GCJ=no
17964 case $host_os in
17965 solaris2.[0-5] | solaris2.[0-5].*) ;;
17966 *)
17967 # The compiler driver will combine linker options so we
17968 # cannot just pass the convience library names through
17969 # without $wl, iff we do not link with $LD.
17970 # Luckily, gcc supports the same syntax we need for Sun Studio.
17971 # Supported since Solaris 2.6 (maybe 2.5.1?)
17972 case $wlarc in
17973 '')
17974 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17975 *)
17976 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17977 esac ;;
17978 esac
17979 link_all_deplibs_GCJ=yes
17980 ;;
17981
17982 sunos4*)
17983 if test "x$host_vendor" = xsequent; then
17984 # Use $CC to link under sequent, because it throws in some extra .o
17985 # files that make .init and .fini sections work.
17986 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17987 else
17988 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17989 fi
17990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17991 hardcode_direct_GCJ=yes
17992 hardcode_minus_L_GCJ=yes
17993 hardcode_shlibpath_var_GCJ=no
17994 ;;
17995
17996 sysv4)
17997 case $host_vendor in
17998 sni)
17999 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18000 hardcode_direct_GCJ=yes # is this really true???
18001 ;;
18002 siemens)
18003 ## LD is ld it makes a PLAMLIB
18004 ## CC just makes a GrossModule.
18005 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18006 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18007 hardcode_direct_GCJ=no
18008 ;;
18009 motorola)
18010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18011 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18012 ;;
18013 esac
18014 runpath_var='LD_RUN_PATH'
18015 hardcode_shlibpath_var_GCJ=no
18016 ;;
18017
18018 sysv4.3*)
18019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_shlibpath_var_GCJ=no
18021 export_dynamic_flag_spec_GCJ='-Bexport'
18022 ;;
18023
18024 sysv4*MP*)
18025 if test -d /usr/nec; then
18026 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027 hardcode_shlibpath_var_GCJ=no
18028 runpath_var=LD_RUN_PATH
18029 hardcode_runpath_var=yes
18030 ld_shlibs_GCJ=yes
18031 fi
18032 ;;
18033
18034 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18035 no_undefined_flag_GCJ='${wl}-z,text'
18036 archive_cmds_need_lc_GCJ=no
18037 hardcode_shlibpath_var_GCJ=no
18038 runpath_var='LD_RUN_PATH'
18039
18040 if test "$GCC" = yes; then
18041 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18042 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18043 else
18044 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18045 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18046 fi
18047 ;;
18048
18049 sysv5* | sco3.2v5* | sco5v6*)
18050 # Note: We can NOT use -z defs as we might desire, because we do not
18051 # link with -lc, and that would cause any symbols used from libc to
18052 # always be unresolved, which means just about no library would
18053 # ever link correctly. If we're not using GNU ld we use -z text
18054 # though, which does catch some bad symbols but isn't as heavy-handed
18055 # as -z defs.
18056 no_undefined_flag_GCJ='${wl}-z,text'
18057 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18058 archive_cmds_need_lc_GCJ=no
18059 hardcode_shlibpath_var_GCJ=no
18060 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18061 hardcode_libdir_separator_GCJ=':'
18062 link_all_deplibs_GCJ=yes
18063 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18064 runpath_var='LD_RUN_PATH'
18065
18066 if test "$GCC" = yes; then
18067 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18068 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 else
18070 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18071 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18072 fi
18073 ;;
18074
18075 uts4*)
18076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078 hardcode_shlibpath_var_GCJ=no
18079 ;;
18080
18081 *)
18082 ld_shlibs_GCJ=no
18083 ;;
18084 esac
18085 fi
18086
18087 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18088 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18089 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18090
18091 #
18092 # Do we need to explicitly link libc?
18093 #
18094 case "x$archive_cmds_need_lc_GCJ" in
18095 x|xyes)
18096 # Assume -lc should be added
18097 archive_cmds_need_lc_GCJ=yes
18098
18099 if test "$enable_shared" = yes && test "$GCC" = yes; then
18100 case $archive_cmds_GCJ in
18101 *'~'*)
18102 # FIXME: we may have to deal with multi-command sequences.
18103 ;;
18104 '$CC '*)
18105 # Test whether the compiler implicitly links with -lc since on some
18106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18107 # to ld, don't add -lc before -lgcc.
18108 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18109 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18110 $rm conftest*
18111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18112
18113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18114 (eval $ac_compile) 2>&5
18115 ac_status=$?
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } 2>conftest.err; then
18118 soname=conftest
18119 lib=conftest
18120 libobjs=conftest.$ac_objext
18121 deplibs=
18122 wl=$lt_prog_compiler_wl_GCJ
18123 pic_flag=$lt_prog_compiler_pic_GCJ
18124 compiler_flags=-v
18125 linker_flags=-v
18126 verstring=
18127 output_objdir=.
18128 libname=conftest
18129 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18130 allow_undefined_flag_GCJ=
18131 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18132 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }
18136 then
18137 archive_cmds_need_lc_GCJ=no
18138 else
18139 archive_cmds_need_lc_GCJ=yes
18140 fi
18141 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18142 else
18143 cat conftest.err 1>&5
18144 fi
18145 $rm conftest*
18146 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18147 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18148 ;;
18149 esac
18150 fi
18151 ;;
18152 esac
18153
18154 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18155 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18156 library_names_spec=
18157 libname_spec='lib$name'
18158 soname_spec=
18159 shrext_cmds=".so"
18160 postinstall_cmds=
18161 postuninstall_cmds=
18162 finish_cmds=
18163 finish_eval=
18164 shlibpath_var=
18165 shlibpath_overrides_runpath=unknown
18166 version_type=none
18167 dynamic_linker="$host_os ld.so"
18168 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18169 if test "$GCC" = yes; then
18170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18171 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18172 # if the path contains ";" then we assume it to be the separator
18173 # otherwise default to the standard path separator (i.e. ":") - it is
18174 # assumed that no part of a normal pathname contains ";" but that should
18175 # okay in the real world where ";" in dirpaths is itself problematic.
18176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18177 else
18178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18179 fi
18180 else
18181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18182 fi
18183 need_lib_prefix=unknown
18184 hardcode_into_libs=no
18185
18186 # when you set need_version to no, make sure it does not cause -set_version
18187 # flags to be left without arguments
18188 need_version=unknown
18189
18190 case $host_os in
18191 aix3*)
18192 version_type=linux
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18194 shlibpath_var=LIBPATH
18195
18196 # AIX 3 has no versioning support, so we append a major version to the name.
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 ;;
18199
18200 aix4* | aix5*)
18201 version_type=linux
18202 need_lib_prefix=no
18203 need_version=no
18204 hardcode_into_libs=yes
18205 if test "$host_cpu" = ia64; then
18206 # AIX 5 supports IA64
18207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 else
18210 # With GCC up to 2.95.x, collect2 would create an import file
18211 # for dependence libraries. The import file would start with
18212 # the line `#! .'. This would cause the generated library to
18213 # depend on `.', always an invalid library. This was fixed in
18214 # development snapshots of GCC prior to 3.0.
18215 case $host_os in
18216 aix4 | aix4.[01] | aix4.[01].*)
18217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18218 echo ' yes '
18219 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18220 :
18221 else
18222 can_build_shared=no
18223 fi
18224 ;;
18225 esac
18226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18227 # soname into executable. Probably we can add versioning support to
18228 # collect2, so additional links can be useful in future.
18229 if test "$aix_use_runtimelinking" = yes; then
18230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18231 # instead of lib<name>.a to let people know that these are not
18232 # typical AIX shared libraries.
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234 else
18235 # We preserve .a as extension for shared libraries through AIX4.2
18236 # and later when we are not doing run time linking.
18237 library_names_spec='${libname}${release}.a $libname.a'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 fi
18240 shlibpath_var=LIBPATH
18241 fi
18242 ;;
18243
18244 amigaos*)
18245 library_names_spec='$libname.ixlibrary $libname.a'
18246 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18247 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18248 ;;
18249
18250 beos*)
18251 library_names_spec='${libname}${shared_ext}'
18252 dynamic_linker="$host_os ld.so"
18253 shlibpath_var=LIBRARY_PATH
18254 ;;
18255
18256 bsdi[45]*)
18257 version_type=linux
18258 need_version=no
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 soname_spec='${libname}${release}${shared_ext}$major'
18261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18265 # the default ld.so.conf also contains /usr/contrib/lib and
18266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18267 # libtool to hard-code these into programs
18268 ;;
18269
18270 cygwin* | mingw* | pw32*)
18271 version_type=windows
18272 shrext_cmds=".dll"
18273 need_version=no
18274 need_lib_prefix=no
18275
18276 case $GCC,$host_os in
18277 yes,cygwin* | yes,mingw* | yes,pw32*)
18278 library_names_spec='$libname.dll.a'
18279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18280 postinstall_cmds='base_file=`basename \${file}`~
18281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18282 dldir=$destdir/`dirname \$dlpath`~
18283 test -d \$dldir || mkdir -p \$dldir~
18284 $install_prog $dir/$dlname \$dldir/$dlname~
18285 chmod a+x \$dldir/$dlname'
18286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18287 dlpath=$dir/\$dldll~
18288 $rm \$dlpath'
18289 shlibpath_overrides_runpath=yes
18290
18291 case $host_os in
18292 cygwin*)
18293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18295 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18296 ;;
18297 mingw*)
18298 # MinGW DLLs use traditional 'lib' prefix
18299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18301 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18302 # It is most probably a Windows format PATH printed by
18303 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18304 # path with ; separators, and with drive letters. We can handle the
18305 # drive letters (cygwin fileutils understands them), so leave them,
18306 # especially as we might pass files found there to a mingw objdump,
18307 # which wouldn't understand a cygwinified path. Ahh.
18308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18309 else
18310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18311 fi
18312 ;;
18313 pw32*)
18314 # pw32 DLLs use 'pw' prefix rather than 'lib'
18315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18316 ;;
18317 esac
18318 ;;
18319
18320 *)
18321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18322 ;;
18323 esac
18324 dynamic_linker='Win32 ld.exe'
18325 # FIXME: first we should search . and the directory the executable is in
18326 shlibpath_var=PATH
18327 ;;
18328
18329 darwin* | rhapsody*)
18330 dynamic_linker="$host_os dyld"
18331 version_type=darwin
18332 need_lib_prefix=no
18333 need_version=no
18334 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18335 soname_spec='${libname}${release}${major}$shared_ext'
18336 shlibpath_overrides_runpath=yes
18337 shlibpath_var=DYLD_LIBRARY_PATH
18338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18339 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18340 if test "$GCC" = yes; then
18341 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18342 else
18343 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18344 fi
18345 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18346 ;;
18347
18348 dgux*)
18349 version_type=linux
18350 need_lib_prefix=no
18351 need_version=no
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 shlibpath_var=LD_LIBRARY_PATH
18355 ;;
18356
18357 freebsd1*)
18358 dynamic_linker=no
18359 ;;
18360
18361 kfreebsd*-gnu)
18362 version_type=linux
18363 need_lib_prefix=no
18364 need_version=no
18365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18366 soname_spec='${libname}${release}${shared_ext}$major'
18367 shlibpath_var=LD_LIBRARY_PATH
18368 shlibpath_overrides_runpath=no
18369 hardcode_into_libs=yes
18370 dynamic_linker='GNU ld.so'
18371 ;;
18372
18373 freebsd* | dragonfly*)
18374 # DragonFly does not have aout. When/if they implement a new
18375 # versioning mechanism, adjust this.
18376 if test -x /usr/bin/objformat; then
18377 objformat=`/usr/bin/objformat`
18378 else
18379 case $host_os in
18380 freebsd[123]*) objformat=aout ;;
18381 *) objformat=elf ;;
18382 esac
18383 fi
18384 version_type=freebsd-$objformat
18385 case $version_type in
18386 freebsd-elf*)
18387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18388 need_version=no
18389 need_lib_prefix=no
18390 ;;
18391 freebsd-*)
18392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18393 need_version=yes
18394 ;;
18395 esac
18396 shlibpath_var=LD_LIBRARY_PATH
18397 case $host_os in
18398 freebsd2*)
18399 shlibpath_overrides_runpath=yes
18400 ;;
18401 freebsd3.[01]* | freebsdelf3.[01]*)
18402 shlibpath_overrides_runpath=yes
18403 hardcode_into_libs=yes
18404 ;;
18405 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18406 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18407 shlibpath_overrides_runpath=no
18408 hardcode_into_libs=yes
18409 ;;
18410 freebsd*) # from 4.6 on
18411 shlibpath_overrides_runpath=yes
18412 hardcode_into_libs=yes
18413 ;;
18414 esac
18415 ;;
18416
18417 gnu*)
18418 version_type=linux
18419 need_lib_prefix=no
18420 need_version=no
18421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18422 soname_spec='${libname}${release}${shared_ext}$major'
18423 shlibpath_var=LD_LIBRARY_PATH
18424 hardcode_into_libs=yes
18425 ;;
18426
18427 hpux9* | hpux10* | hpux11*)
18428 # Give a soname corresponding to the major version so that dld.sl refuses to
18429 # link against other versions.
18430 version_type=sunos
18431 need_lib_prefix=no
18432 need_version=no
18433 case $host_cpu in
18434 ia64*)
18435 shrext_cmds='.so'
18436 hardcode_into_libs=yes
18437 dynamic_linker="$host_os dld.so"
18438 shlibpath_var=LD_LIBRARY_PATH
18439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18441 soname_spec='${libname}${release}${shared_ext}$major'
18442 if test "X$HPUX_IA64_MODE" = X32; then
18443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18444 else
18445 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18446 fi
18447 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18448 ;;
18449 hppa*64*)
18450 shrext_cmds='.sl'
18451 hardcode_into_libs=yes
18452 dynamic_linker="$host_os dld.sl"
18453 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18454 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 soname_spec='${libname}${release}${shared_ext}$major'
18457 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18459 ;;
18460 *)
18461 shrext_cmds='.sl'
18462 dynamic_linker="$host_os dld.sl"
18463 shlibpath_var=SHLIB_PATH
18464 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18466 soname_spec='${libname}${release}${shared_ext}$major'
18467 ;;
18468 esac
18469 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18470 postinstall_cmds='chmod 555 $lib'
18471 ;;
18472
18473 interix3*)
18474 version_type=linux
18475 need_lib_prefix=no
18476 need_version=no
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18480 shlibpath_var=LD_LIBRARY_PATH
18481 shlibpath_overrides_runpath=no
18482 hardcode_into_libs=yes
18483 ;;
18484
18485 irix5* | irix6* | nonstopux*)
18486 case $host_os in
18487 nonstopux*) version_type=nonstopux ;;
18488 *)
18489 if test "$lt_cv_prog_gnu_ld" = yes; then
18490 version_type=linux
18491 else
18492 version_type=irix
18493 fi ;;
18494 esac
18495 need_lib_prefix=no
18496 need_version=no
18497 soname_spec='${libname}${release}${shared_ext}$major'
18498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18499 case $host_os in
18500 irix5* | nonstopux*)
18501 libsuff= shlibsuff=
18502 ;;
18503 *)
18504 case $LD in # libtool.m4 will add one of these switches to LD
18505 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18506 libsuff= shlibsuff= libmagic=32-bit;;
18507 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18508 libsuff=32 shlibsuff=N32 libmagic=N32;;
18509 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18510 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18511 *) libsuff= shlibsuff= libmagic=never-match;;
18512 esac
18513 ;;
18514 esac
18515 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18516 shlibpath_overrides_runpath=no
18517 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18518 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18519 hardcode_into_libs=yes
18520 ;;
18521
18522 # No shared lib support for Linux oldld, aout, or coff.
18523 linux*oldld* | linux*aout* | linux*coff*)
18524 dynamic_linker=no
18525 ;;
18526
18527 # This must be Linux ELF.
18528 linux*)
18529 version_type=linux
18530 need_lib_prefix=no
18531 need_version=no
18532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18533 soname_spec='${libname}${release}${shared_ext}$major'
18534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18535 shlibpath_var=LD_LIBRARY_PATH
18536 shlibpath_overrides_runpath=no
18537 # This implies no fast_install, which is unacceptable.
18538 # Some rework will be needed to allow for fast_install
18539 # before this can be enabled.
18540 hardcode_into_libs=yes
18541
18542 # find out which ABI we are using
18543 libsuff=
18544 case "$host_cpu" in
18545 x86_64*|s390x*|powerpc64*)
18546 echo '#line 18546 "configure"' > conftest.$ac_ext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18548 (eval $ac_compile) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; then
18552 case `/usr/bin/file conftest.$ac_objext` in
18553 *64-bit*)
18554 libsuff=64
18555 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18556 ;;
18557 esac
18558 fi
18559 rm -rf conftest*
18560 ;;
18561 esac
18562
18563 # Append ld.so.conf contents to the search path
18564 if test -f /etc/ld.so.conf; then
18565 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18566 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18567 fi
18568
18569 # We used to test for /lib/ld.so.1 and disable shared libraries on
18570 # powerpc, because MkLinux only supported shared libraries with the
18571 # GNU dynamic linker. Since this was broken with cross compilers,
18572 # most powerpc-linux boxes support dynamic linking these days and
18573 # people can always --disable-shared, the test was removed, and we
18574 # assume the GNU/Linux dynamic linker is in use.
18575 dynamic_linker='GNU/Linux ld.so'
18576 ;;
18577
18578 knetbsd*-gnu)
18579 version_type=linux
18580 need_lib_prefix=no
18581 need_version=no
18582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18583 soname_spec='${libname}${release}${shared_ext}$major'
18584 shlibpath_var=LD_LIBRARY_PATH
18585 shlibpath_overrides_runpath=no
18586 hardcode_into_libs=yes
18587 dynamic_linker='GNU ld.so'
18588 ;;
18589
18590 netbsd*)
18591 version_type=sunos
18592 need_lib_prefix=no
18593 need_version=no
18594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18597 dynamic_linker='NetBSD (a.out) ld.so'
18598 else
18599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18600 soname_spec='${libname}${release}${shared_ext}$major'
18601 dynamic_linker='NetBSD ld.elf_so'
18602 fi
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 ;;
18607
18608 newsos6)
18609 version_type=linux
18610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18611 shlibpath_var=LD_LIBRARY_PATH
18612 shlibpath_overrides_runpath=yes
18613 ;;
18614
18615 nto-qnx*)
18616 version_type=linux
18617 need_lib_prefix=no
18618 need_version=no
18619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18620 soname_spec='${libname}${release}${shared_ext}$major'
18621 shlibpath_var=LD_LIBRARY_PATH
18622 shlibpath_overrides_runpath=yes
18623 ;;
18624
18625 openbsd*)
18626 version_type=sunos
18627 sys_lib_dlsearch_path_spec="/usr/lib"
18628 need_lib_prefix=no
18629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18630 case $host_os in
18631 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18632 *) need_version=no ;;
18633 esac
18634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18636 shlibpath_var=LD_LIBRARY_PATH
18637 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18638 case $host_os in
18639 openbsd2.[89] | openbsd2.[89].*)
18640 shlibpath_overrides_runpath=no
18641 ;;
18642 *)
18643 shlibpath_overrides_runpath=yes
18644 ;;
18645 esac
18646 else
18647 shlibpath_overrides_runpath=yes
18648 fi
18649 ;;
18650
18651 os2*)
18652 libname_spec='$name'
18653 shrext_cmds=".dll"
18654 need_lib_prefix=no
18655 library_names_spec='$libname${shared_ext} $libname.a'
18656 dynamic_linker='OS/2 ld.exe'
18657 shlibpath_var=LIBPATH
18658 ;;
18659
18660 osf3* | osf4* | osf5*)
18661 version_type=osf
18662 need_lib_prefix=no
18663 need_version=no
18664 soname_spec='${libname}${release}${shared_ext}$major'
18665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666 shlibpath_var=LD_LIBRARY_PATH
18667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18669 ;;
18670
18671 solaris*)
18672 version_type=linux
18673 need_lib_prefix=no
18674 need_version=no
18675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676 soname_spec='${libname}${release}${shared_ext}$major'
18677 shlibpath_var=LD_LIBRARY_PATH
18678 shlibpath_overrides_runpath=yes
18679 hardcode_into_libs=yes
18680 # ldd complains unless libraries are executable
18681 postinstall_cmds='chmod +x $lib'
18682 ;;
18683
18684 sunos4*)
18685 version_type=sunos
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18687 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18688 shlibpath_var=LD_LIBRARY_PATH
18689 shlibpath_overrides_runpath=yes
18690 if test "$with_gnu_ld" = yes; then
18691 need_lib_prefix=no
18692 fi
18693 need_version=yes
18694 ;;
18695
18696 sysv4 | sysv4.3*)
18697 version_type=linux
18698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699 soname_spec='${libname}${release}${shared_ext}$major'
18700 shlibpath_var=LD_LIBRARY_PATH
18701 case $host_vendor in
18702 sni)
18703 shlibpath_overrides_runpath=no
18704 need_lib_prefix=no
18705 export_dynamic_flag_spec='${wl}-Blargedynsym'
18706 runpath_var=LD_RUN_PATH
18707 ;;
18708 siemens)
18709 need_lib_prefix=no
18710 ;;
18711 motorola)
18712 need_lib_prefix=no
18713 need_version=no
18714 shlibpath_overrides_runpath=no
18715 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18716 ;;
18717 esac
18718 ;;
18719
18720 sysv4*MP*)
18721 if test -d /usr/nec ;then
18722 version_type=linux
18723 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18724 soname_spec='$libname${shared_ext}.$major'
18725 shlibpath_var=LD_LIBRARY_PATH
18726 fi
18727 ;;
18728
18729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18730 version_type=freebsd-elf
18731 need_lib_prefix=no
18732 need_version=no
18733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18734 soname_spec='${libname}${release}${shared_ext}$major'
18735 shlibpath_var=LD_LIBRARY_PATH
18736 hardcode_into_libs=yes
18737 if test "$with_gnu_ld" = yes; then
18738 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18739 shlibpath_overrides_runpath=no
18740 else
18741 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18742 shlibpath_overrides_runpath=yes
18743 case $host_os in
18744 sco3.2v5*)
18745 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18746 ;;
18747 esac
18748 fi
18749 sys_lib_dlsearch_path_spec='/usr/lib'
18750 ;;
18751
18752 uts4*)
18753 version_type=linux
18754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18755 soname_spec='${libname}${release}${shared_ext}$major'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 ;;
18758
18759 *)
18760 dynamic_linker=no
18761 ;;
18762 esac
18763 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18764 echo "${ECHO_T}$dynamic_linker" >&6; }
18765 test "$dynamic_linker" = no && can_build_shared=no
18766
18767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18768 if test "$GCC" = yes; then
18769 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18770 fi
18771
18772 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18774 hardcode_action_GCJ=
18775 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18776 test -n "$runpath_var_GCJ" || \
18777 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18778
18779 # We can hardcode non-existant directories.
18780 if test "$hardcode_direct_GCJ" != no &&
18781 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18782 # have to relink, otherwise we might link with an installed library
18783 # when we should be linking with a yet-to-be-installed one
18784 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18785 test "$hardcode_minus_L_GCJ" != no; then
18786 # Linking always hardcodes the temporary library directory.
18787 hardcode_action_GCJ=relink
18788 else
18789 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18790 hardcode_action_GCJ=immediate
18791 fi
18792 else
18793 # We cannot hardcode anything, or else we can only hardcode existing
18794 # directories.
18795 hardcode_action_GCJ=unsupported
18796 fi
18797 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18798 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18799
18800 if test "$hardcode_action_GCJ" = relink; then
18801 # Fast installation is not supported
18802 enable_fast_install=no
18803 elif test "$shlibpath_overrides_runpath" = yes ||
18804 test "$enable_shared" = no; then
18805 # Fast installation is not necessary
18806 enable_fast_install=needless
18807 fi
18808
18809
18810 # The else clause should only fire when bootstrapping the
18811 # libtool distribution, otherwise you forgot to ship ltmain.sh
18812 # with your package, and you will get complaints that there are
18813 # no rules to generate ltmain.sh.
18814 if test -f "$ltmain"; then
18815 # See if we are running on zsh, and set the options which allow our commands through
18816 # without removal of \ escapes.
18817 if test -n "${ZSH_VERSION+set}" ; then
18818 setopt NO_GLOB_SUBST
18819 fi
18820 # Now quote all the things that may contain metacharacters while being
18821 # careful not to overquote the AC_SUBSTed values. We take copies of the
18822 # variables and quote the copies for generation of the libtool script.
18823 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18824 SED SHELL STRIP \
18825 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18826 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18827 deplibs_check_method reload_flag reload_cmds need_locks \
18828 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18829 lt_cv_sys_global_symbol_to_c_name_address \
18830 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18831 old_postinstall_cmds old_postuninstall_cmds \
18832 compiler_GCJ \
18833 CC_GCJ \
18834 LD_GCJ \
18835 lt_prog_compiler_wl_GCJ \
18836 lt_prog_compiler_pic_GCJ \
18837 lt_prog_compiler_static_GCJ \
18838 lt_prog_compiler_no_builtin_flag_GCJ \
18839 export_dynamic_flag_spec_GCJ \
18840 thread_safe_flag_spec_GCJ \
18841 whole_archive_flag_spec_GCJ \
18842 enable_shared_with_static_runtimes_GCJ \
18843 old_archive_cmds_GCJ \
18844 old_archive_from_new_cmds_GCJ \
18845 predep_objects_GCJ \
18846 postdep_objects_GCJ \
18847 predeps_GCJ \
18848 postdeps_GCJ \
18849 compiler_lib_search_path_GCJ \
18850 archive_cmds_GCJ \
18851 archive_expsym_cmds_GCJ \
18852 postinstall_cmds_GCJ \
18853 postuninstall_cmds_GCJ \
18854 old_archive_from_expsyms_cmds_GCJ \
18855 allow_undefined_flag_GCJ \
18856 no_undefined_flag_GCJ \
18857 export_symbols_cmds_GCJ \
18858 hardcode_libdir_flag_spec_GCJ \
18859 hardcode_libdir_flag_spec_ld_GCJ \
18860 hardcode_libdir_separator_GCJ \
18861 hardcode_automatic_GCJ \
18862 module_cmds_GCJ \
18863 module_expsym_cmds_GCJ \
18864 lt_cv_prog_compiler_c_o_GCJ \
18865 exclude_expsyms_GCJ \
18866 include_expsyms_GCJ; do
18867
18868 case $var in
18869 old_archive_cmds_GCJ | \
18870 old_archive_from_new_cmds_GCJ | \
18871 archive_cmds_GCJ | \
18872 archive_expsym_cmds_GCJ | \
18873 module_cmds_GCJ | \
18874 module_expsym_cmds_GCJ | \
18875 old_archive_from_expsyms_cmds_GCJ | \
18876 export_symbols_cmds_GCJ | \
18877 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18878 postinstall_cmds | postuninstall_cmds | \
18879 old_postinstall_cmds | old_postuninstall_cmds | \
18880 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18881 # Double-quote double-evaled strings.
18882 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18883 ;;
18884 *)
18885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18886 ;;
18887 esac
18888 done
18889
18890 case $lt_echo in
18891 *'\$0 --fallback-echo"')
18892 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18893 ;;
18894 esac
18895
18896 cfgfile="$ofile"
18897
18898 cat <<__EOF__ >> "$cfgfile"
18899 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18900
18901 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18902
18903 # Shell to use when invoking shell scripts.
18904 SHELL=$lt_SHELL
18905
18906 # Whether or not to build shared libraries.
18907 build_libtool_libs=$enable_shared
18908
18909 # Whether or not to build static libraries.
18910 build_old_libs=$enable_static
18911
18912 # Whether or not to add -lc for building shared libraries.
18913 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18914
18915 # Whether or not to disallow shared libs when runtime libs are static
18916 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18917
18918 # Whether or not to optimize for fast installation.
18919 fast_install=$enable_fast_install
18920
18921 # The host system.
18922 host_alias=$host_alias
18923 host=$host
18924 host_os=$host_os
18925
18926 # The build system.
18927 build_alias=$build_alias
18928 build=$build
18929 build_os=$build_os
18930
18931 # An echo program that does not interpret backslashes.
18932 echo=$lt_echo
18933
18934 # The archiver.
18935 AR=$lt_AR
18936 AR_FLAGS=$lt_AR_FLAGS
18937
18938 # A C compiler.
18939 LTCC=$lt_LTCC
18940
18941 # LTCC compiler flags.
18942 LTCFLAGS=$lt_LTCFLAGS
18943
18944 # A language-specific compiler.
18945 CC=$lt_compiler_GCJ
18946
18947 # Is the compiler the GNU C compiler?
18948 with_gcc=$GCC_GCJ
18949
18950 # An ERE matcher.
18951 EGREP=$lt_EGREP
18952
18953 # The linker used to build libraries.
18954 LD=$lt_LD_GCJ
18955
18956 # Whether we need hard or soft links.
18957 LN_S=$lt_LN_S
18958
18959 # A BSD-compatible nm program.
18960 NM=$lt_NM
18961
18962 # A symbol stripping program
18963 STRIP=$lt_STRIP
18964
18965 # Used to examine libraries when file_magic_cmd begins "file"
18966 MAGIC_CMD=$MAGIC_CMD
18967
18968 # Used on cygwin: DLL creation program.
18969 DLLTOOL="$DLLTOOL"
18970
18971 # Used on cygwin: object dumper.
18972 OBJDUMP="$OBJDUMP"
18973
18974 # Used on cygwin: assembler.
18975 AS="$AS"
18976
18977 # The name of the directory that contains temporary libtool files.
18978 objdir=$objdir
18979
18980 # How to create reloadable object files.
18981 reload_flag=$lt_reload_flag
18982 reload_cmds=$lt_reload_cmds
18983
18984 # How to pass a linker flag through the compiler.
18985 wl=$lt_lt_prog_compiler_wl_GCJ
18986
18987 # Object file suffix (normally "o").
18988 objext="$ac_objext"
18989
18990 # Old archive suffix (normally "a").
18991 libext="$libext"
18992
18993 # Shared library suffix (normally ".so").
18994 shrext_cmds='$shrext_cmds'
18995
18996 # Executable file suffix (normally "").
18997 exeext="$exeext"
18998
18999 # Additional compiler flags for building library objects.
19000 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19001 pic_mode=$pic_mode
19002
19003 # What is the maximum length of a command?
19004 max_cmd_len=$lt_cv_sys_max_cmd_len
19005
19006 # Does compiler simultaneously support -c and -o options?
19007 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19008
19009 # Must we lock files when doing compilation?
19010 need_locks=$lt_need_locks
19011
19012 # Do we need the lib prefix for modules?
19013 need_lib_prefix=$need_lib_prefix
19014
19015 # Do we need a version for libraries?
19016 need_version=$need_version
19017
19018 # Whether dlopen is supported.
19019 dlopen_support=$enable_dlopen
19020
19021 # Whether dlopen of programs is supported.
19022 dlopen_self=$enable_dlopen_self
19023
19024 # Whether dlopen of statically linked programs is supported.
19025 dlopen_self_static=$enable_dlopen_self_static
19026
19027 # Compiler flag to prevent dynamic linking.
19028 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19029
19030 # Compiler flag to turn off builtin functions.
19031 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19032
19033 # Compiler flag to allow reflexive dlopens.
19034 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19035
19036 # Compiler flag to generate shared objects directly from archives.
19037 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19038
19039 # Compiler flag to generate thread-safe objects.
19040 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19041
19042 # Library versioning type.
19043 version_type=$version_type
19044
19045 # Format of library name prefix.
19046 libname_spec=$lt_libname_spec
19047
19048 # List of archive names. First name is the real one, the rest are links.
19049 # The last name is the one that the linker finds with -lNAME.
19050 library_names_spec=$lt_library_names_spec
19051
19052 # The coded name of the library, if different from the real name.
19053 soname_spec=$lt_soname_spec
19054
19055 # Commands used to build and install an old-style archive.
19056 RANLIB=$lt_RANLIB
19057 old_archive_cmds=$lt_old_archive_cmds_GCJ
19058 old_postinstall_cmds=$lt_old_postinstall_cmds
19059 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19060
19061 # Create an old-style archive from a shared archive.
19062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19063
19064 # Create a temporary old-style archive to link instead of a shared archive.
19065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19066
19067 # Commands used to build and install a shared archive.
19068 archive_cmds=$lt_archive_cmds_GCJ
19069 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19070 postinstall_cmds=$lt_postinstall_cmds
19071 postuninstall_cmds=$lt_postuninstall_cmds
19072
19073 # Commands used to build a loadable module (assumed same as above if empty)
19074 module_cmds=$lt_module_cmds_GCJ
19075 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19076
19077 # Commands to strip libraries.
19078 old_striplib=$lt_old_striplib
19079 striplib=$lt_striplib
19080
19081 # Dependencies to place before the objects being linked to create a
19082 # shared library.
19083 predep_objects=$lt_predep_objects_GCJ
19084
19085 # Dependencies to place after the objects being linked to create a
19086 # shared library.
19087 postdep_objects=$lt_postdep_objects_GCJ
19088
19089 # Dependencies to place before the objects being linked to create a
19090 # shared library.
19091 predeps=$lt_predeps_GCJ
19092
19093 # Dependencies to place after the objects being linked to create a
19094 # shared library.
19095 postdeps=$lt_postdeps_GCJ
19096
19097 # The library search path used internally by the compiler when linking
19098 # a shared library.
19099 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19100
19101 # Method to check whether dependent libraries are shared objects.
19102 deplibs_check_method=$lt_deplibs_check_method
19103
19104 # Command to use when deplibs_check_method == file_magic.
19105 file_magic_cmd=$lt_file_magic_cmd
19106
19107 # Flag that allows shared libraries with undefined symbols to be built.
19108 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19109
19110 # Flag that forces no undefined symbols.
19111 no_undefined_flag=$lt_no_undefined_flag_GCJ
19112
19113 # Commands used to finish a libtool library installation in a directory.
19114 finish_cmds=$lt_finish_cmds
19115
19116 # Same as above, but a single script fragment to be evaled but not shown.
19117 finish_eval=$lt_finish_eval
19118
19119 # Take the output of nm and produce a listing of raw symbols and C names.
19120 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19121
19122 # Transform the output of nm in a proper C declaration
19123 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19124
19125 # Transform the output of nm in a C name address pair
19126 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19127
19128 # This is the shared library runtime path variable.
19129 runpath_var=$runpath_var
19130
19131 # This is the shared library path variable.
19132 shlibpath_var=$shlibpath_var
19133
19134 # Is shlibpath searched before the hard-coded library search path?
19135 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19136
19137 # How to hardcode a shared library path into an executable.
19138 hardcode_action=$hardcode_action_GCJ
19139
19140 # Whether we should hardcode library paths into libraries.
19141 hardcode_into_libs=$hardcode_into_libs
19142
19143 # Flag to hardcode \$libdir into a binary during linking.
19144 # This must work even if \$libdir does not exist.
19145 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19146
19147 # If ld is used when linking, flag to hardcode \$libdir into
19148 # a binary during linking. This must work even if \$libdir does
19149 # not exist.
19150 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19151
19152 # Whether we need a single -rpath flag with a separated argument.
19153 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19154
19155 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19156 # resulting binary.
19157 hardcode_direct=$hardcode_direct_GCJ
19158
19159 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19160 # resulting binary.
19161 hardcode_minus_L=$hardcode_minus_L_GCJ
19162
19163 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19164 # the resulting binary.
19165 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19166
19167 # Set to yes if building a shared library automatically hardcodes DIR into the library
19168 # and all subsequent libraries and executables linked against it.
19169 hardcode_automatic=$hardcode_automatic_GCJ
19170
19171 # Variables whose values should be saved in libtool wrapper scripts and
19172 # restored at relink time.
19173 variables_saved_for_relink="$variables_saved_for_relink"
19174
19175 # Whether libtool must link a program against all its dependency libraries.
19176 link_all_deplibs=$link_all_deplibs_GCJ
19177
19178 # Compile-time system search path for libraries
19179 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19180
19181 # Run-time system search path for libraries
19182 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19183
19184 # Fix the shell variable \$srcfile for the compiler.
19185 fix_srcfile_path="$fix_srcfile_path_GCJ"
19186
19187 # Set to yes if exported symbols are required.
19188 always_export_symbols=$always_export_symbols_GCJ
19189
19190 # The commands to list exported symbols.
19191 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19192
19193 # The commands to extract the exported symbol list from a shared archive.
19194 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19195
19196 # Symbols that should not be listed in the preloaded symbols.
19197 exclude_expsyms=$lt_exclude_expsyms_GCJ
19198
19199 # Symbols that must always be exported.
19200 include_expsyms=$lt_include_expsyms_GCJ
19201
19202 # ### END LIBTOOL TAG CONFIG: $tagname
19203
19204 __EOF__
19205
19206
19207 else
19208 # If there is no Makefile yet, we rely on a make rule to execute
19209 # `config.status --recheck' to rerun these tests and create the
19210 # libtool script then.
19211 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19212 if test -f "$ltmain_in"; then
19213 test -f Makefile && make "$ltmain"
19214 fi
19215 fi
19216
19217
19218 ac_ext=c
19219 ac_cpp='$CPP $CPPFLAGS'
19220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19223
19224 CC="$lt_save_CC"
19225
19226 else
19227 tagname=""
19228 fi
19229 ;;
19230
19231 RC)
19232
19233
19234 # Source file extension for RC test sources.
19235 ac_ext=rc
19236
19237 # Object file extension for compiled RC test sources.
19238 objext=o
19239 objext_RC=$objext
19240
19241 # Code to be used in simple compile tests
19242 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19243
19244 # Code to be used in simple link tests
19245 lt_simple_link_test_code="$lt_simple_compile_test_code"
19246
19247 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19248
19249 # If no C compiler was specified, use CC.
19250 LTCC=${LTCC-"$CC"}
19251
19252 # If no C compiler flags were specified, use CFLAGS.
19253 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19254
19255 # Allow CC to be a program name with arguments.
19256 compiler=$CC
19257
19258
19259 # save warnings/boilerplate of simple test code
19260 ac_outfile=conftest.$ac_objext
19261 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19262 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19263 _lt_compiler_boilerplate=`cat conftest.err`
19264 $rm conftest*
19265
19266 ac_outfile=conftest.$ac_objext
19267 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19268 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19269 _lt_linker_boilerplate=`cat conftest.err`
19270 $rm conftest*
19271
19272
19273 # Allow CC to be a program name with arguments.
19274 lt_save_CC="$CC"
19275 CC=${RC-"windres"}
19276 compiler=$CC
19277 compiler_RC=$CC
19278 for cc_temp in $compiler""; do
19279 case $cc_temp in
19280 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19281 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19282 \-*) ;;
19283 *) break;;
19284 esac
19285 done
19286 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19287
19288 lt_cv_prog_compiler_c_o_RC=yes
19289
19290 # The else clause should only fire when bootstrapping the
19291 # libtool distribution, otherwise you forgot to ship ltmain.sh
19292 # with your package, and you will get complaints that there are
19293 # no rules to generate ltmain.sh.
19294 if test -f "$ltmain"; then
19295 # See if we are running on zsh, and set the options which allow our commands through
19296 # without removal of \ escapes.
19297 if test -n "${ZSH_VERSION+set}" ; then
19298 setopt NO_GLOB_SUBST
19299 fi
19300 # Now quote all the things that may contain metacharacters while being
19301 # careful not to overquote the AC_SUBSTed values. We take copies of the
19302 # variables and quote the copies for generation of the libtool script.
19303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19304 SED SHELL STRIP \
19305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19307 deplibs_check_method reload_flag reload_cmds need_locks \
19308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19309 lt_cv_sys_global_symbol_to_c_name_address \
19310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19311 old_postinstall_cmds old_postuninstall_cmds \
19312 compiler_RC \
19313 CC_RC \
19314 LD_RC \
19315 lt_prog_compiler_wl_RC \
19316 lt_prog_compiler_pic_RC \
19317 lt_prog_compiler_static_RC \
19318 lt_prog_compiler_no_builtin_flag_RC \
19319 export_dynamic_flag_spec_RC \
19320 thread_safe_flag_spec_RC \
19321 whole_archive_flag_spec_RC \
19322 enable_shared_with_static_runtimes_RC \
19323 old_archive_cmds_RC \
19324 old_archive_from_new_cmds_RC \
19325 predep_objects_RC \
19326 postdep_objects_RC \
19327 predeps_RC \
19328 postdeps_RC \
19329 compiler_lib_search_path_RC \
19330 archive_cmds_RC \
19331 archive_expsym_cmds_RC \
19332 postinstall_cmds_RC \
19333 postuninstall_cmds_RC \
19334 old_archive_from_expsyms_cmds_RC \
19335 allow_undefined_flag_RC \
19336 no_undefined_flag_RC \
19337 export_symbols_cmds_RC \
19338 hardcode_libdir_flag_spec_RC \
19339 hardcode_libdir_flag_spec_ld_RC \
19340 hardcode_libdir_separator_RC \
19341 hardcode_automatic_RC \
19342 module_cmds_RC \
19343 module_expsym_cmds_RC \
19344 lt_cv_prog_compiler_c_o_RC \
19345 exclude_expsyms_RC \
19346 include_expsyms_RC; do
19347
19348 case $var in
19349 old_archive_cmds_RC | \
19350 old_archive_from_new_cmds_RC | \
19351 archive_cmds_RC | \
19352 archive_expsym_cmds_RC | \
19353 module_cmds_RC | \
19354 module_expsym_cmds_RC | \
19355 old_archive_from_expsyms_cmds_RC | \
19356 export_symbols_cmds_RC | \
19357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19358 postinstall_cmds | postuninstall_cmds | \
19359 old_postinstall_cmds | old_postuninstall_cmds | \
19360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19361 # Double-quote double-evaled strings.
19362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19363 ;;
19364 *)
19365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19366 ;;
19367 esac
19368 done
19369
19370 case $lt_echo in
19371 *'\$0 --fallback-echo"')
19372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19373 ;;
19374 esac
19375
19376 cfgfile="$ofile"
19377
19378 cat <<__EOF__ >> "$cfgfile"
19379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19380
19381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19382
19383 # Shell to use when invoking shell scripts.
19384 SHELL=$lt_SHELL
19385
19386 # Whether or not to build shared libraries.
19387 build_libtool_libs=$enable_shared
19388
19389 # Whether or not to build static libraries.
19390 build_old_libs=$enable_static
19391
19392 # Whether or not to add -lc for building shared libraries.
19393 build_libtool_need_lc=$archive_cmds_need_lc_RC
19394
19395 # Whether or not to disallow shared libs when runtime libs are static
19396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19397
19398 # Whether or not to optimize for fast installation.
19399 fast_install=$enable_fast_install
19400
19401 # The host system.
19402 host_alias=$host_alias
19403 host=$host
19404 host_os=$host_os
19405
19406 # The build system.
19407 build_alias=$build_alias
19408 build=$build
19409 build_os=$build_os
19410
19411 # An echo program that does not interpret backslashes.
19412 echo=$lt_echo
19413
19414 # The archiver.
19415 AR=$lt_AR
19416 AR_FLAGS=$lt_AR_FLAGS
19417
19418 # A C compiler.
19419 LTCC=$lt_LTCC
19420
19421 # LTCC compiler flags.
19422 LTCFLAGS=$lt_LTCFLAGS
19423
19424 # A language-specific compiler.
19425 CC=$lt_compiler_RC
19426
19427 # Is the compiler the GNU C compiler?
19428 with_gcc=$GCC_RC
19429
19430 # An ERE matcher.
19431 EGREP=$lt_EGREP
19432
19433 # The linker used to build libraries.
19434 LD=$lt_LD_RC
19435
19436 # Whether we need hard or soft links.
19437 LN_S=$lt_LN_S
19438
19439 # A BSD-compatible nm program.
19440 NM=$lt_NM
19441
19442 # A symbol stripping program
19443 STRIP=$lt_STRIP
19444
19445 # Used to examine libraries when file_magic_cmd begins "file"
19446 MAGIC_CMD=$MAGIC_CMD
19447
19448 # Used on cygwin: DLL creation program.
19449 DLLTOOL="$DLLTOOL"
19450
19451 # Used on cygwin: object dumper.
19452 OBJDUMP="$OBJDUMP"
19453
19454 # Used on cygwin: assembler.
19455 AS="$AS"
19456
19457 # The name of the directory that contains temporary libtool files.
19458 objdir=$objdir
19459
19460 # How to create reloadable object files.
19461 reload_flag=$lt_reload_flag
19462 reload_cmds=$lt_reload_cmds
19463
19464 # How to pass a linker flag through the compiler.
19465 wl=$lt_lt_prog_compiler_wl_RC
19466
19467 # Object file suffix (normally "o").
19468 objext="$ac_objext"
19469
19470 # Old archive suffix (normally "a").
19471 libext="$libext"
19472
19473 # Shared library suffix (normally ".so").
19474 shrext_cmds='$shrext_cmds'
19475
19476 # Executable file suffix (normally "").
19477 exeext="$exeext"
19478
19479 # Additional compiler flags for building library objects.
19480 pic_flag=$lt_lt_prog_compiler_pic_RC
19481 pic_mode=$pic_mode
19482
19483 # What is the maximum length of a command?
19484 max_cmd_len=$lt_cv_sys_max_cmd_len
19485
19486 # Does compiler simultaneously support -c and -o options?
19487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19488
19489 # Must we lock files when doing compilation?
19490 need_locks=$lt_need_locks
19491
19492 # Do we need the lib prefix for modules?
19493 need_lib_prefix=$need_lib_prefix
19494
19495 # Do we need a version for libraries?
19496 need_version=$need_version
19497
19498 # Whether dlopen is supported.
19499 dlopen_support=$enable_dlopen
19500
19501 # Whether dlopen of programs is supported.
19502 dlopen_self=$enable_dlopen_self
19503
19504 # Whether dlopen of statically linked programs is supported.
19505 dlopen_self_static=$enable_dlopen_self_static
19506
19507 # Compiler flag to prevent dynamic linking.
19508 link_static_flag=$lt_lt_prog_compiler_static_RC
19509
19510 # Compiler flag to turn off builtin functions.
19511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19512
19513 # Compiler flag to allow reflexive dlopens.
19514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19515
19516 # Compiler flag to generate shared objects directly from archives.
19517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19518
19519 # Compiler flag to generate thread-safe objects.
19520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19521
19522 # Library versioning type.
19523 version_type=$version_type
19524
19525 # Format of library name prefix.
19526 libname_spec=$lt_libname_spec
19527
19528 # List of archive names. First name is the real one, the rest are links.
19529 # The last name is the one that the linker finds with -lNAME.
19530 library_names_spec=$lt_library_names_spec
19531
19532 # The coded name of the library, if different from the real name.
19533 soname_spec=$lt_soname_spec
19534
19535 # Commands used to build and install an old-style archive.
19536 RANLIB=$lt_RANLIB
19537 old_archive_cmds=$lt_old_archive_cmds_RC
19538 old_postinstall_cmds=$lt_old_postinstall_cmds
19539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19540
19541 # Create an old-style archive from a shared archive.
19542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19543
19544 # Create a temporary old-style archive to link instead of a shared archive.
19545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19546
19547 # Commands used to build and install a shared archive.
19548 archive_cmds=$lt_archive_cmds_RC
19549 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19550 postinstall_cmds=$lt_postinstall_cmds
19551 postuninstall_cmds=$lt_postuninstall_cmds
19552
19553 # Commands used to build a loadable module (assumed same as above if empty)
19554 module_cmds=$lt_module_cmds_RC
19555 module_expsym_cmds=$lt_module_expsym_cmds_RC
19556
19557 # Commands to strip libraries.
19558 old_striplib=$lt_old_striplib
19559 striplib=$lt_striplib
19560
19561 # Dependencies to place before the objects being linked to create a
19562 # shared library.
19563 predep_objects=$lt_predep_objects_RC
19564
19565 # Dependencies to place after the objects being linked to create a
19566 # shared library.
19567 postdep_objects=$lt_postdep_objects_RC
19568
19569 # Dependencies to place before the objects being linked to create a
19570 # shared library.
19571 predeps=$lt_predeps_RC
19572
19573 # Dependencies to place after the objects being linked to create a
19574 # shared library.
19575 postdeps=$lt_postdeps_RC
19576
19577 # The library search path used internally by the compiler when linking
19578 # a shared library.
19579 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19580
19581 # Method to check whether dependent libraries are shared objects.
19582 deplibs_check_method=$lt_deplibs_check_method
19583
19584 # Command to use when deplibs_check_method == file_magic.
19585 file_magic_cmd=$lt_file_magic_cmd
19586
19587 # Flag that allows shared libraries with undefined symbols to be built.
19588 allow_undefined_flag=$lt_allow_undefined_flag_RC
19589
19590 # Flag that forces no undefined symbols.
19591 no_undefined_flag=$lt_no_undefined_flag_RC
19592
19593 # Commands used to finish a libtool library installation in a directory.
19594 finish_cmds=$lt_finish_cmds
19595
19596 # Same as above, but a single script fragment to be evaled but not shown.
19597 finish_eval=$lt_finish_eval
19598
19599 # Take the output of nm and produce a listing of raw symbols and C names.
19600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19601
19602 # Transform the output of nm in a proper C declaration
19603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19604
19605 # Transform the output of nm in a C name address pair
19606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19607
19608 # This is the shared library runtime path variable.
19609 runpath_var=$runpath_var
19610
19611 # This is the shared library path variable.
19612 shlibpath_var=$shlibpath_var
19613
19614 # Is shlibpath searched before the hard-coded library search path?
19615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19616
19617 # How to hardcode a shared library path into an executable.
19618 hardcode_action=$hardcode_action_RC
19619
19620 # Whether we should hardcode library paths into libraries.
19621 hardcode_into_libs=$hardcode_into_libs
19622
19623 # Flag to hardcode \$libdir into a binary during linking.
19624 # This must work even if \$libdir does not exist.
19625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19626
19627 # If ld is used when linking, flag to hardcode \$libdir into
19628 # a binary during linking. This must work even if \$libdir does
19629 # not exist.
19630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19631
19632 # Whether we need a single -rpath flag with a separated argument.
19633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19634
19635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19636 # resulting binary.
19637 hardcode_direct=$hardcode_direct_RC
19638
19639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19640 # resulting binary.
19641 hardcode_minus_L=$hardcode_minus_L_RC
19642
19643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19644 # the resulting binary.
19645 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19646
19647 # Set to yes if building a shared library automatically hardcodes DIR into the library
19648 # and all subsequent libraries and executables linked against it.
19649 hardcode_automatic=$hardcode_automatic_RC
19650
19651 # Variables whose values should be saved in libtool wrapper scripts and
19652 # restored at relink time.
19653 variables_saved_for_relink="$variables_saved_for_relink"
19654
19655 # Whether libtool must link a program against all its dependency libraries.
19656 link_all_deplibs=$link_all_deplibs_RC
19657
19658 # Compile-time system search path for libraries
19659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19660
19661 # Run-time system search path for libraries
19662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19663
19664 # Fix the shell variable \$srcfile for the compiler.
19665 fix_srcfile_path="$fix_srcfile_path_RC"
19666
19667 # Set to yes if exported symbols are required.
19668 always_export_symbols=$always_export_symbols_RC
19669
19670 # The commands to list exported symbols.
19671 export_symbols_cmds=$lt_export_symbols_cmds_RC
19672
19673 # The commands to extract the exported symbol list from a shared archive.
19674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19675
19676 # Symbols that should not be listed in the preloaded symbols.
19677 exclude_expsyms=$lt_exclude_expsyms_RC
19678
19679 # Symbols that must always be exported.
19680 include_expsyms=$lt_include_expsyms_RC
19681
19682 # ### END LIBTOOL TAG CONFIG: $tagname
19683
19684 __EOF__
19685
19686
19687 else
19688 # If there is no Makefile yet, we rely on a make rule to execute
19689 # `config.status --recheck' to rerun these tests and create the
19690 # libtool script then.
19691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19692 if test -f "$ltmain_in"; then
19693 test -f Makefile && make "$ltmain"
19694 fi
19695 fi
19696
19697
19698 ac_ext=c
19699 ac_cpp='$CPP $CPPFLAGS'
19700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19703
19704 CC="$lt_save_CC"
19705
19706 ;;
19707
19708 *)
19709 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19710 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19711 { (exit 1); exit 1; }; }
19712 ;;
19713 esac
19714
19715 # Append the new tag name to the list of available tags.
19716 if test -n "$tagname" ; then
19717 available_tags="$available_tags $tagname"
19718 fi
19719 fi
19720 done
19721 IFS="$lt_save_ifs"
19722
19723 # Now substitute the updated list of available tags.
19724 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19725 mv "${ofile}T" "$ofile"
19726 chmod +x "$ofile"
19727 else
19728 rm -f "${ofile}T"
19729 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19730 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19731 { (exit 1); exit 1; }; }
19732 fi
19733 fi
19734
19735
19736
19737 # This can be used to rebuild libtool when needed
19738 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19739
19740 # Always use our own libtool.
19741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19742
19743 # Prevent multiple expansion
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771 ac_header_dirent=no
19772 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19773 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19774 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19775 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19777 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779 cat >conftest.$ac_ext <<_ACEOF
19780 /* confdefs.h. */
19781 _ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19785 #include <sys/types.h>
19786 #include <$ac_hdr>
19787
19788 int
19789 main ()
19790 {
19791 if ((DIR *) 0)
19792 return 0;
19793 ;
19794 return 0;
19795 }
19796 _ACEOF
19797 rm -f conftest.$ac_objext
19798 if { (ac_try="$ac_compile"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_compile") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } && {
19811 test -z "$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 } && test -s conftest.$ac_objext; then
19814 eval "$as_ac_Header=yes"
19815 else
19816 echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 eval "$as_ac_Header=no"
19820 fi
19821
19822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19823 fi
19824 ac_res=`eval echo '${'$as_ac_Header'}'`
19825 { echo "$as_me:$LINENO: result: $ac_res" >&5
19826 echo "${ECHO_T}$ac_res" >&6; }
19827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19828 cat >>confdefs.h <<_ACEOF
19829 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19830 _ACEOF
19831
19832 ac_header_dirent=$ac_hdr; break
19833 fi
19834
19835 done
19836 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19837 if test $ac_header_dirent = dirent.h; then
19838 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19839 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19840 if test "${ac_cv_search_opendir+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843 ac_func_search_save_LIBS=$LIBS
19844 cat >conftest.$ac_ext <<_ACEOF
19845 /* confdefs.h. */
19846 _ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850
19851 /* Override any GCC internal prototype to avoid an error.
19852 Use char because int might match the return type of a GCC
19853 builtin and then its argument prototype would still apply. */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char opendir ();
19858 int
19859 main ()
19860 {
19861 return opendir ();
19862 ;
19863 return 0;
19864 }
19865 _ACEOF
19866 for ac_lib in '' dir; do
19867 if test -z "$ac_lib"; then
19868 ac_res="none required"
19869 else
19870 ac_res=-l$ac_lib
19871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19872 fi
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest$ac_exeext &&
19890 $as_test_x conftest$ac_exeext; then
19891 ac_cv_search_opendir=$ac_res
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896
19897 fi
19898
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900 conftest$ac_exeext
19901 if test "${ac_cv_search_opendir+set}" = set; then
19902 break
19903 fi
19904 done
19905 if test "${ac_cv_search_opendir+set}" = set; then
19906 :
19907 else
19908 ac_cv_search_opendir=no
19909 fi
19910 rm conftest.$ac_ext
19911 LIBS=$ac_func_search_save_LIBS
19912 fi
19913 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19914 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19915 ac_res=$ac_cv_search_opendir
19916 if test "$ac_res" != no; then
19917 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19918
19919 fi
19920
19921 else
19922 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19923 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19924 if test "${ac_cv_search_opendir+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927 ac_func_search_save_LIBS=$LIBS
19928 cat >conftest.$ac_ext <<_ACEOF
19929 /* confdefs.h. */
19930 _ACEOF
19931 cat confdefs.h >>conftest.$ac_ext
19932 cat >>conftest.$ac_ext <<_ACEOF
19933 /* end confdefs.h. */
19934
19935 /* Override any GCC internal prototype to avoid an error.
19936 Use char because int might match the return type of a GCC
19937 builtin and then its argument prototype would still apply. */
19938 #ifdef __cplusplus
19939 extern "C"
19940 #endif
19941 char opendir ();
19942 int
19943 main ()
19944 {
19945 return opendir ();
19946 ;
19947 return 0;
19948 }
19949 _ACEOF
19950 for ac_lib in '' x; do
19951 if test -z "$ac_lib"; then
19952 ac_res="none required"
19953 else
19954 ac_res=-l$ac_lib
19955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19956 fi
19957 rm -f conftest.$ac_objext conftest$ac_exeext
19958 if { (ac_try="$ac_link"
19959 case "(($ac_try" in
19960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19961 *) ac_try_echo=$ac_try;;
19962 esac
19963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19964 (eval "$ac_link") 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } && {
19971 test -z "$ac_c_werror_flag" ||
19972 test ! -s conftest.err
19973 } && test -s conftest$ac_exeext &&
19974 $as_test_x conftest$ac_exeext; then
19975 ac_cv_search_opendir=$ac_res
19976 else
19977 echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980
19981 fi
19982
19983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19984 conftest$ac_exeext
19985 if test "${ac_cv_search_opendir+set}" = set; then
19986 break
19987 fi
19988 done
19989 if test "${ac_cv_search_opendir+set}" = set; then
19990 :
19991 else
19992 ac_cv_search_opendir=no
19993 fi
19994 rm conftest.$ac_ext
19995 LIBS=$ac_func_search_save_LIBS
19996 fi
19997 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19998 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19999 ac_res=$ac_cv_search_opendir
20000 if test "$ac_res" != no; then
20001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20002
20003 fi
20004
20005 fi
20006
20007 # Check whether --enable-ltdl-install was given.
20008 if test "${enable_ltdl_install+set}" = set; then
20009 enableval=$enable_ltdl_install;
20010 fi
20011
20012
20013 if test x"${enable_ltdl_install-no}" != xno; then
20014 INSTALL_LTDL_TRUE=
20015 INSTALL_LTDL_FALSE='#'
20016 else
20017 INSTALL_LTDL_TRUE='#'
20018 INSTALL_LTDL_FALSE=
20019 fi
20020
20021 if test x"${enable_ltdl_convenience-no}" != xno; then
20022 CONVENIENCE_LTDL_TRUE=
20023 CONVENIENCE_LTDL_FALSE='#'
20024 else
20025 CONVENIENCE_LTDL_TRUE='#'
20026 CONVENIENCE_LTDL_FALSE=
20027 fi
20028
20029
20030
20031 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
20032 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
20033 if test "${libltdl_cv_shlibext+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036
20037 module=yes
20038 eval libltdl_cv_shlibext=$shrext_cmds
20039
20040 fi
20041 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
20042 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
20043 if test -n "$libltdl_cv_shlibext"; then
20044
20045 cat >>confdefs.h <<_ACEOF
20046 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
20047 _ACEOF
20048
20049 fi
20050
20051
20052 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
20053 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
20054 if test "${libltdl_cv_shlibpath_var+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 else
20057 libltdl_cv_shlibpath_var="$shlibpath_var"
20058 fi
20059 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
20060 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
20061 if test -n "$libltdl_cv_shlibpath_var"; then
20062
20063 cat >>confdefs.h <<_ACEOF
20064 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
20065 _ACEOF
20066
20067 fi
20068
20069
20070 { echo "$as_me:$LINENO: checking for the default library search path" >&5
20071 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
20072 if test "${libltdl_cv_sys_search_path+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
20076 fi
20077 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
20078 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
20079 if test -n "$libltdl_cv_sys_search_path"; then
20080 sys_search_path=
20081 for dir in $libltdl_cv_sys_search_path; do
20082 if test -z "$sys_search_path"; then
20083 sys_search_path="$dir"
20084 else
20085 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
20086 fi
20087 done
20088
20089 cat >>confdefs.h <<_ACEOF
20090 #define LTDL_SYSSEARCHPATH "$sys_search_path"
20091 _ACEOF
20092
20093 fi
20094
20095 { echo "$as_me:$LINENO: checking for objdir" >&5
20096 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
20097 if test "${libltdl_cv_objdir+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 else
20100 libltdl_cv_objdir="$objdir"
20101 if test -n "$objdir"; then
20102 :
20103 else
20104 rm -f .libs 2>/dev/null
20105 mkdir .libs 2>/dev/null
20106 if test -d .libs; then
20107 libltdl_cv_objdir=.libs
20108 else
20109 # MS-DOS does not allow filenames that begin with a dot.
20110 libltdl_cv_objdir=_libs
20111 fi
20112 rmdir .libs 2>/dev/null
20113 fi
20114
20115 fi
20116 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
20117 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
20118
20119 cat >>confdefs.h <<_ACEOF
20120 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
20121 _ACEOF
20122
20123
20124
20125 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20126 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
20127 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20128 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20131 libltdl_cv_preloaded_symbols=yes
20132 else
20133 libltdl_cv_preloaded_symbols=no
20134 fi
20135
20136 fi
20137 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20138 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
20139 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20140
20141 cat >>confdefs.h <<\_ACEOF
20142 #define HAVE_PRELOADED_SYMBOLS 1
20143 _ACEOF
20144
20145 fi
20146
20147 LIBADD_DL=
20148
20149 ac_ext=c
20150 ac_cpp='$CPP $CPPFLAGS'
20151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154
20155
20156 { echo "$as_me:$LINENO: checking for shl_load" >&5
20157 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20158 if test "${ac_cv_func_shl_load+set}" = set; then
20159 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 else
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20169 #define shl_load innocuous_shl_load
20170
20171 /* System header to define __stub macros and hopefully few prototypes,
20172 which can conflict with char shl_load (); below.
20173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20174 <limits.h> exists even on freestanding compilers. */
20175
20176 #ifdef __STDC__
20177 # include <limits.h>
20178 #else
20179 # include <assert.h>
20180 #endif
20181
20182 #undef shl_load
20183
20184 /* Override any GCC internal prototype to avoid an error.
20185 Use char because int might match the return type of a GCC
20186 builtin and then its argument prototype would still apply. */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 char shl_load ();
20191 /* The GNU C library defines this for functions which it implements
20192 to always fail with ENOSYS. Some functions are actually named
20193 something starting with __ and the normal name is an alias. */
20194 #if defined __stub_shl_load || defined __stub___shl_load
20195 choke me
20196 #endif
20197
20198 int
20199 main ()
20200 {
20201 return shl_load ();
20202 ;
20203 return 0;
20204 }
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (ac_try="$ac_link"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
20224 ac_cv_func_shl_load=yes
20225 else
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20228
20229 ac_cv_func_shl_load=no
20230 fi
20231
20232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20233 conftest$ac_exeext conftest.$ac_ext
20234 fi
20235 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20236 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20237 if test $ac_cv_func_shl_load = yes; then
20238
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_SHL_LOAD 1
20241 _ACEOF
20242
20243 else
20244 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20245 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20246 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248 else
20249 ac_check_lib_save_LIBS=$LIBS
20250 LIBS="-ldld $LIBS"
20251 cat >conftest.$ac_ext <<_ACEOF
20252 /* confdefs.h. */
20253 _ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257
20258 /* Override any GCC internal prototype to avoid an error.
20259 Use char because int might match the return type of a GCC
20260 builtin and then its argument prototype would still apply. */
20261 #ifdef __cplusplus
20262 extern "C"
20263 #endif
20264 char shl_load ();
20265 int
20266 main ()
20267 {
20268 return shl_load ();
20269 ;
20270 return 0;
20271 }
20272 _ACEOF
20273 rm -f conftest.$ac_objext conftest$ac_exeext
20274 if { (ac_try="$ac_link"
20275 case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20278 esac
20279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_link") 2>conftest.er1
20281 ac_status=$?
20282 grep -v '^ *+' conftest.er1 >conftest.err
20283 rm -f conftest.er1
20284 cat conftest.err >&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } && {
20287 test -z "$ac_c_werror_flag" ||
20288 test ! -s conftest.err
20289 } && test -s conftest$ac_exeext &&
20290 $as_test_x conftest$ac_exeext; then
20291 ac_cv_lib_dld_shl_load=yes
20292 else
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20295
20296 ac_cv_lib_dld_shl_load=no
20297 fi
20298
20299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20300 conftest$ac_exeext conftest.$ac_ext
20301 LIBS=$ac_check_lib_save_LIBS
20302 fi
20303 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20304 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20305 if test $ac_cv_lib_dld_shl_load = yes; then
20306
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE_SHL_LOAD 1
20309 _ACEOF
20310
20311 LIBADD_DL="$LIBADD_DL -ldld"
20312 else
20313 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20314 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20315 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318 ac_check_lib_save_LIBS=$LIBS
20319 LIBS="-ldl $LIBS"
20320 cat >conftest.$ac_ext <<_ACEOF
20321 /* confdefs.h. */
20322 _ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20330 #ifdef __cplusplus
20331 extern "C"
20332 #endif
20333 char dlopen ();
20334 int
20335 main ()
20336 {
20337 return dlopen ();
20338 ;
20339 return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext conftest$ac_exeext
20343 if { (ac_try="$ac_link"
20344 case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_link") 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } && {
20356 test -z "$ac_c_werror_flag" ||
20357 test ! -s conftest.err
20358 } && test -s conftest$ac_exeext &&
20359 $as_test_x conftest$ac_exeext; then
20360 ac_cv_lib_dl_dlopen=yes
20361 else
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365 ac_cv_lib_dl_dlopen=no
20366 fi
20367
20368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20369 conftest$ac_exeext conftest.$ac_ext
20370 LIBS=$ac_check_lib_save_LIBS
20371 fi
20372 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20374 if test $ac_cv_lib_dl_dlopen = yes; then
20375
20376 cat >>confdefs.h <<\_ACEOF
20377 #define HAVE_LIBDL 1
20378 _ACEOF
20379
20380 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20381 else
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h. */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h. */
20388 #if HAVE_DLFCN_H
20389 # include <dlfcn.h>
20390 #endif
20391
20392 int
20393 main ()
20394 {
20395 dlopen(0, 0);
20396 ;
20397 return 0;
20398 }
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (ac_try="$ac_link"
20402 case "(($ac_try" in
20403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20404 *) ac_try_echo=$ac_try;;
20405 esac
20406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20407 (eval "$ac_link") 2>conftest.er1
20408 ac_status=$?
20409 grep -v '^ *+' conftest.er1 >conftest.err
20410 rm -f conftest.er1
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } && {
20414 test -z "$ac_c_werror_flag" ||
20415 test ! -s conftest.err
20416 } && test -s conftest$ac_exeext &&
20417 $as_test_x conftest$ac_exeext; then
20418
20419 cat >>confdefs.h <<\_ACEOF
20420 #define HAVE_LIBDL 1
20421 _ACEOF
20422 libltdl_cv_func_dlopen="yes"
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20428 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
20429 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 else
20432 ac_check_lib_save_LIBS=$LIBS
20433 LIBS="-lsvld $LIBS"
20434 cat >conftest.$ac_ext <<_ACEOF
20435 /* confdefs.h. */
20436 _ACEOF
20437 cat confdefs.h >>conftest.$ac_ext
20438 cat >>conftest.$ac_ext <<_ACEOF
20439 /* end confdefs.h. */
20440
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20444 #ifdef __cplusplus
20445 extern "C"
20446 #endif
20447 char dlopen ();
20448 int
20449 main ()
20450 {
20451 return dlopen ();
20452 ;
20453 return 0;
20454 }
20455 _ACEOF
20456 rm -f conftest.$ac_objext conftest$ac_exeext
20457 if { (ac_try="$ac_link"
20458 case "(($ac_try" in
20459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460 *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463 (eval "$ac_link") 2>conftest.er1
20464 ac_status=$?
20465 grep -v '^ *+' conftest.er1 >conftest.err
20466 rm -f conftest.er1
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } && {
20470 test -z "$ac_c_werror_flag" ||
20471 test ! -s conftest.err
20472 } && test -s conftest$ac_exeext &&
20473 $as_test_x conftest$ac_exeext; then
20474 ac_cv_lib_svld_dlopen=yes
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_cv_lib_svld_dlopen=no
20480 fi
20481
20482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20485 fi
20486 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20487 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
20488 if test $ac_cv_lib_svld_dlopen = yes; then
20489
20490 cat >>confdefs.h <<\_ACEOF
20491 #define HAVE_LIBDL 1
20492 _ACEOF
20493
20494 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20495 else
20496 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20497 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
20498 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20499 echo $ECHO_N "(cached) $ECHO_C" >&6
20500 else
20501 ac_check_lib_save_LIBS=$LIBS
20502 LIBS="-ldld $LIBS"
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h. */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509
20510 /* Override any GCC internal prototype to avoid an error.
20511 Use char because int might match the return type of a GCC
20512 builtin and then its argument prototype would still apply. */
20513 #ifdef __cplusplus
20514 extern "C"
20515 #endif
20516 char dld_link ();
20517 int
20518 main ()
20519 {
20520 return dld_link ();
20521 ;
20522 return 0;
20523 }
20524 _ACEOF
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (ac_try="$ac_link"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_link") 2>conftest.er1
20533 ac_status=$?
20534 grep -v '^ *+' conftest.er1 >conftest.err
20535 rm -f conftest.er1
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); } && {
20539 test -z "$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20541 } && test -s conftest$ac_exeext &&
20542 $as_test_x conftest$ac_exeext; then
20543 ac_cv_lib_dld_dld_link=yes
20544 else
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ac_cv_lib_dld_dld_link=no
20549 fi
20550
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552 conftest$ac_exeext conftest.$ac_ext
20553 LIBS=$ac_check_lib_save_LIBS
20554 fi
20555 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20556 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
20557 if test $ac_cv_lib_dld_dld_link = yes; then
20558
20559 cat >>confdefs.h <<\_ACEOF
20560 #define HAVE_DLD 1
20561 _ACEOF
20562
20563 LIBADD_DL="$LIBADD_DL -ldld"
20564 else
20565 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
20566 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
20567 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 else
20570 cat >conftest.$ac_ext <<_ACEOF
20571 /* confdefs.h. */
20572 _ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
20577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20578 #define _dyld_func_lookup innocuous__dyld_func_lookup
20579
20580 /* System header to define __stub macros and hopefully few prototypes,
20581 which can conflict with char _dyld_func_lookup (); below.
20582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20583 <limits.h> exists even on freestanding compilers. */
20584
20585 #ifdef __STDC__
20586 # include <limits.h>
20587 #else
20588 # include <assert.h>
20589 #endif
20590
20591 #undef _dyld_func_lookup
20592
20593 /* Override any GCC internal prototype to avoid an error.
20594 Use char because int might match the return type of a GCC
20595 builtin and then its argument prototype would still apply. */
20596 #ifdef __cplusplus
20597 extern "C"
20598 #endif
20599 char _dyld_func_lookup ();
20600 /* The GNU C library defines this for functions which it implements
20601 to always fail with ENOSYS. Some functions are actually named
20602 something starting with __ and the normal name is an alias. */
20603 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
20604 choke me
20605 #endif
20606
20607 int
20608 main ()
20609 {
20610 return _dyld_func_lookup ();
20611 ;
20612 return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext conftest$ac_exeext
20616 if { (ac_try="$ac_link"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20620 esac
20621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_link") 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } && {
20629 test -z "$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20631 } && test -s conftest$ac_exeext &&
20632 $as_test_x conftest$ac_exeext; then
20633 ac_cv_func__dyld_func_lookup=yes
20634 else
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20637
20638 ac_cv_func__dyld_func_lookup=no
20639 fi
20640
20641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20642 conftest$ac_exeext conftest.$ac_ext
20643 fi
20644 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20645 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
20646 if test $ac_cv_func__dyld_func_lookup = yes; then
20647
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE_DYLD 1
20650 _ACEOF
20651
20652 fi
20653
20654
20655 fi
20656
20657
20658 fi
20659
20660
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20664 conftest$ac_exeext conftest.$ac_ext
20665
20666 fi
20667
20668
20669 fi
20670
20671
20672 fi
20673
20674
20675 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20676 then
20677 lt_save_LIBS="$LIBS"
20678 LIBS="$LIBS $LIBADD_DL"
20679
20680 for ac_func in dlerror
20681 do
20682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20686 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 else
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h. */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20696 #define $ac_func innocuous_$ac_func
20697
20698 /* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char $ac_func (); below.
20700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20701 <limits.h> exists even on freestanding compilers. */
20702
20703 #ifdef __STDC__
20704 # include <limits.h>
20705 #else
20706 # include <assert.h>
20707 #endif
20708
20709 #undef $ac_func
20710
20711 /* Override any GCC internal prototype to avoid an error.
20712 Use char because int might match the return type of a GCC
20713 builtin and then its argument prototype would still apply. */
20714 #ifdef __cplusplus
20715 extern "C"
20716 #endif
20717 char $ac_func ();
20718 /* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721 #if defined __stub_$ac_func || defined __stub___$ac_func
20722 choke me
20723 #endif
20724
20725 int
20726 main ()
20727 {
20728 return $ac_func ();
20729 ;
20730 return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext conftest$ac_exeext
20734 if { (ac_try="$ac_link"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_link") 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && {
20747 test -z "$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20749 } && test -s conftest$ac_exeext &&
20750 $as_test_x conftest$ac_exeext; then
20751 eval "$as_ac_var=yes"
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 eval "$as_ac_var=no"
20757 fi
20758
20759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20760 conftest$ac_exeext conftest.$ac_ext
20761 fi
20762 ac_res=`eval echo '${'$as_ac_var'}'`
20763 { echo "$as_me:$LINENO: result: $ac_res" >&5
20764 echo "${ECHO_T}$ac_res" >&6; }
20765 if test `eval echo '${'$as_ac_var'}'` = yes; then
20766 cat >>confdefs.h <<_ACEOF
20767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20768 _ACEOF
20769
20770 fi
20771 done
20772
20773 LIBS="$lt_save_LIBS"
20774 fi
20775 ac_ext=c
20776 ac_cpp='$CPP $CPPFLAGS'
20777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20780
20781
20782
20783 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20784 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
20785 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
20786 echo $ECHO_N "(cached) $ECHO_C" >&6
20787 else
20788 ac_cv_sys_symbol_underscore=no
20789 cat > conftest.$ac_ext <<EOF
20790 void nm_test_func(){}
20791 int main(){nm_test_func;return 0;}
20792 EOF
20793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20794 (eval $ac_compile) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; then
20798 # Now try to grab the symbols.
20799 ac_nlist=conftest.nm
20800 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20801 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && test -s "$ac_nlist"; then
20805 # See whether the symbols have a leading underscore.
20806 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20807 ac_cv_sys_symbol_underscore=yes
20808 else
20809 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20810 :
20811 else
20812 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20813 fi
20814 fi
20815 else
20816 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20817 fi
20818 else
20819 echo "configure: failed program was:" >&5
20820 cat conftest.c >&5
20821 fi
20822 rm -rf conftest*
20823
20824 fi
20825 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
20826 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
20827
20828
20829 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20830 if test x"$libltdl_cv_func_dlopen" = xyes ||
20831 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20832 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20833 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
20834 if test "${libltdl_cv_need_uscore+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20836 else
20837 libltdl_cv_need_uscore=unknown
20838 save_LIBS="$LIBS"
20839 LIBS="$LIBS $LIBADD_DL"
20840 if test "$cross_compiling" = yes; then :
20841 libltdl_cv_need_uscore=cross
20842 else
20843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20844 lt_status=$lt_dlunknown
20845 cat > conftest.$ac_ext <<EOF
20846 #line 20846 "configure"
20847 #include "confdefs.h"
20848
20849 #if HAVE_DLFCN_H
20850 #include <dlfcn.h>
20851 #endif
20852
20853 #include <stdio.h>
20854
20855 #ifdef RTLD_GLOBAL
20856 # define LT_DLGLOBAL RTLD_GLOBAL
20857 #else
20858 # ifdef DL_GLOBAL
20859 # define LT_DLGLOBAL DL_GLOBAL
20860 # else
20861 # define LT_DLGLOBAL 0
20862 # endif
20863 #endif
20864
20865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20866 find out it does not work in some platform. */
20867 #ifndef LT_DLLAZY_OR_NOW
20868 # ifdef RTLD_LAZY
20869 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20870 # else
20871 # ifdef DL_LAZY
20872 # define LT_DLLAZY_OR_NOW DL_LAZY
20873 # else
20874 # ifdef RTLD_NOW
20875 # define LT_DLLAZY_OR_NOW RTLD_NOW
20876 # else
20877 # ifdef DL_NOW
20878 # define LT_DLLAZY_OR_NOW DL_NOW
20879 # else
20880 # define LT_DLLAZY_OR_NOW 0
20881 # endif
20882 # endif
20883 # endif
20884 # endif
20885 #endif
20886
20887 #ifdef __cplusplus
20888 extern "C" void exit (int);
20889 #endif
20890
20891 void fnord() { int i=42;}
20892 int main ()
20893 {
20894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20895 int status = $lt_dlunknown;
20896
20897 if (self)
20898 {
20899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20901 /* dlclose (self); */
20902 }
20903 else
20904 puts (dlerror ());
20905
20906 exit (status);
20907 }
20908 EOF
20909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20910 (eval $ac_link) 2>&5
20911 ac_status=$?
20912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20913 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20914 (./conftest; exit; ) >&5 2>/dev/null
20915 lt_status=$?
20916 case x$lt_status in
20917 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20918 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20919 x$lt_dlunknown|x*) ;;
20920 esac
20921 else :
20922 # compilation failed
20923
20924 fi
20925 fi
20926 rm -fr conftest*
20927
20928 LIBS="$save_LIBS"
20929
20930 fi
20931 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20932 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
20933 fi
20934 fi
20935
20936 if test x"$libltdl_cv_need_uscore" = xyes; then
20937
20938 cat >>confdefs.h <<\_ACEOF
20939 #define NEED_USCORE 1
20940 _ACEOF
20941
20942 fi
20943
20944
20945 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20946 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
20947 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
20948 echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950 # PORTME does your system automatically load deplibs for dlopen?
20951 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20952 # For now, we just catch OSes we know something about -- in the
20953 # future, we'll try test this programmatically.
20954 libltdl_cv_sys_dlopen_deplibs=unknown
20955 case "$host_os" in
20956 aix3*|aix4.1.*|aix4.2.*)
20957 # Unknown whether this is true for these versions of AIX, but
20958 # we want this `case' here to explicitly catch those versions.
20959 libltdl_cv_sys_dlopen_deplibs=unknown
20960 ;;
20961 aix[45]*)
20962 libltdl_cv_sys_dlopen_deplibs=yes
20963 ;;
20964 darwin*)
20965 # Assuming the user has installed a libdl from somewhere, this is true
20966 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20967 libltdl_cv_sys_dlopen_deplibs=yes
20968 ;;
20969 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
20970 # GNU and its variants, using gnu ld.so (Glibc)
20971 libltdl_cv_sys_dlopen_deplibs=yes
20972 ;;
20973 hpux10*|hpux11*)
20974 libltdl_cv_sys_dlopen_deplibs=yes
20975 ;;
20976 interix*)
20977 libltdl_cv_sys_dlopen_deplibs=yes
20978 ;;
20979 irix[12345]*|irix6.[01]*)
20980 # Catch all versions of IRIX before 6.2, and indicate that we don't
20981 # know how it worked for any of those versions.
20982 libltdl_cv_sys_dlopen_deplibs=unknown
20983 ;;
20984 irix*)
20985 # The case above catches anything before 6.2, and it's known that
20986 # at 6.2 and later dlopen does load deplibs.
20987 libltdl_cv_sys_dlopen_deplibs=yes
20988 ;;
20989 netbsd*)
20990 libltdl_cv_sys_dlopen_deplibs=yes
20991 ;;
20992 openbsd*)
20993 libltdl_cv_sys_dlopen_deplibs=yes
20994 ;;
20995 osf[1234]*)
20996 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20997 # it did *not* use an RPATH in a shared library to find objects the
20998 # library depends on, so we explictly say `no'.
20999 libltdl_cv_sys_dlopen_deplibs=no
21000 ;;
21001 osf5.0|osf5.0a|osf5.1)
21002 # dlopen *does* load deplibs and with the right loader patch applied
21003 # it even uses RPATH in a shared library to search for shared objects
21004 # that the library depends on, but there's no easy way to know if that
21005 # patch is installed. Since this is the case, all we can really
21006 # say is unknown -- it depends on the patch being installed. If
21007 # it is, this changes to `yes'. Without it, it would be `no'.
21008 libltdl_cv_sys_dlopen_deplibs=unknown
21009 ;;
21010 osf*)
21011 # the two cases above should catch all versions of osf <= 5.1. Read
21012 # the comments above for what we know about them.
21013 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21014 # is used to find them so we can finally say `yes'.
21015 libltdl_cv_sys_dlopen_deplibs=yes
21016 ;;
21017 solaris*)
21018 libltdl_cv_sys_dlopen_deplibs=yes
21019 ;;
21020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21021 libltdl_cv_sys_dlopen_deplibs=yes
21022 ;;
21023 esac
21024
21025 fi
21026 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
21027 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
21028 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define LTDL_DLOPEN_DEPLIBS 1
21032 _ACEOF
21033
21034 fi
21035
21036
21037 for ac_header in argz.h
21038 do
21039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045 fi
21046 ac_res=`eval echo '${'$as_ac_Header'}'`
21047 { echo "$as_me:$LINENO: result: $ac_res" >&5
21048 echo "${ECHO_T}$ac_res" >&6; }
21049 else
21050 # Is the header compilable?
21051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 $ac_includes_default
21060 #include <$ac_header>
21061 _ACEOF
21062 rm -f conftest.$ac_objext
21063 if { (ac_try="$ac_compile"
21064 case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_compile") 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } && {
21076 test -z "$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21078 } && test -s conftest.$ac_objext; then
21079 ac_header_compiler=yes
21080 else
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ac_header_compiler=no
21085 fi
21086
21087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21089 echo "${ECHO_T}$ac_header_compiler" >&6; }
21090
21091 # Is the header present?
21092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21094 cat >conftest.$ac_ext <<_ACEOF
21095 /* confdefs.h. */
21096 _ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21100 #include <$ac_header>
21101 _ACEOF
21102 if { (ac_try="$ac_cpp conftest.$ac_ext"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21109 ac_status=$?
21110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } >/dev/null && {
21115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21116 test ! -s conftest.err
21117 }; then
21118 ac_header_preproc=yes
21119 else
21120 echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123 ac_header_preproc=no
21124 fi
21125
21126 rm -f conftest.err conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21128 echo "${ECHO_T}$ac_header_preproc" >&6; }
21129
21130 # So? What about this header?
21131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21132 yes:no: )
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21137 ac_header_preproc=yes
21138 ;;
21139 no:yes:* )
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21152 ( cat <<\_ASBOX
21153 ## ---------------------------------- ##
21154 ## Report this to bug-libtool@gnu.org ##
21155 ## ---------------------------------- ##
21156 _ASBOX
21157 ) | sed "s/^/$as_me: WARNING: /" >&2
21158 ;;
21159 esac
21160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21163 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 else
21165 eval "$as_ac_Header=\$ac_header_preproc"
21166 fi
21167 ac_res=`eval echo '${'$as_ac_Header'}'`
21168 { echo "$as_me:$LINENO: result: $ac_res" >&5
21169 echo "${ECHO_T}$ac_res" >&6; }
21170
21171 fi
21172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21173 cat >>confdefs.h <<_ACEOF
21174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21175 _ACEOF
21176
21177 fi
21178
21179 done
21180
21181
21182 { echo "$as_me:$LINENO: checking for error_t" >&5
21183 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
21184 if test "${ac_cv_type_error_t+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21186 else
21187 cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h. */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h. */
21193 #if HAVE_ARGZ_H
21194 # include <argz.h>
21195 #endif
21196
21197 typedef error_t ac__type_new_;
21198 int
21199 main ()
21200 {
21201 if ((ac__type_new_ *) 0)
21202 return 0;
21203 if (sizeof (ac__type_new_))
21204 return 0;
21205 ;
21206 return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21217 ac_status=$?
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_cv_type_error_t=yes
21227 else
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 ac_cv_type_error_t=no
21232 fi
21233
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 fi
21236 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
21237 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
21238 if test $ac_cv_type_error_t = yes; then
21239
21240 cat >>confdefs.h <<_ACEOF
21241 #define HAVE_ERROR_T 1
21242 _ACEOF
21243
21244
21245 else
21246
21247 cat >>confdefs.h <<\_ACEOF
21248 #define error_t int
21249 _ACEOF
21250
21251 fi
21252
21253
21254
21255
21256
21257
21258
21259 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
21260 do
21261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21265 echo $ECHO_N "(cached) $ECHO_C" >&6
21266 else
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21275 #define $ac_func innocuous_$ac_func
21276
21277 /* System header to define __stub macros and hopefully few prototypes,
21278 which can conflict with char $ac_func (); below.
21279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21280 <limits.h> exists even on freestanding compilers. */
21281
21282 #ifdef __STDC__
21283 # include <limits.h>
21284 #else
21285 # include <assert.h>
21286 #endif
21287
21288 #undef $ac_func
21289
21290 /* Override any GCC internal prototype to avoid an error.
21291 Use char because int might match the return type of a GCC
21292 builtin and then its argument prototype would still apply. */
21293 #ifdef __cplusplus
21294 extern "C"
21295 #endif
21296 char $ac_func ();
21297 /* The GNU C library defines this for functions which it implements
21298 to always fail with ENOSYS. Some functions are actually named
21299 something starting with __ and the normal name is an alias. */
21300 #if defined __stub_$ac_func || defined __stub___$ac_func
21301 choke me
21302 #endif
21303
21304 int
21305 main ()
21306 {
21307 return $ac_func ();
21308 ;
21309 return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (ac_try="$ac_link"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317 esac
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_link") 2>conftest.er1
21320 ac_status=$?
21321 grep -v '^ *+' conftest.er1 >conftest.err
21322 rm -f conftest.er1
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } && {
21326 test -z "$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21328 } && test -s conftest$ac_exeext &&
21329 $as_test_x conftest$ac_exeext; then
21330 eval "$as_ac_var=yes"
21331 else
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335 eval "$as_ac_var=no"
21336 fi
21337
21338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21339 conftest$ac_exeext conftest.$ac_ext
21340 fi
21341 ac_res=`eval echo '${'$as_ac_var'}'`
21342 { echo "$as_me:$LINENO: result: $ac_res" >&5
21343 echo "${ECHO_T}$ac_res" >&6; }
21344 if test `eval echo '${'$as_ac_var'}'` = yes; then
21345 cat >>confdefs.h <<_ACEOF
21346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21347 _ACEOF
21348
21349 fi
21350 done
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
21380 stdio.h unistd.h
21381 do
21382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21387 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 fi
21389 ac_res=`eval echo '${'$as_ac_Header'}'`
21390 { echo "$as_me:$LINENO: result: $ac_res" >&5
21391 echo "${ECHO_T}$ac_res" >&6; }
21392 else
21393 # Is the header compilable?
21394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <$ac_header>
21404 _ACEOF
21405 rm -f conftest.$ac_objext
21406 if { (ac_try="$ac_compile"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compile") 2>conftest.er1
21413 ac_status=$?
21414 grep -v '^ *+' conftest.er1 >conftest.err
21415 rm -f conftest.er1
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); } && {
21419 test -z "$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21421 } && test -s conftest.$ac_objext; then
21422 ac_header_compiler=yes
21423 else
21424 echo "$as_me: failed program was:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21426
21427 ac_header_compiler=no
21428 fi
21429
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21432 echo "${ECHO_T}$ac_header_compiler" >&6; }
21433
21434 # Is the header present?
21435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21438 /* confdefs.h. */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 #include <$ac_header>
21444 _ACEOF
21445 if { (ac_try="$ac_cpp conftest.$ac_ext"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } >/dev/null && {
21458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 }; then
21461 ac_header_preproc=yes
21462 else
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466 ac_header_preproc=no
21467 fi
21468
21469 rm -f conftest.err conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21471 echo "${ECHO_T}$ac_header_preproc" >&6; }
21472
21473 # So? What about this header?
21474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21475 yes:no: )
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21480 ac_header_preproc=yes
21481 ;;
21482 no:yes:* )
21483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21495 ( cat <<\_ASBOX
21496 ## ---------------------------------- ##
21497 ## Report this to bug-libtool@gnu.org ##
21498 ## ---------------------------------- ##
21499 _ASBOX
21500 ) | sed "s/^/$as_me: WARNING: /" >&2
21501 ;;
21502 esac
21503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 eval "$as_ac_Header=\$ac_header_preproc"
21509 fi
21510 ac_res=`eval echo '${'$as_ac_Header'}'`
21511 { echo "$as_me:$LINENO: result: $ac_res" >&5
21512 echo "${ECHO_T}$ac_res" >&6; }
21513
21514 fi
21515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21516 cat >>confdefs.h <<_ACEOF
21517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21518 _ACEOF
21519
21520 fi
21521
21522 done
21523
21524
21525
21526
21527
21528 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
21529 do
21530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 fi
21537 ac_res=`eval echo '${'$as_ac_Header'}'`
21538 { echo "$as_me:$LINENO: result: $ac_res" >&5
21539 echo "${ECHO_T}$ac_res" >&6; }
21540 else
21541 # Is the header compilable?
21542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21544 cat >conftest.$ac_ext <<_ACEOF
21545 /* confdefs.h. */
21546 _ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 $ac_includes_default
21551 #include <$ac_header>
21552 _ACEOF
21553 rm -f conftest.$ac_objext
21554 if { (ac_try="$ac_compile"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_compile") 2>conftest.er1
21561 ac_status=$?
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest.$ac_objext; then
21570 ac_header_compiler=yes
21571 else
21572 echo "$as_me: failed program was:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21574
21575 ac_header_compiler=no
21576 fi
21577
21578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21580 echo "${ECHO_T}$ac_header_compiler" >&6; }
21581
21582 # Is the header present?
21583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h. */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 #include <$ac_header>
21592 _ACEOF
21593 if { (ac_try="$ac_cpp conftest.$ac_ext"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } >/dev/null && {
21606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 }; then
21609 ac_header_preproc=yes
21610 else
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 ac_header_preproc=no
21615 fi
21616
21617 rm -f conftest.err conftest.$ac_ext
21618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21619 echo "${ECHO_T}$ac_header_preproc" >&6; }
21620
21621 # So? What about this header?
21622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21623 yes:no: )
21624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21628 ac_header_preproc=yes
21629 ;;
21630 no:yes:* )
21631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21643 ( cat <<\_ASBOX
21644 ## ---------------------------------- ##
21645 ## Report this to bug-libtool@gnu.org ##
21646 ## ---------------------------------- ##
21647 _ASBOX
21648 ) | sed "s/^/$as_me: WARNING: /" >&2
21649 ;;
21650 esac
21651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21654 echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656 eval "$as_ac_Header=\$ac_header_preproc"
21657 fi
21658 ac_res=`eval echo '${'$as_ac_Header'}'`
21659 { echo "$as_me:$LINENO: result: $ac_res" >&5
21660 echo "${ECHO_T}$ac_res" >&6; }
21661
21662 fi
21663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21666 _ACEOF
21667
21668 fi
21669
21670 done
21671
21672
21673
21674 for ac_header in string.h strings.h
21675 do
21676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 fi
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684 { echo "$as_me:$LINENO: result: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21686 else
21687 # Is the header compilable?
21688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 #include <$ac_header>
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21716 ac_header_compiler=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 ac_header_compiler=no
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21726 echo "${ECHO_T}$ac_header_compiler" >&6; }
21727
21728 # Is the header present?
21729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 #include <$ac_header>
21738 _ACEOF
21739 if { (ac_try="$ac_cpp conftest.$ac_ext"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21746 ac_status=$?
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } >/dev/null && {
21752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21753 test ! -s conftest.err
21754 }; then
21755 ac_header_preproc=yes
21756 else
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760 ac_header_preproc=no
21761 fi
21762
21763 rm -f conftest.err conftest.$ac_ext
21764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21765 echo "${ECHO_T}$ac_header_preproc" >&6; }
21766
21767 # So? What about this header?
21768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21769 yes:no: )
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21774 ac_header_preproc=yes
21775 ;;
21776 no:yes:* )
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21789 ( cat <<\_ASBOX
21790 ## ---------------------------------- ##
21791 ## Report this to bug-libtool@gnu.org ##
21792 ## ---------------------------------- ##
21793 _ASBOX
21794 ) | sed "s/^/$as_me: WARNING: /" >&2
21795 ;;
21796 esac
21797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21800 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802 eval "$as_ac_Header=\$ac_header_preproc"
21803 fi
21804 ac_res=`eval echo '${'$as_ac_Header'}'`
21805 { echo "$as_me:$LINENO: result: $ac_res" >&5
21806 echo "${ECHO_T}$ac_res" >&6; }
21807
21808 fi
21809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21812 _ACEOF
21813 break
21814 fi
21815
21816 done
21817
21818
21819
21820
21821 for ac_func in strchr index
21822 do
21823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21824 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21826 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21828 else
21829 cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h. */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21837 #define $ac_func innocuous_$ac_func
21838
21839 /* System header to define __stub macros and hopefully few prototypes,
21840 which can conflict with char $ac_func (); below.
21841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21842 <limits.h> exists even on freestanding compilers. */
21843
21844 #ifdef __STDC__
21845 # include <limits.h>
21846 #else
21847 # include <assert.h>
21848 #endif
21849
21850 #undef $ac_func
21851
21852 /* Override any GCC internal prototype to avoid an error.
21853 Use char because int might match the return type of a GCC
21854 builtin and then its argument prototype would still apply. */
21855 #ifdef __cplusplus
21856 extern "C"
21857 #endif
21858 char $ac_func ();
21859 /* The GNU C library defines this for functions which it implements
21860 to always fail with ENOSYS. Some functions are actually named
21861 something starting with __ and the normal name is an alias. */
21862 #if defined __stub_$ac_func || defined __stub___$ac_func
21863 choke me
21864 #endif
21865
21866 int
21867 main ()
21868 {
21869 return $ac_func ();
21870 ;
21871 return 0;
21872 }
21873 _ACEOF
21874 rm -f conftest.$ac_objext conftest$ac_exeext
21875 if { (ac_try="$ac_link"
21876 case "(($ac_try" in
21877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878 *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881 (eval "$ac_link") 2>conftest.er1
21882 ac_status=$?
21883 grep -v '^ *+' conftest.er1 >conftest.err
21884 rm -f conftest.er1
21885 cat conftest.err >&5
21886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887 (exit $ac_status); } && {
21888 test -z "$ac_c_werror_flag" ||
21889 test ! -s conftest.err
21890 } && test -s conftest$ac_exeext &&
21891 $as_test_x conftest$ac_exeext; then
21892 eval "$as_ac_var=yes"
21893 else
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21896
21897 eval "$as_ac_var=no"
21898 fi
21899
21900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21901 conftest$ac_exeext conftest.$ac_ext
21902 fi
21903 ac_res=`eval echo '${'$as_ac_var'}'`
21904 { echo "$as_me:$LINENO: result: $ac_res" >&5
21905 echo "${ECHO_T}$ac_res" >&6; }
21906 if test `eval echo '${'$as_ac_var'}'` = yes; then
21907 cat >>confdefs.h <<_ACEOF
21908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21909 _ACEOF
21910 break
21911 fi
21912 done
21913
21914
21915
21916 for ac_func in strrchr rindex
21917 do
21918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21922 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 else
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21932 #define $ac_func innocuous_$ac_func
21933
21934 /* System header to define __stub macros and hopefully few prototypes,
21935 which can conflict with char $ac_func (); below.
21936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21937 <limits.h> exists even on freestanding compilers. */
21938
21939 #ifdef __STDC__
21940 # include <limits.h>
21941 #else
21942 # include <assert.h>
21943 #endif
21944
21945 #undef $ac_func
21946
21947 /* Override any GCC internal prototype to avoid an error.
21948 Use char because int might match the return type of a GCC
21949 builtin and then its argument prototype would still apply. */
21950 #ifdef __cplusplus
21951 extern "C"
21952 #endif
21953 char $ac_func ();
21954 /* The GNU C library defines this for functions which it implements
21955 to always fail with ENOSYS. Some functions are actually named
21956 something starting with __ and the normal name is an alias. */
21957 #if defined __stub_$ac_func || defined __stub___$ac_func
21958 choke me
21959 #endif
21960
21961 int
21962 main ()
21963 {
21964 return $ac_func ();
21965 ;
21966 return 0;
21967 }
21968 _ACEOF
21969 rm -f conftest.$ac_objext conftest$ac_exeext
21970 if { (ac_try="$ac_link"
21971 case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21974 esac
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_link") 2>conftest.er1
21977 ac_status=$?
21978 grep -v '^ *+' conftest.er1 >conftest.err
21979 rm -f conftest.er1
21980 cat conftest.err >&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); } && {
21983 test -z "$ac_c_werror_flag" ||
21984 test ! -s conftest.err
21985 } && test -s conftest$ac_exeext &&
21986 $as_test_x conftest$ac_exeext; then
21987 eval "$as_ac_var=yes"
21988 else
21989 echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992 eval "$as_ac_var=no"
21993 fi
21994
21995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21996 conftest$ac_exeext conftest.$ac_ext
21997 fi
21998 ac_res=`eval echo '${'$as_ac_var'}'`
21999 { echo "$as_me:$LINENO: result: $ac_res" >&5
22000 echo "${ECHO_T}$ac_res" >&6; }
22001 if test `eval echo '${'$as_ac_var'}'` = yes; then
22002 cat >>confdefs.h <<_ACEOF
22003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22004 _ACEOF
22005 break
22006 fi
22007 done
22008
22009
22010
22011 for ac_func in memcpy bcopy
22012 do
22013 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22014 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22015 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22016 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019 cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h. */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22027 #define $ac_func innocuous_$ac_func
22028
22029 /* System header to define __stub macros and hopefully few prototypes,
22030 which can conflict with char $ac_func (); below.
22031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22032 <limits.h> exists even on freestanding compilers. */
22033
22034 #ifdef __STDC__
22035 # include <limits.h>
22036 #else
22037 # include <assert.h>
22038 #endif
22039
22040 #undef $ac_func
22041
22042 /* Override any GCC internal prototype to avoid an error.
22043 Use char because int might match the return type of a GCC
22044 builtin and then its argument prototype would still apply. */
22045 #ifdef __cplusplus
22046 extern "C"
22047 #endif
22048 char $ac_func ();
22049 /* The GNU C library defines this for functions which it implements
22050 to always fail with ENOSYS. Some functions are actually named
22051 something starting with __ and the normal name is an alias. */
22052 #if defined __stub_$ac_func || defined __stub___$ac_func
22053 choke me
22054 #endif
22055
22056 int
22057 main ()
22058 {
22059 return $ac_func ();
22060 ;
22061 return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest.$ac_objext conftest$ac_exeext
22065 if { (ac_try="$ac_link"
22066 case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22069 esac
22070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_link") 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest$ac_exeext &&
22081 $as_test_x conftest$ac_exeext; then
22082 eval "$as_ac_var=yes"
22083 else
22084 echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087 eval "$as_ac_var=no"
22088 fi
22089
22090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22091 conftest$ac_exeext conftest.$ac_ext
22092 fi
22093 ac_res=`eval echo '${'$as_ac_var'}'`
22094 { echo "$as_me:$LINENO: result: $ac_res" >&5
22095 echo "${ECHO_T}$ac_res" >&6; }
22096 if test `eval echo '${'$as_ac_var'}'` = yes; then
22097 cat >>confdefs.h <<_ACEOF
22098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22099 _ACEOF
22100 break
22101 fi
22102 done
22103
22104
22105
22106 for ac_func in memmove strcmp
22107 do
22108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22112 echo $ECHO_N "(cached) $ECHO_C" >&6
22113 else
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h. */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22122 #define $ac_func innocuous_$ac_func
22123
22124 /* System header to define __stub macros and hopefully few prototypes,
22125 which can conflict with char $ac_func (); below.
22126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22127 <limits.h> exists even on freestanding compilers. */
22128
22129 #ifdef __STDC__
22130 # include <limits.h>
22131 #else
22132 # include <assert.h>
22133 #endif
22134
22135 #undef $ac_func
22136
22137 /* Override any GCC internal prototype to avoid an error.
22138 Use char because int might match the return type of a GCC
22139 builtin and then its argument prototype would still apply. */
22140 #ifdef __cplusplus
22141 extern "C"
22142 #endif
22143 char $ac_func ();
22144 /* The GNU C library defines this for functions which it implements
22145 to always fail with ENOSYS. Some functions are actually named
22146 something starting with __ and the normal name is an alias. */
22147 #if defined __stub_$ac_func || defined __stub___$ac_func
22148 choke me
22149 #endif
22150
22151 int
22152 main ()
22153 {
22154 return $ac_func ();
22155 ;
22156 return 0;
22157 }
22158 _ACEOF
22159 rm -f conftest.$ac_objext conftest$ac_exeext
22160 if { (ac_try="$ac_link"
22161 case "(($ac_try" in
22162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22163 *) ac_try_echo=$ac_try;;
22164 esac
22165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22166 (eval "$ac_link") 2>conftest.er1
22167 ac_status=$?
22168 grep -v '^ *+' conftest.er1 >conftest.err
22169 rm -f conftest.er1
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } && {
22173 test -z "$ac_c_werror_flag" ||
22174 test ! -s conftest.err
22175 } && test -s conftest$ac_exeext &&
22176 $as_test_x conftest$ac_exeext; then
22177 eval "$as_ac_var=yes"
22178 else
22179 echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 eval "$as_ac_var=no"
22183 fi
22184
22185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22186 conftest$ac_exeext conftest.$ac_ext
22187 fi
22188 ac_res=`eval echo '${'$as_ac_var'}'`
22189 { echo "$as_me:$LINENO: result: $ac_res" >&5
22190 echo "${ECHO_T}$ac_res" >&6; }
22191 if test `eval echo '${'$as_ac_var'}'` = yes; then
22192 cat >>confdefs.h <<_ACEOF
22193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22194 _ACEOF
22195
22196 fi
22197 done
22198
22199
22200
22201
22202 for ac_func in closedir opendir readdir
22203 do
22204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22208 echo $ECHO_N "(cached) $ECHO_C" >&6
22209 else
22210 cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h. */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22218 #define $ac_func innocuous_$ac_func
22219
22220 /* System header to define __stub macros and hopefully few prototypes,
22221 which can conflict with char $ac_func (); below.
22222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22223 <limits.h> exists even on freestanding compilers. */
22224
22225 #ifdef __STDC__
22226 # include <limits.h>
22227 #else
22228 # include <assert.h>
22229 #endif
22230
22231 #undef $ac_func
22232
22233 /* Override any GCC internal prototype to avoid an error.
22234 Use char because int might match the return type of a GCC
22235 builtin and then its argument prototype would still apply. */
22236 #ifdef __cplusplus
22237 extern "C"
22238 #endif
22239 char $ac_func ();
22240 /* The GNU C library defines this for functions which it implements
22241 to always fail with ENOSYS. Some functions are actually named
22242 something starting with __ and the normal name is an alias. */
22243 #if defined __stub_$ac_func || defined __stub___$ac_func
22244 choke me
22245 #endif
22246
22247 int
22248 main ()
22249 {
22250 return $ac_func ();
22251 ;
22252 return 0;
22253 }
22254 _ACEOF
22255 rm -f conftest.$ac_objext conftest$ac_exeext
22256 if { (ac_try="$ac_link"
22257 case "(($ac_try" in
22258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22259 *) ac_try_echo=$ac_try;;
22260 esac
22261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22262 (eval "$ac_link") 2>conftest.er1
22263 ac_status=$?
22264 grep -v '^ *+' conftest.er1 >conftest.err
22265 rm -f conftest.er1
22266 cat conftest.err >&5
22267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22268 (exit $ac_status); } && {
22269 test -z "$ac_c_werror_flag" ||
22270 test ! -s conftest.err
22271 } && test -s conftest$ac_exeext &&
22272 $as_test_x conftest$ac_exeext; then
22273 eval "$as_ac_var=yes"
22274 else
22275 echo "$as_me: failed program was:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22277
22278 eval "$as_ac_var=no"
22279 fi
22280
22281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22282 conftest$ac_exeext conftest.$ac_ext
22283 fi
22284 ac_res=`eval echo '${'$as_ac_var'}'`
22285 { echo "$as_me:$LINENO: result: $ac_res" >&5
22286 echo "${ECHO_T}$ac_res" >&6; }
22287 if test `eval echo '${'$as_ac_var'}'` = yes; then
22288 cat >>confdefs.h <<_ACEOF
22289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22290 _ACEOF
22291
22292 fi
22293 done
22294
22295
22296
22297
22298 ## -------- ##
22299 ## Outputs. ##
22300 ## -------- ##
22301 ac_config_files="$ac_config_files Makefile"
22302
22303 cat >confcache <<\_ACEOF
22304 # This file is a shell script that caches the results of configure
22305 # tests run on this system so they can be shared between configure
22306 # scripts and configure runs, see configure's option --config-cache.
22307 # It is not useful on other systems. If it contains results you don't
22308 # want to keep, you may remove or edit it.
22309 #
22310 # config.status only pays attention to the cache file if you give it
22311 # the --recheck option to rerun configure.
22312 #
22313 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22314 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22315 # following values.
22316
22317 _ACEOF
22318
22319 # The following way of writing the cache mishandles newlines in values,
22320 # but we know of no workaround that is simple, portable, and efficient.
22321 # So, we kill variables containing newlines.
22322 # Ultrix sh set writes to stderr and can't be redirected directly,
22323 # and sets the high bit in the cache file unless we assign to the vars.
22324 (
22325 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22326 eval ac_val=\$$ac_var
22327 case $ac_val in #(
22328 *${as_nl}*)
22329 case $ac_var in #(
22330 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22331 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22332 esac
22333 case $ac_var in #(
22334 _ | IFS | as_nl) ;; #(
22335 *) $as_unset $ac_var ;;
22336 esac ;;
22337 esac
22338 done
22339
22340 (set) 2>&1 |
22341 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22342 *${as_nl}ac_space=\ *)
22343 # `set' does not quote correctly, so add quotes (double-quote
22344 # substitution turns \\\\ into \\, and sed turns \\ into \).
22345 sed -n \
22346 "s/'/'\\\\''/g;
22347 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22348 ;; #(
22349 *)
22350 # `set' quotes correctly as required by POSIX, so do not add quotes.
22351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22352 ;;
22353 esac |
22354 sort
22355 ) |
22356 sed '
22357 /^ac_cv_env_/b end
22358 t clear
22359 :clear
22360 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22361 t end
22362 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22363 :end' >>confcache
22364 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22365 if test -w "$cache_file"; then
22366 test "x$cache_file" != "x/dev/null" &&
22367 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22368 echo "$as_me: updating cache $cache_file" >&6;}
22369 cat confcache >$cache_file
22370 else
22371 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22372 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22373 fi
22374 fi
22375 rm -f confcache
22376
22377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22378 # Let make expand exec_prefix.
22379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22380
22381 DEFS=-DHAVE_CONFIG_H
22382
22383 ac_libobjs=
22384 ac_ltlibobjs=
22385 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22386 # 1. Remove the extension, and $U if already installed.
22387 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22388 ac_i=`echo "$ac_i" | sed "$ac_script"`
22389 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22390 # will be set to the directory where LIBOBJS objects are built.
22391 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22392 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22393 done
22394 LIBOBJS=$ac_libobjs
22395
22396 LTLIBOBJS=$ac_ltlibobjs
22397
22398
22399 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22400 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22401 Usually this means the macro was only invoked conditionally." >&5
22402 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22403 Usually this means the macro was only invoked conditionally." >&2;}
22404 { (exit 1); exit 1; }; }
22405 fi
22406 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22407 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22408 Usually this means the macro was only invoked conditionally." >&5
22409 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22410 Usually this means the macro was only invoked conditionally." >&2;}
22411 { (exit 1); exit 1; }; }
22412 fi
22413 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22414 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22415 Usually this means the macro was only invoked conditionally." >&5
22416 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22417 Usually this means the macro was only invoked conditionally." >&2;}
22418 { (exit 1); exit 1; }; }
22419 fi
22420 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22421 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22422 Usually this means the macro was only invoked conditionally." >&5
22423 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22424 Usually this means the macro was only invoked conditionally." >&2;}
22425 { (exit 1); exit 1; }; }
22426 fi
22427 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22428 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22429 Usually this means the macro was only invoked conditionally." >&5
22430 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22431 Usually this means the macro was only invoked conditionally." >&2;}
22432 { (exit 1); exit 1; }; }
22433 fi
22434
22435 : ${CONFIG_STATUS=./config.status}
22436 ac_clean_files_save=$ac_clean_files
22437 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22438 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22439 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22440 cat >$CONFIG_STATUS <<_ACEOF
22441 #! $SHELL
22442 # Generated by $as_me.
22443 # Run this file to recreate the current configuration.
22444 # Compiler output produced by configure, useful for debugging
22445 # configure, is in config.log if it exists.
22446
22447 debug=false
22448 ac_cs_recheck=false
22449 ac_cs_silent=false
22450 SHELL=\${CONFIG_SHELL-$SHELL}
22451 _ACEOF
22452
22453 cat >>$CONFIG_STATUS <<\_ACEOF
22454 ## --------------------- ##
22455 ## M4sh Initialization. ##
22456 ## --------------------- ##
22457
22458 # Be more Bourne compatible
22459 DUALCASE=1; export DUALCASE # for MKS sh
22460 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22461 emulate sh
22462 NULLCMD=:
22463 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22464 # is contrary to our usage. Disable this feature.
22465 alias -g '${1+"$@"}'='"$@"'
22466 setopt NO_GLOB_SUBST
22467 else
22468 case `(set -o) 2>/dev/null` in
22469 *posix*) set -o posix ;;
22470 esac
22471
22472 fi
22473
22474
22475
22476
22477 # PATH needs CR
22478 # Avoid depending upon Character Ranges.
22479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22482 as_cr_digits='0123456789'
22483 as_cr_alnum=$as_cr_Letters$as_cr_digits
22484
22485 # The user is always right.
22486 if test "${PATH_SEPARATOR+set}" != set; then
22487 echo "#! /bin/sh" >conf$$.sh
22488 echo "exit 0" >>conf$$.sh
22489 chmod +x conf$$.sh
22490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22491 PATH_SEPARATOR=';'
22492 else
22493 PATH_SEPARATOR=:
22494 fi
22495 rm -f conf$$.sh
22496 fi
22497
22498 # Support unset when possible.
22499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22500 as_unset=unset
22501 else
22502 as_unset=false
22503 fi
22504
22505
22506 # IFS
22507 # We need space, tab and new line, in precisely that order. Quoting is
22508 # there to prevent editors from complaining about space-tab.
22509 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22510 # splitting by setting IFS to empty value.)
22511 as_nl='
22512 '
22513 IFS=" "" $as_nl"
22514
22515 # Find who we are. Look in the path if we contain no directory separator.
22516 case $0 in
22517 *[\\/]* ) as_myself=$0 ;;
22518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22519 for as_dir in $PATH
22520 do
22521 IFS=$as_save_IFS
22522 test -z "$as_dir" && as_dir=.
22523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22524 done
22525 IFS=$as_save_IFS
22526
22527 ;;
22528 esac
22529 # We did not find ourselves, most probably we were run as `sh COMMAND'
22530 # in which case we are not to be found in the path.
22531 if test "x$as_myself" = x; then
22532 as_myself=$0
22533 fi
22534 if test ! -f "$as_myself"; then
22535 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22536 { (exit 1); exit 1; }
22537 fi
22538
22539 # Work around bugs in pre-3.0 UWIN ksh.
22540 for as_var in ENV MAIL MAILPATH
22541 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22542 done
22543 PS1='$ '
22544 PS2='> '
22545 PS4='+ '
22546
22547 # NLS nuisances.
22548 for as_var in \
22549 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22550 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22551 LC_TELEPHONE LC_TIME
22552 do
22553 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22554 eval $as_var=C; export $as_var
22555 else
22556 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22557 fi
22558 done
22559
22560 # Required to use basename.
22561 if expr a : '\(a\)' >/dev/null 2>&1 &&
22562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22563 as_expr=expr
22564 else
22565 as_expr=false
22566 fi
22567
22568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22569 as_basename=basename
22570 else
22571 as_basename=false
22572 fi
22573
22574
22575 # Name of the executable.
22576 as_me=`$as_basename -- "$0" ||
22577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22578 X"$0" : 'X\(//\)$' \| \
22579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22580 echo X/"$0" |
22581 sed '/^.*\/\([^/][^/]*\)\/*$/{
22582 s//\1/
22583 q
22584 }
22585 /^X\/\(\/\/\)$/{
22586 s//\1/
22587 q
22588 }
22589 /^X\/\(\/\).*/{
22590 s//\1/
22591 q
22592 }
22593 s/.*/./; q'`
22594
22595 # CDPATH.
22596 $as_unset CDPATH
22597
22598
22599
22600 as_lineno_1=$LINENO
22601 as_lineno_2=$LINENO
22602 test "x$as_lineno_1" != "x$as_lineno_2" &&
22603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22604
22605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22606 # uniformly replaced by the line number. The first 'sed' inserts a
22607 # line-number line after each line using $LINENO; the second 'sed'
22608 # does the real work. The second script uses 'N' to pair each
22609 # line-number line with the line containing $LINENO, and appends
22610 # trailing '-' during substitution so that $LINENO is not a special
22611 # case at line end.
22612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22613 # scripts with optimization help from Paolo Bonzini. Blame Lee
22614 # E. McMahon (1931-1989) for sed's syntax. :-)
22615 sed -n '
22616 p
22617 /[$]LINENO/=
22618 ' <$as_myself |
22619 sed '
22620 s/[$]LINENO.*/&-/
22621 t lineno
22622 b
22623 :lineno
22624 N
22625 :loop
22626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22627 t loop
22628 s/-\n.*//
22629 ' >$as_me.lineno &&
22630 chmod +x "$as_me.lineno" ||
22631 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22632 { (exit 1); exit 1; }; }
22633
22634 # Don't try to exec as it changes $[0], causing all sort of problems
22635 # (the dirname of $[0] is not the place where we might find the
22636 # original and so on. Autoconf is especially sensitive to this).
22637 . "./$as_me.lineno"
22638 # Exit status is that of the last command.
22639 exit
22640 }
22641
22642
22643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22644 as_dirname=dirname
22645 else
22646 as_dirname=false
22647 fi
22648
22649 ECHO_C= ECHO_N= ECHO_T=
22650 case `echo -n x` in
22651 -n*)
22652 case `echo 'x\c'` in
22653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22654 *) ECHO_C='\c';;
22655 esac;;
22656 *)
22657 ECHO_N='-n';;
22658 esac
22659
22660 if expr a : '\(a\)' >/dev/null 2>&1 &&
22661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22662 as_expr=expr
22663 else
22664 as_expr=false
22665 fi
22666
22667 rm -f conf$$ conf$$.exe conf$$.file
22668 if test -d conf$$.dir; then
22669 rm -f conf$$.dir/conf$$.file
22670 else
22671 rm -f conf$$.dir
22672 mkdir conf$$.dir
22673 fi
22674 echo >conf$$.file
22675 if ln -s conf$$.file conf$$ 2>/dev/null; then
22676 as_ln_s='ln -s'
22677 # ... but there are two gotchas:
22678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22680 # In both cases, we have to default to `cp -p'.
22681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22682 as_ln_s='cp -p'
22683 elif ln conf$$.file conf$$ 2>/dev/null; then
22684 as_ln_s=ln
22685 else
22686 as_ln_s='cp -p'
22687 fi
22688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22689 rmdir conf$$.dir 2>/dev/null
22690
22691 if mkdir -p . 2>/dev/null; then
22692 as_mkdir_p=:
22693 else
22694 test -d ./-p && rmdir ./-p
22695 as_mkdir_p=false
22696 fi
22697
22698 if test -x / >/dev/null 2>&1; then
22699 as_test_x='test -x'
22700 else
22701 if ls -dL / >/dev/null 2>&1; then
22702 as_ls_L_option=L
22703 else
22704 as_ls_L_option=
22705 fi
22706 as_test_x='
22707 eval sh -c '\''
22708 if test -d "$1"; then
22709 test -d "$1/.";
22710 else
22711 case $1 in
22712 -*)set "./$1";;
22713 esac;
22714 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22715 ???[sx]*):;;*)false;;esac;fi
22716 '\'' sh
22717 '
22718 fi
22719 as_executable_p=$as_test_x
22720
22721 # Sed expression to map a string onto a valid CPP name.
22722 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22723
22724 # Sed expression to map a string onto a valid variable name.
22725 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22726
22727
22728 exec 6>&1
22729
22730 # Save the log message, to keep $[0] and so on meaningful, and to
22731 # report actual input values of CONFIG_FILES etc. instead of their
22732 # values after options handling.
22733 ac_log="
22734 This file was extended by libltdl $as_me 1.2, which was
22735 generated by GNU Autoconf 2.61. Invocation command line was
22736
22737 CONFIG_FILES = $CONFIG_FILES
22738 CONFIG_HEADERS = $CONFIG_HEADERS
22739 CONFIG_LINKS = $CONFIG_LINKS
22740 CONFIG_COMMANDS = $CONFIG_COMMANDS
22741 $ $0 $@
22742
22743 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22744 "
22745
22746 _ACEOF
22747
22748 cat >>$CONFIG_STATUS <<_ACEOF
22749 # Files that config.status was made for.
22750 config_files="$ac_config_files"
22751 config_headers="$ac_config_headers"
22752 config_commands="$ac_config_commands"
22753
22754 _ACEOF
22755
22756 cat >>$CONFIG_STATUS <<\_ACEOF
22757 ac_cs_usage="\
22758 \`$as_me' instantiates files from templates according to the
22759 current configuration.
22760
22761 Usage: $0 [OPTIONS] [FILE]...
22762
22763 -h, --help print this help, then exit
22764 -V, --version print version number and configuration settings, then exit
22765 -q, --quiet do not print progress messages
22766 -d, --debug don't remove temporary files
22767 --recheck update $as_me by reconfiguring in the same conditions
22768 --file=FILE[:TEMPLATE]
22769 instantiate the configuration file FILE
22770 --header=FILE[:TEMPLATE]
22771 instantiate the configuration header FILE
22772
22773 Configuration files:
22774 $config_files
22775
22776 Configuration headers:
22777 $config_headers
22778
22779 Configuration commands:
22780 $config_commands
22781
22782 Report bugs to <bug-autoconf@gnu.org>."
22783
22784 _ACEOF
22785 cat >>$CONFIG_STATUS <<_ACEOF
22786 ac_cs_version="\\
22787 libltdl config.status 1.2
22788 configured by $0, generated by GNU Autoconf 2.61,
22789 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22790
22791 Copyright (C) 2006 Free Software Foundation, Inc.
22792 This config.status script is free software; the Free Software Foundation
22793 gives unlimited permission to copy, distribute and modify it."
22794
22795 ac_pwd='$ac_pwd'
22796 srcdir='$srcdir'
22797 INSTALL='$INSTALL'
22798 MKDIR_P='$MKDIR_P'
22799 _ACEOF
22800
22801 cat >>$CONFIG_STATUS <<\_ACEOF
22802 # If no file are specified by the user, then we need to provide default
22803 # value. By we need to know if files were specified by the user.
22804 ac_need_defaults=:
22805 while test $# != 0
22806 do
22807 case $1 in
22808 --*=*)
22809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22810 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22811 ac_shift=:
22812 ;;
22813 *)
22814 ac_option=$1
22815 ac_optarg=$2
22816 ac_shift=shift
22817 ;;
22818 esac
22819
22820 case $ac_option in
22821 # Handling of the options.
22822 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22823 ac_cs_recheck=: ;;
22824 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22825 echo "$ac_cs_version"; exit ;;
22826 --debug | --debu | --deb | --de | --d | -d )
22827 debug=: ;;
22828 --file | --fil | --fi | --f )
22829 $ac_shift
22830 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22831 ac_need_defaults=false;;
22832 --header | --heade | --head | --hea )
22833 $ac_shift
22834 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22835 ac_need_defaults=false;;
22836 --he | --h)
22837 # Conflict between --help and --header
22838 { echo "$as_me: error: ambiguous option: $1
22839 Try \`$0 --help' for more information." >&2
22840 { (exit 1); exit 1; }; };;
22841 --help | --hel | -h )
22842 echo "$ac_cs_usage"; exit ;;
22843 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22844 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22845 ac_cs_silent=: ;;
22846
22847 # This is an error.
22848 -*) { echo "$as_me: error: unrecognized option: $1
22849 Try \`$0 --help' for more information." >&2
22850 { (exit 1); exit 1; }; } ;;
22851
22852 *) ac_config_targets="$ac_config_targets $1"
22853 ac_need_defaults=false ;;
22854
22855 esac
22856 shift
22857 done
22858
22859 ac_configure_extra_args=
22860
22861 if $ac_cs_silent; then
22862 exec 6>/dev/null
22863 ac_configure_extra_args="$ac_configure_extra_args --silent"
22864 fi
22865
22866 _ACEOF
22867 cat >>$CONFIG_STATUS <<_ACEOF
22868 if \$ac_cs_recheck; then
22869 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22870 CONFIG_SHELL=$SHELL
22871 export CONFIG_SHELL
22872 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22873 fi
22874
22875 _ACEOF
22876 cat >>$CONFIG_STATUS <<\_ACEOF
22877 exec 5>>config.log
22878 {
22879 echo
22880 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22881 ## Running $as_me. ##
22882 _ASBOX
22883 echo "$ac_log"
22884 } >&5
22885
22886 _ACEOF
22887 cat >>$CONFIG_STATUS <<_ACEOF
22888 #
22889 # INIT-COMMANDS
22890 #
22891 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22892
22893 _ACEOF
22894
22895 cat >>$CONFIG_STATUS <<\_ACEOF
22896
22897 # Handling of arguments.
22898 for ac_config_target in $ac_config_targets
22899 do
22900 case $ac_config_target in
22901 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
22902 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22903 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22904
22905 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22906 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22907 { (exit 1); exit 1; }; };;
22908 esac
22909 done
22910
22911
22912 # If the user did not use the arguments to specify the items to instantiate,
22913 # then the envvar interface is used. Set only those that are not.
22914 # We use the long form for the default assignment because of an extremely
22915 # bizarre bug on SunOS 4.1.3.
22916 if $ac_need_defaults; then
22917 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22918 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22919 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22920 fi
22921
22922 # Have a temporary directory for convenience. Make it in the build tree
22923 # simply because there is no reason against having it here, and in addition,
22924 # creating and moving files from /tmp can sometimes cause problems.
22925 # Hook for its removal unless debugging.
22926 # Note that there is a small window in which the directory will not be cleaned:
22927 # after its creation but before its name has been assigned to `$tmp'.
22928 $debug ||
22929 {
22930 tmp=
22931 trap 'exit_status=$?
22932 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22933 ' 0
22934 trap '{ (exit 1); exit 1; }' 1 2 13 15
22935 }
22936 # Create a (secure) tmp directory for tmp files.
22937
22938 {
22939 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22940 test -n "$tmp" && test -d "$tmp"
22941 } ||
22942 {
22943 tmp=./conf$$-$RANDOM
22944 (umask 077 && mkdir "$tmp")
22945 } ||
22946 {
22947 echo "$me: cannot create a temporary directory in ." >&2
22948 { (exit 1); exit 1; }
22949 }
22950
22951 #
22952 # Set up the sed scripts for CONFIG_FILES section.
22953 #
22954
22955 # No need to generate the scripts if there are no CONFIG_FILES.
22956 # This happens for instance when ./config.status config.h
22957 if test -n "$CONFIG_FILES"; then
22958
22959 _ACEOF
22960
22961
22962
22963 ac_delim='%!_!# '
22964 for ac_last_try in false false false false false :; do
22965 cat >conf$$subs.sed <<_ACEOF
22966 SHELL!$SHELL$ac_delim
22967 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22968 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22969 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22970 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22971 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22972 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22973 exec_prefix!$exec_prefix$ac_delim
22974 prefix!$prefix$ac_delim
22975 program_transform_name!$program_transform_name$ac_delim
22976 bindir!$bindir$ac_delim
22977 sbindir!$sbindir$ac_delim
22978 libexecdir!$libexecdir$ac_delim
22979 datarootdir!$datarootdir$ac_delim
22980 datadir!$datadir$ac_delim
22981 sysconfdir!$sysconfdir$ac_delim
22982 sharedstatedir!$sharedstatedir$ac_delim
22983 localstatedir!$localstatedir$ac_delim
22984 includedir!$includedir$ac_delim
22985 oldincludedir!$oldincludedir$ac_delim
22986 docdir!$docdir$ac_delim
22987 infodir!$infodir$ac_delim
22988 htmldir!$htmldir$ac_delim
22989 dvidir!$dvidir$ac_delim
22990 pdfdir!$pdfdir$ac_delim
22991 psdir!$psdir$ac_delim
22992 libdir!$libdir$ac_delim
22993 localedir!$localedir$ac_delim
22994 mandir!$mandir$ac_delim
22995 DEFS!$DEFS$ac_delim
22996 ECHO_C!$ECHO_C$ac_delim
22997 ECHO_N!$ECHO_N$ac_delim
22998 ECHO_T!$ECHO_T$ac_delim
22999 LIBS!$LIBS$ac_delim
23000 build_alias!$build_alias$ac_delim
23001 host_alias!$host_alias$ac_delim
23002 target_alias!$target_alias$ac_delim
23003 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23004 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23005 INSTALL_DATA!$INSTALL_DATA$ac_delim
23006 am__isrc!$am__isrc$ac_delim
23007 CYGPATH_W!$CYGPATH_W$ac_delim
23008 PACKAGE!$PACKAGE$ac_delim
23009 VERSION!$VERSION$ac_delim
23010 ACLOCAL!$ACLOCAL$ac_delim
23011 AUTOCONF!$AUTOCONF$ac_delim
23012 AUTOMAKE!$AUTOMAKE$ac_delim
23013 AUTOHEADER!$AUTOHEADER$ac_delim
23014 MAKEINFO!$MAKEINFO$ac_delim
23015 install_sh!$install_sh$ac_delim
23016 STRIP!$STRIP$ac_delim
23017 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23018 mkdir_p!$mkdir_p$ac_delim
23019 AWK!$AWK$ac_delim
23020 SET_MAKE!$SET_MAKE$ac_delim
23021 am__leading_dot!$am__leading_dot$ac_delim
23022 AMTAR!$AMTAR$ac_delim
23023 am__tar!$am__tar$ac_delim
23024 am__untar!$am__untar$ac_delim
23025 CC!$CC$ac_delim
23026 CFLAGS!$CFLAGS$ac_delim
23027 LDFLAGS!$LDFLAGS$ac_delim
23028 CPPFLAGS!$CPPFLAGS$ac_delim
23029 ac_ct_CC!$ac_ct_CC$ac_delim
23030 EXEEXT!$EXEEXT$ac_delim
23031 OBJEXT!$OBJEXT$ac_delim
23032 DEPDIR!$DEPDIR$ac_delim
23033 am__include!$am__include$ac_delim
23034 am__quote!$am__quote$ac_delim
23035 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23036 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23037 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23038 CCDEPMODE!$CCDEPMODE$ac_delim
23039 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23040 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23041 build!$build$ac_delim
23042 build_cpu!$build_cpu$ac_delim
23043 build_vendor!$build_vendor$ac_delim
23044 build_os!$build_os$ac_delim
23045 host!$host$ac_delim
23046 host_cpu!$host_cpu$ac_delim
23047 host_vendor!$host_vendor$ac_delim
23048 host_os!$host_os$ac_delim
23049 SED!$SED$ac_delim
23050 GREP!$GREP$ac_delim
23051 EGREP!$EGREP$ac_delim
23052 LN_S!$LN_S$ac_delim
23053 ECHO!$ECHO$ac_delim
23054 AR!$AR$ac_delim
23055 RANLIB!$RANLIB$ac_delim
23056 DLLTOOL!$DLLTOOL$ac_delim
23057 AS!$AS$ac_delim
23058 OBJDUMP!$OBJDUMP$ac_delim
23059 CPP!$CPP$ac_delim
23060 CXX!$CXX$ac_delim
23061 CXXFLAGS!$CXXFLAGS$ac_delim
23062 ac_ct_CXX!$ac_ct_CXX$ac_delim
23063 _ACEOF
23064
23065 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23066 break
23067 elif $ac_last_try; then
23068 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23069 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23070 { (exit 1); exit 1; }; }
23071 else
23072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23073 fi
23074 done
23075
23076 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23077 if test -n "$ac_eof"; then
23078 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23079 ac_eof=`expr $ac_eof + 1`
23080 fi
23081
23082 cat >>$CONFIG_STATUS <<_ACEOF
23083 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23084 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23085 _ACEOF
23086 sed '
23087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23088 s/^/s,@/; s/!/@,|#_!!_#|/
23089 :n
23090 t n
23091 s/'"$ac_delim"'$/,g/; t
23092 s/$/\\/; p
23093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23094 ' >>$CONFIG_STATUS <conf$$subs.sed
23095 rm -f conf$$subs.sed
23096 cat >>$CONFIG_STATUS <<_ACEOF
23097 CEOF$ac_eof
23098 _ACEOF
23099
23100
23101 ac_delim='%!_!# '
23102 for ac_last_try in false false false false false :; do
23103 cat >conf$$subs.sed <<_ACEOF
23104 CXXDEPMODE!$CXXDEPMODE$ac_delim
23105 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23106 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23107 CXXCPP!$CXXCPP$ac_delim
23108 F77!$F77$ac_delim
23109 FFLAGS!$FFLAGS$ac_delim
23110 ac_ct_F77!$ac_ct_F77$ac_delim
23111 LIBTOOL!$LIBTOOL$ac_delim
23112 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
23113 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23114 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23115 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23116 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23117 LIBADD_DL!$LIBADD_DL$ac_delim
23118 LIBOBJS!$LIBOBJS$ac_delim
23119 LTLIBOBJS!$LTLIBOBJS$ac_delim
23120 _ACEOF
23121
23122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
23123 break
23124 elif $ac_last_try; then
23125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23127 { (exit 1); exit 1; }; }
23128 else
23129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23130 fi
23131 done
23132
23133 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23134 if test -n "$ac_eof"; then
23135 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23136 ac_eof=`expr $ac_eof + 1`
23137 fi
23138
23139 cat >>$CONFIG_STATUS <<_ACEOF
23140 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23142 _ACEOF
23143 sed '
23144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23145 s/^/s,@/; s/!/@,|#_!!_#|/
23146 :n
23147 t n
23148 s/'"$ac_delim"'$/,g/; t
23149 s/$/\\/; p
23150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23151 ' >>$CONFIG_STATUS <conf$$subs.sed
23152 rm -f conf$$subs.sed
23153 cat >>$CONFIG_STATUS <<_ACEOF
23154 :end
23155 s/|#_!!_#|//g
23156 CEOF$ac_eof
23157 _ACEOF
23158
23159
23160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23162 # trailing colons and then remove the whole line if VPATH becomes empty
23163 # (actually we leave an empty line to preserve line numbers).
23164 if test "x$srcdir" = x.; then
23165 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23166 s/:*\$(srcdir):*/:/
23167 s/:*\${srcdir}:*/:/
23168 s/:*@srcdir@:*/:/
23169 s/^\([^=]*=[ ]*\):*/\1/
23170 s/:*$//
23171 s/^[^=]*=[ ]*$//
23172 }'
23173 fi
23174
23175 cat >>$CONFIG_STATUS <<\_ACEOF
23176 fi # test -n "$CONFIG_FILES"
23177
23178
23179 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23180 do
23181 case $ac_tag in
23182 :[FHLC]) ac_mode=$ac_tag; continue;;
23183 esac
23184 case $ac_mode$ac_tag in
23185 :[FHL]*:*);;
23186 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23187 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23188 { (exit 1); exit 1; }; };;
23189 :[FH]-) ac_tag=-:-;;
23190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23191 esac
23192 ac_save_IFS=$IFS
23193 IFS=:
23194 set x $ac_tag
23195 IFS=$ac_save_IFS
23196 shift
23197 ac_file=$1
23198 shift
23199
23200 case $ac_mode in
23201 :L) ac_source=$1;;
23202 :[FH])
23203 ac_file_inputs=
23204 for ac_f
23205 do
23206 case $ac_f in
23207 -) ac_f="$tmp/stdin";;
23208 *) # Look for the file first in the build tree, then in the source tree
23209 # (if the path is not absolute). The absolute path cannot be DOS-style,
23210 # because $ac_f cannot contain `:'.
23211 test -f "$ac_f" ||
23212 case $ac_f in
23213 [\\/$]*) false;;
23214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23215 esac ||
23216 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23217 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23218 { (exit 1); exit 1; }; };;
23219 esac
23220 ac_file_inputs="$ac_file_inputs $ac_f"
23221 done
23222
23223 # Let's still pretend it is `configure' which instantiates (i.e., don't
23224 # use $as_me), people would be surprised to read:
23225 # /* config.h. Generated by config.status. */
23226 configure_input="Generated from "`IFS=:
23227 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23228 if test x"$ac_file" != x-; then
23229 configure_input="$ac_file. $configure_input"
23230 { echo "$as_me:$LINENO: creating $ac_file" >&5
23231 echo "$as_me: creating $ac_file" >&6;}
23232 fi
23233
23234 case $ac_tag in
23235 *:-:* | *:-) cat >"$tmp/stdin";;
23236 esac
23237 ;;
23238 esac
23239
23240 ac_dir=`$as_dirname -- "$ac_file" ||
23241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23242 X"$ac_file" : 'X\(//\)[^/]' \| \
23243 X"$ac_file" : 'X\(//\)$' \| \
23244 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23245 echo X"$ac_file" |
23246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23247 s//\1/
23248 q
23249 }
23250 /^X\(\/\/\)[^/].*/{
23251 s//\1/
23252 q
23253 }
23254 /^X\(\/\/\)$/{
23255 s//\1/
23256 q
23257 }
23258 /^X\(\/\).*/{
23259 s//\1/
23260 q
23261 }
23262 s/.*/./; q'`
23263 { as_dir="$ac_dir"
23264 case $as_dir in #(
23265 -*) as_dir=./$as_dir;;
23266 esac
23267 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23268 as_dirs=
23269 while :; do
23270 case $as_dir in #(
23271 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23272 *) as_qdir=$as_dir;;
23273 esac
23274 as_dirs="'$as_qdir' $as_dirs"
23275 as_dir=`$as_dirname -- "$as_dir" ||
23276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23277 X"$as_dir" : 'X\(//\)[^/]' \| \
23278 X"$as_dir" : 'X\(//\)$' \| \
23279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23280 echo X"$as_dir" |
23281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23282 s//\1/
23283 q
23284 }
23285 /^X\(\/\/\)[^/].*/{
23286 s//\1/
23287 q
23288 }
23289 /^X\(\/\/\)$/{
23290 s//\1/
23291 q
23292 }
23293 /^X\(\/\).*/{
23294 s//\1/
23295 q
23296 }
23297 s/.*/./; q'`
23298 test -d "$as_dir" && break
23299 done
23300 test -z "$as_dirs" || eval "mkdir $as_dirs"
23301 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23302 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23303 { (exit 1); exit 1; }; }; }
23304 ac_builddir=.
23305
23306 case "$ac_dir" in
23307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23308 *)
23309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23310 # A ".." for each directory in $ac_dir_suffix.
23311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23312 case $ac_top_builddir_sub in
23313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23315 esac ;;
23316 esac
23317 ac_abs_top_builddir=$ac_pwd
23318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23319 # for backward compatibility:
23320 ac_top_builddir=$ac_top_build_prefix
23321
23322 case $srcdir in
23323 .) # We are building in place.
23324 ac_srcdir=.
23325 ac_top_srcdir=$ac_top_builddir_sub
23326 ac_abs_top_srcdir=$ac_pwd ;;
23327 [\\/]* | ?:[\\/]* ) # Absolute name.
23328 ac_srcdir=$srcdir$ac_dir_suffix;
23329 ac_top_srcdir=$srcdir
23330 ac_abs_top_srcdir=$srcdir ;;
23331 *) # Relative name.
23332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23333 ac_top_srcdir=$ac_top_build_prefix$srcdir
23334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23335 esac
23336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23337
23338
23339 case $ac_mode in
23340 :F)
23341 #
23342 # CONFIG_FILE
23343 #
23344
23345 case $INSTALL in
23346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23348 esac
23349 ac_MKDIR_P=$MKDIR_P
23350 case $MKDIR_P in
23351 [\\/$]* | ?:[\\/]* ) ;;
23352 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23353 esac
23354 _ACEOF
23355
23356 cat >>$CONFIG_STATUS <<\_ACEOF
23357 # If the template does not know about datarootdir, expand it.
23358 # FIXME: This hack should be removed a few years after 2.60.
23359 ac_datarootdir_hack=; ac_datarootdir_seen=
23360
23361 case `sed -n '/datarootdir/ {
23362 p
23363 q
23364 }
23365 /@datadir@/p
23366 /@docdir@/p
23367 /@infodir@/p
23368 /@localedir@/p
23369 /@mandir@/p
23370 ' $ac_file_inputs` in
23371 *datarootdir*) ac_datarootdir_seen=yes;;
23372 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23373 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23374 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23375 _ACEOF
23376 cat >>$CONFIG_STATUS <<_ACEOF
23377 ac_datarootdir_hack='
23378 s&@datadir@&$datadir&g
23379 s&@docdir@&$docdir&g
23380 s&@infodir@&$infodir&g
23381 s&@localedir@&$localedir&g
23382 s&@mandir@&$mandir&g
23383 s&\\\${datarootdir}&$datarootdir&g' ;;
23384 esac
23385 _ACEOF
23386
23387 # Neutralize VPATH when `$srcdir' = `.'.
23388 # Shell code in configure.ac might set extrasub.
23389 # FIXME: do we really want to maintain this feature?
23390 cat >>$CONFIG_STATUS <<_ACEOF
23391 sed "$ac_vpsub
23392 $extrasub
23393 _ACEOF
23394 cat >>$CONFIG_STATUS <<\_ACEOF
23395 :t
23396 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23397 s&@configure_input@&$configure_input&;t t
23398 s&@top_builddir@&$ac_top_builddir_sub&;t t
23399 s&@srcdir@&$ac_srcdir&;t t
23400 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23401 s&@top_srcdir@&$ac_top_srcdir&;t t
23402 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23403 s&@builddir@&$ac_builddir&;t t
23404 s&@abs_builddir@&$ac_abs_builddir&;t t
23405 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23406 s&@INSTALL@&$ac_INSTALL&;t t
23407 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23408 $ac_datarootdir_hack
23409 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23410
23411 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23412 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23413 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23414 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23415 which seems to be undefined. Please make sure it is defined." >&5
23416 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23417 which seems to be undefined. Please make sure it is defined." >&2;}
23418
23419 rm -f "$tmp/stdin"
23420 case $ac_file in
23421 -) cat "$tmp/out"; rm -f "$tmp/out";;
23422 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23423 esac
23424 ;;
23425 :H)
23426 #
23427 # CONFIG_HEADER
23428 #
23429 _ACEOF
23430
23431 # Transform confdefs.h into a sed script `conftest.defines', that
23432 # substitutes the proper values into config.h.in to produce config.h.
23433 rm -f conftest.defines conftest.tail
23434 # First, append a space to every undef/define line, to ease matching.
23435 echo 's/$/ /' >conftest.defines
23436 # Then, protect against being on the right side of a sed subst, or in
23437 # an unquoted here document, in config.status. If some macros were
23438 # called several times there might be several #defines for the same
23439 # symbol, which is useless. But do not sort them, since the last
23440 # AC_DEFINE must be honored.
23441 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23442 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23443 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23444 # PARAMS is the parameter list in the macro definition--in most cases, it's
23445 # just an empty string.
23446 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23447 ac_dB='\\)[ (].*,\\1define\\2'
23448 ac_dC=' '
23449 ac_dD=' ,'
23450
23451 uniq confdefs.h |
23452 sed -n '
23453 t rset
23454 :rset
23455 s/^[ ]*#[ ]*define[ ][ ]*//
23456 t ok
23457 d
23458 :ok
23459 s/[\\&,]/\\&/g
23460 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23461 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23462 ' >>conftest.defines
23463
23464 # Remove the space that was appended to ease matching.
23465 # Then replace #undef with comments. This is necessary, for
23466 # example, in the case of _POSIX_SOURCE, which is predefined and required
23467 # on some systems where configure will not decide to define it.
23468 # (The regexp can be short, since the line contains either #define or #undef.)
23469 echo 's/ $//
23470 s,^[ #]*u.*,/* & */,' >>conftest.defines
23471
23472 # Break up conftest.defines:
23473 ac_max_sed_lines=50
23474
23475 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23476 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23477 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23478 # et cetera.
23479 ac_in='$ac_file_inputs'
23480 ac_out='"$tmp/out1"'
23481 ac_nxt='"$tmp/out2"'
23482
23483 while :
23484 do
23485 # Write a here document:
23486 cat >>$CONFIG_STATUS <<_ACEOF
23487 # First, check the format of the line:
23488 cat >"\$tmp/defines.sed" <<\\CEOF
23489 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23490 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23491 b
23492 :def
23493 _ACEOF
23494 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23495 echo 'CEOF
23496 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23497 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23498 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23499 grep . conftest.tail >/dev/null || break
23500 rm -f conftest.defines
23501 mv conftest.tail conftest.defines
23502 done
23503 rm -f conftest.defines conftest.tail
23504
23505 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23506 cat >>$CONFIG_STATUS <<\_ACEOF
23507 if test x"$ac_file" != x-; then
23508 echo "/* $configure_input */" >"$tmp/config.h"
23509 cat "$ac_result" >>"$tmp/config.h"
23510 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23511 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23512 echo "$as_me: $ac_file is unchanged" >&6;}
23513 else
23514 rm -f $ac_file
23515 mv "$tmp/config.h" $ac_file
23516 fi
23517 else
23518 echo "/* $configure_input */"
23519 cat "$ac_result"
23520 fi
23521 rm -f "$tmp/out12"
23522 # Compute $ac_file's index in $config_headers.
23523 _am_stamp_count=1
23524 for _am_header in $config_headers :; do
23525 case $_am_header in
23526 $ac_file | $ac_file:* )
23527 break ;;
23528 * )
23529 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23530 esac
23531 done
23532 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23533 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23534 X$ac_file : 'X\(//\)[^/]' \| \
23535 X$ac_file : 'X\(//\)$' \| \
23536 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23537 echo X$ac_file |
23538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23539 s//\1/
23540 q
23541 }
23542 /^X\(\/\/\)[^/].*/{
23543 s//\1/
23544 q
23545 }
23546 /^X\(\/\/\)$/{
23547 s//\1/
23548 q
23549 }
23550 /^X\(\/\).*/{
23551 s//\1/
23552 q
23553 }
23554 s/.*/./; q'`/stamp-h$_am_stamp_count
23555 ;;
23556
23557 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23558 echo "$as_me: executing $ac_file commands" >&6;}
23559 ;;
23560 esac
23561
23562
23563 case $ac_file$ac_mode in
23564 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23565 # Strip MF so we end up with the name of the file.
23566 mf=`echo "$mf" | sed -e 's/:.*$//'`
23567 # Check whether this is an Automake generated Makefile or not.
23568 # We used to match only the files named `Makefile.in', but
23569 # some people rename them; so instead we look at the file content.
23570 # Grep'ing the first line is not enough: some people post-process
23571 # each Makefile.in and add a new line on top of each file to say so.
23572 # Grep'ing the whole file is not good either: AIX grep has a line
23573 # limit of 2048, but all sed's we know have understand at least 4000.
23574 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23575 dirpart=`$as_dirname -- "$mf" ||
23576 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23577 X"$mf" : 'X\(//\)[^/]' \| \
23578 X"$mf" : 'X\(//\)$' \| \
23579 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23580 echo X"$mf" |
23581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23582 s//\1/
23583 q
23584 }
23585 /^X\(\/\/\)[^/].*/{
23586 s//\1/
23587 q
23588 }
23589 /^X\(\/\/\)$/{
23590 s//\1/
23591 q
23592 }
23593 /^X\(\/\).*/{
23594 s//\1/
23595 q
23596 }
23597 s/.*/./; q'`
23598 else
23599 continue
23600 fi
23601 # Extract the definition of DEPDIR, am__include, and am__quote
23602 # from the Makefile without running `make'.
23603 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23604 test -z "$DEPDIR" && continue
23605 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23606 test -z "am__include" && continue
23607 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23608 # When using ansi2knr, U may be empty or an underscore; expand it
23609 U=`sed -n 's/^U = //p' < "$mf"`
23610 # Find all dependency output files, they are included files with
23611 # $(DEPDIR) in their names. We invoke sed twice because it is the
23612 # simplest approach to changing $(DEPDIR) to its actual value in the
23613 # expansion.
23614 for file in `sed -n "
23615 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23616 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23617 # Make sure the directory exists.
23618 test -f "$dirpart/$file" && continue
23619 fdir=`$as_dirname -- "$file" ||
23620 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23621 X"$file" : 'X\(//\)[^/]' \| \
23622 X"$file" : 'X\(//\)$' \| \
23623 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23624 echo X"$file" |
23625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23626 s//\1/
23627 q
23628 }
23629 /^X\(\/\/\)[^/].*/{
23630 s//\1/
23631 q
23632 }
23633 /^X\(\/\/\)$/{
23634 s//\1/
23635 q
23636 }
23637 /^X\(\/\).*/{
23638 s//\1/
23639 q
23640 }
23641 s/.*/./; q'`
23642 { as_dir=$dirpart/$fdir
23643 case $as_dir in #(
23644 -*) as_dir=./$as_dir;;
23645 esac
23646 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23647 as_dirs=
23648 while :; do
23649 case $as_dir in #(
23650 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23651 *) as_qdir=$as_dir;;
23652 esac
23653 as_dirs="'$as_qdir' $as_dirs"
23654 as_dir=`$as_dirname -- "$as_dir" ||
23655 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23656 X"$as_dir" : 'X\(//\)[^/]' \| \
23657 X"$as_dir" : 'X\(//\)$' \| \
23658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23659 echo X"$as_dir" |
23660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23661 s//\1/
23662 q
23663 }
23664 /^X\(\/\/\)[^/].*/{
23665 s//\1/
23666 q
23667 }
23668 /^X\(\/\/\)$/{
23669 s//\1/
23670 q
23671 }
23672 /^X\(\/\).*/{
23673 s//\1/
23674 q
23675 }
23676 s/.*/./; q'`
23677 test -d "$as_dir" && break
23678 done
23679 test -z "$as_dirs" || eval "mkdir $as_dirs"
23680 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23681 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23682 { (exit 1); exit 1; }; }; }
23683 # echo "creating $dirpart/$file"
23684 echo '# dummy' > "$dirpart/$file"
23685 done
23686 done
23687 ;;
23688
23689 esac
23690 done # for ac_tag
23691
23692
23693 { (exit 0); exit 0; }
23694 _ACEOF
23695 chmod +x $CONFIG_STATUS
23696 ac_clean_files=$ac_clean_files_save
23697
23698
23699 # configure is writing to config.log, and then calls config.status.
23700 # config.status does its own redirection, appending to config.log.
23701 # Unfortunately, on DOS this fails, as config.log is still kept open
23702 # by configure, so config.status won't be able to write to it; its
23703 # output is simply discarded. So we exec the FD to /dev/null,
23704 # effectively closing config.log, so it can be properly (re)opened and
23705 # appended to by config.status. When coming back to configure, we
23706 # need to make the FD available again.
23707 if test "$no_create" != yes; then
23708 ac_cs_success=:
23709 ac_config_status_args=
23710 test "$silent" = yes &&
23711 ac_config_status_args="$ac_config_status_args --quiet"
23712 exec 5>/dev/null
23713 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23714 exec 5>>config.log
23715 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23716 # would make configure fail if this is the last instruction.
23717 $ac_cs_success || { (exit 1); exit 1; }
23718 fi
23719